[riot-notifications] [RIOT-OS/RIOT] boards/firefly: add renode configuration (#15489)

Alexandre Abadie notifications at github.com
Thu Nov 26 21:32:48 CET 2020


Regarding the hardfault, could it be a problem in RIOT?

https://github.com/RIOT-OS/RIOT/blob/19dabc9fd7a68cc0a7c1e42bfa04911ae5a56c2e/cpu/cc2538/periph/uart.c#L148-L155

The UART IRQ is enabled even though the rx callback is not defined. I'm not an expert with cc2538 but on stm32, the IRQ is only enabled with `rx_cb` is set:

https://github.com/RIOT-OS/RIOT/blob/19dabc9fd7a68cc0a7c1e42bfa04911ae5a56c2e/cpu/stm32/periph/uart.c#L219-L222

If I move the `NVIC_EnableIRQ` call in the `if` block, no more HardFault.

-- 
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/pull/15489#issuecomment-734469500
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201126/6506bdcb/attachment.htm>


More information about the notifications mailing list