Info |
---|
IN PROGRESS |
SimplePublish for ARM mbed
A SimplePublish example has been created on the mbed OS developer site: QSL SimplePublish. This is a free, online code editor and compiler that allows you to write code for the mbed OS. This makes it very easy to port code to the different supported platforms.
...
Tip |
---|
The ST-LINK/V2 driver is included with installer for the System Workbench for STM32. |
Once you have everything set, your platform should appear as a storage device on your computer.
Connect to Mote
For the Nucleo boards you can follow the instructions on the SMT32 example page for the NUCLEO-L053R8.
Otherwise you should refer to the general instructions and the pinout of your platform.
Open Debug Terminal
The SimplePublish example program will send all standard output (e.g. debug prints) through the mbed default serial port (defined by SERIAL_TX, SERIAL_RX). For most platforms this will be serial port that is spawned via USB: If you are using a Nucleo board you can see the instructions on the SMT32 example page on how to identify the correct portname; for other boards you should consult the mbed SerialPC page.
Open your favourite serial terminal (e.g. Putty or Minicom) and connect to the serial port you identified with the following configuration:
- Baudrate: 115200
- Data Bits: 8
- Parity: None
- Stop Bits: 1
Tip |
---|
You can (de)activate debug and log messages with the NDEBUG and NLOG defines in dn_debug.h (located in sm_qsl/). |
Compile and Run the Program
...