dave
New Member
Posts: 8
|
Post by dave on Jun 18, 2023 14:22:29 GMT
Hi I seem to have gone through the steps correctly. Downloaded cal.h etc and can see that on the screen. Arduino Nano seen on Com 3 but when I try to upload - 10 minutes and nothing. The tx light just blinks nothing on rx. LED next to Tz on all the time and the lower one slowly flashes. Thoughts please as this is really confusing me!
|
|
|
Post by Rowan on Jun 18, 2023 15:28:51 GMT
Hi Dave,
What actually happens when you press upload? If it's successful the terminal window at the bottom of the IDE should read 'avrdude done. Thank you.' at the bottom. If it isn't successful it will give an error.
What you're describing with the lights actually sounds like it's programmed perfectly and you can move on to setting up the bluetooth.
|
|
dave
New Member
Posts: 8
|
Post by dave on Jun 19, 2023 8:32:18 GMT
Rowan, I pressed the upload button - and went through the top menu. It checked it then the uploading box appeared and that was it. Nothing else happened. In the bottom corner it shows Arduino Nano but not the processor info Atmega328P
|
|
dave
New Member
Posts: 8
|
Post by dave on Jun 19, 2023 8:40:02 GMT
Rowan, I pressed the upload button - and went through the top menu. It checked it then the uploading box appeared and that was it. Nothing else happened. In the bottom corner it shows Arduino Nano but not the processor info Atmega328P
|
|
|
Post by Rowan on Jun 19, 2023 9:14:25 GMT
It's very odd that no text has appeared in the console at the bottom half of the screen. Does anything appear if you go into settings and tick the boxes for Verbose Compiling and Verbose Uploading?
Is this a fresh arduino or one that has been used on an eChook before? IF it was a fresh one, then the LEDs are doing what they should for a programmed one and I think the upload has actually worked.
|
|
dave
New Member
Posts: 8
|
Post by dave on Jun 19, 2023 14:58:30 GMT
Weird - tried it and it work with bluetooth and phone. The tried with the school laptop and with system manager to give permissions\!! and got error ! Will try at home again and report back!
|
|
dave
New Member
Posts: 8
|
Post by dave on Jun 22, 2023 11:11:33 GMT
OK - tried again but having the board removed from the pcb- all I get is uploading in a white box and nothing else. In the bottom RHS of the IDE it says Arduino Nano on Com 7 but does not show ATmega328P - after a while I get Sketch uses 9554 bytes (31%) of program storage space. Maximum is 30720 bytes. Global variables use 472 bytes (23%) of dynamic memory, leaving 1576 bytes for local variables. Maximum is 2048 bytes. avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x45 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x45 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x45 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x45 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x45 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x45 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x45 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x45 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x45 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x45 Failed uploading: uploading error: exit status 1 any thoughts?
|
|
dave
New Member
Posts: 8
|
Post by dave on Jun 22, 2023 11:40:39 GMT
Rowan - It's very odd that no text has appeared in the console at the bottom half of the screen. Does anything appear if you go into settings and tick the boxes for Verbose Compiling and Verbose Uploading? Where is that? DAve
|
|
|
Post by keduro on Jun 22, 2023 12:11:05 GMT
I'm not at my computer to check at present but I have a vague memory of perhaps something similar when I had not selected the 'old bootloader' for one of our older eChooks. May be worth a try?
|
|
|
Post by Rowan on Jun 22, 2023 13:05:40 GMT
Hi Dave,
That text you've pasted is from what I'd call console at the bottom of the screen! Sorry for the misunderstanding.
The error you're seeing is it's trying to communicate with the Arduino and not getting the expected response. This can happen for a few reasons - 1. The bluetooth module is connected (Not your issue if the Arduino isn't in the board) 2. The wrong COM Port is selected (Does COM7 disappear when you unplug your arduino?) 3. The wrong arduino selected (Your sounds correct though), 4. Or as Keith suggests above, the wrong bootloader selected. If you go into Tools>Processor and select "ATmega328P (Old Bootloader)" that might be the fix.
Fingers Crossed!
|
|
dave
New Member
Posts: 8
|
Post by dave on Jun 22, 2023 15:36:36 GMT
Tried both bootloader but nothing. Just had the IT chaps in to play with device manager - Com 7 with Ch (something!!) but still the same - am taking it back tonight to try on home pc - can feedback tomorrow. Also - my earlier post about verbose etc -was copied from your earlier post!! - here again It's very odd that no text has appeared in the console at the bottom half of the screen. Does anything appear if you go into settings and tick the boxes for Verbose Compiling and Verbose Uploading? Thanks again
|
|
|
Post by Rowan on Jun 22, 2023 20:07:21 GMT
Sorry, I'm getting confused What worked with the bluetooth and phone? If it's sending data to the phone then the Arduino is programmed. The only reason you'd need to program it with the IDE again is to alter the calibration.
You're not getting any output, but you did get the avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x45 etc... feedback from the quoted post? That is the feedback you should be getting - even it it's feedback that there is an error that gives us something to work with.[/div] Can you post a screenshot of what you get / the white box?
A successful upload should look like this: (Verbose mode turned on in settings | don't worry about the code - this is slightly different to what you'll have)
And the error trying an upload with the wrong bootloader selected: If you are getting no text at all in that output / console window I suspect it's an IDE error and I'd recommend reinstalling the Arduino IDE. If that doesn't work maybe try using the online version, or the older version for windows and see if that changes anything.
If you're still struggling drop me an email (address in signature) and we can do a phone call early next week to get it up and running.
|
|
dave
New Member
Posts: 8
|
Post by dave on Jun 26, 2023 14:52:14 GMT
Well - it now works!!! I deleted the IDE and also all associated files on the computer at home and went through the process again. I assume I did something different but not sure what it was!! I uploaded the program and it worked- had to use the old processor as noted in the help guides. Back at school today and we have set up the current monitor - works - we have made a holder for the Halls probe and mounted the magnets - it works too -all now fitted to the car and ready for our next race in September. Thanks to Rowan for the help above and via email. Do you want to see how we have mounted the kit to the car?
|
|
|
Post by Rowan on Jun 26, 2023 15:00:52 GMT
Awesome, thanks for the update. I'm always keen to see how they're fitted to cars
|
|