Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stm32l4 libraries missing? #8952

Closed
koendv opened this issue May 16, 2024 · 2 comments
Closed

stm32l4 libraries missing? #8952

koendv opened this issue May 16, 2024 · 2 comments

Comments

@koendv
Copy link

koendv commented May 16, 2024

I am using env on linux.
On rt-thread v5.1.0 building for stm32l4 works. On the current git building for stm32l4 does not work.
Also, rt-thread/bsp/stm32/libraries/STM32L4xx_HAL is missing.

On 5.1.0, building for stm32l4 works:

koen@nuc:~/src$ git clone --branch v5.1.0  https://github.com/RT-Thread/rt-thread
koen@nuc:~/src$ cd rt-thread/bsp/stm32/stm32l496-st-nucleo/
koen@nuc:~/src/rt-thread/bsp/stm32/stm32l496-st-nucleo$ scons
scons: Reading SConscript files ...
Newlib version: 4.3.0
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build
CC build/applications/main.o
CC build/board/CubeMX_Config/Src/stm32l4xx_hal_msp.o
CC build/board/board.o
CC build/kernel/components/drivers/core/device.o
CC build/kernel/components/drivers/ipc/completion.o
CC build/kernel/components/drivers/ipc/condvar.o
CC build/kernel/components/drivers/ipc/dataqueue.o
...
arm-none-eabi-size rt-thread.elf
   text	   data	    bss	    dec	    hex	filename
  78760	   1132	   4076	  83968	  14800	rt-thread.elf
scons: done building targets.

On the current git building for stm32l4 does not work:

koen@nuc:~/src$ git clone https://github.com/RT-Thread/rt-thread
koen@nuc:~/src$ cd rt-thread/bsp/stm32/stm32l496-st-nucleo/
koen@nuc:~/src/rt-thread/bsp/stm32/stm32l496-st-nucleo$ scons
scons: Reading SConscript files ...
Newlib version: 4.3.0
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build
CC build/applications/main.o
In file included from applications/main.c:12:
board/board.h:14:10: fatal error: stm32l4xx.h: No such file or directory
   14 | #include <stm32l4xx.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
scons: *** [build/applications/main.o] Error 1
scons: building terminated because of errors.

The libraries for stm32l4 are missing?

koen@nuc:~/src$ ls rt-thread/bsp/stm32/libraries/STM32L4xx_HAL
ls: cannot access 'rt-thread/bsp/stm32/libraries/STM32L4xx_HAL': No such file or directory
@koendv koendv changed the title stm32l4 stm32l4 libraries missing? May 16, 2024
@mysterywolf
Copy link
Member

please use pkgs --upgrade-force to update your package index, and menuconfig do nothing but exit, it will auto donwload the L4 libraries. The stm32 L4 HAL library has became to a software package, it will auto download when you exit menuconfig and pkgs --update

@koendv
Copy link
Author

koendv commented May 17, 2024

OK. That works.
Sorry to have bothered you.

@koendv koendv closed this as completed May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants