simoninns / TMS6100-Emulator

TMS6100 speech PHROM (PHrase Read Only Memory) hardware emulator for use with the TMS5220 Voice Synthesis Processor in an Acorn BBC Microcomputer
GNU General Public License v3.0
8 stars 5 forks source link

Help Burning bootloader and Hex file #9

Open shift838 opened 8 months ago

shift838 commented 8 months ago

I have a USBasp programmer and trying to burn a bootloader for the ATMEGA32U2. https://www.amazon.com/dp/B00AX4WQ00?psc=1&ref=ppx_yo2ov_dt_b_product_details

I believe I have to first burn a bootloader as I purchased the ATMEGA32U2 from mouser.com and according to them there is no bootloader on the chip. So, first, what is the best bootloader to use?

Second, how can I get this to burn. I'm using 'avrdude'.

My command to burn bootloader: avrdude -c usbasp -p m32u2 -U flash:w: d:\speech\roms\BL.hex -F

I get the below error: avrdude: warning: cannot set sck period. please check for usbasp firmware update. avrdude: error: program enable: target doesn't answer. 1 avrdude: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check.

avrdude done. Thank you.

I have verified connections as on my USBAVR (10 pin):

AVR programmer pin 1 (MOSI) – TMS6100 pin 9 AVR programmer pin 2 (Vcc) – TMS6100 pin 14 AVR programmer pin 7 (SCK) – TMS6100 pin 10 AVR programmer pin 9 (MOSI) – TMS6100 pin 6 AVR programmer pin 5 (RST) – TMS6100 pin 12 AVR programmer pin 8 (GND) – TMS6100 pin 13

shift838 commented 8 months ago

I updated the firmware and triple-checked all wiring connections. I get the below verbose output.

Should I be attempting to burn the hex files via the Atmel Studio? Does the ATMEGA32U2 require a bootloader first?

avrdude -F -p m32u2 -c usbasp -U flash:w: d:\speech\roms\TMS6100-A.hex

avrdude: error: program enable: target doesn't answer. 1 avrdude: initialization failed, rc=-1 avrdude: AVR device initialized and ready to accept instructions avrdude: Device signature = 0x000000 (retrying) avrdude: Device signature = 0x000000 (retrying) avrdude: Device signature = 0x000000 avrdude: Yikes! Invalid device signature. avrdude: Expected signature for ATmega32U2 is 1E 95 8A avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option.

avrdude done. Thank you.

shift838 commented 8 months ago

I was able to get the hex file programmed. found out my crystal was dead.

Still have a question, does it need a bootloader, if so which one do you recommend and do you have a link for it?

shift838 commented 8 months ago

i still need help getting this thing burned.

Still need the question answered of do I need a bootloader burned, if so, which one and how?

Would really be nice to see the entire command to get it burned after you have the compiled hex file.

I am using AVRDUDE with the below command.

avrdude -c usbasp -p m32u2 -U flash:w:d:\speech\roms\filename.hex:i

I do not get any speech generated so i'm wondering if I have missed a step like a boot loader or what..