arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Manual programming

hashtag
Setting things up

  • STM32 ST-Link Utility software https://www.st.com/en/development-tools/stsw-link004.htmlarrow-up-right

  • Provisioning firmware files - Keep these files secure as they contain keys

  • Firmware release files from

circle-info

Always use .hex files with this software.

hashtag
Step 1 - Connect the device to the programmer

hashtag
Step 2 - Start ST-Link Utility and connect to device

circle-info

To upload new firmware, go to Step 6, steps 3-5 require manual provisioning

hashtag
Step 3 - In menu Target select Erase Sectors

hashtag
Step 4 - In popup windows scroll to end and select Data Memory (Bank1) and Data Memory (Bank2)

hashtag
Step 5 - Wait for erase to finish

hashtag
Step 6 - From menu Target select Program & Verify

circle-info

Select the provisioning firmware binary first if you have done steps 3-5.

hashtag
Step 7 - In popup window select .hex file you would like to program on the device

hashtag
Step 8 - Click start to start programming

circle-info

Step 9 is necessary only when erasing sectors and uploading provisioning binary (steps 3-5 and provisioning in step 6)

hashtag
Step 9 - Repeat programming

Go to Step 6 and now program the release firmware.

hashtag
Deep sleep

Use to upload Deep sleep firmware:

https://github.com/IRNAS/smartparks-rhino-tracker-firmware/releasesarrow-up-right
Manual programming
Arduino IDEarrow-up-right
file-download
1000B
LoRaWAN_DeepSleep.ino
arrow-up-right-from-squareOpen