avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory corruption (?) I don't understand


From: BERTRAND Joël
Subject: Re: Memory corruption (?) I don't understand
Date: Tue, 22 Jun 2021 19:02:50 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.7.1

Trampas Stern a écrit :
> Does the code run if you comment out 'lora_send("coucou", 7);

        Yes. To be honnest, if I comment out LDL_MAC_otaa(&mac), it runs.

> Does it still crash with simple main() { _delay_ms(1000);
> stty_print("hello");}
> 
> That is start removing code until it works, when you find the line in
> main that causes a crash, go into that function and start removing code
> until it works.  Slowly you will find the problem. 

        I have tried (and I continue...) but I'm not sure that this bug is in
LoRaWAN library. Indeed, LDL_MAC_otaa(&mac) shows my bug but, sometimes,
just with a debug trace in main(), LDL_MAC_otaa(&mac) doesn't crash.

        Regards,

        JB



reply via email to

[Prev in Thread] Current Thread [Next in Thread]