Can't build user program with hwspinlock framework
- August 2, 2023
- 1 reply
- 2988 views
Hello, I am currently researching about possibilities in STM32MP1 dual core. I am trying to create user program that uses HW Semaphore. I used program from wiki:
https://wiki.st.com/stm32mpu/wiki/Hardware_spinlock_overview.
and makefile described here:
https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-A7/Create_a_simple_hello-world_application
with including builded linux kernel 5.15.67.
But I can't build program, because of numerous errors. I was trying to resolve some of errors by including them hard-coded way into user space program, but I think, that is not the correct way to fix these errors. How to properly build program including kernel files? Is there any include to be included when using kernel files? Or any other makefile switch? See attached files...
Thanks for any tips.
Some of compile errors:
Original post (with less description):
https://community.st.com/t5/other-tools-mpu/stm32mp1-build-user-program-with-hwspinlock-support/td-p/576966
