# Big STM32 boards topic

**URL:** <https://www.thethingsnetwork.org/forum/t/big-stm32-boards-topic/13391>\
**Category:** End Devices (Nodes)\
**Created:** [April 10, 2018, 7:21pm UTC](https://www.thethingsnetwork.org/forum/t/big-stm32-boards-topic/13391 "2018-04-10T19:21:26Z")\
**Posts on this page:** 1\
**Showing post:** 181

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/44639_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [April 8, 2020, 12:57pm UTC](https://www.thethingsnetwork.org/forum/t/big-stm32-boards-topic/13391/181 "2020-04-08T12:57:41Z")

</div>

@Ludwig

> [@Application example with mcci-catena/arduino-lmic on STM32L071](https://www.thethingsnetwork.org/forum/t/application-example-with-mcci-catena-arduino-lmic-on-stm32l071/35779/8):
>
> > [@](#):
> >
> > When using this workaround with MCCI LMIC I ran into certain issues that I have not yet further investigated.
> 
> If using the newer MCCI version, be aware that the maximum clock error is limited to 0.4% if the _LMIC\_ENABLE\_arbitrary\_clock\_error_ is not defined. See also [https://github.com/mcci-catena/arduino-lmic/blob/master/README.md#lmic\_setclockerror](https://github.com/mcci-catena/arduino-lmic/blob/master/README.md#lmic_setclockerror).  
> With the STM32L071 running from the 16MHz HSI a clock error setting of 0.4% works for me. Though I have not tested at highest or lowest expected temperatures yet, which will have an effect on clock drift.

With a bluepill board (STM32F103C8T6, 128k) I am unable to get MCCI LMIC library working.

IDE: PlatformIO, board = bluepill\_f103c8\_128k

LMIC libraries:

- [MCCI LoRaWAN LMIC library](https://github.com/mcci-catena/arduino-lmic), version 3.1.0
- [LMIC Arduino](https://github.com/matthijskooijman/arduino-lmic), version 1.5.0+arduino-3

Sketch: ttn-otaa.ino included with above MCCI LMIC library.

Modifications to sketch:

- Added unhandled events (see issue [#550](https://github.com/mcci-catena/arduino-lmic/issues/550)).  
_(No notification is printed for EV\_RXSTART in order not to mess up timing.)_
- Added conditional compilation to exclude MCCI LMIC specific events/features when using the LMIC-Arduino library.

_(Switching between both LMIC libraries can be done simply by specifying the corresponding library dependency in the platformio.ini project configuration file.)_

When using the LMIC-Arduino library the example works fine (uplinks and downlinks) and does not even require ClockError to be set.

When using the MCCI LoRaWAN LMIC library evrything appears to hang after the first EV\_TXSTART event (while it attempts to join).  
After the initial join request no subsequent join (retry) requests are made (not visible on TTN Console). Normally, when the first join request fails (e.g. because of timing related downlink issues) a subsequent join request will be made within minutes. This is however not the case and the node appears to be hanging (waiting indefinitely, or crashed).

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/big-stm32-boards-topic/13391)._
