[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4792: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4793: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
AutoQuad Forum • View topic - Compiling error of R362

Compiling error of R362

News, Setup, Compiling, Flashing, Development

Compiling error of R362

Postby DUKE40 » Tue Mar 18, 2014 8:27 pm

Hi,

just trying tom compile the latest Firmware with CrossStudion and get an error about a missing library (core_cm4.h).
I am wondering if I need it, as I do not want to compile the Firmware for M$, but for the standard AQ.
If required, where do I find this library?
Best regards,
Image
DUKE40
 
Posts: 364
Joined: Tue Mar 26, 2013 9:49 pm

Re: Compiling error of R362

Postby Max » Tue Mar 18, 2014 8:32 pm

You need to d-load and unpack the SMT32 drivers package as described in these commit notes: http://code.google.com/p/autoquad/source/detail?r=349

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

Re: Compiling error of R362

Postby DUKE40 » Tue Mar 18, 2014 9:02 pm

Dowloaded the STM32F4xx_DSP_StdPeriph_Lib_V1.3.0, extracted it in the same directory as my autoquad source code:
autoquad-read-only/onboard, there I have now a directory STM32F4xx_DSP_StdPeriph_Lib_V1.3.0, but still no success, now the error is:
core_cm4.h: File or Directory not found

I have checked the file is in the directory
autoquad-read-only/onboard/STM32F4xx_DSP_StdPeriph_Lib_V1.3.0/Libraries/CMSIS/Include

And thze source code of the AQ firmware is in:
autoquad_read-only

What am I doing wrong?
Best regards,
Image
DUKE40
 
Posts: 364
Joined: Tue Mar 26, 2013 9:49 pm

Re: Compiling error of R362

Postby Max » Tue Mar 18, 2014 9:31 pm

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

Re: Compiling error of R362

Postby DUKE40 » Tue Mar 18, 2014 9:43 pm

Hi Max,

many thanks for the clarification. Now compiling works as it should, but running into the next errors:
Building "autoquad" in configuration "THUMB Debug"
Compiling main_ctl.c
Compiling digital.c
Compiling util.c
Compiling rcc.c
Compiling serial.c
In function ?serialUSART4?:
unused variable ‘NVIC_InitStructure’ [-Wunused-variable]
In function ?serialUSART5?:
unused variable ‘NVIC_InitStructure’ [-Wunused-variable]
In function ?USART1_IRQHandler?:
unused variable ‘SR’ [-Wunused-variable]
In function ?USART2_IRQHandler?:
unused variable ‘SR’ [-Wunused-variable]
In function ?USART6_IRQHandler?:
unused variable ‘SR’ [-Wunused-variable]
Compiling config.c
Compiling flash.c
Compiling motors.c
Compiling spektrum.c
Compiling analog.c
Compiling adc.c
Compiling control.c
Compiling comm.c
Compiling nav.c
In function ?navSetWPRecording?:
implicit declaration of function ‘signalingBeep’ [-Wimplicit-function-declaration]
Compiling telemetry.c
Compiling ublox.c
Compiling pid.c
Compiling aq_mavlink.c
mavlink_helpers.h
protocol.h
autoquad.h
mavlink.h
aq_mavlink.c
In function ?mavlink_quaternion_to_euler?:
passing argument 1 of ‘mavlink_dcm_to_euler’ from incompatible pointer type [enabled by default]
expected ‘const float (*)[3]’ but argument is of type ‘float (*)[3]’
In function ?mavlinkDo?:
unused variable ‘battRemainPct’ [-Wunused-variable]
Compiling compass.c
Compiling gps.c
Compiling command.c
Compiling aq_timer.c
Compiling aq_init.c
In function ?aqInit?:
implicit declaration of function ‘hottV4Init’ [-Wimplicit-function-declaration]
Compiling logger.c
Compiling rtc.c
Compiling sdio.c
Compiling imu.c
Compiling supervisor.c
Compiling fpu.c
Compiling nav_ukf.c
Compiling run.c
Compiling radio.c
Compiling futaba.c
Compiling ppm.c
Compiling filer.c
Compiling pwm.c
Compiling gimbal.c
Compiling 1wire.c
Compiling esc32.c
Compiling spi.c
Compiling signaling.c
Compiling can.c
Compiling canSensors.c
Compiling canCalib.c
Compiling canUart.c
Compiling canOSD.c
Compiling mpu6000.c
Compiling d_imu.c
Compiling hmc5983.c
Compiling ms5611.c
Compiling eeprom.c
Compiling usb_bsp.c
Compiling usbd_desc.c
Compiling usb.c
Compiling usbd_storage_msd.c
Pre-compile command
Compiling getbuildnum.c
Compiling grhott.c
Compiling mlinkrx.c
Assembling STM32_Startup.s
Compiling system_stm32f4xx.c
Assembling thumb_crt0.s
Compiling core.c
Compiling event.c
Compiling flag.c
Compiling kernelHeap.c
Compiling mbox.c
Compiling mm.c
Compiling mutex.c
Compiling queue.c
Compiling sem.c
Compiling serviceReq.c
Compiling task.c
Compiling time.c
Compiling timer.c
Compiling utility.c
Compiling arch.c
Compiling port.c
Compiling ff.c
Compiling srcdkf.c
Compiling algebra.c
Compiling rotations.c
Compiling usbd_core.c
Compiling usbd_ioreq.c
Compiling usbd_req.c
Compiling usbd_msc_bot.c
Compiling usbd_msc_data.c
Compiling usbd_msc_scsi.c
In function ?SCSI_ReadCapacity10?:
suggest parentheses around ‘-’ inside ‘>>’ [-Wparentheses]
suggest parentheses around ‘-’ inside ‘>>’ [-Wparentheses]
suggest parentheses around ‘-’ inside ‘>>’ [-Wparentheses]
In function ?SCSI_ReadFormatCapacity?:
suggest parentheses around ‘-’ inside ‘>>’ [-Wparentheses]
suggest parentheses around ‘-’ inside ‘>>’ [-Wparentheses]
suggest parentheses around ‘-’ inside ‘>>’ [-Wparentheses]
In function ?SCSI_Read10?:
large integer implicitly truncated to unsigned type [-Woverflow]
Compiling usbd_cdc_msc_core.c
Compiling usb_core.c
Compiling usb_dcd.c
Compiling usb_dcd_int.c
Compiling misc.c
Compiling stm32f4xx_adc.c
Compiling stm32f4xx_can.c
Compiling stm32f4xx_crc.c
Compiling stm32f4xx_cryp.c
Compiling stm32f4xx_cryp_aes.c
Compiling stm32f4xx_cryp_des.c
Compiling stm32f4xx_cryp_tdes.c
Compiling stm32f4xx_dac.c
Compiling stm32f4xx_dbgmcu.c
Compiling stm32f4xx_dcmi.c
Compiling stm32f4xx_dma.c
Compiling stm32f4xx_dma2d.c
Compiling stm32f4xx_exti.c
Compiling stm32f4xx_flash.c
Compiling stm32f4xx_fmc.c
In function ?FMC_NORSRAMDeInit?:
‘FMC_Bank1’ undeclared (first use in this function)
each undeclared identifier is reported only once for each function it appears in
‘FMC_Bank1E’ undeclared (first use in this function)
In function ?FMC_NORSRAMInit?:
‘FMC_Bank1’ undeclared (first use in this function)
‘FMC_Bank1E’ undeclared (first use in this function)
In function ?FMC_NORSRAMCmd?:
‘FMC_Bank1’ undeclared (first use in this function)
In function ?FMC_NANDDeInit?:
‘FMC_Bank2’ undeclared (first use in this function)
‘FMC_Bank3’ undeclared (first use in this function)
In function ?FMC_NANDInit?:
‘FMC_Bank2’ undeclared (first use in this function)
‘FMC_Bank3’ undeclared (first use in this function)
In function ?FMC_NANDCmd?:
‘FMC_Bank2’ undeclared (first use in this function)
‘FMC_Bank3’ undeclared (first use in this function)
In function ?FMC_NANDECCCmd?:
‘FMC_Bank2’ undeclared (first use in this function)
‘FMC_Bank3’ undeclared (first use in this function)
In function ?FMC_GetECC?:
‘FMC_Bank2’ undeclared (first use in this function)
‘FMC_Bank3’ undeclared (first use in this function)
In function ?FMC_PCCARDDeInit?:
‘FMC_Bank4’ undeclared (first use in this function)
In function ?FMC_PCCARDInit?:
‘FMC_Bank4’ undeclared (first use in this function)
In function ?FMC_PCCARDCmd?:
‘FMC_Bank4’ undeclared (first use in this function)
In function ?FMC_SDRAMDeInit?:
‘FMC_Bank5_6’ undeclared (first use in this function)
In function ?FMC_SDRAMInit?:
‘FMC_Bank5_6’ undeclared (first use in this function)
In function ?FMC_SDRAMCmdConfig?:
‘FMC_Bank5_6’ undeclared (first use in this function)
In function ?FMC_GetModeStatus?:
‘FMC_Bank5_6’ undeclared (first use in this function)
‘FMC_SDSR_MODES1’ undeclared (first use in this function)
‘FMC_SDSR_MODES2’ undeclared (first use in this function)
In function ?FMC_SetRefreshCount?:
‘FMC_Bank5_6’ undeclared (first use in this function)
In function ?FMC_SetAutoRefresh_Number?:
‘FMC_Bank5_6’ undeclared (first use in this function)
In function ?FMC_SDRAMWriteProtectionConfig?:
‘FMC_Bank5_6’ undeclared (first use in this function)
In function ?FMC_ITConfig?:
‘FMC_Bank2’ undeclared (first use in this function)
‘FMC_Bank3’ undeclared (first use in this function)
‘FMC_Bank4’ undeclared (first use in this function)
‘FMC_Bank5_6’ undeclared (first use in this function)
In function ?FMC_GetFlagStatus?:
‘FMC_SDSR_RE’ undeclared (first use in this function)
‘FMC_SDSR_BUSY’ undeclared (first use in this function)
‘FMC_Bank2’ undeclared (first use in this function)
‘FMC_Bank3’ undeclared (first use in this function)
‘FMC_Bank4’ undeclared (first use in this function)
‘FMC_Bank5_6’ undeclared (first use in this function)
In function ?FMC_ClearFlag?:
‘FMC_Bank2’ undeclared (first use in this function)
‘FMC_Bank3’ undeclared (first use in this function)
‘FMC_Bank4’ undeclared (first use in this function)
‘FMC_Bank5_6’ undeclared (first use in this function)
In function ?FMC_GetITStatus?:
‘FMC_Bank2’ undeclared (first use in this function)
‘FMC_Bank3’ undeclared (first use in this function)
‘FMC_Bank4’ undeclared (first use in this function)
‘FMC_Bank5_6’ undeclared (first use in this function)
‘FMC_SDSR_RE’ undeclared (first use in this function)
In function ?FMC_ClearITPendingBit?:
‘FMC_Bank2’ undeclared (first use in this function)
‘FMC_Bank3’ undeclared (first use in this function)
Build failed

This is getting very strange. I have downloaded the files and it seems the drivers cannot be compiled.
What should I now look for to solve the issue and get my firmware compiled?
By the way I am using Debian 2.6.32-5-686 #1 SMP Mon Sep 23 23:00:18 UTC 2013 i686 GNU/Linux
Best regards,
Image
DUKE40
 
Posts: 364
Joined: Tue Mar 26, 2013 9:49 pm

Re: Compiling error of R362

Postby kinderkram » Tue Mar 18, 2014 10:14 pm

If everything failes, why not take freshly compiled builds from our new FTP:
Max has set up a process for nightly builds here:
ftp://ftp.autoquad.org/3/334693_22529/
kinderkram
 
Posts: 2911
Joined: Fri Jun 22, 2012 7:47 am

Re: Compiling error of R362

Postby sandmen » Tue Mar 18, 2014 10:50 pm

Exclude from build!
sandmen
 
Posts: 997
Joined: Fri Jun 22, 2012 7:25 am

Re: Compiling error of R362

Postby bn999 » Tue Mar 18, 2014 11:00 pm

bn999
 
Posts: 1559
Joined: Thu Jun 21, 2012 11:40 pm

Re: Compiling error of R362

Postby DUKE40 » Wed Mar 19, 2014 5:00 am

First as far as I know, the changes done by Menno for the fully integrated HoTT telemetry are currently not included in the repository, that is the reason why I want/need to build the hex file myself.

What do you mean by excluding from Build? How do I do that? I opened in Crossworks the hzp file which is the project file, if it was already excluded there, I should not have the reported issue.
I hope someone can elaborate on this point, rather than just state "exclude" which might be enough for someone familiar with programming, but not for everyboby.
Best regards,
Image
DUKE40
 
Posts: 364
Joined: Tue Mar 26, 2013 9:49 pm

Re: Compiling error of R362

Postby joebar.rc » Wed Mar 19, 2014 9:29 am

here you go Jean:)

Menno
btw, make sure you create a thumb release, you are now building a thumb debug I noticed..

exclude.jpg
exclude.jpg (111.08 KiB) Viewed 15784 times
joebar.rc
 
Posts: 1084
Joined: Fri Jun 22, 2012 8:59 am
Location: The netherlands

Next

Return to AQ Firmware

Who is online

Users browsing this forum: No registered users and 9 guests

cron