[riot-notifications] [RIOT-OS/RIOT] send data with UDP at 10HZ, the program die (#11860)

jhx2002 notifications at github.com
Wed Sep 25 10:26:18 CEST 2019


add printf code in enc28j60.c , as 

```
static void cmd_bfs(enc28j60_t *dev, uint8_t reg, int8_t bank, uint8_t mask)
{
    spi_acquire(SPI_BUS, CS_PIN, SPI_MODE_0, SPI_CLK);
    switch_bank(dev, bank);
    printf("cmd_bfs\n");
    spi_transfer_reg(SPI_BUS, CS_PIN, (CMD_BFS | reg), mask);
    printf("cmd_bfs 2\n");
    spi_release(SPI_BUS);
}
```
and finally die in spi_transfer_reg , here is log : 
```
2019-09-25 16:11:35,686 - INFO # send 4 bytes, value=634
2019-09-25 16:11:35,689 - INFO # cmd_bfs
2019-09-25 16:11:35,689 - INFO # cmd_bfs 2
2019-09-25 16:11:35,690 - INFO # cmd_bfs
2019-09-25 16:11:35,693 - INFO # cmd_bfs 2
2019-09-25 16:11:35,694 - INFO # send 4 bytes, value=635
2019-09-25 16:11:35,696 - INFO # cmd_bfs
2019-09-25 16:11:35,697 - INFO # cmd_bfs 2
2019-09-25 16:11:35,697 - INFO # cmd_bfs
2019-09-25 16:11:35,701 - INFO # cmd_bfs 2
2019-09-25 16:11:35,701 - INFO # send 4 bytes, value=636
2019-09-25 16:11:35,704 - INFO # cmd_bfs

```
enc28j60 and w5100 are base  on spi,  maybe the bug is in SPI driver




-- 
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/11860#issuecomment-534911951
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190925/374e337b/attachment-0001.htm>


More information about the notifications mailing list