Hello,
I advise against deleting the sections that map symbols from ROM to RAM.
Upon release from reset, the RAM area is in an undefined state, so be sure to initialize any RAM areas before use. Reading from uninitialized RAM areas may result in an internal reset due to RAM parity errors (as you may have already experienced).
Please follow this example to initialize RAM manually by modifying the r_bsp/mcu/all/cstart.asm file.
Could you please explain the necessity of the section that maps ROM to RAM?Is it okay to delete that section?
Normally, you should not delete this option because it specifies which data is to be copied from ROM to RAM. This is crucial when code needs to execute from RAM.
I doubt this option creates a problem in your project, especially if the issue is related to RAM parity error.
could you explain more about "What situation that code needs to execute from RAM"? and when it is no need?
While code flash library code is executed to re-program parts of code flash is used and re-programs parts of code flash or when:
Essentially the code flash is not accessible while being programmed or erased. The only alternative to continue to execute code is run from RAM.