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

Tuesday,June 25, 2019, 00:19:23

Login with username, password and session length

Shoutbox

ched999uk:
22 Jun 2019 14:56:09
who??  :laugh:
Slayer23:
22 Jun 2019 11:48:18
guess whos back
 :laugh: :laugh:
atomiclama:
18 Jun 2019 10:41:40
Luckily wasn't that far out and managed to bring it back LOS  :sweating: So now need to coat the reset of my kit. :laugh:
atomiclama:
18 Jun 2019 10:40:51
Stuff it, yesterday I was going to fly rain or no rain, guess what it was raining, still went out. Quad is all conformal coated so I thought lets give it ago. Quad was fine VRX strapped to the top of me goggles wasn't Didn't think to coat that.
Bad Raven:
12 Jun 2019 19:43:40
You didn't break rules, its just difficult to follow lengthy posts here, better in a proper thread.
ChrisKz:
12 Jun 2019 18:43:54
Thanks Ched ... BR . sorry if I broke rules
ched999uk:
12 Jun 2019 18:41:18
Cheers BR
Bad Raven:
12 Jun 2019 18:39:58
Shout box not ideal for discussions!  BMFA affiliated clubs do not HAVE to force achievement tests no more than they HAVE to allow any specific type of model. There are plane only, there are Heli only, etc.
ched999uk:
12 Jun 2019 18:30:21
Seems to be a pv club in IP6 here: https://www.facebook.com/groups/1483581111957310/
ChrisKz:
12 Jun 2019 17:38:49
I'm with u on that one ched .  I'm in no hurry to purchase one yet , I like to do a little research as to what is out there . Insurance is a must anyways . I shoot pcps so always covered
Members
  • Total Members: 8046
  • Latest: ayush05
Stats
  • Total Posts: 195996
  • Total Topics: 19717
  • Online Today: 55
  • Online Ever: 530
  • (Tuesday,June 26, 2012, 08:34:46 )
Users Online
Users: 0
Guests: 19
Total: 19

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  ~~

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

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   

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

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:

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! :)