We are evaluating the bootloader of RL78/F24. You provide a swap partition function, so we want to try it out. I am a novice to the RL78 series. I successfully introduced the peripherals according to the documentation, but I am not very clear about the Section. The code flash has an RFD_CX_f, the data flash has an RFD_DX_f, and the extra area has an RFD_EX_f. How do I merge them? Or is there any reference to the RL78/F24 bootloader routine or documentation on this aspect? Thank you
The source code for the RFD package is modular, in that each component (code-flash, data-flash, extra-area) can be independently used (and there is common code). Putting each into their own section makes it easy to track and place these into specific address areas.
Each group uses a macro definition to place the code into its own section, i.e. for the code-flash support you will find this at or near the top of the source module:
#define R_RFD_START_SECTION_RFD_CF#include "r_rfd_memmap.h"
I suppose you can get rid of these, or make them conditional to put any or all of the modules into the compilers' default sections.
Thank you for your answer
Hello,
There is no need to merge any sections, you just need to allocate the sections depending on which part of flash you want to program (code flash, data flash, extra area). For example the sections for code flash programming are:
You can check more on the details of each section and how to allocate them when creating a new project on 2.3 and 6 paragraphs:
www.renesas.com/.../renesas-flash-driver-rl78-type-02-users-manual-rl78f23-and-rl78f24
Thank you, this document helps me a lot
Hello ,Recently, I have researched the need to write my own boot program into Boot cluster 1, 04000H-07FFFH area. I have offset the APP code to 0x000008000H by setting the section in the MOT file as shown in Figure P1.Now there are a few questionsPreviously, MCUs using ARM kernel merged the hex files of boot and app through scripting tools, but they could offset the vector table so that there would be no address conflicts between them. I saw that Renesas' mot file still had data before 000000F0H, as shown in Figure P2, which should be an interrupt vector table or the like. How should I write my boot program into the 04000H-07FFFH area now.2. When I was trying to create a boot program, I set the. cont in the section to start from 04000H, but it compiled with an error, as shown in Figure P3. How should I divide the area.Or if there is any reference, I would be very grateful. Novices have really encountered many difficulties on the road
,
The images you attached are not loaded properly and are not visible.
For reference on how to divide the memory on a bootloader-application project and create a combined program file please check this material:
https://www.renesas.com/us/en/document/apn/rl78-bootloader-one-image-r11an0470eu0100-rev100
As far as I understand you plan to plan to use the boot swap function and program boot cluster 1 with a new boot program.
When boot swap is used: Set the option bytes to 000C0H to 000C4H and 040C0H to 040C4H, the on-chipdebug security IDs to 000C6H to 000D5H and 040C6H to 040D5H, and the flash serial programming securityIDs to 000D6H to 000E5H and 040D6H to 040E5H.
Also to use the boot swap function, set a vector table also at 04000H to 0407FH and a CALLT instruction table also at 04080H to 040BFH.
The device's vector table exists at 0x00 and is used by both bootloader and application for interrupt servicing.
Hello, I configured it according to your suggestion, but I don't know if the operation is correct. It seems that *** Mapping List *** has no response.
The images are not loaded.
Sorry, can I take a look now?
Again, I cannot see them.