Hardware: A-Star 32U4 Prime SV microSD with LCD (https://www.pololu.com/product/3115)
Software: Arduino IDE 1.8.3, AStar32U4 —>BlinkLEDs
Problem: Unable to upload sketch
Sequence of events:
- Uploaded BlinkLEDs successfully.
- Uploaded the following modified/new blink LEDs successfully
the modified/new sketch:
#include <avr/io.h>
#include <util/delay.h>
int main (void)
{
DDRC |= (1<<DDC7);
while (1)
{
for (int i = 0; i<20; i++)
{
PORTC |= (1<<PORTC7);// led on, high
_delay_ms(50);
PORTC &= ~(1<<PORTC7); // led off, low
_delay_ms(50);
}
_delay_ms(500);
}
}
- Uploading the AStar32U4 – BlinkLEDs failed. No COM port for the board.
- Reinstalled A-star driver and library (https://www.pololu.com/docs/0J61/6.1)
- Still failing, same as #3
- Used the reviving procedure “The uploading-before-bootloader method” (https://www.pololu.com/docs/0J61/10.1)
- Uploaded the AStar32U4 – BlinkLEDs successfully. COM12 in Device Manager and Arduino IDE (Tools)
- Uploaded the AStar32U4 – LCDBasics successfully.
- Uploading the AStar32U4 – BlinkLEDs failed
- Repeated #6, worked again.
- Uploading the AStar32U4 – BlinkLEDs failed again.
- Repeated #6, still failing, didn’t work. Tried the reviving procedure “The bootloader-before-uploading method” (https://www.pololu.com/docs/0J61/10.1). still failing.
Also tried to use different usb ports, powered on/off my computer (Windows 10), but all failed.
Last few lines of Arduino IDE message:
...
Using library AStar32U4 at version 1.0.5 in folder: C:\Users\AnotherPCuser\Documents\Arduino\libraries\AStar32U4
Sketch uses 5792 bytes (20%) of program storage space. Maximum is 28672 bytes.
Global variables use 192 bytes (7%) of dynamic memory, leaving 2368 bytes for local variables. Maximum is 2560 bytes.
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
PORTS {COM3, } / {COM3, } => {}
Couldn't find a Board on the selected port. Check that you have the correct port selected. If it is correct, try pressing the board's reset button after initiating the upload.
What did I do wrong? Any help would be appreciated.
(Note: the sequence of events number were from 1 to 12 in my post. But the actual post display separated the numbers, resulting in 1 to 2, then 1 to 10)