Hi,
I have a Flipsky 4.12 hardware based mini VESC. I did a git pull on my clone of the bldc firmware repo, and then changed the configuration files to uncomment the following:
> #define HW_SOURCE "hw_410.c" // Also for 4.11 and 4.12
> #define HW_HEADER "hw_410.h" // Also for 4.11 and 4.12
When I load the firmware, however, I have no USB VCP.
Any ideas what might be wrong? Did I miss a source config step? If I use hardware 60 I do get USB VCP, so I know the board is fine.
After some debugging, it appears as though this commit breaks compatibility with 4.12 VESCs (or at least the flipsky vesc)
https://github.com/vedderb/bldc/commit/17f97763c0f32ad38001629850d2a606f3679f70
Yep, commenting out `timeout_init_IWDT();` in timeout.c fixes this. So for whatever reason, the watchdog isn't getting fed as the board boots and then is just reseting the board as soon as it comes up.
Final update, you can work around this in the latest FW by commenting out the following lines in timeout.c:
I would just fix this, but I'm not sure if I know the intended archecture of this well enough to make a good fix. Should be trivial to fix for someone that knows the project a bit better.
Hello chris1seto,
I have a similar problem after flashing the firmware for 4.12 vesc, but if i use the default firmware for 4.12 from vesc tool, the USB VCP is detected, i see the code had been changed a lot, do you have any idea how to fix this issue in the current github version?.
Best Regards
dp
dp