How to Change the Flashloader of JLink

How to Change the Flashloader of JLink

Recently, many EVKs have been borrowed by clients, and today when I wanted to verify some code, I found that I only had the previous RT1050-EVKB. This board is factory defaulted to use HyperFlash, but it was previously reworked by a client to use QSPI Flash. I took out the board and tested it with the hello world project using IAR and MDK, and encountered no issues; it could be downloaded and debugged normally. However, when using JLink in the MCUxpresso IDE, I faced issues with downloading and debugging. After some exploration, I finally found a solution (thanks to Frank, who had briefly explained the operation method to me before). Now, let’s get to the point:

  1. Open JLinkControlPanel.html in the JLink installation directory to access the browser interface.

    How to Change the Flashloader of JLink
  2. Currently, JLink is not connected to the board, so it will prompt “Connect tries”.

    How to Change the Flashloader of JLink
  3. Next, we create a new J-Flash project and connect it.

    How to Change the Flashloader of JLink
  4. Then return to the browser, and you will see that it has successfully connected to J-Link. Here, select Flash.

    How to Change the Flashloader of JLink
  5. From the Flash tab, you can see that the default loader is using HyperFlash; change it to QSPI.

    How to Change the Flashloader of JLink
  6. After modification, there will be a red text prompt; just make sure not to reset.

    How to Change the Flashloader of JLink
  7. J-Link is ready; now let’s try simulating in MCUXpresso:

    How to Change the Flashloader of JLink
  8. We can now successfully enter the main function.

    How to Change the Flashloader of JLink

Leave a Comment