Report
2 months ago.

Changing program start address

Hi guys, I've exported mbed_blinky project for keil uvision 5 and i want to develop a program for another board, so I need to change the start address of program. I change the start in IROM1 in options for target window but it doesn't work. It must be defined in somewhere but I can't find it. Can anyone help?

  • My target is LPC1768
Comment on this question

2 Answers

2 months ago.

In that case, you can change reset handler vector address in the startup code here:

https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_ARM_STD/startup_LPC17xx.S#L33

2 months ago.

When exporting the IDE should be configured to use the linker script, not the GUI default values. The file can be found and modified or you can edit the linker setting to not use the .sct file, rather, the GUI values. https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_ARM_STD/LPC1768.sct#L2

/media/uploads/sam_grove/uv-rom1.png


To post an answer, please log in.