Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically Setting PROGADDR_RESET #232

Closed
Archfx opened this issue Feb 23, 2023 · 1 comment
Closed

Dynamically Setting PROGADDR_RESET #232

Archfx opened this issue Feb 23, 2023 · 1 comment

Comments

@Archfx
Copy link

Archfx commented Feb 23, 2023

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

@Archfx
Copy link
Author

Archfx commented Feb 24, 2023

Never mind, Jump instruction did the trick.

@Archfx Archfx closed this as completed Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant