Hello,
I'm just learning the RL78/G12 R5F10278 processor with E2Studio.
When I created an RL78/G12 CC-RL project for the first time, I encountered the following error while uploading my code.
I filled in the yellow fields shown in the picture below and my problem was solved. I'm not sure if the beginning of the memory address is correct.
I was able to operate the button and LED without any problems.
My main purpose is to keep a variable that changes with the button state permanently in memory. I will use dataflash for this. I followed the "PFDL library" installation
instructions for CC-RL in the link below.
https://en-support.renesas.com/knowledgeBase/21092507
I looked at the self RAM list document below and As mentioned in step 7, I skipped this step because there was no space for the FDL T04 library on the device I was using.
https://www.renesas.com/us/en/document/mat/rl78-family-self-ram-list-flash-self-programming-library-rev305
As a result, I get the following error messages.
I am using CC-RL Compiler V11 because it is the PFDL library installation document and the trial version has expired. But it says that I can use up to 64kb, so I don't think that's the reason for the problem. I also got errors with the GCC compiler project and failed to use dataflash. I need your help on this matter. Thank you.
Have you enable the on-chip debug setting ?
Yes, I applied the settings you showed, but the same problems continue.
I found a few sample projects but they didn't work. If you have a sample project that saves variables in Dataflash I can compare the differences. Or if there are instructions for the GCC compiler I can use that too.
Can you try with these settings ?
It is not a data flash issue, this is a debugger issue probably because the debug monitor area is not reserved.
Yes, when I first created a project the debug monitor area was not reserved. I fixed it as you said. The settings are already like this, I managed to blink the LED before adding the PFDL libraries. But when I added the libraries these problems appeared.
Make sure the sections start after 0xD8.
Open section viewer from:
Yes, it was like this, I fixed it as you said and the errors were solved. Thank you very much. Also, it would be great for me if you could provide sample code for dataflash.
On the link you mentioned:
There is an example project with code for the data flash operations.
Thank you for your help.