[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] UDP server on LwIP socket falls into hard fault if inpu
From: |
Иван |
Subject: |
Re: [lwip-users] UDP server on LwIP socket falls into hard fault if input string, longer than 19 bytes |
Date: |
Wed, 08 Jun 2016 19:40:06 +0300 |
That you for reply. I know about asserts. In debug version I use them to catch
critical errors, and non-critical too. And I always enable all asserts in
submodules. I also know about that article and had implemented most of their
suggestions. That did not help this time.
I fixed the problem
#define MEMP_MEM_MALLOC 0 //was 1
I prefer dynamic memory allocation. But this time it doesn't work fine....
=======
SOLVED.
=======
--
Ivan Kuvaldin
08.06.2016, 16:05, "Sergio R. Caprile" <address@hidden>:
> > hard fault. I think it because of NULL pointer exception
>
> Insted of thinking, put an assertion to verify that, and follow your
> processor debugging instructions to understand the actual reason of the
> hard fault.
> Even your OS has a guide on that:
> http://www.freertos.org/Debugging-Hard-Faults-On-Cortex-M-Microcontrollers.html
>
> PS: I would honor and follow advice regarding memory allocation
> functions, if I was you and I was chasing a fault on some error that
> depends on the number of data being processed.
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/lwip-users