You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an ATmega128 micro-controller and i am trying to just program it!
I successfully program it with MegaCore boot loader (because the LED is blinking twice every second) using Arduino as isp programmer. then when i upload the following code on it (again with arduino as isp), the led does not blink
also there is another problem with programming the micro-controller, after uploading the boot loader (MegaCore), i can't program it by USB to serial module. AVRdude's logs say that the response code is wrong:
Using Port : /dev/ttyUSB2
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude ser_recv() OS error: unable to read: Resource temporarily unavailable
avrdude stk500_recv() error: programmer is not responding
avrdude stk500_getsync() warning: attempt 1 of 10: not in sync: resp=0x00
avrdude stk500_getsync() error: cannot communicate with device: resp=0xfc
avrdude main() error: unable to open programmer arduino on port /dev/ttyUSB2
It is because you're using the wrong Arduino pin when trying to toggle the LED. You're using 15 instead of 13. 15 is the physical pin of that particular package.
I have an ATmega128 micro-controller and i am trying to just program it!
I successfully program it with MegaCore boot loader (because the LED is blinking twice every second) using Arduino as isp programmer. then when i upload the following code on it (again with arduino as isp), the led does not blink
but when i program the I/O registers myself, the led works correctly. the following code works:
i'm not sure where is the problem
also there is another problem with programming the micro-controller, after uploading the boot loader (MegaCore), i can't program it by USB to serial module. AVRdude's logs say that the response code is wrong:
this is my usb to serial module(its rx tx leds blink when i try program the mcu):
https://www.aliexpress.com/item/2038553639.html
The text was updated successfully, but these errors were encountered: