You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • The instructions could just say to erase the flash when uploading - or IMO there should be a 1M image that overwrote everything, which would be a whole load easier for newbies. I don't think it should be the binary's job to detect whether it's been uploaded correctly.

    I think the issue is that some pointers to functions get stored in the code, and those move around so you can pretty much guarantee that code won't work between builds... Even using a slightly different compiler version or flags would probably produce incompatible binaries with exactly the same source code - so basically you'd have to write the CRC of the binary along with FLASH_MAGIC, which seems pretty crazy.

    But if you've changed the number of variables from 1400 to 1600 then chances are that's your problem :)

    Also, if you use E.setBootCode (the Web IDE's new 'save on upload' feature) you won't have any problems, as it's just plain JS code...

About

Avatar for Gordon @Gordon started