Hi,
After adding an OTP AES boot to my project (that is based mostly on XR-USB-AUDIO-2.0-MC) I discovered that USB DFU works no longer. Debugging revealed that value of variable that holds DFU mode flag (DFU_reset_override) does not survive during reset.
USB DFU worked fine without OTP AES boot. Apparently OTP AES clears RAM before passing control to firmware in flash.
Has anyone came across such an issue? Is there any idea where else (besides RAM) one could squirrel away a flag indicating DFU mode?
Armands
XS1-L + OTP AES boot + USB DFU
-
- Member
- Posts: 11
- Joined: Fri Dec 28, 2012 1:39 am
-
- XCore Expert
- Posts: 956
- Joined: Fri Dec 11, 2009 3:53 am
- Location: Sweden, Eskilstuna
There is instructions to write/read to the registers in the switch, but I do not know if that solves your problem. There is som registers only used for debugging, so they will not be set by other processes during DFU i guess.
-
- Member
- Posts: 11
- Joined: Fri Dec 28, 2012 1:39 am
Thanks, good idea! Values in registers of switch should survive restart of individual core. I will try that.lilltroll wrote:There is instructions to write/read to the registers in the switch, but I do not know if that solves your problem. There is som registers only used for debugging, so they will not be set by other processes during DFU i guess.
-
- Member
- Posts: 11
- Joined: Fri Dec 28, 2012 1:39 am
Unfortunately experiments revealed that PSwitch registers are wiped during restart so this is not an option.armands117 wrote:Thanks, good idea! Values in registers of switch should survive restart of individual core. I will try that.lilltroll wrote:There is instructions to write/read to the registers in the switch, but I do not know if that solves your problem. There is som registers only used for debugging, so they will not be set by other processes during DFU i guess.