AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
![]() ![]() Sounds like you're modifying code that's already been adapted, the SCB->VTOR needs to end up pointing to 0x08008000, where FLASH_BASE = 0x08000000, VECT_TAB_OFFSET = 0x8000, or FLASH_BASE = 0x08008000, VECT_TAB_OFFSET = 0 I attached the image (bootloader + application) downloaded from flash. NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x8000) * Set the Vector Table base location at 0x8000 */ In the application i have relocate the vector table: _set_MSP(*(_IO uint32_t*) APPLICATIONADDRESS) * Initialize user application's Stack Pointer */ Jump_To_Application = (pFunction) JumpAddress JumpAddress = *(_IO uint32_t*) (APPLICATIONADDRESS + 4) * Test if user code is programmed starting from address ''ApplicationAddress'' */ #define APPLICATIONADDRESS (uint32_t)0x08008000 The code of the bootloader making the jump is: ![]() The bootloader does not jump in the application,it crashes in the function ''Jump_To_Application()''. I have problem with jump to application by bootloader. ![]()
0 Comments
Read More
Leave a Reply. |