ESP All-in-one with WT32-Eth01 (pcb+sw)

I have a v4.4 Standard board with a UM982 GNSS module, BNO085 IMU, ADS1115 & CAN bus chips on-board. Attached are the configs and reboot messages. Seems somewhere between .3 and 10 seconds before reboot. The Teensy serial connection disconnects during the reboot.

Edited: PCB is v4.4. v4.5 is in production at JLCPCB. (2.8 KB) (2.0 KB)

Ooops. I edited the PCB version number.

Thanks, I have seen the files briefly, there are a few things I would need to fully understand the issue:
1- I assume that those Was and Panda lines formed, omitted on the report, are correctly formed, correct?
2- I see the configuration file has the same pin assigned twice (39), no idea yet if that is the root of the issues
3- You are using Mac? I have only tested in windows, no idea if that causes any trouble with serial
4- the pins configuration on your pcb, I haven’t got the definition for the teensy pinout on that v4.4 pcb, is it any different of the v3? if it is the same there are a few pin assignments that I do not fully understand (for instance the cytron pin definition, or the was resolution, or the buttons/switch pin definition) are you 100% sure they are the correctly defined in your configuration.json?

  1. Yes the WAS and PANDA lines were well formed. AgIO showed position, etc.
  2. All I changed from the repo config was IP address and IMU type.
  3. Tried compiling it on a Windows 11 machine. Same compilation errors as Mac.
  4. I managed to get the pins changed to PCB v4.4 assignments I think. It won’t stay running long enough between reboots to be sure.

I seems like the issue with Teensydino 1.58. Perhaps try installing Teensydino 1.57.x or 1.56.x and compiling against one of those.

Thanks chri5k,
My bet would go for a memory leak, probably on gnss parsing, not suro though, I will try to replicate the issue in my pc, it does not show any problem in my v3 micro pcb with teensy…
As for the ide set up, the lib verioin need to be mached, and probably the AsyncWebserver for teensy completly replaced, I guess the rduino ide is not taking the icluded versions as the correct reference, just a guess.

Changing the GNSS port to one without a GNSS attached or unplugging the GNSS from the board stopped the reboots.

Still perplexed by the IDE issue. Got past not finding the directory by installing the versions of the libraries in the IDE vice linking to the ones in the repo. Now running into issues with STD:: functions not being found. Does your IDE environment have some Standard Template Libraries installed?

The Arduino IDE is not my favorite. By trying to make it simple, the developers make it hard to track down complicated issues. They flat out refuse to add a “clean” function to the IDE. They locked the thread with users articulating why having a “clean” function would be useful. Very strange.

VSCode with PlatformIO is my preferred IDE.

I do not know about what could happent to the ide configuration in your pc, all I can offer is to make a video conference through teams to see if together we could play to find the 7 differences game between your environment and mine… would you think that could be of any help?

On the other hand, I can not duplicate your rebooting issues, I attach the serial dump just done trying to find the problems without success
putty-20241213.txt (880.9 KB)

just in case it is something related with the configuration.json file, i include again the teensy hex file and the json file with the correct config for the AiO Micro v3.0 (shoul be very close to the v4.5, but may be some pins to review indeed) (338.9 KB)

The output from the UM982 has 1 more decimal digit than the F9P. Could that cause an issue with parsing the GNSS messages?

I’ll try wiping the IDE from the PC and redoing the install. Maybe I missed something. If that doesn’t work, we can arrange a screen share call.

I don’t think so, gnss precission does not matter, the nmea message is split by “,” and latter the string to double function would take any number of decimals (any number that the gnss is able to handle of course). Perhaps the frequency may had an effect if you were using higher that 10Hz, the last version should not care about that either. Ok to the screen sharing connection, just let me know, please for suitable timing, keep in mind that I am in europe (Spain to be precise)

Finally managed to get it to compile with the Arduino IDE. Removed all the libraries that came with the repo. Installed all the latest versions of the dependancies. Only issue now is for some reason I get these two errors. Every other Teensy sketch those two lines work fine. There is even a serial->begin(baudrate) right before those two lines that does not produce an error. Very bizarre. I commented those to lines out and it compiles and works fine.

C:\Users\chris\Documents\code\Fwa-aog\GNSS.h:317:13: error: ‘class HardwareSerial’ has no member named ‘addMemoryForRead’
317 | serial->addMemoryForRead(rxBuffer, 512);
| ^~~~~~~~~~~~~~~~
C:\Users\chris\Documents\code\Fwa-aog\GNSS.h:318:13: error: ‘class HardwareSerial’ has no member named ‘addMemoryForWrite’
318 | serial->addMemoryForWrite(txBuffer, 512);

I was also able to get it to compile with VSCode & PlatformIO. Interestingly, the above errors did not show up.