is dcd data a must?

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

is dcd data a must?

Jump to solution
1,117 Views
5angxr
Contributor II

dcd data is mainly to config the sdram in my opinion, but it is really hard for developers to read and modify.

can I just leave dcd away, and config sdram in the real C code?

Labels (3)
0 Kudos
Reply
1 Solution
1,107 Views
Masmiseim
Senior Contributor I

Hello @5angxr ,

yes, you can leave the DCD empty or omit it and initialize the memory interface in the C code.
However, this makes it more difficult to store the stack/heap/bss/... in the external memory, as these areas are created in the startup code before main.

Regards

View solution in original post

0 Kudos
Reply
4 Replies
1,096 Views
5angxr
Contributor II

what I want to do is :

it is my bootloader project, I put stack/heap/ZW/ZI data in ocram, after configed flash and sdram in the C code, I copy App from flash to sdram and ITCM, then it goes to App.

When I get to the app, I put the data in SDRAM.

So, in this case, can I leave the DCD empty?

0 Kudos
Reply
1,108 Views
Masmiseim
Senior Contributor I

Hello @5angxr ,

yes, you can leave the DCD empty or omit it and initialize the memory interface in the C code.
However, this makes it more difficult to store the stack/heap/bss/... in the external memory, as these areas are created in the startup code before main.

Regards

0 Kudos
Reply
1,094 Views
5angxr
Contributor II
what I want to do is :
it is my bootloader project, I put stack/heap/ZW/ZI data in ocram, after configed flash and sdram in the C code, I copy App from flash to sdram and ITCM, then it goes to App.
When I get to the app, I put the data in SDRAM.



So, in this case, can I leave the DCD empty?
0 Kudos
Reply
1,066 Views
Masmiseim
Senior Contributor I

Hello @5angxr 

That sounds like a valid way to me.

Regards

0 Kudos
Reply