Closed baselsayeh closed 1 year ago
Hi,
app cannot be directly in pSRAM, there needs to be always a piece of code, which will be in SRAM, since when app is launched, the pSRAM is not configured. https://github.com/bouffalolab/bouffalo_sdk/blob/master/bsp/board/bl808dk/board.c#L249
Hi,
app cannot be directly in pSRAM, there needs to be always a piece of code, which will be in SRAM, since when app is launched, the pSRAM is not configured. https://github.com/bouffalolab/bouffalo_sdk/blob/master/bsp/board/bl808dk/board.c#L249
Ok, can we somehow start running on OCRAM to get the pSRAM going, then continue to the pSRAM? (I already tried running on the OCRAM (whats left of it) and it worked, but anything besides the hello world application wont fit in it & I need the whole Wram empty)
Also, please note, by default, image is always living in SRAM, so you basically need to copy it into the pSRAM as far as I know.
Also, please note, by default, image is always living in SRAM, so you basically need to copy it into the pSRAM as far as I know.
In my case, the image (code & ro data) resides on xip_memory (flash), but any data (.data, .bss, ... sections) resides at section ram_memory
which is at the Wram (from that linker script ram_memory (!rx) : ORIGIN = 0x62030000, LENGTH = 160K + 64K - 20K - 4K - 40K
)
I'm fine with the code running out of the flash, but not fine (for me) to put any data at the Wram
Is there anyway to simply use the pSRAM as the ram_memory
storage section? Is there any way to initialize the pSRAM before anything else so that it can be written into?
Write bootloader by yourself, in bootloader, you should init psram and go to app, then in app, you can modify ram_memory with psram addr and do not init psram again.
Hello
I'm trying to set the ram_memory section for the BL808 M0 to pSRAM (address to 0x50000000), But it does not boot
Tried this with the helloworld example, but it does not boot, no serial output from the program trying the helloworld example with the builtin boot2_isp_debug also resulted with a no output, but the isp_debug did output some info
How can i run the examples but with pSRAM as the ram address?