Using DFU firmware at default 0x800000 address.
Posted: Thu Dec 05, 2013 6:47 pm
Hello!
I would like my custom DFU software run just before main ChibiOS firmware. So I tried flashing that DFU firmware at the very beginning of the flash memory. And I uploaded main firmware 10kB after that. When I use simple firmware without use of ChibiOS or with chibios routines commented everything is normal. It is executed and I can see it works normally.
But my problem is with regular firmware with ChibiOS when execution point reaches any of ChibiOS routine it jumps to default failure routine infinite loop. And it happens regardless of whether I use NVIC_SetVectorTable( NVIC_VectTab_FLASH, 0x2800 ) as a very first line of main() code or not.
I use Chibios version 2.4.2 if it matters.
Thank you for assistance in advance!
I would like my custom DFU software run just before main ChibiOS firmware. So I tried flashing that DFU firmware at the very beginning of the flash memory. And I uploaded main firmware 10kB after that. When I use simple firmware without use of ChibiOS or with chibios routines commented everything is normal. It is executed and I can see it works normally.
But my problem is with regular firmware with ChibiOS when execution point reaches any of ChibiOS routine it jumps to default failure routine infinite loop. And it happens regardless of whether I use NVIC_SetVectorTable( NVIC_VectTab_FLASH, 0x2800 ) as a very first line of main() code or not.
I use Chibios version 2.4.2 if it matters.
Thank you for assistance in advance!