SAM R34 Xplained Pro ports - new lora device

Hello all,

I am working on some LoRaWan projects and I would like to know if someone already started to port the Sam R34 xplained board to work with riot and the lorawan aplpication example.

Previously I sucessfully built and run the lorawan application using STM32 B-L072Z-LRWAN1 board on both TTN and SPOT lorawan networks.

I also managed to get it working on my custom design board using the murata CMWX1ZZABZ-091 and it works like a charm. my only real difficulty is the power consumption as I did not manage to get the power management library working like it should, but I will open a specific thread about this topic :wink:

As microchip launched a new chip I’m interrested to evaluate this new lorawan solution to get some serious alternative to the murata/stm32 one.

Until here, I defined a new samr34 cpu and sucessfully run some basic application using riot os on the Sam R34 xplained board. Shell application, push button and leds are working like expected.

I defined the internal SX1276 conenction (spi bus and internal IOs) and I get some results :

2019-07-08 16:47:44,410 - INFO # main(): This is RIOT! (Version: 2019.07-devel-940-g1744b)

2019-07-08 16:47:44,414 - INFO # LoRaWAN Class A low-power application

2019-07-08 16:47:44,417 - INFO # =====================================

2019-07-08 16:47:44,421 - INFO # [semtech-loramac] initializing loramac

2019-07-08 16:47:44,425 - INFO # [sx127x] SPI_0 initialized with success

2019-07-08 16:47:44,429 - INFO # [sx127x] SX1276 transceiver detected

2019-07-08 16:47:44,449 - INFO # [sx127x] Set channel: 868000000

2019-07-08 16:47:44,453 - INFO # [sx127x] Set channel: 434000000

2019-07-08 16:47:44,455 - INFO # [sx127x] Set op mode: SLEEP

2019-07-08 16:47:44,460 - INFO # [semtech-loramac] radio: initialization successful

2019-07-08 16:47:44,462 - INFO # [sx127x] set modem: 1

2019-07-08 16:47:44,465 - INFO # [sx127x] Set op mode: SLEEP

2019-07-08 16:47:44,468 - INFO # [sx127x] Set op mode: RECEIVER

Unfortunately I’m stuck here and I would need some help to get it working :slight_smile:

I’m new to RIOT my code as not yet been checked with RIOTs coding convention but I would be pleased to share my RIOT fork if some guys are interrested to use the Sam R34 xplained board as a LoRaWan alternative.

Regards,

Noel

Hello Noël, Yes, such a port already exists here [1] but it is NOT merged yet. I tested the LoRaWAN part with TTN and it was working fine. This PR has not been merged yet dude to a weird bug during RTC init. I’m waiting for some more hardware on my side to push more effort to fix it. Let me know if you have any trouble with this PR.

Cheers, Dylan

[1] https://github.com/RIOT-OS/RIOT/pull/11250

Le lun. 8 juil. 2019 à 17:25, Noël Le Moult <noel.lemoult@dfxlab.fr> a écrit :

Thank you for giving me some usefull link to the already existing PR on the same board.

Next time I will look twice if someone already tried to port a new board !

I learnt a lot trying to get it working and defining the cpu and board modules but as you already did that before I will just switch to the open PR and try to use it.

I will let you know if I get some trouble too with the RTC.

Regards,

Noel

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐