As picture attached, rom size is not enough after adding some sensor drivers. How to add more space in rom region? I found quickfeather.ld in GCC_Project folder and the origin for ROM section is 0x00. As my understanding, 0x00 is for bootloader and 0x80000 is for m4app. Is quickfeather.ld the right file for qf_ssi_ai_app?
MEMORY
{
rom (rx) : ORIGIN = 0x00000000, LENGTH = 0x0002C000
ram (rwx) : ORIGIN = 0x2002C000, LENGTH = 0x0003c800
spiram (rw) : ORIGIN = 0x20063800, LENGTH = 0x0000800
HWA (rw) : ORIGIN = 0x20064000, LENGTH = 0x00018000
shm : ORIGIN = 0x2007C000, LENGTH = 0x00004000
}
BTW, should we modify tinyfpga-programmer-gui.py to meet the changes of rom region in .ld file?
Quick feather region rom overflow
It works after change the rom length and modify the origin address for the other section in quickfeather.ld.
MEMORY
{
rom (rx) : ORIGIN = 0x00000000, LENGTH = 0x00040000
ram (rwx) : ORIGIN = 0x20040000, LENGTH = 0x0003c800
spiram (rw) : ORIGIN = 0x2007c800, LENGTH = 0x0000800
HWA (rw) : ORIGIN = 0x2007d000, LENGTH = 0x00018000
shm : ORIGIN = 0x20095000, LENGTH = 0x00004000
}
Memory region Used Size Region Size %age Used
rom: 206228 B 256 KB 78.67%
ram: 193744 B 242 KB 78.18%
spiram: 0 GB 2 KB 0.00%
HWA: 0 GB 96 KB 0.00%
shm: 0 GB 16 KB 0.00%
Convert ELF to BIN
Create text symbol table.
make[1]: Leaving directory '/mnt/d/GitHub/qorc-sdk/qf_apps/qf_ssi_ai_app/GCC_Project'
MEMORY
{
rom (rx) : ORIGIN = 0x00000000, LENGTH = 0x00040000
ram (rwx) : ORIGIN = 0x20040000, LENGTH = 0x0003c800
spiram (rw) : ORIGIN = 0x2007c800, LENGTH = 0x0000800
HWA (rw) : ORIGIN = 0x2007d000, LENGTH = 0x00018000
shm : ORIGIN = 0x20095000, LENGTH = 0x00004000
}
Memory region Used Size Region Size %age Used
rom: 206228 B 256 KB 78.67%
ram: 193744 B 242 KB 78.18%
spiram: 0 GB 2 KB 0.00%
HWA: 0 GB 96 KB 0.00%
shm: 0 GB 16 KB 0.00%
Convert ELF to BIN
Create text symbol table.
make[1]: Leaving directory '/mnt/d/GitHub/qorc-sdk/qf_apps/qf_ssi_ai_app/GCC_Project'
-
- Posts: 3
- Joined: Mon Apr 10, 2023 7:26 am
Many thanks for that solution.frankie wrote: ↑Wed Aug 24, 2022 3:37 am It works after change the rom length and modifygeometry dash world the origin address for the other section in quickfeather.ld.
MEMORY
{
rom (rx) : ORIGIN = 0x00000000, LENGTH = 0x00040000
ram (rwx) : ORIGIN = 0x20040000, LENGTH = 0x0003c800
spiram (rw) : ORIGIN = 0x2007c800, LENGTH = 0x0000800
HWA (rw) : ORIGIN = 0x2007d000, LENGTH = 0x00018000
shm : ORIGIN = 0x20095000, LENGTH = 0x00004000
}
Memory region Used Size Region Size %age Used
rom: 206228 B 256 KB 78.67%
ram: 193744 B 242 KB 78.18%
spiram: 0 GB 2 KB 0.00%
HWA: 0 GB 96 KB 0.00%
shm: 0 GB 16 KB 0.00%
Convert ELF to BIN
Create text symbol table.
make[1]: Leaving directory '/mnt/d/GitHub/qorc-sdk/qf_apps/qf_ssi_ai_app/GCC_Project'