linker: section .bss' is not within region
data'
#236
-
hi all, kindly please, what means this probably?? I am trying to figure out why on DxCore and megaTinyCore build fails with this message from linker. I am trying on avr128db28 and on tiny3226 with code size 10kb and ram size 2kb - everything works on Leonardo and also to some extent (at least build/upload - execution hangs after while, probably something with types/pointers) on Infineon XMC2Go, which is Cortex-M0. I know that to unify sketch for both will require some careful defining of types probably (8bit, vs 32bit) and some other defines. This mostly works. But on DXC/MTC it is the same linker error - what may be the cause probably ?? Or how to better see verbose output from linker, its not much specific ... I am trying to isolate in quite lot of code what causes this, then I can post the code, but ... at least some point can help me; for me its weird it fails on 8-bit AVR on something :-( there is verbose linker output (notice also twice ld.exe ??):
Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
well, I forced to redefine RAMEND to something withing SRAM range and it helped!! weird is I now see also this in verbose output: BTW, would be nice some preprocessor #warning with possibility to output value of macro, but I didnt found it, I dont know the value of INTERNAL_SRAM_END and mostly why this #ifndef failed, respectivelly, why default RAMEND was too big ??:
|
Beta Was this translation helpful? Give feedback.
-
Very curious about what the code that broke this was! IT sounds to me like you were doing something unholy relating to memory sections... And - also note that you can view the IO headers (the ones from microchip) for parts supported by DxCore here: https://github.com/SpenceKonde/DxCore/blob/master/megaavr/extras/ioheaders/README.md |
Beta Was this translation helpful? Give feedback.
Very curious about what the code that broke this was! IT sounds to me like you were doing something unholy relating to memory sections...
And - also note that you can view the IO headers (the ones from microchip) for parts supported by DxCore here: https://github.com/SpenceKonde/DxCore/blob/master/megaavr/extras/ioheaders/README.md