Skip to content

Nucleo L152RE SX1276 Tutorial

Nimita Naik edited this page Sep 20, 2019 · 3 revisions
  1. Add a new device by following the device tutorial use the Minimal LoRaWAN template. Make a note of the DevID and AppKey and AppEUI from the installation process.
  2. Install mbed CLI using this tutorial.
  3. Download the code using mbed import mbed import http://os.mbed.com/users/nimita23/code/SX1276_L152RE_openChirp/
  4. Edit the LORAWAN_DEVICE_EUI, LORAWAN_APPLICATION_EUI and LORAWAN_APPLICATION_KEY in the existing code’s Commisioning.h file to match the information you have from Step 1.
  5. Run mbed detect to ensure Nucleo board is connected.
  6. Run mbed target NUCLEO-L152RE and mbed toolchain GCC-ARM make sure to run these commands in the program folder you just downloaded
  7. Navigate to program folder -> STM32 -> BUILD -> NUCLEO_L152RE and find the bin file
  8. Copy the bin file to the STM32 which should be loaded as a flash drive
  9. Open the serial output of the device with 115200 baud.
  10. Add byte translator as a service and set up as follows:
  11. Add port, counter and led in the “Transducers” tab. Ensure that the led transducer is actuable
  12. You should be able to control the App LED using the send button! Explore creating a command for turning App LED off and on in the Commands tab on OpenChirp