Hi,
I got the error with RL78/L13: E0562320:Section address overflowed out of range : ".dataR" .
I've selected "Locate ROM to far area" as per this suggestion:
https://community.renesas.com/mcu-mpu/rl78/f/rl78-forum/9193/i-am-unable-to-resolve-this-error-e0562320-section-address-overflowed-out-of-range-text
but the issue persisted.
Any idea?
Thanks
Hi dear ThiVu, The issue that you're facing occurs when the size of your variables exceeds the RAM capacity.
If that's the case, you can declare your constant variables with the 'const' prefix so that they will be stored in Read-only memory and it might solve your problem.
I hope you find it useful, if the problem persists, kindly share your device part number, and the global and static variable declarations in your code, so that we can address the problem more precisely.
Regards,Hossein.
If this or any other user's response answers your concern, kindly verify the answer. Thank you!
Renesas Engineering Community Moderatorhttps://community.renesas.com/https://academy.renesas.com/en-support.renesas.com/.../
Constant variables would be stored in ROM.
But in my case, I'd like to use a variable and it should be in RAM, right?
I am using R5F10WLC with 1.5kB RAM. Is there any way to somehow expand it by configurations ?
Yes, that's the case. You need to optimize your code in a way that avoids declaring global and static variables as much as possible.
Optimize your structs and arrays to consume less RAM, avoid using large data types when isn't necessary, and refactor your code so that variables are declared and used within the scope of their respective functions, rather than at the top of the program.
However, depending on your program and coding style, you might still find yourself running out of RAM even after implementing best practices. In such cases, you may need to consider using another MCU with a larger RAM capacity.
I hope you find this information helpful. Feel free to ask more questions or share your code if you need further assistance
Renesas Engineering Community Moderatorhttps://community.renesas.com/https://academy.renesas.com/en-support.renesas.com/...//