2015-11-30 02:28 AM
Hi, I have a STM32F072B-DISCOVERY microcontroller and I've been working on some simple projects. I tried downloading snippets for my board, which included using Touch Seinsing panel placed on the board. My problem is that the project does not compile successfully. I tried doing it in 3 different IDEs so far, but I can't make it work. The readme file only told me to open the toolchain and rebuild the project, but it asks for additional files. I even included HAL and TSL library the project asks for but it still doesnt work. Did anyone have any similar problem? What should I do to fix it? Can I include something here to help you solve my issue? I will provide what's needed.
#stm32f0-snippets-firmware-touch2015-11-30 06:05 AM
Well stating what the specific errors and files are would be a good start.
With the little detail here, I'd assume you haven't provided the compiler the right defines in the command line, or have the include paths set up correctly.2015-11-30 08:21 AM
Thanks for the reply. I am using TrueStudio, and so far I managed to patch a lot of bugs by adding includes and such, but right now I stumbled upon this:
(image might be a bit better to read from)I'm including the stm32f072b_discovery.c file:2015-11-30 09:01 AM
The defines would presumably come from
stm32f072b_discovery.h
Not sure I'd try to use the HAL here, the SPL examples for the board are herehttp://www.st.com/web/en/catalog/tools/PF259446
I'd have to go look at the snippets for this more closely, as I haven't used them with this board.2015-11-30 10:11 AM
Hey, I would love to use something different, just it's from this firmware package for my board, it uses HAL I guess, and I need this particular project to work.
What I need exactly is to make the touch panel included in STM32F072B-DISCOVERY and send the position of the touch to computer via usart. I managed to make working usart program, just can't make the touch panel part :(That's why I'm struggling to make it work. Any help would be priceless.2015-11-30 05:27 PM
Hey Clive! So after hours of hard work I managed to run it. Works flawlessly :) Thanks for your advices, and the link you sent me actually saved me. I found everything I needed there. Also I saw you helping people all over this forums and big respect to you for that :) You're doing a great job!
Best wishes from Poland,Paweł Olejnik