# ST LoRa® IoT tracker - STEVAL-STRK01

**URL:** <https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975>\
**Category:** End Devices (Nodes)\
**Created:** [February 20, 2019, 11:06am UTC](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975 "2019-02-20T11:06:17Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![578e295758953c7b0af9](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/578e295758953c7b0af9/32/38692_2.png) [@578e295758953c7b0af9](https://www.thethingsnetwork.org/forum/u/578e295758953c7b0af9)\
**Post date:** [March 9, 2019, 11:08am UTC](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975/21 "2019-03-09T11:08:13Z")

</div>

Thanks for commenting. However, I did remove the jumpers to enable the SWD link to the STEVAL board. However, it connects for a few seconds and then disconnects so no time to flash the .bin file that is provided.

Did you use the STEVAL board or do you have experience with a different STM32 board?

---

<div class="post-metadata">

**Author:** ![vsupacha](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vsupacha/32/20484_2.png) [@vsupacha](https://www.thethingsnetwork.org/forum/u/vsupacha)\
**Post date:** [March 9, 2019, 11:36am UTC](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975/22 "2019-03-09T11:36:14Z")

</div>

I am using STEVAL board with ST-Link on the B-L072Z-LRWAN1 board. No issue when checking with ST-Link application. Then I used Keil to program the board. You may have to check that ST-Link configuration is Connect on Reset with Hardware Reset since the firmware will enter low-power mode frequently. That will break the SWD connection.

---

<div class="post-metadata">

**Author:** ![578e295758953c7b0af9](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/578e295758953c7b0af9/32/38692_2.png) [@578e295758953c7b0af9](https://www.thethingsnetwork.org/forum/u/578e295758953c7b0af9)\
**Post date:** [March 9, 2019, 11:50am UTC](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975/23 "2019-03-09T11:50:39Z")

</div>

So, you are NOT using the new STEVAL-STRKT01 board I am using 😉 I guess I have a problem you do not have with the B-L072Z-LRWAN1 board. This is a complete different set-up.

Yes, I have also tested with Reset with Hardware Reset enabled and low power mode enabled. Nothing seems to keep the connection up long enough. Any other ideas?

---

<div class="post-metadata">

**Author:** ![karl-nl](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/karl-nl/32/40754_2.png) [@karl-nl](https://www.thethingsnetwork.org/forum/u/karl-nl)\
**Post date:** [March 9, 2019, 12:03pm UTC](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975/24 "2019-03-09T12:03:35Z")

</div>

I found that if you connect the Nucleo using an USB Hub or a cable that is not high quality you might see this behaviour.

Also the ST-Link application can update the Firmware on the Nucleo board. I do this everytime I connect the board, and there is almost always an update…

---

<div class="post-metadata">

**Author:** ![578e295758953c7b0af9](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/578e295758953c7b0af9/32/38692_2.png) [@578e295758953c7b0af9](https://www.thethingsnetwork.org/forum/u/578e295758953c7b0af9)\
**Post date:** [March 9, 2019, 12:28pm UTC](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975/25 "2019-03-09T12:28:51Z")

</div>

I have used / tested with different high quality USB cables, with all the same behaviour.

Also, I have successfully updated the ST-Link firmware with the ST link utility on the nucleo. All seems to work fine, EXCEPT the STEVAL-STRKT01 still dropping the connection. I have even tested on different computers. Nothing helps untill now.

Any other ideas?

---

<div class="post-metadata">

**Author:** ![578e295758953c7b0af9](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/578e295758953c7b0af9/32/38692_2.png) [@578e295758953c7b0af9](https://www.thethingsnetwork.org/forum/u/578e295758953c7b0af9)\
**Post date:** [March 9, 2019, 2:56pm UTC](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975/26 "2019-03-09T14:56:13Z")

</div>

UPDATE:

- I have played around with some of the jumper on the NUCLEO-F401RE, and when I changed the JP5 from U5V to E5V, the ST Link became stable and I managed to flash firmware (.bin) onto the STEVAL-STRK01. Good news 😉
- However, when I uploaded the provided .bin from the official download, the !joineui-xxxxxxxxxxxxxxxx still did not update the ?devicejoinparam
- I could see that the ?sfversion did change to 2.0.0, so this is a new version, with the same problem
- SO… I turned back to try to compile my own .bin with SW4STM32 and loaded my own keys in the Commissioning.h
- however, the build does produce 20 WARNINGS!, I managed to get a new .bin and I could now upload it to the STEVAL-STRK01
- I looks like things are getting better from here 😉 but this this is a very very bad experience for such a nice product. Hope you can benefit from my report.

---

<div class="post-metadata">

**Author:** ![karl-nl](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/karl-nl/32/40754_2.png) [@karl-nl](https://www.thethingsnetwork.org/forum/u/karl-nl)\
**Post date:** [March 9, 2019, 3:54pm UTC](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975/27 "2019-03-09T15:54:45Z")

</div>

Seems clear that the software is still in development. I will try to get a roadmap for this from ST.

---

<div class="post-metadata">

**Author:** ![malbec](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/malbec/32/20484_2.png) [@malbec](https://www.thethingsnetwork.org/forum/u/malbec)\
**Post date:** [March 9, 2019, 5:06pm UTC](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975/28 "2019-03-09T17:06:19Z")

</div>

Hi All,

I have been struggling for two days with the STEVAL-STRK01, and could not find the proper information on the web. I just cross this thread and I am very pleased to at least a few other persons in the world are trying to make this board work.

I went through the same problem. Impossible to change the appkey  
with the installed app.  
This is my setting :  
Processing command: ?fwversion  
Current Fw version: 44251200  
LoRa IOT tracker app version: 2.0.0  
Command complete

I have issued a ticket to ST on this problem, but have not much hope on this side.

This was the bin i just dowloaded. Do you confirm that there exists a 2.0.1 version that works ?

After trying with no success ( due to my inexperience with eclipse) so make the AC6 STM32 suite run, I switched to Keil uvision 5 when I saw that the full verion is free for STM32L0 MCU.

I could compile it easily with keil and flash the board ( using a ST-link from a nucleo board).

**Can you tell me where and how I can change the connections keys in the code ?**

I am afraid that the ones that are stored in the EEPROM will not be changed.

I am suddenly feeling less lonely with this thread.

---

<div class="post-metadata">

**Author:** ![malbec](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/malbec/32/20484_2.png) [@malbec](https://www.thethingsnetwork.org/forum/u/malbec)\
**Post date:** [March 9, 2019, 5:33pm UTC](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975/29 "2019-03-09T17:33:11Z")

</div>

Thanks Tim,

I saw after my post that you have already answered in anticipation.  
I changed the keys in the Commissioning.h file, and YES, it finally has the proper set up.  
I will see now if I can reach TTN.

---

<div class="post-metadata">

**Author:** ![578e295758953c7b0af9](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/578e295758953c7b0af9/32/38692_2.png) [@578e295758953c7b0af9](https://www.thethingsnetwork.org/forum/u/578e295758953c7b0af9)\
**Post date:** [March 9, 2019, 5:48pm UTC](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975/30 "2019-03-09T17:48:59Z")

</div>

Cool!  
Can you then help me to point to where I can download the right version of KEIL? I also want to give this a try.

---

<div class="post-metadata">

**Author:** ![malbec](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/malbec/32/20484_2.png) [@malbec](https://www.thethingsnetwork.org/forum/u/malbec)\
**Post date:** [March 9, 2019, 5:53pm UTC](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975/31 "2019-03-09T17:53:49Z")

</div>

Just go on [http://www.keil.com/](http://www.keil.com/)

ON the right, you will see the add for free uvision for STM32G0, L0, and F0 boards.  
This gives acess to the process to get the licence. All is pretty smooth.  
Then, when uvision is installed, you just have to  
open the project and click on the project file Lora.uvprojx in MDK-ARM

---

<div class="post-metadata">

**Author:** ![malbec](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/malbec/32/20484_2.png) [@malbec](https://www.thethingsnetwork.org/forum/u/malbec)\
**Post date:** [March 9, 2019, 5:56pm UTC](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975/32 "2019-03-09T17:56:07Z")

</div>

I must say I have not yet succeed to join TTN

Processing command: ?devicejoinstatus  
LoRa has not joined

I need to check if there is a Lorawan gateway nearby.

Did anybody succeed in getting the connection ?

---

<div class="post-metadata">

**Author:** ![malbec](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/malbec/32/20484_2.png) [@malbec](https://www.thethingsnetwork.org/forum/u/malbec)\
**Post date:** [March 9, 2019, 6:04pm UTC](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975/33 "2019-03-09T18:04:13Z")

</div>

I see the problem on the map !

No Lora Gateway within 40 km. If I want to test the board, I will have to take the car.

---

<div class="post-metadata">

**Author:** ![karl-nl](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/karl-nl/32/40754_2.png) [@karl-nl](https://www.thethingsnetwork.org/forum/u/karl-nl)\
**Post date:** [March 9, 2019, 7:44pm UTC](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975/36 "2019-03-09T19:44:16Z")

</div>

This is a professional evaluation kit and not a ready to sell product for consumers. ST provides the sources and you have to finish it an create a finished product out of it.

---

<div class="post-metadata">

**Author:** ![578e295758953c7b0af9](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/578e295758953c7b0af9/32/38692_2.png) [@578e295758953c7b0af9](https://www.thethingsnetwork.org/forum/u/578e295758953c7b0af9)\
**Post date:** [March 9, 2019, 8:17pm UTC](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975/37 "2019-03-09T20:17:45Z")

</div>

Sorry, Karl, I understand you like this product as much as I like the specifications. However, any customer may expect from a tech giant as ST at least a working product as promoted and indicated in their own manuals. This is clearly not the case and should be a lesson for ST. Let us be critical, since the LoRaWAN market just has to many “great on paper but not so good in real life products” already.

---

<div class="post-metadata">

**Author:** ![vsupacha](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vsupacha/32/20484_2.png) [@vsupacha](https://www.thethingsnetwork.org/forum/u/vsupacha)\
**Post date:** [March 10, 2019, 3:41am UTC](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975/39 "2019-03-10T03:41:43Z")

</div>

I am quite bad with ST software team as well. Especially, almost of software examples are not aligned with STM32CubeMX which is ST promoted way to work with their MCU products.

For those who may have problems with DevEUI, you may try create a new firmware based on ST latest example (version 2). At least, it works for my STEVAL board with my country LoRaWAN provider. I am using Keil with free license for STM32L0 processors ([http://www2.keil.com/stmicroelectronics-stm32/mdk](http://www2.keil.com/stmicroelectronics-stm32/mdk)). You can modify network settings in the following file. Please note that the key factor is to enable **STATIC\_DEVICE\_EUI** setting that allow you to set your own DevEUI.

STM32CubeFunctionPack\_LORA1\_V2.0.1\Projects\STEVAL-STRKT01\Applications\LoRa\Asset\_Tracker\LoRaWAN\App\inc\Commissioning.h

#define OVER\_THE\_AIR\_ACTIVATION 1  
#define LORAWAN\_PUBLIC\_NETWORK true  
#define STATIC\_DEVICE\_EUI 1

#define LORAWAN\_DEVICE\_EUI { 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x?? }  
#define LORAWAN\_JOIN\_EUI { 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x?? }  
#define LORAWAN\_APP\_KEY { 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x?? }  
#define LORAWAN\_NWK\_KEY { 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x??, 0x?? }

---

<div class="post-metadata">

**Author:** ![karl-nl](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/karl-nl/32/40754_2.png) [@karl-nl](https://www.thethingsnetwork.org/forum/u/karl-nl)\
**Post date:** [March 10, 2019, 11:30am UTC](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975/40 "2019-03-10T11:30:48Z")

</div>

From my point of view this is a evaluation with demo software. It does the trick it’s intended for an ST is combining sources from our vendors as well.

A proper product development should never use this as a starting point but should go back to the individual components used in the evaluation and start from there, building the application piece by piece.

I think ST has to make choices as well. Release early or finish a polished application. Their customers want to have code as fast as possible and know what to do to get it to work, with the help of ST or 3rd parties that help out.

Small disclaimer: I am a hardware engineer 😉

---

<div class="post-metadata">

**Author:** ![malbec](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/malbec/32/20484_2.png) [@malbec](https://www.thethingsnetwork.org/forum/u/malbec)\
**Post date:** [March 11, 2019, 1:48pm UTC](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975/41 "2019-03-11T13:48:16Z")

</div>

Hi All,  
I have now moved in the Big city and should have many lora gateways around but still no Join.

I wonder if my settings are correct.

In the Commissioning.h file, I have set

#define OVER\_THE\_AIR\_ACTIVATION 1  
#define LORAWAN\_PUBLIC\_NETWORK true  
#define STATIC\_DEVICE\_EUI 0

#define IEEE\_OUI 0x01, 0x01, 0x01  
#define LORAWAN\_DEVICE\_EUI { IEEE\_OUI, 0x01, 0x01, 0x01, 0x01, 0x01 }

#define LORAWAN\_JOIN\_EUI **Application EUI from TTN**  
#define LORAWAN\_APP\_KEY **App Session Key from TTN**  
#define LORAWAN\_NWK\_KEY **Network Session Key from TT** N

Is this correct ?

Did I miss something ?

Thanks

---

<div class="post-metadata">

**Author:** ![karl-nl](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/karl-nl/32/40754_2.png) [@karl-nl](https://www.thethingsnetwork.org/forum/u/karl-nl)\
**Post date:** [March 11, 2019, 2:18pm UTC](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975/42 "2019-03-11T14:18:30Z")

</div>

As long as the App Session Key and the Network Session Key are the same that should work.

What is your console output telling you ?

---

<div class="post-metadata">

**Author:** ![stdemo](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/stdemo/32/35697_2.png) [@stdemo](https://www.thethingsnetwork.org/forum/u/stdemo)\
**Post date:** [March 11, 2019, 2:50pm UTC](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975/43 "2019-03-11T14:50:59Z")

</div>

Hi,  
if you set to zero the STATIC\_DEVICE\_EUI this means that you registered on TTN the device eui generated internally, right?  
You can issue the ?devicejoinparam command to read back the keys actually used by the firmware and the ?devicejoinstatus to monitor the connection status to the LoRaWAN network

[Previous page](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975.md?page=1)

[Next page](https://www.thethingsnetwork.org/forum/t/st-lora-iot-tracker-steval-strk01/22975.md?page=3)
