Code and dev environment

News, Setup, Compiling, Flashing, Development

Re: Code and dev environment

Postby afernan » Sat Jun 22, 2013 6:02 pm

deleted
Last edited by afernan on Tue Jul 02, 2013 11:26 am, edited 1 time in total.
afernan
 
Posts: 1214
Joined: Sat Jul 07, 2012 5:24 pm
Location: Madrid, Spain

Re: Code and dev environment

Postby SuperSharpShooter » Sun Jun 23, 2013 3:23 am

What do I need to do to get the 'make' command to be available?

I've read Angel's 'makefile tips' pdf, and followed the instructions, but there must be something missing.

I've copied my crossworks installation to c:\cw, and added c:\cw to my path environment variable in windows, but if I open a command prompt and type 'make' I just get ''make' is not recognized as an internal or external command, operable program or batch file."

It doesn't look like there's even a command called make in the crossworks folder anyway. Does it come from somewhere else?

What am I doing wrong?
-Glenn
SuperSharpShooter
 
Posts: 276
Joined: Sat Jan 12, 2013 9:44 pm

Re: Code and dev environment

Postby Max » Sun Jun 23, 2013 4:30 am

Hi Glenn,

You'll need to install "make" for Windows from somewhere. I use Yagarto Tools, but there's also cygwin and (probably simpler) MinGW, to name a few. CW doesn't come with it.

-Max
Max
 
Posts: 2814
Joined: Mon Aug 13, 2012 9:45 pm
Location: Near Ithaca, NY, USA

Re: Code and dev environment

Postby SuperSharpShooter » Sun Jun 23, 2013 4:49 am

Thanks for that Max, I had Yagarto installed, but didn't have Yagarto tools.

It's working now.
Cheers
-Glenn
SuperSharpShooter
 
Posts: 276
Joined: Sat Jan 12, 2013 9:44 pm

Re: Code and dev environment

Postby Max » Sun Jun 30, 2013 12:29 am

Here's how to update your Makefile environment to build AQ firmwares r187+.

Download CW 2.3.2, install, run, and make sure all your packages are updated.

If you copied the compiler stuff from CW install to a separate folder previously, do that again now (gcc, include, & lib folders).

Find your CW user folder/files, where your packages are installed. On Windows 7, mine is in "C:\Users\<my_user_name>\AppData\Local\Rowley Associates Limited\CrossWorks for ARM\packages"

You need to update all the files in your STM32 folder used for the build. Copy from --> to:

  • targets/CMSIS_3/Include/*.h --> STM32/include
  • targets/STM32/include/stm32f4xx.h & system_stm32f4xx.h --> STM32/include
  • targets/STM32/STM32_Startup.s & STM32F2XX.vec --> STM32

You will also need the updated loader file (SMT32f4.ld). This is generated when you build AQ firmware using CW and found in the build folder as aqv6.6.ld. I've also attached it here. This goes into your STM32 folder, replacing the existing one.

That should be all you need. As usual, please respect that some of the libraries and code used here are Rowley's IP, and please support their products and continued development efforts.

Cheers,
-Max
Attachments
STM32f4.ld.zip
(2.15 KiB) Downloaded 220 times
Max
 
Posts: 2814
Joined: Mon Aug 13, 2012 9:45 pm
Location: Near Ithaca, NY, USA

Re: Code and dev environment

Postby Max » Mon Dec 16, 2013 10:02 am

Here's the updated STM32 folder for building latest AQ SVN version with latest CW packages. New startup scripts and linker definitions.

Also includes everything needed to build ESC32 firmware (with Makefile).

Cheers,
-Max
Attachments
STM32.zip
(213.89 KiB) Downloaded 239 times
Max
 
Posts: 2814
Joined: Mon Aug 13, 2012 9:45 pm
Location: Near Ithaca, NY, USA

Re: Code and dev environment

Postby skew » Sun Mar 30, 2014 4:09 pm

Code: Select all
 ./build/Release/obj/serviceReq.o ../build/Release/obj/task.o ../build/Release/ob
j/time.o ../build/Release/obj/timer.o ../build/Release/obj/utility.o ../build/Re
lease/obj/usb.o ../build/Release/obj/usb_bsp.o ../build/Release/obj/usb_core.o .
./build/Release/obj/usb_dcd.o ../build/Release/obj/usb_dcd_int.o ../build/Releas
e/obj/usbd_core.o ../build/Release/obj/usbd_desc.o ../build/Release/obj/usbd_ior
eq.o ../build/Release/obj/usbd_req.o ../build/Release/obj/usbd_storage_msd.o ../
build/Release/obj/usbd_cdc_msc_core.o ../build/Release/obj/usbd_msc_bot.o ../bui
ld/Release/obj/usbd_msc_data.o ../build/Release/obj/usbd_msc_scsi.o x:/cw/lib/li
bm_v7em_fpv4_sp_d16_hard_t_le_eabi.a x:/cw/lib/libc_v7em_fpv4_sp_d16_hard_t_le_e
abi.a x:/cw/lib/libcpp_v7em_fpv4_sp_d16_hard_t_le_eabi.a x:/cw/lib/libdebugio_v7
em_fpv4_sp_d16_hard_t_le_eabi.a x:/cw/lib/libc_targetio_impl_v7em_fpv4_sp_d16_ha
rd_t_le_eabi.a x:/cw/lib/libc_user_libc_v7em_fpv4_sp_d16_hard_t_le_eabi.a --end-
group
../STM32/autoquad.ld:333: undefined symbol `__do_debug_operation_mempoll' refere
nced in expression
make: *** [../build/Release/aqv7.0.r368.b1698-hwv6.0.elf] Error 1

X:\AQ\R368\onboard>


I have a new DIMU on the way!! so I am updating all of my compiler files to play with newer versions of firmware. I get the same error in compiling Windows or Mac OS. Anyone have a suggestion to fix it ?
skew
 
Posts: 181
Joined: Sun Oct 14, 2012 1:30 am
Location: Morehead, Ky

Re: Code and dev environment

Postby Max » Sun Mar 30, 2014 5:34 pm

Not sure, sounds like a version mismatch somewhere. Updated to CW 2.3? Using the STM32 folder from my post above? I don't think anything has changed since December last year, so it should work... :)

-Max
Max
 
Posts: 2814
Joined: Mon Aug 13, 2012 9:45 pm
Location: Near Ithaca, NY, USA

Re: Code and dev environment

Postby skew » Sun Mar 30, 2014 7:44 pm

I got it working deleted everything and re installed works fine again something must have been corrupted. Thanks
skew
 
Posts: 181
Joined: Sun Oct 14, 2012 1:30 am
Location: Morehead, Ky

Re: Code and dev environment

Postby Dju » Tue Apr 22, 2014 4:09 pm

Hi everybody

I'm new here and I need an information about the autoquad code.
I use VR Universional IDE and I want to create and add my own flight mode to the autoquad autopilot system.
But I'm not sure to use the last autoquad source code update.
With the autoquad website I coudn't find the source code so I download : :https://code.google.com/p/multipilot32/downloads/list
And I don't have any material for now, i will received my autoquad equipment very soon but i want to begin the development of a new flight mode before.
If someone could help me, i will be thankful.

Julian
DJI F450
autoquad FC
ESC32
Futaba 8J + R2008sb rx
LIPO 4S
Dju
 
Posts: 59
Joined: Tue Apr 22, 2014 3:54 pm

PreviousNext

Return to AQ Firmware

Who is online

Users browsing this forum: No registered users and 4 guests

cron