cancel
Showing results for 
Search instead for 
Did you mean: 

I write my application on internal flash via usb custom hid but doesn't work.

Derek Koo
Associate
Posted on December 22, 2017 at 16:35

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?

1 REPLY 1
Posted on December 26, 2017 at 18:53

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..