STM32L100xC not working Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
gclarkii
Posts: 24
Joined: Wed Mar 01, 2017 7:38 pm
Has thanked: 1 time
Been thanked: 2 times

STM32L100xC not working  Topic is solved

Postby gclarkii » Tue Oct 23, 2018 9:06 am

Greetings,

I have the L100-Discovery board. I copied over the board specs from the L152 discovery board and changed the appropriate pins (mostly LED and MCU). The compile then bombed. After changing the MCU to STM32L151xCA from STM32L100xC, it compiled and ran just fine. I then started troubleshooting it.
I think it has something to do with the fact that the L100 does NOT have a E or D. When I created a special category(#7), and tell the system that D and E are false, it all works. I also went ahead and separated out the DAC, the 100xC has a single channel on DAC1 and DAC2 and not two channels on DAC1.

I've included the compile error.
Compiling hal_lld.c
In file included from ../ChibiOS/os/hal/ports/STM32/STM32L1xx/hal_lld.h:848:0,
from ../ChibiOS/os/hal/include/hal.h:122,
from ../ChibiOS/os/hal/ports/STM32/STM32L1xx/hal_lld.c:27:
../ChibiOS/os/hal/ports/STM32/STM32L1xx/hal_lld.c: In function 'hal_lld_init':
../ChibiOS/os/hal/ports/STM32/STM32L1xx/stm32_registry.h:152:46: error: 'RCC_AHBENR_GPIOEEN' undeclared (first use in this function); did you mean 'RCC_AHBENR_GPIODEN'?
RCC_AHBENR_GPIOEEN | \
^
../ChibiOS/os/hal/ports/STM32/STM32L1xx/stm32_rcc.h:178:20: note: in definition of macro
rccResetAHB'
RCC->AHBRSTR |= (mask); \
^~~~
../ChibiOS/os/hal/ports/STM32/STM32L1xx/hal_lld.c:104:40: note: in expansion of macro 'STM32_GPIO_EN_MASK'
rccResetAHB(~(RCC_AHBRSTR_FLITFRST | STM32_GPIO_EN_MASK));
^~~~~~~~~~~~~~~~~~
../ChibiOS/os/hal/ports/STM32/STM32L1xx/stm32_registry.h:152:46: note: each undeclared identifier is reported only once for each function it appears in
RCC_AHBENR_GPIOEEN | \
^
../ChibiOS/os/hal/ports/STM32/STM32L1xx/stm32_rcc.h:178:20: note: in definition of macro
rccResetAHB'
RCC->AHBRSTR |= (mask); \
^~~~
../ChibiOS/os/hal/ports/STM32/STM32L1xx/hal_lld.c:104:40: note: in expansion of macro 'STM32_GPIO_EN_MASK'
rccResetAHB(~(RCC_AHBRSTR_FLITFRST | STM32_GPIO_EN_MASK));
^~~~~~~~~~~~~~~~~~
../ChibiOS/os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:177: recipe for target 'build/obj/hal_lld.o' failed
make: *** [build/obj/hal_lld.o] Error 1

User avatar
Giovanni
Site Admin
Posts: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32L100xC not working

Postby Giovanni » Thu Nov 15, 2018 10:55 am

Hi,

L100 is not yet supported, you may try to add it as follow:

- Add the required checks in hal_lld.h.
- Add a dedicated section in stm32_registry.h, you need to specify exactly which peripherals are present.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 42 guests