I am getting the below error so trying to move .bss section to SDRAM.
Please let me know the proper method to do this. Which sections of linker file to modify for this.
I tried changing the below section to BOARD_SDRAM but the board goes into fault mode when I dump.
Please un-check the box "Manage linker script" on the project properties to directly modify the linker on code.
On the same manage linker script tab on the properties you can change the placement of bss without directly modify the linker.
Another option, is increase the DTC size, please refer to this: Reallocating the FlexRAM - NXP Community
Best regards,
Omar
Thank you for your reply.The .bss section is overflowing by 800 kb which will not fit in the SRAM. So I am trying to move it to SDRAM. I have tried it by checking the move global variables to SDRAM tickbox in mcuxpresso. But it does not work as SDRAM needs to be initialized first.I understand we have to do this with dcd.c file. I am trying with MXRT1176 EVKB , will you please guide me on how to modify the dcd and options to enable in ide to initialize the sdram?
You can create the DCD file with Config Tools, if using the SDRAM as the EVK you can use the same configuration from SEMC example.
To integrate the DCD you can use secure provisioning tool to generate the image with DCD.
Another option to initialize the SDRAM is trhough the debugger, in the SDK there are examples that uses jlink script where SDRAM is initialized.
Best regards
Omar