Closed gauravahuja closed 1 month ago
What is the USB to Serial chipset used for your bootloader and programmer? Some USB to Serial chipsets are problematic.
Hi @mcuee,
You are correct. I was using a 14 year old USB-Serial convertor. The chipset is based on CH340. I get the following details after running system_profiler SPUSBDataType
on my terminal.
USB2.0-Serial:
Product ID: 0x7523
Vendor ID: 0x1a86
Version: 2.52
Speed: Up to 12 Mb/s
Location ID: 0x02110000 / 3
Current Available (mA): 500
Current Required (mA): 96
Extra Operating Current (mA): 0
This week I bought two new usb-serial convertors. One of them is also a CH340 chipset, but it worked fine. The new CH340 has the following descriptor
USB Serial:
Product ID: 0x7523
Vendor ID: 0x1a86
Version: 2.64
Speed: Up to 12 Mb/s
Location ID: 0x02110000 / 3
Current Available (mA): 500
Current Required (mA): 98
Extra Operating Current (mA): 0
So it seems CH340 chipset with Version: 2.64 works but with Version: 2.52 does not.
The other one that I bought is based on CP2102, which also worked.
CP2102 USB to UART Bridge Controller:
Product ID: 0xea60
Vendor ID: 0x10c4 (Silicon Laboratories, Inc.)
Version: 1.00
Serial Number: 0001
Speed: Up to 12 Mb/s
Manufacturer: Silicon Labs
Location ID: 0x02110000 / 8
Current Available (mA): 500
Current Required (mA): 100
Extra Operating Current (mA): 0
Hi, I am trying to flash a hex file to an ATmega8 using Avrdude. The flashing process always fails on my 14'' M1 Macbook Pro however it works flawlessly on a Linux computer. In this example I am using a urboot bootloader but I have similar issues using a stk500v2 based ISP programmer. The stk500v2 programmer works on the Linux computer but fails on the Macbook.
Following are the logs from when I used my Macbook.
Attempt 1
Attempt 2