the linker doesn't link files with ram above 0x400000 correctly. the ds390 allows the 4 kB internal RAM to be mapped to 0x400000-0x401000. i've tried changing lkarea.c  to: unsigned long xdatamap; (increasing the size). this fixes the problem (131216 * 32 = 0x401200 - for CAN memory space just in case)
a related problem is that no warning is given that the internal limit is exceeded (in case some adventurer tried xram at 0xf00000) - find_empty_space is unaware of the hardcoded size limit.
Log in to post a comment.