Hello,
I have a vesc 6 to use it on an electric bike. I wanted to add an option to configure only the max current and the max ERPM by UART in order to control via a raspberry Pi.
I just started by adding the lines in commands_process_packet function, in command.c :
// check if the code comes here
send_buffer[ind++] = packet_id ;
commands_send_packet(send_buffer, ind);
I wanted to catch the packet_id and send it back to my Pi to check if it comes here and the value. Anyway, I don't think that's causing my problem.
I've made make and then I launched the rebuild_all script in build directory to be sure.
Finally, I used VESC_Tool to upload the firmware VESC_defaut.bin of the 60 folder on the vesc and it completed well. But after the vesc reset, VESC_tool shown an error :
The firmware on the connected VESC is too old. Please update it using a programmer.
I don't understand why because it seems like it can read the right version 3.37 supported but it seems like it's not ok anyway. So, I'm stuck with a vesc unable to connect to VESC_Tool and I wait for the programmer I ordered hoping to be able to flash a firmware again.
Did I do something wrong ? Can you give me advices for the next step ?
You should get a SWD programmer if you want to do development. The firmware update from VESC Tool only works if the firmware is intact, and while you do development you naturally make mistakes.
Ok I thought the Custom File tab in VESC_Tool was made for that ! I've found a programmer today and I've reflashed the original firmware. It works fine again, thank you very much Benjamin.