dwt_delay icon indicating copy to clipboard operation
dwt_delay copied to clipboard

Not working with stm32f030XX?

Open Broman3100 opened this issue 5 years ago • 1 comments

I replaced the include stmf1xx.h for 0xx and it instantly errored every line, does the library not work with those chips (cortex m0) or am I doing something wrong here?

Broman3100 avatar Dec 17 '19 10:12 Broman3100

I came across the same problem several days ago. Unfortunately, STM32F0xx doesn't have full DWT support, you can clearly see this fact in the reference manual (RM0360 document). It's still possible to use SysTick or one of those general purpose timers.

Upd: I've checked the manual at infocenter.arm.com and it doesn't mention CYCCNT register for Cortex-M0 (and Cortex-M0+) at all, this isn't STM32-specific problem. Probably it makes sense to mention the requirement for Cortex-M3 (or higher) MCU core in this repo's description.

Nable80 avatar Dec 18 '19 00:12 Nable80

4 years passed, i didnt expect this repo to be quite popular. Anyway, i updated description with M0/1 mention. Thnx for noting.

It is true, M0/0+/1 are not supported since they dont have access to DWT and CoreDebug registers.

keatis avatar Nov 21 '23 19:11 keatis