tmech wrote on Friday, January 16, 2009:
I have modified the STM32 Ride Demo to properly compile using "How to migrate from STM32F10xxx FWLib V1.0 to V2.0 ", AN2776 on STM32 web site. The demo is now compiling, but I do not have a STM32 Primer to test functionality (I’m porting to custom hardware). These are the exact steps I followed, its quite simple, could someone please test for functionality on ther STM32 Primer.
Steps:
In File LCD.c
LINE 564 Replace:
TIM_OCInitStructure.TIM_Channel = TIM_Channel_2;
with:
TIM_OCInitStructure.TIM_OutputState = TIM_OutputState_Enable;
Line 567 Replace:
TIM_OCInit( TIM4, &TIM_OCInitStructure );
with:
TIM_OC2Init( TIM4, &TIM_OCInitStructure );
In File mems.c
LINE 238 Replace
while( SPI_GetFlagStatus( SPI2, SPI_FLAG_TXE ) == RESET );
with:
while( SPI_I2S_GetFlagStatus( SPI2, SPI_I2S_FLAG_TXE ) == RESET );
LINE 241 Replace:
SPI_SendData( SPI2, byte );
with:
SPI_I2S_SendData( SPI2, byte );
LINE 244 Replace:
while( SPI_GetFlagStatus( SPI2, SPI_FLAG_RXNE ) == RESET );
with:
while( SPI_I2S_GetFlagStatus( SPI2, SPI_I2S_FLAG_RXNE ) == RESET );
LINE 247 Replace:
return SPI_ReceiveData( SPI2 );
with:
return SPI_I2S_ReceiveData( SPI2 );
in file buzzer.c
Line 208 Replace:
TIM_OCInitStructure.TIM_Channel = TIM_Channel_3;
with:
TIM_OCInitStructure.TIM_OutputState = TIM_OutputState_Enable;
Line 211 Replace
TIM_OCInit( TIM3, &TIM_OCInitStructure );
with:
TIM_OC3Init( TIM3, &TIM_OCInitStructure );
Line 264 Replace
TIM_OCInitStructure.TIM_Channel = TIM_Channel_3;
with:
TIM_OCInitStructure.TIM_OutputState = TIM_OutputState_Enable;
Line 267 Replace
TIM_OCInit( TIM3, &TIM_OCInitStructure );
with:
TIM_OC3Init( TIM3, &TIM_OCInitStructure );
My only concern is if there needs to be any changes made related to NVIC stuff, can someone look into this?
Please let me know if this actually works again on the STM32 Primer, then FREErtos can update their distributions on the next release, also can someone please notify them?
Todd