system76 / ec

System76 Open Source Embedded Controller
GNU General Public License v3.0
318 stars 72 forks source link

Internal RAM exhausted #490

Open crawfxrd opened 1 month ago

crawfxrd commented 1 month ago

Attempting to build branch usbc-mux-info for bonw15 results in:

  LINK      ec.ihx
?ASlink-Error-Could not get 11 consecutive bytes in internal RAM for area OSEG.
?ASlink-Error-Could not get 5 consecutive bytes in internal RAM for area OSEG.
make: *** [src/arch/8051/toolchain.mk:42: build/ec.ihx] Error 1
crawfxrd commented 1 month ago

Need to look at the memory map, but:

We already use large for the main app (which is suppose to put variables in XRAM to begin with), so a potential resolution may be to declare and use variables at fixed addressed (Ref: #36):

Some other thoughts: