- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would like to execute a full applicative in psram0, in order to use it as a flash writer bootstrap.
I can't manage to get the linker to do what i want, almost all should be mapped already to RAM but it complains about trap vector interrupt and reset address.
Can you help me to understand what i can do to accomplish my needs? I attach also the actual linker file.
Last note, i'm using the option "--non-romable" for the linker
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @FabioMazza ,
I have attached the modified file.
Suggestion is not to use the C segment for the code when you want to build single elf file. Rather use the segments 7 and 6 respectively for the PSPRs of CPU0 and CPU1.
Rest of the linker file remains more-or-less same. Please find the changed file as attached below.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have seen some MACROs are changed for trapvec, could you increase its size to see if it can fit the section?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, those defines does not change the size, just the starting addresses, and the modification that you suggested bring back the code to flash, not ram, 0xc0000000 is the starting address of psram0 where i want all the code to be.
In the above image you can see how an .hex file looks like when all the code is mapped in psram0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @FabioMazza ,
I have attached the modified file.
Suggestion is not to use the C segment for the code when you want to build single elf file. Rather use the segments 7 and 6 respectively for the PSPRs of CPU0 and CPU1.
Rest of the linker file remains more-or-less same. Please find the changed file as attached below.