NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.
Support Forum » Initialload programming error
May 20, 2011 by aibrahim9386 |
All, I received the following error message when trying to compile the initialload.c program. Any ideas? I noticed the baudrate of the makefile was 115200 and my COM port was set at 9600 but that didn't resolve the issue. |
---|---|
May 20, 2011 by Rick_S |
115200 is the correct baud - the 9600 you see in Windows properties is not what software uses, it's just a generic default for Windows. The micro and avrdude by default NK configuration will use 115200. As for the error you are getting, it is the most common error we see around here and help has been given MANY times... However, what that error essentially means is that the PC and micro are not talking to each other. This can be caused by A LOT of different scenarios.
There may be some I missed, but those are probably the most common. If you still can't get it, pictures of the setup with your USB cable connected can be helpful. Rick |
May 20, 2011 by hevans (NerdKits Staff) |
The "Huh? Go" in the error message definitely means your chip was not in programming mode when you attempted to program. Make sure the programming switch is in place, flipped to the right position, and reset power to the chip so it boots into programming mode. You should see two black bars on the LCD when you are in programming mode. Humberto |
May 21, 2011 by aibrahim9386 |
Thanks to the both of you. I've recycled power, and unplugged/plugged the MCU back into the board. When I recycled power, I finally got the "programming mode". Thanks guys. On to the next project - temp sensor!!!!! Again, Thank you! |
May 28, 2011 by Ron1957 |
I am getting an initial program load error too. It worked the first time but I had changed the output to the display and some of it was too wide to fit on the screen and bled over. I corrected the program and tried to recompile and load but this is what I get... / ---------------------------------------------------------------------------------- / user@user:~/AVR/code samples/Code/initialload$ make
make -C ../libnerdkits
make[1]: Entering directory Connecting to programmer: . Found programmer: Id = "FDL v02"; type = S Software Version = 0.2; No Hardware Version given. Programmer supports auto addr increment. Programmer supports buffered memory access with buffersize=128 bytes. Programmer supports the following devices: Device code: 0x35 avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.01s avrdude: Device signature = 0x1e9406 avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option. avrdude: erasing chip avrdude: error: programmer did not respond to command: chip erase make: *** [initialload-upload] Error 1 I haven't read up much on AVRDUDE but not even sure where the -D option is in the command line or if I added it, it would just write to the MCU and bypass the erase all together. |
May 28, 2011 by missle3944 |
Hi Ron1957, That could mean a wiring error. Also check to make sure your makefile is correct and your com ports are OK. I do remember experiencing that same problem when I first got my nerdkit.
|
May 29, 2011 by hevans (NerdKits Staff) |
Hi Ron1957, In addition to missile3944's suggestion I would also check the battery. The fact that it is getting through the read cycle, but then failing on the write cycle makes me think the battery might be low. It takes way more current to write to flash than it does to read from it. Humberto |
May 30, 2011 by Ron1957 |
Thank you Humberto and missle3944, I will try a new battery and see if that works. First, I will check the wiring again. I did have some trouble before and put everything back together again and got the original message flashed by the Nerdkit team. I am using tweezers to put everything together. Wished the breadboard were larger. Ron1957 |
Please log in to post a reply.
Did you know that there are Power MOSFETs for switching big loads on and off? Learn more...
|