ear Expert,
I debug the bootloader, and come across a phenomenon, it’s incredible.
1# the memory definition of the sys_link.cmd file in Our APP file. Shown as below:
VECTORS (X) : origin=0x00010100 length=0x00000020
FLASH0 (RX) : origin=0x00010120 length=0x000EFFE0
STACKS (RW) : origin=0x08000000 length=0x00001500
RAM (RW) : origin=0x08001500 length=0x0001EB00
2# Then I revised the bl_config.h in the bootloader project, shown as below:
3# I use the bootloader download the app code into the hardware, and the chip can run normally.
###########################
But if I revised the sys_link.cmd file as below:
VECTORS (X) : origin=0x00010000 length=0x00000020
FLASH0 (RX) : origin=0x00010120 length=0x000EFFE0
STACKS (RW) : origin=0x08000000 length=0x00001500
RAM (RW) : origin=0x08001500 length=0x0001EB00
The difference is just the first address in the VECTORS (X),shown above.
Then I revised the bl_config.h in the bootloader project, shown as below:
3# I use the bootloader download the app code into the hardware, But the chip can not run normally.
What’s wrong with it?
Thanks and Regards
Qiuchi