Hi Thomas,

We implemented your tests, but still got a hard fault.

Strangely, though, if we put at86rf231_switch_to_rx right after
at86rf231_send, the crash is gone; we haven't checked if sending and
receiving actually works, but at least it's not crashing anymore. It
looks a bit hacky to me, but I don't know if it should indeed be done
that way...


Thanks,
Eriza


On 10 February 2015 at 14:02, Thomas Eichinger
<[email protected]> wrote:
> Hi Eriza,
>
>> On 10 Feb 2015, at 11:30, Eriza Fazli <[email protected]> wrote:
>>
>> The thing is, RIOT crashes (HARD FAULT), somewhere in the call to
>> at86rf231_transmit_tx_buf (which is called by at86rf231_send), I
>> suspect at this line [1].
>
> Your problem seems somehow related to this one on github [1]. My analysis
> so far indicates this happen due to a race condition under very special 
> conditions.
> To track this down, could you test two approaches for me?
>
> 1. On your board, does the radio device has its own SPI bus? Could you report 
> your
> results when removing all `spi_acquire` and `spi_release` calls in 
> at86rf231_spi.c?
>
> 2. Try to compile your application without compiler optimisation by changing 
> the
> the `CFLAGS` in Makefile.include from `-Os` to `-O0`. (If applicable).
>
> Best, Thomas
>
> [1] https://github.com/RIOT-OS/RIOT/issues/2418
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.riot-os.org/mailman/listinfo/users



-- 
Eriza/97.1910
-So long and thanks for all the fish!-
_______________________________________________
users mailing list
[email protected]
http://lists.riot-os.org/mailman/listinfo/users

Reply via email to