How to change the boot start address even after reset

Discussion around product based on ARM Cortex M3 core.

Moderators: nferre, ncollot

ian@suzo
Posts: 2
Joined: Tue Jun 16, 2015 1:07 am

How to change the boot start address even after reset

Tue Jul 21, 2015 3:53 am

Hi I'd like to change my boot address from 0x00400000 to 0x00420000 after uploading and image. my code works and jump to the address location after the image is uploaded, but once I reset the power, the start address is at 0x00400000, how can I change it permanently. Please see my code below:

Code: Select all

    __set_MSP(*(uint32_t *)0x00420000);
    AT91C_BASE_CM3->CM3_VTOR = (uint32_t)0x00420000 & AT91C_NVIC_TBLOFF;

    ((void(*)(void))*(int *)0x00420004)();

Return to “SAM3 Cortex-M3 MCU”

Who is online

Users browsing this forum: No registered users and 1 guest