I downloaded and compiled Paparazzi v 4.2. and tried to compile Quad_LisaM A/C
The error is the same: arch/stm32/mcu_arch.c:36:39: fatal error: libopencm3/stm32/f1/rcc.h: No such file or directory
I looked at what is going on and the problem seems to be following - both in arch/stm32/mcu_arch.c and arch/stm32/subsystems/settings_arch.c you have this defines:
#if USE_OPENCM3
# if defined(STM32F1) || defined(STM32F2) || defined(STM32F4)
# include <libopencm3/stm32/f1/rcc.h>
# else
# include <libopencm3/stm32/rcc.h>
# endif(or flash.h respectively).
But when I looked at directories installed with arm-multilib, there is no folder for STM32 type F1 architecture:
/opt/paparazzi/arm-multilib/arm-none-eabi/include/libopencm3/stm32$ ls -g
-rw-r--r-- 1 root 15352 Jan 15 06:22 adc.h
-rw-r--r-- 1 root 6337 Jan 15 06:22 bkp.h
-rw-r--r-- 1 root 22078 Jan 15 06:22 can.h
-rw-r--r-- 1 root 1673 Jan 15 06:22 crc.h
-rw-r--r-- 1 root 2203 Jan 15 06:22 dbgmcu.h
-rw-r--r-- 1 root 24503 Jan 15 06:22 dma.h
-rw-r--r-- 1 root 8017 Jan 15 06:22 ethernet.h
-rw-r--r-- 1 root 2180 Jan 15 06:22 exti.h
-rw-r--r-- 1 root 3945 Jan 15 06:22 flash.h
-rw-r--r-- 1 root 8442 Jan 15 06:22 fsmc.h
-rw-r--r-- 1 root 20131 Jan 15 06:22 gpio.h
-rw-r--r-- 1 root 9750 Jan 15 06:22 i2c.h
-rw-r--r-- 1 root 2380 Jan 15 06:22 iwdg.h
-rw-r--r-- 1 root 4910 Jan 15 06:22 memorymap.h
-rw-r--r-- 1 root 5260 Jan 15 06:22 nvic.h
-rw-r--r-- 1 root 13059 Jan 15 06:22 otg_fs.h
-rw-r--r-- 1 root 2342 Jan 15 06:22 pwr.h
-rw-r--r-- 1 root 15581 Jan 15 06:22 rcc.h
-rw-r--r-- 1 root 4274 Jan 15 06:22 rtc.h
-rw-r--r-- 1 root 11623 Jan 15 06:22 scb.h
-rw-r--r-- 1 root 10616 Jan 15 06:22 spi.h
-rw-r--r-- 1 root 2914 Jan 15 06:22 systick.h
-rw-r--r-- 1 root 37673 Jan 15 06:22 timer.h
-rw-r--r-- 1 root 2063 Jan 15 06:22 tools.h
-rw-r--r-- 1 root 9800 Jan 15 06:22 usart.h
-rw-r--r-- 1 root 3196 Jan 15 06:22 usb_desc.h
-rw-r--r-- 1 root 9723 Jan 15 06:22 usb.h
-rw-r--r-- 1 root 2286 Jan 15 06:22 wwdg.hPlus libopencm3/stm32/f1/rcc.h was not installed anywhere else (in this folder structure).
I tried to manually copy files for f1 architecture from libopencm3 (supplied with master version) to /opt/paparazzi/arm-multilib/arm-none-eabi/include/libopencm3/stm32 and it produced this error instead:
/opt/paparazzi/arm-multilib/lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/include/libopencm3/stm32/f1/rcc.h:481:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
arch/stm32/mcu_arch.c:43:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'So I guess it is either an installation issue ( I am running Ubuntu 12.04) or something with the packages?
What do you think Felix?
Cheers
M
On Wed, Jan 30, 2013 at 4:59 PM, Felix Ruess
<address@hidden> wrote:
Hi Michal,
the stable releses v4.0 and v4.2 still use libopencm3 (actually was still libopenstm32 at that point) as packaged with the paparazzi-arm-multilib package.
Only in master we now include libopencm3 via sw/ext directly...
Also make sure that you don't have any other toolchain versions in your PATH (e.g.
gcc-arm-embedded, which works nicely for master btw...)
or in any of your standard system library paths like you described above...
Otherwise the version in your path will be taken (takes precedence).
Also if you have PAPARAZZI_SRC|HOME set in your environment, make sure that it points to the directory you are currently using or remove it.
Cheers, Felix
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel