Hi Eriza,
> On 11 Feb 2015, at 16:54, Eriza Fazli <[email protected]> wrote:
> We implemented your tests, but still got a hard fault.
Too bad. I’m currently refactoring this radio driver so I won’t be able
to put much effort into debugging this right now.

> 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…
Did it crash on every attempt to send before? I’m asking because
_switch_to_rx gets called by the current driver implementation as soon
as the radio device issues an interrupt signalling it finished transmission.
(at86rf231.c:208)

I hope my refactoring and all needed additional changes will be ready by
Friday. I would kindly ask you to give the new implementation a try then?

Best, Thomas


> 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

_______________________________________________
users mailing list
[email protected]
http://lists.riot-os.org/mailman/listinfo/users

Reply via email to