Welcome to Multi-Rotor UK. Please login or sign up.

Friday,April 26, 2024, 15:51:34

Login with username, password and session length

Shoutbox

Gaza07:
23 Apr 2024 08:09:45
The Domain expires for the forum in 60 days, I'm not going to renew it this time unless I see any activity  :beer2:
Gaza07:
20 Apr 2024 18:02:50
Is there anyone who would like to see this forum stay open ? :shrug:
hoverfly:
17 Apr 2024 17:15:13
 :rolleyes:
Bad Raven:
26 Mar 2024 08:41:05
 :(
Andy7:
25 Mar 2024 14:49:21
An excess of work and rain.  :thumbdown:
Bad Raven:
23 Mar 2024 18:12:38
Almost a personal Blog, it would seem. LOTS of members, but NO posts.  :-/   :shrug:
Gaza07:
06 Mar 2024 16:59:49
Anyone still here  :shrug:
ched:
24 Dec 2023 11:48:48
Hope you all have a Great Christmas and a happy New Year.
Bad Raven:
20 Dec 2023 06:17:47
 ~~   :beer2: 
Gaza07:
19 Dec 2023 22:20:27
Merry Christmas All  :beer2:
Members
  • Total Members: 8,195
  • Latest: lokloks
Stats
  • Total Posts: 201,427
  • Total Topics: 20,261
  • Online today: 24
  • Online ever: 530
  • (Tuesday,June 26, 2012, 08:34:46 )
Users Online
Users: 0
Guests: 27
Total: 27

Theme Changer





3d - Printworx

Error when trying to upload to BV

Started by sturgm, Wednesday,July 18, 2012, 19:10:47

Previous topic - Next topic

sturgm

I have just compiled a ver of Megapilots and tried to upload it to the board.  As this is my first try I expected an error and got one

avrdude: stk500_getsync(): not in sync: resp=0x78

I was wondering do I have to power the board up to upload the code?

any thoughts?

Gaza07

yes you need to power the black vortex as it wont take any power from the usb, another bad design  :rolleyes:
I used a ubec on mine as if you power direct from a 3s lipo the built in voltage regulator gets hot  :o
I have the ubec wired to a balance plug using the first and last wire, so I can power the board with out plugging in the main power to the esc,s  ~~
[url="https://www.youtube.com/channel/UCN6zN99iLCIJea5FCQPKf_g"]YouTube[/url]   [url="https://www.printing-3d.co.uk"]printing-3d[/url]  [url="https://www.thingiverse.com/Gaza07/about"]Thingiverse[/url]  [url="https://www.3d-printworx.co.uk"]3d-printworx[/url]

sturgm

Thanks for that.  I also have a ubec set to 6v which is split between the rc and the BV but not for the reason you mentioned.
The main reason for me was one of interference from the ESC's.  I had read some articles about this and it seemed like a good idea.
My one reservation was whether the BV would like a 6v supply.  It all seems fine at the moment but is still is early days for me.

Mike

Gaza07

Have you uploaded the new version of Mpng to your board ? did the new boot loader work ok
[url="https://www.youtube.com/channel/UCN6zN99iLCIJea5FCQPKf_g"]YouTube[/url]   [url="https://www.printing-3d.co.uk"]printing-3d[/url]  [url="https://www.thingiverse.com/Gaza07/about"]Thingiverse[/url]  [url="https://www.3d-printworx.co.uk"]3d-printworx[/url]

sturgm

I compiled up the 2.5.5_R2 and noted the size of 133K so I disabled CLI_ENABLED and then compiled again and got 118K so I intend to upload this and play with it for a while (if it works that is!).  I intend to flash the new bootloader soon, once I have looked at the Mpng code a bit more as it seems a bit 'twitchy' in the MP just sitting there.
As I might of mentioned before it not the flying that interests me but the construction process.

Mike

sturgm

Well today has not been too good for me.  I uploaded my compiled version to the BV board.  It did not respond to anything except when plugged into the MP it did download all the variables and it did level and showed movement on the screen. No radio comms at all.  So I gave up on that and thought I would upload a new bootloader using my AVRisp mkiII.  only to discovery some hours later that there is a bug in the program and it cannot use that programmer.  So I downloaded and installed studio 4.  Eventually got that to go and manually uploaded the bootloader and modified the fuses to the recommended values.  Tried to upload the complied firmware but no go.  Went back to check the bootloader no go.  So I now have a board that will not load the firmware or any bootloader

Any thoughts ? anybody

Mike

Gaza07

The boot loader is only used when you upload a new sketch and has no affect on the firmware running, so the problem wouldnt have been that, what I have found with the new firmware is you need to do the erase and reset from the cli,
Try to re upload the boot loader again using your Usbasp, I tried it with mine and got a few more errors than when I used the UsbTiny but the errors are  just a warning about slk or something like that and the single mismatch one same as the usbtiny,
Give it a go you cant make it worse, the other thing is some time ago I uploaded a boot loader to a flyduino the same chip as the bv using the avrisp ii and it worked fine, I wonder if a slightly older version of arduino might work for you   
[url="https://www.youtube.com/channel/UCN6zN99iLCIJea5FCQPKf_g"]YouTube[/url]   [url="https://www.printing-3d.co.uk"]printing-3d[/url]  [url="https://www.thingiverse.com/Gaza07/about"]Thingiverse[/url]  [url="https://www.3d-printworx.co.uk"]3d-printworx[/url]

sturgm

At the moment I can do nothing with the board.  I cannot connect in MP.  I can see the rx led showing traffic buts nothing else.  Trying to upload a bootloader anyway has no effect as it will not talk.  In Avr studio 4 I cannot even read the signature.  It really does seem like fuses to me :(  I am at a loss

Mike

Gaza07

Sounds like you may have had a fuse set wrong in avr studio, if you connect back on to the 6 pin header with the UsbAsp and do the upload from arduino like before it might reset the chip, because i think it does an erase before writing but I dont know for sure
[url="https://www.youtube.com/channel/UCN6zN99iLCIJea5FCQPKf_g"]YouTube[/url]   [url="https://www.printing-3d.co.uk"]printing-3d[/url]  [url="https://www.thingiverse.com/Gaza07/about"]Thingiverse[/url]  [url="https://www.3d-printworx.co.uk"]3d-printworx[/url]

sturgm

I wish I could but I have never been able to get the arduino via avrisp to download anything it always comes back with an error like
usbdev_open(): did not find any usb device "usb"
or
stk_500 getsync(): not in sync: resp:0x00

so there you have it.  At the moment I have run out of ideas.

Mike

MadMax

In gaza07s post he said to try the usbasp again through arduino not the avrisp or am I reading it wrong

sturgm

I have been all over the internet over the last few days and as such have ordered various electronic bits and bobs.  This is because the general impression is that the fuses that have been corrupted, control whether the Atmega250 should use the internal clock or an external clock.  So when powered up it just sits there waiting for a an external clock signal. I built a square wave generator but with the parts I had at hand I could only get it up to 100 Khz and I need about 1Mghz hence the ordering of more parts.  Even with this low frequency connecting to the clock in pin I managed to get a bit more life from the CPU. Eg some extra leds.
If this does not work then it's in the bin!

Mike

secretman

i get a weird problem like your's, i cant upload nothing to the board from arduino, but i can plug wingui and change setting see real time data from multiwii kind on weird some one have an idea?

Gaza07

Hi secretman and welcome to the forum Mike actually bricked his board with the wrong fuse settings,
I think yours is a faulty FTDI chip or your 2560 has just somehow got locked up,
A lot of flight controllers have a reset button but the black vortex doesnt, I have looked at my black vortex and cannot see any way of resetting it  :shrug:
[url="https://www.youtube.com/channel/UCN6zN99iLCIJea5FCQPKf_g"]YouTube[/url]   [url="https://www.printing-3d.co.uk"]printing-3d[/url]  [url="https://www.thingiverse.com/Gaza07/about"]Thingiverse[/url]  [url="https://www.3d-printworx.co.uk"]3d-printworx[/url]

secretman

ya if there is a way to put a reset ,im in for testing lol
but my bv work #1 i just can't upload new version, and i can't change my gimbal servo to 160hz lol my analog dont like 400hz :P
i just move in my new house, and all my stuff is every where or pact i want to resolder headers pin for trying to flash the bootloader again. we will see....
have a good day

icedfusion

Are you able to do the HiVoltage Fuse writing? This apparently allows you to reset the fuses with, you guessed it, a hi voltage but you need a programmer capable of doing this type of programming. Made for situations as you described.

ice.

secretman

ok i gor the solution! sir alex help me  a bit mouhahaha
on the isp headers use the reset pin and grnd it for a hard reset,  and before the starting sequence end you need to upload et voila! :)