DFU in the Audio Reference Design

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
AlexAdvice
XCore Addict
Posts: 138
Joined: Sun Feb 23, 2014 11:30 am

DFU in the Audio Reference Design

Post by AlexAdvice »

As it was said to open the new topic, I'm copy the part of last message:

I'm plaing with Audio Reference Design. There is DFU inside.
Question - is the number of ugrades is limited by the eeprom size, or if the memory ends, it will roll and write the next upgrade image instead of the first one (i.e. - after the factory image)?

Code: Select all

Boot-Factory-Upgrade(1)-Upgrade(2)-...-Upgrade(n) - end of the EEPROM
Next upgrade:
Boot-Factory-Upgrade(n+1)-Upgrade(n+2)-....Upgrade(m) - end of the EEPROM
Next upgrade:
Boot-Factory-Upgrade(m+1)-Upgrade(m+2)-...
So, if it can do this automatically, or I need previously to revert to the factory-installed state (dfucons revertfactory) and only after to make upgrade?


User avatar
Ross
XCore Expert
Posts: 962
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

You should generate the upgrade images with --upgrade 1 for all of them

The design will over-write any existing upgrade image automatically, no need for the revert.
AlexAdvice
XCore Addict
Posts: 138
Joined: Sun Feb 23, 2014 11:30 am

Post by AlexAdvice »

Thank you, Ross, nice idea!
Post Reply