XIP folder files undesired update using Configuration Tool

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

XIP folder files undesired update using Configuration Tool

2,717件の閲覧回数
Amoro
Contributor I

Hello,

I am developing an application on a custom MiMXRT1052 board - based on the EVB - with external QSPI flash as code program memory. After a lot of troubles I have been able to make it working, I made a lot of tunings on the code, and one of the key points was to change the "evkbimxrt1050_flexspi_nor_config.c" file in the XIP folder and to re-organize the flexRAM default configuration.

Now everytime I use the MEX Configuration Tool, adding a SDK driver, it changes to default all the modifications I made, and this is really annoying. For example:

- "board.c" is changed without asking enything

- XIP folder files are updated

- StartUpcode.c is updated

erasing every modification I need. Is there a way to avoid this? A special comment sequence to protect the changes in the code?

Thank you

AMoro

0 件の賞賛
返信
7 返答(返信)

2,690件の閲覧回数
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

 

Could you please confirm the following?

You have your project that already runs XIP correctly in your custom board. And you also have one MEX file with the configuration for peripherals, clocks, pins, etc. And when you want to use that MEX file with the project with the XIP running, it overrides the changes you made in some files. Is this correct?

 

Regards,

Daniel.

0 件の賞賛
返信

2,685件の閲覧回数
Amoro
Contributor I

Yes, I confirm. Any idea?

0 件の賞賛
返信

2,674件の閲覧回数
DanielRuvalcaba
NXP TechSupport
NXP TechSupport
When you add a new peripheral using ConfigTools, you will see an Update Code button.

If you click on it, you can see which files are going to be updated, and you can just uncheck the box to avoid the code to be updated, or you can compare the original file with the new one.

I modified the evkbimxrt1050_flexspi_nor_config.c file and then I added new drivers to the project using the "Manage SDK Components" button and I didn't see a change in this file. Could you please tell me what is the driver that is causing the tool to modify these files?

Regards,

Daniel.
0 件の賞賛
返信

2,639件の閲覧回数
Amoro
Contributor I

Thank you for your answer!

Yes, I know that, but:

- board.c is updated without the possibility to disable the update

- XIP folder the same.

I have enclosed a screen registration, so you can see. It is a ".rar" becouse of dimensions

Andrea

0 件の賞賛
返信

2,583件の閲覧回数
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

If my understanding is correct, the mex file was created under a different project.

Could you please try to create a new one for this project?

 

Regards,

Daniel.

0 件の賞賛
返信

2,575件の閲覧回数
Amoro
Contributor I

Hello,

thank you for your answer.

I have regenerated the MEX file for my project but - again - every time I add a new component from SDK all the files are updated:

- XIP folder files.

- startup.c (I relocate flexRAM, so I added modifications to startup_mimxrt1052.c)

- board.c (I relocate flexRAM, so I have to reconfigure MPU)

Is there a place in SDK configuration where I can select which files will be updated, a part from Update code that does not lists the files above?

Thank you

0 件の賞賛
返信

2,569件の閲覧回数
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

I don't understand why you are facing this.

 

What SDK version are you using?

I added the LCDIF peripheral using Config Tools and the files board.c or evkbimxrt1050_flexspi_nor_config are not being modified (I previously modified these files).

 

These are the steps I tried. Please try to replicate this with the latest SDK version 2.15.000:

- Imported a hello world example

- Modified the files

- Imported LCDIF using this button

DanielRuvalcaba_0-1706737118100.png

- I pressed Update Code button

- Compile and verify if the changes still in the files

 

Regards,

Daniel.

 

0 件の賞賛
返信