You are here

ESP32 VESC controller

3 posts / 0 new
Last post
Ortsac
Offline
Last seen: 1 year 8 months ago
Joined: 2022-01-21 18:19
Posts: 1
ESP32 VESC controller

Hi folks.

I'm trying to port https://github.com/vedderb/bldc_uart_comm_stm32f4_discovery to ESP32 but I'm with a doubt. I basically updated the files for the newest version and noticed the following:

The new packet.c file has a "packet_reset" function instead of "packet_timerfunc" like in the old packet.c file. According to Vedder, on the older version, we were supposed to call this function every 1ms but, with this new implementation and by analyzing the code com bldc, I never saw this new function getting called.

I've got the code running and I can receive messages however for it to work I had NOT to call the new "packet_reset" function otherwise nothing happens. So my question is, do we need to call the reset function or not? It will crash the code eventually if we don't call it?

Thanks in advance.

SMC_TUNE
Offline
Last seen: 2 years 2 weeks ago
Joined: 2020-10-20 01:58
Posts: 1

Have you managed to solve this problem? It would be so much more cost effective to run the software on an ESP32.

Gatze
Offline
Last seen: 11 months 6 days ago
Joined: 2018-02-03 18:06
Posts: 55

And also availibility, last time I looked the STM32f405 was nowhere to buy. Quite a task to port a complicated software like this to another brand of controller.