Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


Fmilburn last won the day on November 16 2017

Fmilburn had the most liked content!

About Fmilburn

  • Rank
    Level 3

Profile Information

  • Gender
  • Location
  • Github

Recent Profile Visitors

2,093 profile views
  1. Without LaunchPad

    Hi @mesuttopuzlu you need to create a new variant. Do a search on 43oh for “Energia variant”. See for example:
  2. Energia Hybrid Code

    I think what you are doing is fine for pedagogical purposes and for that matter development. I too have been frustrated at times by not knowing what is going on in Energia and the time it takes to hunt it down. Nonetheless, I found it useful especially when starting out. Note that when you use DriverLib it is possible to hover the cursor in CCS and see what is going on underneath.
  3. Energia Hybrid Code

    Another approach with a simplified API is drverlib which is provided by TI and the use of #define. For example, to blink a LED: #include "driverlib.h" #define RED_LED GPIO_PORT_P1,GPIO_PIN0 #define DELAY_CYCLES 104500 //-------------------------------- m a i n ----------------------------------- void main(void) { // setup WDT_A_hold(WDT_A_BASE); // stop watchdog timer GPIO_setAsOutputPin(RED_LED); // set red LED port and pin to output direction // loop for(;;){ GPIO_toggleOutputOnPin(RED_LED); // toggle the red LED _delay_cycles(DELAY_CYCLES); // delay a while } }
  4. Problems with Energia on MSP430 LaunchPad

    @Markers Make sure there are no spaces in the path. See for example this: when you get a problem like this, always try a search for the key words in the error message - eg no such file or directory
  5. Promotion of MSP430FR2433 MCU LaunchPad™ kit

    @Tauronts You do not need to add them. They are defined by TI to indicate the peripherals and modules hat the microcontroller has.
  6. Serial.print(float) statement can't be compiled

    Hi @ChikamaYan I haven't used Energia in a while but I noticed there is a new version 1.0.2 available from the Boards Manager in Energia V18. I just tried it with the following on a Windows 10 machine and it worked as expected. void setup(){ Serial.begin(9600); Serial.println("Starting..."); } void loop(){ float test = 1.0; Serial.println(test); } When I copied your code I got a message about an extraneous character. Use the <> code insertion feature in 43oh when you insert code and it will end up like what I posted above. I notice the G2452 is available again also. Took a quick look at github and it looks like the FR2433 is being implemented in Energia as well. I have been fooling around with the FR2411 in CCS and like it - should be a good replacement for the G2553 but I wish it was available in TSSOP package.
  7. Rfid RC522 Library for MSP430G2553

    Hi @GhostArm Try this: https://github.com/fmilburn3/CardReader_RFID_RC522 RE: porting - do a search as there are a number of posts on 43oh
  8. Serial Port Problem

    Sometimes it is easier to use a separate MSP430 LaunchPad with eZ-FET to flash the G2. I have a MSP430F5529 set up with jumpers to do this and use it on custom boards and the G2 LaunchPad alike. The emulator on the G2 LaunchPad is just flaky at times.
  9. max() Function does not work in Energia-0101E0017

    I do not know why it is not there - it is in the Reference section of the Energia documentation. Probably an oversight that was corrected in V18. However, see this link for an implementation using a macro: https://stackoverflow.com/questions/3437404/min-and-max-in-c
  10. NRF25L01 MSP430 to Arduino

    I have only used the NRF24L01 between MSP430s and not with an Arduino - however, did you read through the Wiki? https://github.com/spirilis/msprf24/wiki Regarding pipes, see this: http://forum.43oh.com/topic/10228-nrf24l01-pipe-addressingad/#comment-76349
  11. RFID Booster Pack for CC3200

    I don't have a working CC3200 and have not tried using one with CCS. You might try starting a new thread here in 43oh or in E2E that fully explains the problem you are trying to solve and the things you have tried so far.
  12. UART interface to sim900

    Hard to say with the information you have given... The two sides of the RXD/TXD must be connected of course.
  13. UART interface to sim900

    There are two hardware UARTs on the F5529. See the Energia pin diagram here. Note that P3_4 and P3_3 are designated as RX(1) and TX(1) respectively. RXD and TXD are connected to P4_5 and P4_4 on the header with the jumpers. When you specify Serial in Energia it is using P4_5 and P4_4. Quoting from the Energia reference on the Serial Library: To use pins P3_4 and P3_3, specify Serial1 instead of Serial.
  14. Interrupts

    You could use attachInterrupt() to detect when the pin of interest has changed (e.g. in your example when the sequence changes from xx0x to xx1x). At that point you could use digitalRead() to determine the status of the other pins. However, digitalRead() is relatively slow. If you are willing to give up compatibility with other processors then the register containing the input values for the port can be read quickly and directly. For example, the following reads and prints the input register for port 1 and then masks out and prints G2 LaunchPad pin 5 (P1.3) which is attached to switch S2 on the G2 LaunchPad. void setup() { Serial.begin(9600); pinMode(5, INPUT_PULLUP); // G2 LaunchPad push button } void loop() { Serial.println(P1IN); // Input register port 1 Serial.println(P1IN & BIT3); // Pin 5 is P1.3 delay(100); } The GPIO registers are described in the Family User Guides for TI microcontrollers - see SLAU144J for the x2xx family. It might be cleaner just to do this in CCS without using Energia.
  15. Interrupts

    Hi @nirbar11 and welcome to 43oh I am not sure I understand your objectives but here is something to get you started... Don't use pin names of the form P1_x in Energia as this has been deprecated Don't put print statements (or other slow to execute code) inside of interrupts - flag the interrupt and handle it elsewhere You will probably want to avoid using delay() in your code Note that if using a G2 LaunchPad that P1.0 and P1.6 are attached to LEDs via jumpers that can be pulled Here is some example code that detects buttons being pushed (no debouncing). volatile bool pin5Pushed = false; volatile bool pin6Pushed = false; volatile bool pin7Pushed = false; volatile bool pin8Pushed = false; void setup() { Serial.begin(9600); pinMode(5, INPUT_PULLUP); pinMode(6, INPUT_PULLUP); pinMode(7, INPUT_PULLUP); pinMode(8, INPUT_PULLUP); attachInterrupt(5,interrupt5,FALLING); attachInterrupt(6,interrupt6,FALLING); attachInterrupt(7,interrupt7,FALLING); attachInterrupt(8,interrupt8,FALLING); } void loop() { if (pin5Pushed == true){ Serial.println("Pin 5 pushed"); pin5Pushed = false; } if (pin6Pushed == true){ Serial.println("Pin 6 pushed"); pin6Pushed = false; } if (pin7Pushed == true){ Serial.println("Pin 7 pushed"); pin7Pushed = false; } if (pin8Pushed == true){ Serial.println("Pin 8 pushed"); pin8Pushed = false; } } void interrupt5(){ pin5Pushed = true; } void interrupt6(){ pin6Pushed = true; } void interrupt7(){ pin7Pushed = true; } void interrupt8(){ pin8Pushed = true; } And finally, avoid double posting.