Hello,
I am working on a program that has around 600KB worth of const data.
These are variables defined as static VarType const var[]={...}; with a whole bunch of const data in them.
When compiling, I get linker errors, basically telling me that there is not enough space...
However, they should be enough place in the flash (which is where I wold have expected my code/const to reside)...
ld.exe: C:\Users\cydeb\AppData\Local\Temp\arduino_build_180041/arduViseur.ino.elf section `.data' will not fit in region `DTCM'
ld.exe: address 0x2009b2c0 of C:\Users\cydeb\AppData\Local\Temp\arduino_build_180041/arduViseur.ino.elf section `.bss' is not within region `DTCM'
ld.exe: address 0x2009b2c0 of C:\Users\cydeb\AppData\Local\Temp\arduino_build_180041/arduViseur.ino.elf section `.bss' is not within region `DTCM'
ld.exe: region `DTCM' overflowed by 111296 bytes
I have tried defining my variables with PROGMEM as in the doc, but PROGMEM seemed to be undefined (missing a #include in my .h file?)
Is there a way to see the linker file to gain more info as to what is happening?
Another question:
The following code yeilds a warning
struct Str { uint16_t ra; int16_t dec; uint16_t tpe: 3, mag:4, szeM:7, szee:2; uint16_t dstM:7, dste:3, strindex: 6; };
Str ska ={ 11417u , 5636u , 11u , 7u , 63u , 3u , 5u , 0u , 1u };
stardisp.cpp:728: warning: large integer implicitly truncated to unsigned type
Str ska ={ 11417u , 5636u , 11u , 7u , 63u , 3u , 5u , 0u , 1u };
But all my ints have a u sufix... Does anyone have a clue as to why I am getting this warning (in fact, I get around 100K of them
...
Thanks,
Cyrille
I am working on a program that has around 600KB worth of const data.
These are variables defined as static VarType const var[]={...}; with a whole bunch of const data in them.
When compiling, I get linker errors, basically telling me that there is not enough space...
However, they should be enough place in the flash (which is where I wold have expected my code/const to reside)...
ld.exe: C:\Users\cydeb\AppData\Local\Temp\arduino_build_180041/arduViseur.ino.elf section `.data' will not fit in region `DTCM'
ld.exe: address 0x2009b2c0 of C:\Users\cydeb\AppData\Local\Temp\arduino_build_180041/arduViseur.ino.elf section `.bss' is not within region `DTCM'
ld.exe: address 0x2009b2c0 of C:\Users\cydeb\AppData\Local\Temp\arduino_build_180041/arduViseur.ino.elf section `.bss' is not within region `DTCM'
ld.exe: region `DTCM' overflowed by 111296 bytes
I have tried defining my variables with PROGMEM as in the doc, but PROGMEM seemed to be undefined (missing a #include in my .h file?)
Is there a way to see the linker file to gain more info as to what is happening?
Another question:
The following code yeilds a warning
struct Str { uint16_t ra; int16_t dec; uint16_t tpe: 3, mag:4, szeM:7, szee:2; uint16_t dstM:7, dste:3, strindex: 6; };
Str ska ={ 11417u , 5636u , 11u , 7u , 63u , 3u , 5u , 0u , 1u };
stardisp.cpp:728: warning: large integer implicitly truncated to unsigned type
Str ska ={ 11417u , 5636u , 11u , 7u , 63u , 3u , 5u , 0u , 1u };
But all my ints have a u sufix... Does anyone have a clue as to why I am getting this warning (in fact, I get around 100K of them
Thanks,
Cyrille