Skip to main content
AD�?b
Senior
January 25, 2020
Solved

STM32F746G-DISCO, STM32CubeIDE

  • January 25, 2020
  • 1 reply
  • 2394 views

Can I use FreeRTOS when using MVP?

This topic has been closed for replies.
Best answer by Martin KJELDSEN

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

/Martin

1 reply

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
January 25, 2020

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

/Martin

AD�?b
AD�?bAuthor
Senior
January 27, 2020

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
January 27, 2020

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);
}