Closed ConnorHowell closed 1 year ago
Hi, I know about the problem I have made some weird error when I was porting code from STM32F4 (where it works just fine) to ESP32. It is also #1 but I have never attempted to fix that as I was using other tools which I have at my disposal.
Will try to work on that to fix this issue. From my research in #1 it seems like it is some misconfiguration of LWIP, but I don't have much experience with this subsystem.
At least in my case it seems to not be freeing up memory when sending a packet which is why it spams the same CAN message over and over, eventually running out of memory then throwing this exception.
In this instance I was testing it with just my custom diagnostic tool hooked up and simply sending 1 request for the VIN, but Wireshark was filled with hundreds of the same packet.
I'll do some more testing with this when I get a chance and see if I can figure out the issue!
Bug is now fixed, at least for me. During copying of malloc, I have forget to remove sizeof getting something like pvPortMalloc(sizeof(length))
and allocating only 4 bytes for a whole frame instead of allocating length
amount of bytes
Closed
Hey, just tried to use this brilliant project but the ESP32 firmware seems to fail even on just logging a simple UDS request for the VIN.
In Wireshark it logged the RDBI request a couple hundred times before the firmware crashed and rebooted.
Let me know if you need any additional info! (This happened both when tracing datagrams and just the raw socketcan style output)