Re: SODAQ One V3 porting

Léonard Bise <leodido99@...>

I'm having difficulties trying to communicate with the LoRa UART interface.

I set it up like so:


/* SERCOM2 LoRa UART on RX=PA13/pad 1, TX=PA12/pad 0 */
pinmux_pin_set(muxa, 12, PINMUX_FUNC_C);
pinmux_pin_set(muxa, 13, PINMUX_FUNC_C);


/* SERCOM2 LoRa UART on RX=PA13/pad 1, TX=PA12/pad 0 */


&sercom2 {
status = "ok";
compatible = "atmel,sam0-uart";
current-speed = <57600>;

I created a test program similar to samples/subsys/usb/cdc_arm
In my test program I get the device like so.

lora = device_get_binding(ATMEL_SAM0_UART_42001000_LABEL);

I didn't find any documentation on how to determine the device names and I'm not sure it's the correct one, could someone enlighten me?

However as soon as I enable the RX or TX IRQ I'm stuck in an interruption loop so I guess something must be off with my configuration.

Best regards,

On 1 June 2018 at 19:03, Henrik Brix Andersen <henrik@...> wrote:
Hi Léonard

> On 18 May 2018, at 11.56, Léonard Bise <leodido99@...> wrote:
> I'm going to work on a project which is going to use the SODAQ One board (


> In the supported hardware I see that the Adafruit Feather M0 Basic Prot is listed, which has this exact same microcontroller. I also read the Board Porting Guide and as I understand it basically I'd need to take the Adafruit configuration as a base and add these new components to the kconfiguration. All of the aspects related to the microcontroller are already there.

I did the port to the Adafruit Feather M0 Basic Proto. Let me know if I can help with the port for the SODAQ board.

> In particular I'm also wondering how to handle the LoRa microchip, since Zephyr has no LoRaWAN stack what would be the best way to handle the porting of this part?

Perhaps a simple solution could be to just add a sample application using the LoRaWAN chip over UART from the application layer?

Best regards,
Henrik Brix Andersen

Join { to automatically receive all group messages.