Jump to content
43oh

LMIC library doesn't work with Energia?


Recommended Posts

The compiler is letting you know that you should not declare i inside the for loop. Declaring i inside the for loop is not valid in the C89/C90 standard. It is however valid in C99. You have 3 options to fix this.

  1. In the library declare i outside the for loop.
  2. enable C99 in platform.txt by supplying the compiler flag -std=c99. You can find platform.txt in %LOCALAPPDATA%\Energia15\packages\energia\hardware\msp432\<version>\platform.txt
  3. If you have a RED MSP432 LaunchPad, install the package "Energia MSP432 EMT RED boards" via the board manager and use that.
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...