# Programming using J-Link Commander

## Program the MR-CANHUBK344 Evaluation board using Segger J-LINK.

You can use J-Link for programming, for example with the **J-Link Commander.** \
J-LINK Commander can be downloaded this from the Segger website: <https://www.segger.com/products/debug-probes/j-link/tools/j-link-commander/>

### Steps to flash using the J-Link commander:

1. Make sure the MR-CANHUBK344 is powered and the programmer is connected to the MR-CANHUBK344 and your PC [as shown here](https://nxp.gitbook.io/mr-canhubk344/getting-started/connecting-a-debugger)
2. Start the J-Link commander application
3. Type "connect" to connect to the target
4. Type: "S32k344" to select the correct core.&#x20;
   1. \>> If you get an error, it could be that your program is not up to date, please install the latest version of the J-Link commander
5. Type "s" for SWD programming
6. Press enter if you are using the J-Link base (4000kHz).&#x20;
   1. For the J-Link EDU Mini, it is recommended to type "1000". to slower programming speed
   2. \>> If you get that the ***target voltage is too low**,* make sure 12V is supplied. You may need to  remove JP1 and reattach it to bypass the watchdog timer on the FS26xx regulator. Then type again "connect".
7. You should be connected to the Cortex-M7
8. Type "r" to reset the core
9. Type "erase" to erase the core
10. Then load the binary with `"loadbin <path to .bin file> 0x00400000"`&#x20;
    1. This will program the specified binary at program flash address **0x00400000** of the MR-CANHUBK344.
11. Reset the core with "r"
12. Then let it run with "g"


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nxp.gitbook.io/mr-canhubk344/getting-started/programming-using-j-link-commander.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
