[riot-notifications] [RIOT-OS/RIOT] sx127x with gnrc_networking example (#11312)

Khayhen notifications at github.com
Fri Mar 29 18:35:07 CET 2019


Hi, I'm making some custom boards using an arduino mkr-zero with different radio modules to work in 6LoWPAN network with a border router. I have successfully created a board with MRF24J40 radio module but I'm having trouble with the SX1278 module. To implement the board I made a copy of the arduino MKR-Zero file and added the following lines to the file include/boards.h
<pre>
#define SX127X_PARAM_SPI                    (SPI_DEV(0))
#define SX127X_PARAM_SPI_NSS                GPIO_PIN(0, 21)	//PA21 Arduino Pin 7 

#define SX127X_PARAM_RESET                  GPIO_PIN(0, 20)	//PA20 Arduino Pin 6 
#define SX127X_PARAM_DIO0                   GPIO_PIN(1, 11)	//PB11 Arduino Pin 5 
#define SX127X_PARAM_DIO1                   GPIO_PIN(1, 10)	//PB10 Arduino Pin 4 
#define SX127X_PARAM_DIO2                   GPIO_PIN(0, 11)	//PA11 Arduino Pin 3 
#define SX127X_PARAM_DIO3                   GPIO_PIN(0, 10)	//PA10 Arduino Pin 2 
</pre>
and these lines to the file Makefile.dep
<pre>
ifneq (,$(filter netdev_default,$(USEMODULE)))
  USEMODULE += sx1276
endif
</pre>
I tested the board by flashing with tests/driver_sx127x, and manage to successfully communicate with the radio module and do some communication. However, when I flash it with examples/gnrc_networking, the RIOT crashes and I get the following error.
<pre>Welcome to pyterm!
Type '/exit' to exit.
2019-03-30 01:32:08,910 - INFO # 0x743d
2019-03-30 01:32:08,911 - INFO # *** RIOT kernel panic:
2019-03-30 01:32:08,955 - INFO # FAILED ASSERTION.
2019-03-30 01:32:08,955 - INFO # 
2019-03-30 01:32:08,957 - INFO # 	pid | name                 | state    Q | pri | stack  ( used) | base addr  | current     
2019-03-30 01:32:08,960 - INFO # 	  - | isr_stack            | -        - |   - |    512 (  152) | 0x20000000 | 0x200001b8
2019-03-30 01:32:08,963 - INFO # 	  1 | idle                 | pending  Q |  15 |    256 (  152) | 0x20000564 | 0x200005cc 
2019-03-30 01:32:08,966 - INFO # 	  2 | main                 | bl mutex _ |   7 |   1536 (  264) | 0x20000664 | 0x20000b64 
2019-03-30 01:32:08,969 - INFO # 	  3 | pktdump              | bl rx    _ |   6 |   1536 (  248) | 0x200032d4 | 0x200037dc 
2019-03-30 01:32:09,005 - INFO # 	  4 | ipv6                 | bl rx    _ |   4 |   1024 (  280) | 0x200011bc | 0x200014a4 
2019-03-30 01:32:09,007 - INFO # 	  5 | udp                  | bl rx    _ |   5 |   1024 (  280) | 0x20003f24 | 0x2000420c 
2019-03-30 01:32:09,008 - INFO # 	  6 | sx127x               | running  Q |   2 |   1024 (  668) | 0x20000dbc | 0x2000102c 
2019-03-30 01:32:09,010 - INFO # 	  7 | RPL                  | bl rx    _ |   5 |   1024 (  212) | 0x20003928 | 0x20003c54 
2019-03-30 01:32:09,011 - INFO # 	    | SUM                  |            |     |   7936 ( 2256)
2019-03-30 01:32:09,011 - INFO # 
2019-03-30 01:32:09,012 - INFO # *** halted.
2019-03-30 01:32:09,012 - INFO # 
</pre>

Is this module even possible to run a gnrc network stack? If I can get the basics working, will be good enough already as I just need to show a proof of concept for now. Any help will be much appreciated. Thank you. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/issues/11312
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190329/c351ab31/attachment.html>


More information about the notifications mailing list