MCUXpresso 10.3 MIMXRT1064 Eval Board. SDK 2.6.1.
I converted project evkmimxrt1064_flash_component_nor. Here, I describe how I did that. My actual questions show up in items 5 and 6 below.
1) The example project evkmimxrt1064_flash_component_nor is only available in version 2.7 of the SDK, which only works with MCUXpresso 11.1. We can't use 11.1, because they stopped supporting the config tool in 11.1. It's there, but somehow I don't have access to it. (I forget the error message, as it's been a long time now. It appears we're stuck in 10.3 for the forseeable future until this other problematic issues that exist in 11.1 are addressed, but alas, 'tis a subject for another day!)
2) I brought the files form the project into a copy of the "hello world" example, and deleted the hello_world.c file. As needed, I just dropped files from 11.1 project evkmimxrt1064_flash_component_nor into the source folder of my new 10.3 project, including the 3 files from the "nor_flash" folder of the original project.
3) At the top of nor_flash.c, I made the following modification:
Hi Paul Roberts,
Why you don't run this driver project directly instead of porting to helloworld project?
If you can't use the newest MCUXPresso IDE, you also can use the above project source file directly.
But please note, because the external QSPI can't support RWW function, then you need to run the above project in the internal RAM instead of run in the external flash directly.
About the linker script, you can refer to the MCUXPresso user manual,
chapter 17. Memory Configuration and Linker Scripts
About your FLEXSPI_SoftwareReset question, I suggest you run it in this project:
If you still can reproduce it, please tell me the detail issue phenomena and the related modified code, I will try to reproduce it and check more details.
Thanks very much for the reply. I followed your suggestion. Here is what happened.
Under MCUXpresso 11.1 with SDK 2.7, yes, the example program evkmimxrt1064_flexspi_nor_polling_transfer runs just fine in the 11.1 debugger, and all of the PRINTF outputs along the way declare victory, that the erase and program flash functions are working as expected.
This is good, but I now must get this program to work in MCUXpresso 10.3 with SDK 2.6, because our company thus far deems MCUXpresso 11.1 an invalid, not very usable version of the IDE. This is because that the
Configuration Tool works in 10.3, and, very unfortunately, does not work at all in 11.1 (the subject of another thread, for sure).
Unfortunately, SDK 2.7 cannot be used with IDE 10.3, so we have to salvage what we can.
When I import the SDK 2.6 example into 10.3, once I change the MCU from MIMXRT1064xxx6A to MIMXRT1064xxxxA, it builds. When I try to debug, I get
which suggests that my J-Link software needs to be updated. It's odd because I've been using Jlink with the 1064 for some time now without complaints. I changed CPU type in linker settings, and it seems like we have to get. Right now, I'm trying to download the latest Jlink software from Segger, and the installer for it is not working. I'm not sure if I have to uninstall the existing Segger Jlink software first. Ugh!
So, hopefully this begins to answer your question as to why I was using evkmimxrt1064_flash_component_nor and not evkmimxrt1064_flexspi_nor_polling_transfer. It's because I need something that works in the 10.3/2.6 environment because 11.1/2.7 is not ready for prime time because the Config Tool is broken. They really need to come out with an 11.2 that fixes the Config Tool!
Hi Paul Roberts,
Thanks for your detail reply, the IDE version and the new SDK compatibility is really need to improve.
I checked the SDK2.6.0,
It also contains the evkmimxrt1064_flexspi_nor_polling_transfer project, do you mean, you also can't run this version code on your MCUXPresso 10.3? You said you get: which suggests that my J-Link software needs to be updated.
Could you give me a screenshot about it?
If you install the newest JLINK driver, still can't work? What's the detail problem, any picture about it?
To be honest, I even delete the MCUXpresso 10.3 for a so long time. But I would like to help you to analyse your question together.