Replies: 2 comments 5 replies
-
Hi @fbeaulier! Take a look at the user script documentation. The second example script, I think, should be what you want. Though honestly, I haven't fully tested it since I don't have an i.MX RT board with a different external flash. Here's the example: # This example applies to the NXP i.MX RT10x0 devices.
def will_connect():
# Look up the external flash memory region.
extFlash = target.memory_map.get_first_matching_region(name="flexspi")
# Set the path to an .FLM flash algorithm.
extFlash.flm = "MIMXRT105x_QuadSPI_4KB_SEC.FLM" The path to the .FLM file is relative to the project directory, set with Of course, this assumes you have an .FLM type flash algorithm handy for your flash. If you need help with that, just ask. One more bit of info… you can turn on logging of info about the FLM when it is loaded by setting the |
Beta Was this translation helpful? Give feedback.
-
Hi @flit ! Thanks for your answer. Now if i try to flash with pyocd i get this:
It seems that in will_connect() the get_first_matching_region(...) returns None. Any idea ? |
Beta Was this translation helpful? Give feedback.
-
Hello,
Would it be possible to have an example of how to define external Flash for iMXRT1060 ?
I've been messing around with scripts without success.
With the EVK board it works just fine as-is because everything is auto-detected but i don't know how !
Now with my own board even with the exact same memory chip i can't flash anymore.
Any help is more than welcome !
Francois
Beta Was this translation helpful? Give feedback.
All reactions