SpellFoundry / SleepyPi

Power Management board for Raspberry Pi
19 stars 4 forks source link

Unable to Write Using External Programming Adapter #1

Open kiteboy opened 7 years ago

kiteboy commented 7 years ago

Hi not sure if somebody can help Just soldered up the external programming adapter and installed sthe TTL 232R Drivers FTDI Version 2.12.26.0 and its detected on port 3 fine However when choosing the Arduino FIO in the IDE all I can get is the following using the Bare Minimum example script :

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x30 avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x20 avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x30 avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x20 avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x30 avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x20 avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x30 avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x20 avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x30 avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x20

Tried various boards in the arduino IDE and also editing the boards.txt but when I do that I get an error as below

Warning: Board arduino:avr:sleepypi doesn't define a 'build.board' preference. Auto-set to: AVR_SLEEPYPI Bootloader file specified but missing: C:\Program Files (x86)\Arduino\hardware\arduino\avr\bootloaders\ATmegaBOOT_168_atmega328_pro_8MHz.hex Sketch uses 444 bytes (1%) of program storage space. Maximum is 30720 bytes. Global variables use 9 bytes of dynamic memory. Error while uploading: missing 'upload.tool' configuration parameter

Can somebody help - seems like a waste at the mo

Would love to get this working Thanks

bjoernbusch commented 5 years ago

I'm facing the same issue (2 years after this issue has been filed without answer...) on a Mac with the latest version of Arduino IDE. The board is detected on the USB port, so it's in theory operational, but I can't upload anything.

SpellFoundry commented 5 years ago

Hi Bjoern,

Sorry to hear that, I didn’t realise you were still having problems. By the sounds of it, the board isn’t being reset before upload - this can definitely cause those messages. This could very well be a hardware issue rather than software Mac / Arduino IDE issue.

I’d first check the programming board that everything is soldered ok. If there’s nothing there, then you can try manually resetting the board using the small black reset button, at the point of upload - hit the Upload, then as quick as possible hit the reset (or try it the other way around as I think the bootloader is active for about 1/2 a second). It’s a bit of a juggling act and may take a few goes, but it can be done and that would then suggest a reset issue.

Let me know if this sheds any light on it.

Kind regards

Jon

On 7 Jun 2019, at 21:04, Bjoern Busch notifications@github.com wrote:

I'm facing the same issue (2 years after this issue has been filed without answer...) on a Mac with the latest version of Arduino IDE. The board is detected on the USB port, so it's in theory operational, but I can't upload anything.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

bjoernbusch commented 5 years ago

ok, I found the issue, it was due to an issue with the power supply. I exchanged it with another one and now it's properly uploading just fine.

Resolved for me.

bytesandbolts commented 5 years ago

I ran into a very similar error for over a year which I eventually figured out, I made an assumption that you didn't need to provide external power to the sleepyPi board while flashing which turned out to be wrong. Once I connected the micro USB, all was good haha.