Skip to main content
AD�?b
Senior
Solved

STM32F746G-DISCO, STM32CubeIDE

Can I use FreeRTOS when using MVP?

This topic has been closed for replies.
Martin KJELDSEN
Martin KJELDSENBest answer
Principal III

Sure. The two are not mutually exclusive. One is an RTOS the other is a software pattern.

/Martin

11 replies

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III

Sure. The two are not mutually exclusive. One is an RTOS the other is a software pattern.

/Martin

AD�?b
AD�?bAuthor
Senior

I did PWM with DMA. Errors pop up:

../Core/Src/main.cpp:571:25: error: 'htim3' was not declared in this scope

../Core/Src/main.cpp:571:48: error: 'duty' was not declared in this scope

?

Martin KJELDSEN
Principal III

Nothing MVP is going on in main.cpp yet. You're referncing some symbols that aren't available. This is board bringup. You've defined a function Up() but you're using a reference to htim3 that isn't defined anywhere.

What made you write the code in this way? did you copy it from somewhere?

void Up(void){
	HAL_TIM_PWM_Start_DMA(&htim3, TIM_CHANNEL_1, &duty, 1);
}