Forum Rule: Always post complete source code & details to reproduce any issue!
Page 3 of 3 FirstFirst 1 2 3
Results 51 to 52 of 52

Thread: OTA update alternative

  1. #51
    Quote Originally Posted by defragster View Post
    IIRC Teensy mcu does full flash erase to program. Thus the external program chip. To program via code works iff running from ram.
    Would doing it the way I suggested be possible them? Since if you don't erase the sector/s with the First program in it (Lets call it the updater), then that should always run on initial power up?

    The 'updater' then jumps to the starting address for the main application (The one that can be re-written) immediately if it doesnt detect a SDcard (Or something similar).

    The current revision of the updater application copies the top half of the flash to the bottom half of the flash. So the main application (That also has the code for updating built in) would be overwritten. A bad flash would cripple the device and no longer be able to take in-code updating.

    By splitting them up, and ensuring the updater program is never over-written.. sort of arduino style. Theres 128 2kb sectors, so would be a matter of making the updater as small as possible to fit into 1 or 2 sectors.

    I am assuming this is all possible.. Iv not attempted to flash in a second app in later flash memory and jump to it from first app.. not sure if its as simple as that?

  2. #52
    Hey,
    very interesting thread so far.
    Has there been any successful updates on the workarounds for ota for the teensy family?

    Thx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •