Hi all,I am using the "Smart Configurator" to configure the RSKRX72N evaluation board. In particular I use the Config_BSC to configure the SDRAM of the board.
Inside the function "R_BSP_POR_FUNCTION(R_BSP_STARTUP_FUNCTION)" the .bss and .data sectors are initialized before the SDRAM is configured (see _INITSCT() and CALL_INIT() and hardware_setup()).
So the initialization of the .bss and .data sectors fails.Can anyone help me solve this problem?
Hi MaxGhiso,
Can you please take this sample project for RX72M BSC for reference to see the progress of initiation of BSC:RX Family Example of Using the External Bus Rev.1.00 | Renesas
BR,
NP_Renesas
Hello!
The RX72N attempts to initialize .bss and .data (likely in SDRAM) before SDRAM is configured in hardware_setup(), causing a failure. Solutions involve initializing these sections in internal SRAM first (by modifying the linker script and startup code), then configuring SDRAM. Alternatively, try initializing a small internal RAM section for early startup, configuring SDRAM, and then initializing the main sections in SDRAM. Reordering initialization calls in the startup sequence to occur after hardware_setup() is another option, but requires caution. Consider scatter loading if your toolchain supports it. The core issue is ensuring SDRAM is ready before initializing sections located there, often requiring manual linker script and startup code adjustments alongside Smart Configurator usage.
Best Regards,
Ryan
MyCentura portal
Thanks Ryan247Zook,you figured out the problem.I add that the code is in C++ and that the problem arises with the initialization of a static object of the type std::map.I will try to use the macro "BSP_CFG_USER_WARM_START_PRE_C_FUNCTION" to initialize the SDRAM.I think the initialization function should be modified to consider this case.I will let you know.
Hi,
To correctly configure the SDRAM mounted on the RSKRX72N evaluation board I successfully used the application notes R01AN5441.Thanks