Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The QSL includes a SimplePublish example for the STMicroelectronics NUCLEO-L053R8 development board. This is given as a project for the Eclipse/GCC based System Workbench for STM32, where STM32CubeMX has been used to generate the necessary Hardware Abstraction Layer (HAL) code.

The application behaves just like SimplePublish for the other platforms, and like the example for SAM C21; debug prints are re-targeted through a second serial port. A green LED on the Nucleo board is also toggled to indicate whether the mote has connected to a network or not.

...

Note

Make sure to check your spam filter if you don't receive a validation email after registering.


Prepare the NUCLEO-L053R8
Anchor
sec_prepareNucleo
sec_prepareNucleo

Connect to Mote

Anchor
fig_mote2nucleo
fig_mote2nucleo

...

Section
Column
width10%
NamePin #

Name

Anchor
tab_nucleoCN7
tab_nucleoCN7

PC1012PC11
PC1234PD2
VDD56E5V
BOOT078GND
NC910NC
NC1112IOREF
PA131314RESET
PA141516+3V3
PA151718+5V
GND1920GND
PB72122GND
PC132324VIN
PC142526NC
PC152728PA0
PH02930PA1
PH13132PA4
VLCD3334PB0
PC23536PC1
PC33738PC0

Table 10: NUCLEO-L053R8 CN7 header.

Column
width10%
NamePin #

Name

Anchor
tab_nucleoCN10
tab_nucleoCN10

PC912PC8
PB834PC6
PB956PC5
AVDD78U5V
GND910NC
PA51112PA12
PA61314PA11
PA71516PB12
PB61718PB11
PC71920GND
PA92122PB2
PA82324PB1
PB102526PB15
PB42728PB14
PB52930PB13
PB33132AGND
PA103334PC4
PA23536NC
PA33738NC

Table 11: NUCLEO-L053R8 CN10 header.

Column
width10%
NUCLEO-L053R8

Mote

Anchor
tab_mote2nucleoMap
tab_mote2nucleoMap

+3V3VBAT
GNDGND
PA9RX
PA10TX
GNDRX RTSn
GNDTX CTSn

Table 12: NUCLEO-L053R8 to mote pin mapping.

Connect a USB cable from your computer to the USB-mini B port labeled CN1: This is the port at the top of the NUCLEO-L053R8 (visible on the right side of Figure 7), which connects the integrated ST-LINK/V2-1 debugger to your computer, and is used to power, program and debug the board.

...

Tip

You can (de)activate debug and log messages with the NDEBUG and NLOG defines in dn_debug.h (located in sm_qsl/).

Console Output Issue
Anchor
sec_STlinkOutputIssue
sec_STlinkOutputIssue

The output from the debug terminal has been shown to periodically stop working on Windows (although this does not affect execution of the application itself). Disconnecting and reconnecting the ST-LINK USB seem to make it work again (although this will of course reset both the Nucleo board and connected mote). If you still don't see any output when you should you can try the following:

...