NeilP said:
also remember some controller MCU's just can not be programmed. they are one time EEPROMS...sorry can't think what the proper name for them is. Often marked with a spot of paint or ..at least that is what I have been told
you could try e-mailing him directly
ecrazyman at gmail.com
Thanks, I have emailed him but have yet to get a reply. He usually takes a day or two to respond in my experience, but I'm pretty sure this controller I have is one of the reprogramable types. I'm 99% sure it's an Infineon based controller.
I think I had my TX and RX pins around the wrong way also, so today I'm going to have another go.
Ill try searching some more on the forum, as there are different boards and I have yet to find any with the SLK pins on them.
methods said:
Yea, you need to show your wiring a little better.
RX to TX
TX to RX
There is power and enable
Ok, on my controller I have 6 pins in a row, and on the PCB the pins are marked: SLK1, +5V, GND, RXD, TXD, SLK2
On my USB to TTL adaptor I have 6 pins also, marked: RST, 3V3, 5v, TXD, RXD, GND
Right now I have it hooked up like this:
Controller -> USB to TTL adaptor
GND -> GND
+5v -> 5v
RXD -> TXD
TXD -> RXD
I cannot find any pins marked Enable at all, unless it's one of the SLK pins?
methods said:
Enable must be toggled to start the download. The chip will only flash on power-up because the programming pins are multiplexed. This means that after power up the RX and TX pins have different applications. I cant remember which they are - but if you have a certain thing plugged in the controller wont program either. Was it the 3spd switch? You can follow the traces on the board to identify.
My controllers wont program with reverse enabled either
My controllers are very fussy about which program you try to use
I stat with the controller off
I select the code I want to run
plug in
when everything is ready I toggle the button and the download should take less than a second
Yes - there are non-programmable chips out there too. Tons of them.
Disconnect all accessories
Take clear pictures of your USB dongle, the wiring, the board, and your button - so we can see it all in one picture
-methods
Ok, I have everything apart from the 4 pins on the controller unhooked. No throttle connected, no motor, as I have yet to install this controller on the bike.
Here is a pic of my setup, click on the pic for a larger version:
green is GND
red is 5v
yellow and orange are RXD and TXD
Now I have no button on my cable, can I ask what the button does? Does it connect the enable pin to 5v? If so I can add this is I know what pin to use as my enable pin.
Also I'm not 100% sure that my USB to TTL adaptor works, right now I'm looking on google how to do a loopback test.