Flashing a build with MCUXpresso

LPC-Link


1. Connect the 10-way ribbon cable supplied to the socket J7 on the LPC-Link2 board (see underside of board for connection details) as shown below:

In this section

Getting Started


Still need help?

If you need more help or have any questions, please send an email to services-support@u-blox.com.

Connect the other end of the ribbon cable to the JTAG connector (J1) on the Thingstream module with red stripe nearest the SIM868 processor as below:

2. Connect the LPC-Link2 board to your computer via the mini-USB cable and then connect the starter kit baseboard via the micro-USB port closest to the module board (marked J6 and shown circled in red below) to provide power.

3. The LEDs on the module will light to indicate power is present

4. Now you can flash the module using MCUXpresso.


Flashing a build with MCUXpresso


In order to flash a build with MCUXpresso, you will need to have completed the sections on Getting the SDKs and Setting up your hardware.

There are two pre prepared build configuration options which will be covered, Debug and Logging.

Debug is useful for stepping through code execution in the debugger whilst Logging is for use when employing UART Logging

Debug builds use a feature called semihosting, which means the IDE will obtain debug output through the SWD connection.


Flash a Debug version to the Starter Kit


1. If the Debug option is already selected you are now ready to ‘flash’ the software onto the starter kit 

2. The debug configuration sets Semihosting support on but to confirm this:

3.  Make sure the target project is selected in the Project Explorer.



3. You will be prompted to select which probe to use. If you are using the LPC link board, this will already be selected, just click OK.


4.You should see logs being displayed in the Console view which get cleared and then the following is displayed:


[MCUXpresso Semihosting Telnet console for ‘<project name> LinkServer Debug' started on port 57585 @ 127.0.0.1]


5. You should hit a breakpoint at Platform.init() in the ‘main’ method of example.c


6. To continue to run through the sample program click Resume All Debug sessions in the toolbar.


7. Logging should now appear in the Console view.



Flash a Logging version to the Starter Kit


1. Make sure the target project is selected in the Project Explorer.


1.  MCUXpresso V 10.2 and above:

2. You will be prompted to select which probe to use. If you are using the LPC link board, this will already be selected, just click OK.

3. You should see logs being displayed in the Console view which get cleared and then the following is displayed:

[MCUXpresso Semihosting Telnet console for ‘<project name> LinkServer Debug' started on port 57585 @ 127.0.0.1]

4. If you are using the sample project ‘simple-<version>’ then you should hit a breakpoint at Platform.init() in the ‘main’ method of example.c

5. To continue to run through the sample program click Resume All Debug sessions in the toolbar.

6. Logging should now appear in the Console view