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
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.
Yes, I confirm. Any idea?
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.
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
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
- I pressed Update Code button
- Compile and verify if the changes still in the files
Regards,
Daniel.