Closed Archfx closed 1 year ago
Hi,
I am involved in implementing a bootloader for the picoRV. Is there a way to dynamically reset the program address to a different section from the application itself at the beginning? I have my memory map as follows,
MEMORY { BOOTROM (rx) : ORIGIN = 0x00100000, LENGTH = 0x004000 APPROM (rx) : ORIGIN = 0x00104000, LENGTH = 0x3fc000 RAM (xrw) : ORIGIN = 0x00000000, LENGTH = 0x20000 } __bootrom_start__ = ORIGIN(BOOTROM); __bootrom_size__ = LENGTH(BOOTROM); __approm_start__ = ORIGIN(APPROM); __approm_size__ = LENGTH(APPROM);
Currently, even though I set the stack pointer to the application and, jump to the application it still searches for that address on the BOOTROM area.
Any suggestion is appreciated.
Thanks in advance
Never mind, Jump instruction did the trick.
Hi,
I am involved in implementing a bootloader for the picoRV. Is there a way to dynamically reset the program address to a different section from the application itself at the beginning? I have my memory map as follows,
Currently, even though I set the stack pointer to the application and, jump to the application it still searches for that address on the BOOTROM area.
Any suggestion is appreciated.
Thanks in advance