lvx_xvl said:
lvx_xvl said:
skestans said:
Man that sucks. Are you using a speed sensor connector, or DuPont wires with heat shrink tube at the ends? If DuPont, maybe you’re not getting a good connection and should try with a speed sensor extension cable so you get the proper connector and good contact.
If your speed sensing works correctly (ie displays the right speed on the display) and you’ve tried so many computers and dongles, the only option left is a bad connection at the plug.
You could try with a Linux live disc and see if stm8flash works there but if it didn’t work on OS X...
I'm using the speedsensor connector with the Dupont wires (4cm long) and heat shrink tubes. And you are right that might be the issue, but they really snuck in tight. So I'm assuming (very bad I know) they work. If I connect the GND, 5V and SWIM and boot the bike via the VLCD5 display then my ST Link V2 boots, so I'm fairly confident (I know very bad) that the connection is working.
I used a speed sensor extension cable at first, but a lot of people point out to the long leads being the problem.
regards,
LVX
I took the motor controller board out today. It did come out easily.

I hooked up with the short Dupont wires (which still doesn't make sense, as the wire from the board up to connector is ~30cm long) and it did not connect. I tried 3 different type of STLink V2 dongles.
I removed some of the coating to measure from the PCB pads. All of the wires gave a good readout. I tried testing what is what, and with some help of google I ended up with (right-to-left):
brown = VCC
black = SWIM
orange = GND
purple = reset
Could it be that this board is somehow protected for readout, or is a protected firmware still communicating?
I just wanted to add that I was doing some debugging to see if I could find out if the board is actually powered by the ST Link.
So I hooked up an UART dongle to read out the main connector, the 9 pin version. Immediately after plugging in the ST Link dongle the UART started to write data to the console, all 16 byte lines of code.
As soon as I click on the STVP "read all tabs" icon, the UART stopped. So it definitely rebooted the MCU.
I then went on to check if I have to correct MCU, which luckily I did.
Can someone tell me if can try out a different type of test to see if the SWIM works?
regards,
LVX