Timer Setup troubles

03 Aug 2017

Hi everyone, I'm new to the world of mbed and I'm just starting work with a ARM processor for the first time as well.

Basically I'm really struggling with programming this chip, as the online compiler doesnt seem to want to let me get low enough level to do custom timer set-ups etc.

According to the data sheet found here http://www.st.com/content/ccc/resource/technical/document/reference_manual/group0/96/8b/0d/ec/16/22/43/71/DM00224583/files/DM00224583.pdf/jcr:content/translations/en.DM00224583.pdf

I have come to the conclusion in section 26.3.6 that I can use a PWM input mode! Which is great as I have some leds I'm trying to messure the pwm into and this would make life easy. I was hoping for some insight, maybe I'm using the wrong tools, or compiler, or I am missing something simple.

Thanks!

hans4

30 Aug 2017

Sorry for the late reply, only saw this post now. I assume this is on a custom board? If you need to add a new target to mbed, or need to set up different timings for a new board, then using mbed CLI to build is a lot more convenient than the online compiler as it gives you access to full mbed OS source and startup code.

STM32F7 HAL is located at https://github.com/ARMmbed/mbed-os/tree/master/targets/TARGET_STM/TARGET_STM32F7

31 Aug 2017

I would just second what Jan says about getting an offline workflow setup. Online compiler hides stuff from you, which quickly can become a hindrance. The low level HAL drivers are all there and lets you make full use of peripherals. I have been using System Workbench with good luck. Setting it up is kind of painful, but it does work once everything is configured.