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:
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
To flash a Debug version to the Starter Kit, ensure there are no debug sessions running.
Right click on the sample project in the Project Explorer and select Build Configurations > Set Active > Debug.
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:
Select the sample project in the project explorer
In the Quickstart view:
Select: Quick Settings > Set library/header type > Redlib (semihost)
You are now ready to ‘flash’ the software onto the starter kit.
3. Make sure the target project is selected in the Project Explorer.
MCUXpresso V 10.1:
In the Quickstart view:
Select: Clean ‘<project name>’ [Debug]
Select: Build ‘<project name>’ [Debug] and wait for logging in the Console view to confirm ‘Build Finished (took <n>ms)’
Select: Debug ‘<project name>’ [Debug]
MCUXpresso V 10.2. and above:
In the Quickstart Panel:
Select: Clean from within the Build your project section
Select: Build from within the Build your project section and wait for logging in the Console view to confirm ‘Build Finished (took <n>ms)’
Select: Debug from within the Debug your project section
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
To flash a Logging version to the Starter Kit, ensure there are no debug sessions running.
Right click on the sample project in the project explorer and select Build Configurations > Set Active > Logging.
You are now ready to ‘flash’ the software onto the starter kit.
1. Make sure the target project is selected in the Project Explorer.
MCUXpreso V 10.1. in the Quickstart view:
Select: Clean ‘<project name>’ [Logging]
Select: Build ‘<project name>’ [Logging] and wait for logging in the Console view to confirm ‘Build Finished (took <n>ms)’
Select: Debug ‘<project name>’ [Logging]
1. MCUXpresso V 10.2 and above:
In the Quickstart Panel:
Select: Clean from within 'Build your project' section
Select: Build from within 'Build your project' section and wait for logging in the Console view to confirm ‘Build Finished (took <n>ms)’
Select: Debug from within 'Debug your project' section
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