sim- / tgy

tgy -- Open Source Firmware for ATmega-based Brushless ESCs
http://0x.ca/tgy/
686 stars 388 forks source link

Need ESC frimware to work on 328P instead of 8A #51

Closed Sp1k3 closed 10 years ago

Sp1k3 commented 10 years ago

Hi Simon, I'm building my own esc, and I tried loading the frimware on a board I have with a 328P instead of 8A. I noticed that the pinout is identical so I thought that if i upload the firmware to the 328P and set the right fuses then it should work. But it doesnt show signs of life. (avrdude -c usbasp -p m328p -B100 -b9600 -U lfuse:w:0xff:m -U hfuse:w:0xdc:m -U efuse:w:0xfd:m avrdude -p m328p -P usb -c usbasp -B 8 -e -U flash:w:C:\Download\flash\tmp\tgy-master\rct50a.hex:i Of course I can change back to an atmega 8A, but before i do it, I was wondering why this doesnt work, and if it is little effort would it be possible to make a rct50a.hex for this?

owenduffy commented 10 years ago

There is more to it than pin compatibility... check the interrupt vector.

Owen

Sp1k3 commented 10 years ago

Yeah I thought so... Ok I will change it to a 8A. Thanks for the support

Sp1k3 commented 10 years ago

OK replaced it with atemga 8A and now it works like a charm. You can close this issue.