RAM and flash memory sw setup on custom hw

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

RAM and flash memory sw setup on custom hw

ソリューションへジャンプ
5,112件の閲覧回数
angelo_76
Contributor I

Hi,
We are facing some issues when we move our software from dev kit to our custom hw. The major diference between hw is the memoreis size. In our custom hw we are using 16MB for RAm memory and 32MB QSPI flash for program memory. We also adjust the MCUXpresso configuration, but I think we are facing problems with the MPU setup. When I disable the MPU, the SW performace reduces a lot.
The Lvgl works very slow, but sdcard works fine... when I enable MUP, Lvgl runs fast, but Sd card stops to work

Attached you can take a look on our memory configuration on MCUXpresso and our MPU inicialization function. 

 

Kind regards.

ラベル(1)
0 件の賞賛
返信
1 解決策
4,905件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @angelo_76 ,

 

This source file is used to configure the FCB, and you may refer to the RM for more details.

Kan_Li_0-1717036329740.png

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

 

元の投稿で解決策を見る

0 件の賞賛
返信
7 返答(返信)
5,091件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @angelo_76 ,

 

Since you are using 32M flash instead, you have to update the region size as well.

Kan_Li_0-1715763314340.png

 

Please kindly let me know if the problem is still there.

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

 

0 件の賞賛
返信
5,078件の閲覧回数
angelo_76
Contributor I

Hi @Kan_Li !

Thanks for your response! I'll make the adjust and perform some tests.

Regarding to RAM memory, is it correct the adjustments that I made?

Kind regards!

0 件の賞賛
返信
5,055件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @angelo_76 ,

 

Yes, no issue found regarding the RAM configuration.

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
返信
5,000件の閲覧回数
angelo_76
Contributor I

Hi @Kan_Li !

I think RAM memory for custom hw is fine!

I was taking a look at flash, and I have identified the folowwing points to modify:

  • As you mentioned, I nedd to change the region size in MPU source file
  • The memory size in MCUXpresso

The source file evkbimxrt1050_flexspi_nor_qspi_config.c  is related to qspi config, witch is according to the evk board. I think is necessary to change this file as well, correct?

evkbimxrt1050_flexspi_nor_qspi_config.cevkbimxrt1050_flexspi_nor_qspi_config.c

I've highlighted the points that I think I need to change to the corresponding memory size, witch is 32MB. Could you please tell me if I'm missing any change points?

Kind regards.

0 件の賞賛
返信
4,987件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @angelo_76 ,

 

Yes , you are right, the highlight fields need to be updated according to your custom design.

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛
返信
4,922件の閲覧回数
angelo_76
Contributor I

Hi @Kan_Li !

Looks like the changes for RAM and flash worked fine for the custom board.

I just would like to understand what is the role on the system for the source code evkbimxrt1050_flexspi_nor_qspi_config.c. Could you please give me some brief explanation or indicate a literacture about this?

Kind regards!

0 件の賞賛
返信
4,906件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @angelo_76 ,

 

This source file is used to configure the FCB, and you may refer to the RM for more details.

Kan_Li_0-1717036329740.png

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

 

0 件の賞賛
返信
%3CLINGO-SUB%20id%3D%22lingo-sub-1865381%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0hw%E3%81%A7%E3%81%AERAM%E3%81%A8%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%E3%83%A1%E3%83%A2%E3%83%AAsw%E3%81%AE%E3%82%BB%E3%83%83%E3%83%88%E3%82%A2%E3%83%83%E3%83%97%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1865381%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%3CBR%20%2F%3E%E3%82%BD%E3%83%95%E3%83%88%E3%82%A6%E3%82%A7%E3%82%A2%E3%82%92%E9%96%8B%E7%99%BA%E3%82%AD%E3%83%83%E3%83%88%E3%81%8B%E3%82%89%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0hw%E3%81%AB%E7%A7%BB%E8%A1%8C%E3%81%99%E3%82%8B%E3%81%A8%E3%81%8D%E3%81%AB%E3%80%81%E3%81%84%E3%81%8F%E3%81%A4%E3%81%8B%E3%81%AE%E5%95%8F%E9%A1%8C%E3%81%AB%E7%9B%B4%E9%9D%A2%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82hw%E3%81%AE%E4%B8%BB%E3%81%AA%E9%81%95%E3%81%84%E3%81%AF%E3%80%81%E3%83%A1%E3%83%A2%E3%83%AA%E3%82%B5%E3%82%A4%E3%82%BA%E3%81%A7%E3%81%99%E3%80%82%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0HW%E3%81%A7%E3%81%AF%E3%80%81RAm%E3%83%A1%E3%83%A2%E3%83%AA%E3%81%AB16MB%E3%80%81%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0%E3%83%A1%E3%83%A2%E3%83%AA%E3%81%AB32MB%E3%81%AEQSPI%E3%83%95%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82MCUXpresso%E3%81%AE%E8%A8%AD%E5%AE%9A%E3%82%82%E8%AA%BF%E6%95%B4%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%81%8C%E3%80%81MPU%E3%81%AE%E8%A8%AD%E5%AE%9A%E3%81%AB%E5%95%8F%E9%A1%8C%E3%81%8C%E3%81%82%E3%82%8B%E3%81%A8%E6%80%9D%E3%81%84%E3%81%BE%E3%81%99%E3%80%82MPU%E3%82%92%E7%84%A1%E5%8A%B9%E3%81%AB%E3%81%99%E3%82%8B%E3%81%A8%E3%80%81SW%E3%81%AE%E3%83%91%E3%83%95%E3%82%A9%E3%83%BC%E3%83%9E%E3%83%B3%E3%82%B9%E3%81%8C%E5%A4%A7%E5%B9%85%E3%81%AB%E4%BD%8E%E4%B8%8B%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3ELvgl%E3%81%AE%E5%8B%95%E4%BD%9C%E3%81%AF%E9%9D%9E%E5%B8%B8%E3%81%AB%E9%81%85%E3%81%84%E3%81%A7%E3%81%99%E3%81%8C%E3%80%81SD%E3%82%AB%E3%83%BC%E3%83%89%E3%81%AF%E6%AD%A3%E5%B8%B8%E3%81%AB%E5%8B%95%E4%BD%9C%E3%81%97%E3%81%BE%E3%81%99...MUP%E3%82%92%E6%9C%89%E5%8A%B9%E3%81%AB%E3%81%99%E3%82%8B%E3%81%A8%E3%80%81Lvgl%E3%81%AF%E9%AB%98%E9%80%9F%E3%81%AB%E5%8B%95%E4%BD%9C%E3%81%97%E3%81%BE%E3%81%99%E3%81%8C%E3%80%81SD%E3%82%AB%E3%83%BC%E3%83%89%E3%81%AF%E6%A9%9F%E8%83%BD%E3%81%97%E3%81%AA%E3%81%8F%E3%81%AA%E3%82%8A%E3%81%BE%E3%81%99%3C%2FP%3E%3CP%3E%E6%B7%BB%E4%BB%98%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E3%81%AE%E3%81%AF%E3%80%81MCUXpresso%E3%81%AE%E3%83%A1%E3%83%A2%E3%83%AA%E6%A7%8B%E6%88%90%E3%81%A8MPU%E5%88%9D%E6%9C%9F%E5%8C%96%E6%A9%9F%E8%83%BD%E3%82%92%E3%81%94%E8%A6%A7%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E3%82%88%E3%82%8D%E3%81%97%E3%81%8F%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1865381%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MXRT%20105%E5%80%8D%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E