Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: RE: Memory management for Bootloader and application

$
0
0
1. Yes, both boot loader and application need 0x400 byte vector table. So you should find the same entry also in the map file for the application. If you have a project that has been generated by e2studio project generator or CubeSuite+ project generator it should have the necessary settings. 2. Of course you have to take care of the stack size. It is not necessary to have separate stacks for boot loader and application, but it should always be big enough. 3. If you don't return to the boot loader from your application, and if you jump from boot loader to the reset address of the application (so the code will initialise all global variables), you can probably share the RAM between boot loader and application. But you have to be carefull about the pripheral initialisation. If a peripheral (including clock circuit) has been initialised by the boot loader, and it will be initialised again by the application, it may be that you get some invalid combination of the bit settings.

Viewing all articles
Browse latest Browse all 59170

Trending Articles