I'm trying to upload to a newly soldered APM and getting the same error every time. I'm using a macbook pro with fusion 3.1.2 and APM Mission Planner 1.0.20

 

Here is what I'm getting. Any ideas? I've never had a problem communicating with it via arduino.

 

Views: 154

Reply to This

Replies to This Discussion

it apears to be erroring in the download phase.
there are 2 posible issues.

firstly the comport is in use/not open like it says.

the second is the apm might be browning out. do you have a receiver/servos pluged in. if so please remove them and try again OR power the servo rail, to make sure that a brown out wont occur. Ive added more error message in the next version of tha planner, so can identify where its failing.

I found the device manager settings and found my baud rate was 9600 and RTS on close was not checked. I've set it now to 115,200 and RTS on close √ but I get the dialog saying Timeout in 24 and it stops on 24.
I was only powering it via USB and nothing else hooked to it. Now I hooked up a 10A BEC but I'm getting the same error. I'm using fusion on a mac which is slow with 4GB ram. Is there a mac version of Mission Planner?
Well I see there is not a mac version. Is it too much for Fusion on macbookpro with 4GB ram? I'm wondering if the usb port is having trouble keeping up. I've never had a problem using it with configurator and arduino but maybe APM Planner needs more resources? Any mac users can comment?
try downloading mono 2.10 or 2.8, and giving it a shot.
I've never seen mono before but am downloading it now. This will allow me to run this on the mac side?

it *should*

you need to goto load the main .exe with mono.
im not sure if it still works or not.

I installed mono runtime but I'm not finding any app called mono so I can open the main.exe. Do you know where it installs it or am I missing something else to install? I'm using the latest os x 10.6,8

I was looking into this a few months ago and at least then there was a confirmed Mono glitch when it comes to Serial ports on OSX and probably Linux. I could never get past that error. Since Mono is an open source copy of .NET it still struggles at the fringes of functionality (like dealing with low level OS access to things like serial, even if it's USB to serial). I bet it's fixed in a future version, but not sure where it is on priority list. here's a real old, slightly related forum I found Googling: http://www.gotmono.com/cgi-bin/yabb/YaBB.pl?num=1115393297

 

Also, I launched the program in the Terminal - try typing mono (space) and then dragging the file into the terminal windows, which should copy the path to the exe. I think I also could click and drag the .exe to mono somehow too. But the install may be ending up in the hidden 'system' side of things. I've rebuilt that computer since so not sure.

I tried opening it with terminal like you said but get a bunch of errors.

 

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.WindowsFormsSynchronizationContext ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.ThemeEngine ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.ThemeWin32Classic ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.KnownColors ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: /Library/Frameworks/Mono.framework/Versions/2.10.2/lib/libgdiplus.dylib  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)  at System.Drawing.GDIPlus..cctor () [0x00000] in <filename unknown>:0   --- End of inner exception stack trace ---  at System.Drawing.KnownColors..cctor () [0x00000] in <filename unknown>:0   --- End of inner exception stack trace ---  at System.Drawing.Color.get_Black () [0x00000] in <filename unknown>:0   at System.Windows.Forms.ThemeWin32Classic..cctor () [0x00000] in <filename unknown>:0   --- End of inner exception stack trace ---  at System.Windows.Forms.ThemeVisualStyles..ctor () [0x00000] in <filename unknown>:0   at System.Windows.Forms.ThemeEngine..cctor () [0x00000] in <filename unknown>:0   --- End of inner exception stack trace ---  at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () [0x00000] in <filename unknown>:0   at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0   at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor ()  at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000] in <filename unknown>:0   --- End of inner exception stack trace ---  at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0   at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in <filename unknown>:0   at System.Windows.Forms.ContainerControl..ctor () [0x00000] in <filename unknown>:0   at System.Windows.Forms.Form..ctor () [0x00000] in <filename unknown>:0   at ArdupilotMega.MainV2..ctor () [0x00000] in <filename unknown>:0   at (wrapper remoting-invoke-with-check) ArdupilotMega.MainV2:.ctor ()  at ArdupilotMega.Program.Main () [0x00000] in <filename unknown>:0 bash-3.2$

I've used mission planner quite a bit in fusion with no problems, in virtual xp, server 03, and win 7 under snow leopard. Does Arduino connect inside fusion? I'm assuming you have latest ftdi drivers in windows. Does the cli mode work in either Arduino or mission planner in fusion? It's a bit tougher to get the mavlink/ fly mode comm working since the boot sequence makes that connection more difficult, but cli terminal mode is pretty bulletproof. 4 gb of RAM should be fine as long as Windows gets a gig or 2. Your screenshot baud rate looks wrong for stock usb settings, should be faster.

I'm a .net developer during the day and your mono error seems to be due to the newer mission planner using new libraries not available in mono, but its tough to tell. I might try again with sudo command in terminal, to rule out permission issues, but mono isn't conducive to the latest and greatest. Kind of like Wine or real java vs the open source that comes with Linux.

RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service