rl78 far pointer option
rl78 far pointer option
Hello,
we implement a RL78 R5F100LLAFB in order to drive a small 2.4 color tft
——
I had problems with adressing far data…
is there a GCC compiler option that make all pointer as far pointer ?
——
I had too a problem to declare a big array , seems there is a limit at 32768 bytes ?
is that right ?
——
kind regards
herve
Hello Herve,
Regarding your questions:
- On the forum section you can either post a question/answer directly, or comment on another post. Currently you can only upload images to the forum.
- Given the above information I can suggest you add a new support ticket at the following link: https://llvm-gcc-renesas.com/my-support-requests/tickettrackingsystem/addticket
The platform offers you possibility to upload files, up to 256MB.
—
Thank you,
The GNU Tools Team
Hello Herve,
After the discussed feature is implemented the behavior would be as follows:
Depending on the compiler option setting, the data will be placed, by default, in either near or far address space. It would be your choice.
At the moment we cannot estimate whether our next release will include the above mentioned feature, however we are actively working on it.
Regarding your other concern: we would need more information in order to properly asses the situation which results in the problem you are encountering.
Therefore, we’ll need a sample of your project (the source files, linker script, etc.).
We’d like to mention that we tried creating a sample project, with e2studio, targeting the device you have mentioned.
We are able to allocate up to 512KB of const data (in chunks of 32KB).
We appreciate your patience and understanding.
Thank you,
The GNU Tools Team
Hello Herve,
Thank you for contacting our GNU Tools support team!
A possibility to provide a build option, in the compiler, to include both near and far address spaces will be added in the near future, however it is currently unavailable.
Regarding your second question, it is true that the RL78 GNU Compiler won’t allow allocating more than 32K-1 of contiguous data.
Additional information:
– the above mentioned 32K is exactly the amount of RAM installed on your target (RL78 R5F100LLAFB)
– we do not recommend allocating the total of your RAM memory inside your application (a portion of unused space should be left available for the stack)
I hope this information will be useful. If there is anything else we can help you with, please do not hesitate to contact us.
—
Thank you,
The GNU Tools Team