Yeah, I initially omitted that flashing step, who knows why!alecxs wrote: ↑Sun Nov 19, 2023 5:14 pmNot sure what you mean with "below" but the code by A-Emile works just fine to me. Maybe your phone does not support Bluetooth BLE?
you must flash the BLDC motor controller.
I just got the PCBs yesterday, but have been struggling with flashing for a while.
I tried with both the scooter charger connected and without it. Same result.
1) opened the controller, soldered in the 4 pins near SM32 (they weren't there in my case - I can only assume they're soldered well and there's connectivity with the controller board.
2) I bought the st-link v2 USB dongle and connected all 4 pins according to instructions.
3) when I'm trying to read I'm getting the error: Cannot communicate with the device! Check the SWD cable connection and check all the needed pin connections on the SWD connector. Reboot the ST-Link with USD cable.
Error: < PROGRAM MEMORY reading failed.
Following Emile's advice and I think one mentioned here, when I'm jumper wiring the SM 7 pin with the other's Stlink GND it starts thinking for a while and gives me 'ST-link error', when I removed it shortly after clicking the read button, it shows 'the device is protected'. I tried like 20 times as least over and over again.. any tips and tricks?
I guess there's a chance the st-link v2 (although new) could be just bad, but other than this? Please help!!
I have pictures and videos I can share