is dcd data a must?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

is dcd data a must?

跳至解决方案
796 次查看
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?

标签 (3)
0 项奖励
回复
1 解答
786 次查看
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 项奖励
回复
4 回复数
775 次查看
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 项奖励
回复
787 次查看
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 项奖励
回复
773 次查看
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 项奖励
回复
745 次查看
Masmiseim
Senior Contributor I

Hello @5angxr 

That sounds like a valid way to me.

Regards

0 项奖励
回复