cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F072B-DISCOVERY

cravaour
Associate II
Posted on November 30, 2015 at 11:28

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-touch
5 REPLIES 5
Posted on November 30, 2015 at 15:05

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
cravaour
Associate II
Posted on November 30, 2015 at 17:21

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:

http://pastebin.com/q48VrTgg

http://puu.sh/lEfP1/247c5ca370.png

(image might be a bit better to read from)

I'm including the stm32f072b_discovery.c file:

http://pastebin.com/jpdmed7M

Posted on November 30, 2015 at 18:01

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 here

http://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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
cravaour
Associate II
Posted on November 30, 2015 at 19:11

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.
cravaour
Associate II
Posted on December 01, 2015 at 02:27

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