[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 - Need help linking the firmware

Need help linking the firmware

News, Setup, Compiling, Flashing, Development

Need help linking the firmware

Postby SW_SST » Wed Nov 26, 2014 6:08 pm

I'm trying to compile the firmware and I run into linking errors.
I have CrossStudio 2.3.5
It compiles fine, but has hundreds of linking errors, here are the top few:

Linking autoquad.elf
THUMB Release/main_ctl.o: In function `main':
D:/Code/SST/autoquad/onboard/main_ctl.c:36: undefined reference to `NVIC_PriorityGroupConfig'

THUMB Release/digital.o: In function `digitalInit':
D:/Code/SST/autoquad/onboard/digital.c:39: undefined reference to `GPIO_StructInit'
D:/Code/SST/autoquad/onboard/digital.c:45: undefined reference to `GPIO_Init'

THUMB Release/rcc.o: In function `rccConfiguration':
D:/Code/SST/autoquad/onboard/rcc.c:29: undefined reference to `RCC_AHB1PeriphClockCmd'
D:/Code/SST/autoquad/onboard/rcc.c:31: undefined reference to `GPIO_StructInit'
D:/Code/SST/autoquad/onboard/rcc.c:35: undefined reference to `GPIO_Init'
D:/Code/SST/autoquad/onboard/rcc.c:66: undefined reference to `RCC_APB2PeriphClockCmd'
D:/Code/SST/autoquad/onboard/rcc.c:68: undefined reference to `SYSCFG_CompensationCellCmd'
D:/Code/SST/autoquad/onboard/rcc.c:71: undefined reference to `RCC_ClearFlag'
D:/Code/SST/autoquad/onboard/rcc.c:73: undefined reference to `RCC_GetClocksFreq'

THUMB Release/serial.o: In function `_serialStartTxDMA':
D:/Code/SST/autoquad/onboard/serial.c:55: undefined reference to `DMA_Cmd'

THUMB Release/serial.o: In function `serialUSART1':
D:/Code/SST/autoquad/onboard/serial.c:109: undefined reference to `GPIO_StructInit'
D:/Code/SST/autoquad/onboard/serial.c:116: undefined reference to `RCC_APB2PeriphClockCmd'
D:/Code/SST/autoquad/onboard/serial.c:122: undefined reference to `GPIO_PinAFConfig'


Any idea ?
SW_SST
 
Posts: 20
Joined: Thu Sep 18, 2014 2:39 pm

Re: Need help linking the firmware

Postby aBUGSworstnightmare » Wed Nov 26, 2014 6:42 pm

Hi,

do you have the STM32 peripherals lib and the mavlink lib in place? Refer here for details http://autoquad.org/wiki/wiki/building- ... velopment/

You also need to install the STM32 support packages in crossworks.

Which firmware version do you try to compile?

Joerg
aBUGSworstnightmare
 
Posts: 1460
Joined: Fri Jun 22, 2012 5:24 pm

Re: Need help linking the firmware

Postby SW_SST » Wed Nov 26, 2014 7:19 pm

Hi Joerg.
I followed that guide, I installed the STM32 support package and the mavlink.
The link for "STM32F4xx_DSP_StdPeriph_Lib_V1.3.0" leads to V1.4.0
I also found a V1.3.0 (after a very long search)
both generate the same link errors.
SW_SST
 
Posts: 20
Joined: Thu Sep 18, 2014 2:39 pm

Re: Need help linking the firmware

Postby Max » Wed Nov 26, 2014 8:41 pm

Is this still the same problem as from here: viewtopic.php?f=31&t=3743 ?

The output you posted before shows it looking for STM32 includes and library files inside the aq source code folder. Or so it would seem. Maybe post new output from the compiler. Your answer is probably in there somewhere (check all the path names being used). It's hard for us to tell what is going on w/out knowing your folder structure.

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

Re: Need help linking the firmware

Postby SW_SST » Wed Nov 26, 2014 9:28 pm

SW_SST
 
Posts: 20
Joined: Thu Sep 18, 2014 2:39 pm

Re: Need help linking the firmware

Postby Max » Thu Nov 27, 2014 12:41 am

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

Re: Need help linking the firmware

Postby SW_SST » Thu Nov 27, 2014 1:05 am

SW_SST
 
Posts: 20
Joined: Thu Sep 18, 2014 2:39 pm


Return to AQ Firmware

Who is online

Users browsing this forum: No registered users and 9 guests

cron