Skip to main content
pj_stm
Associate III
January 5, 2024
Question

How to enable drivers in kernel using STM32CubeIDE

  • January 5, 2024
  • 1 reply
  • 2492 views

Is there any way to enable and disable drivers in the kernel from STM32CubeIDE?

 

For example to enable support for another LCD panel

 

If I use menuconfig to change configuration, make does not work anymore.

+ case "$command" in
+ exec make -j12 all
***
*** The source tree is not clean, please run 'make mrproper'
*** in /home/st-test/STM32CubeIDE/workspace_1.14.0/panel/CA7/linux-6.1.28/linux-6.1.28
***
make: *** [/home/st-test/STM32CubeIDE/workspace_1.14.0/panel/CA7/linux-6.1.28/linux-6.1.28/Makefile:658: outputmakefile] Error 1
"make -j12 all" terminated with exit code 2. Build might be incomplete.

 

 @if [ -f $(srctree)/.config -o \
 -d $(srctree)/include/config -o \
 -d $(srctree)/arch/$(SRCARCH)/include/generated ]; then \
 echo >&2 "***"; \
 echo >&2 "*** The source tree is not clean, please run 'make$(if $(findstring command line, $(origin ARCH)), ARCH=$(ARCH)) mrproper'"; \
 echo >&2 "*** in $(abs_srctree)";\
 echo >&2 "***"; \
 false; \
 fi

1 reply

Erwan SZYMANSKI
Technical Moderator
January 8, 2024

Hello @pj_stm ,
It is highly possible that you tried different compilations with sourcing the SDK and another without sourcing it.
Please source your SDK properly, then clean your Kernel tree as asked by the compiler with make mrproper command. 

Kind regards,
Erwan.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
pj_stm
pj_stmAuthor
Associate III
January 9, 2024

Thank you very much.

make mrproper does not help.

How can I change kernel options from STMcubeIDE?

 

Kind regards

Piotr

Erwan SZYMANSKI
Technical Moderator
January 10, 2024

Hello @pj_stm ,
You cannot access the menuconfig through CubeIDE like you would like, and I think that this is not a good way to process. If you cannot run your make menuconfig command, it means that you have some troubles somewhere.

CubeMX is supposed to generate you device trees only, it should not produce a such error.

I advice you to restart the different steps from the wiki with the default release first, and adapt with your configuration after.

Wiki Developer Package : https://wiki.st.com/stm32mpu/wiki/STM32MP1_Developer_Package

Kind regards,
Erwan.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.