I'm working on R7F102GBExNP, after adding the UART peripheral via Smart Configurator, I compiled the project and received the following error:
Section .bss_ATFF500 overlaps section "RFD_DATA_nR".
I attach the .map file, the section view and the peripheral view.
I cannot figure out how to solve this issue.
Thanks
RL78.zip
Hello,
Can you try to specify this option in linker settings ?
Regards
This is my output now.
And this is the new map file.
newMapFile.zip
Any chance you can share your project so I can investigate ?
Thanks and regards
Can I share the project in a private mode?
Of course. You can send me a private message.
.monitor2 0000fe00 0000ffff 200 1.dataR 000fef00 000fef9a 9b 2.bss 000fef9c 000ff4ff 564 2RFD_DATA_nR 000ff500 000ff504 5 2.bss_ATFF500 000ff500 000ff6db 1dc 1
The .bss section allocates up to FF4FFh, and then RFD_DATA_nR requires 5-bytes which starts immediately after the .bss (which is according to your section ordering), at FF500h.
But the .bss_ATFF500 section is allocated here, so there is overlap, which is problematic.
Without knowing the point of the .bss_ATFF500 section, I cannot recommend what to do with it, assuming that the .bss needs all of its 564-bytes.
It is strange that my RAM usage is only half full.
After investigating more into the issue, the bss_ATxxxx sections are created because these settings reserve some space on RAM on explicit addresses:
Adding more peripherals to the project I get the same compile error. What else can be done?
As you add more modules and the .bss section is getting bigger, it may overlap with these sections used by DTC.
Try to change the data storage addresses to another address in RAM.