Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Reputation Activity

  1. Thanks
    lonelycanyon got a reaction from Fmilburn in REALLY? main() not found ? MSP432 Launchpad   
    Just in case anyone comes across this in Google, I encountered a very similar bug in energia 17 and 18: code won't compile in user saved projects, but will compile if you copy the code into an example sketch. After several days of tinkering I FOUND THE PROBLEM, it seems that is you have a function name that contains 'setup' or 'loop' and you previously compiled to a different board, the sketch won't compile. once you change the name of these functions, the sketch compiles, and curiously, if you change it back it also compiles.
    so, to avoid this bug (at least my variant of it): don't create functions that contain the words 'setup' or 'loop'
    steps to reproduce:
    create a new project with this code: void setuptwo() { } void setup() { // put your setup code here, to run once: setuptwo(); } void loop() { // put your main code here, to run repeatedly: } compile for MSP430F5529 compile for MSP432 Hope this helps
    compilation log.txt
  • Create New...