I am trying to figure out a way to enable quad spi mode (for our external flash) and if possible configure a couple of eFuses to enable boot from the external flash not needing to configure the boot mode pins, with a J-Link. The intent is to do this for production, while flashing the product code.
Is there a way to do that?
Hi @apetronilho ,
It's easy to realize.
As you know, the JLINK download the code need to use the flashdriver, right? The flashdriver is the program algorithm.
So, you can modify the JLINK flashdriver to realize it.
The RT-UFL is used for the JLINK, that flashdriver already support the QE enable function, you just need to check the source code, make sure it enables your used flash QE bit position, normally, use the option0,option1 to realize it.
To the efuse, you also can add the ocotp code in the flashdriver, you can find the ocotp code from the SDK:
SDK_2_15_0_EVK-MIMXRT1060\boards\evkmimxrt1060\driver_examples\ocotp
About the RT-UFL, you can find it from this link:
https://www.cnblogs.com/henjay724/p/14942574.html
Wish it helps you!
If you still have question about it, please kindly let me know.
Best Regards,
Kerry