Problem flashing SDK 3 with build configuration "AscTec Simulink Toolkit"

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem flashing SDK 3 with build configuration "AscTec Simulink Toolkit"

userhummingbird
This post was updated on .
Hello,
I am trying to flash the code of the "onboard_matlab.mdl" in the Asctec Hummingbird with Windows 7 but after clicking "debug" show the error "C:\AscTec SDK V3.0\main.elf not found"

Any advice?
Thanks

version of firmware:
HL v3.11
LL v.3.12

I tried with SDK 2 and the error was the same.

-Note: When I import the project appear the following warning:
Description Resource Path Location Type
Error launching external scanner info generator (gcc -E -P -v -dD C:/eclipse workspace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.c) AscTec_SDK_v3.0 Unknown C/C++ Problem

-Printscreen below
Reply | Threaded
Open this post in threaded view
|

Re: Problem flashing SDK 3 with build configuration "AscTec Simulink Toolkit"

andre@asctec
Hi,

it looks like your code did not compile correctly. Consequently, you don't have the main.elf program file which can be flashed onto the UAV.
Please right click on the "AscTec_SDK_v3.0" and select "Clean Project". This should trigger a rebuild sequence of the code. Afterwards, check the "Console" window for an error message. Please copy it here for further analysis of your problem.

Note that the your folder structure should be as follows:
EclipseWorkspace/AscTec_SDK_v3.0
EclipseWorkspace/custom_mdl

If this is not the case, the SDK won't find the compiled files from Matlab/Simulink.

Also make sure you created C-Code from the onboard_matlab.mdl before running the SDK build process. The C-Code generation is descibed here: http://wiki.asctec.de/display/AR/Simulink+Toolkit+Manual#SimulinkToolkitManual-GeneratingC-codefortheAscTecSDK

Cheers,
Andre
Andre Ryll
AscTec Application Engineer
Reply | Threaded
Open this post in threaded view
|

Re: Problem flashing SDK 3 with build configuration "AscTec Simulink Toolkit"

userhummingbird
This post was updated on .
Hello Andre,

I have the following error in console:


I understand that it doesnt compile and that is why I dont get the main.elf file. Same result with AutoPilot_HL-Simulink_SDK_v2.0. For generating the code in Matlab 2013b I have to go to "Code -> C/C++ Code -> Build Model". I use the default "onboard_matlab.mdl" without changes.

Question: What I can do know?

Thanks

***********************************************************************

EDIT: After closing the project, opening again and cleaning, it builds correctly. Thanks Andre!