In MXRT1176 how to move the .bss section to SDRAM as SRAM_DTC_cm7 is overflowing

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

In MXRT1176 how to move the .bss section to SDRAM as SRAM_DTC_cm7 is overflowing

316 Views
Vidya_1203
Contributor II

I am getting the below error so trying to move .bss section to SDRAM.

Vidya_1203_0-1725361175335.png

 

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.

Vidya_1203_1-1725361267594.png

 

0 Kudos
Reply
3 Replies

283 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply

265 Views
Vidya_1203
Contributor II

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?

0 Kudos
Reply

232 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply