2017-12-22 07:35 AM
Hi.
I made custom bootloader and application.
I want to receive application raw binary via usb(custom hid) and write my application area.
I already made bootloader and Pc host program. But after write binary on internal flash(start address 0x800E000), application don't work.
So I checked application area via IAR debug mode. I think same with previous application.
What can I do for fixing this problem?
Can Application code be wrote via Usb?
2017-12-26 09:53 AM
You'll have to do some debugging and analysis. Step into your code and understand what is happening. To get beyond 'don't work' you're going to have to examine what is happening.
Make sure you are programming the correct Vector Table address into the processor so it can find the table at the new location. Nominally SCB->VTOR, programmed in SystemInit()
ST has a lot of unnecessary defines, here we use the linker so SCB->VTOR = &__Vectors; resolves this automatically.