is dcd data a must?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
484件の閲覧回数
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 解決策
474件の閲覧回数
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 返答(返信)
463件の閲覧回数
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 件の賞賛
返信
475件の閲覧回数
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 件の賞賛
返信
461件の閲覧回数
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 件の賞賛
返信
433件の閲覧回数
Masmiseim
Senior Contributor I

Hello @5angxr 

That sounds like a valid way to me.

Regards

0 件の賞賛
返信