Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

STM32circle and Ride7 IDE

Posted by Borut on December 16, 2008
Hello to all,

i tried to build the STM32F10x demo for Ride7 IDE and got this error after building it (i copied just the relevant lines of output):

H:\Work\FreeRTOS\FreeRTOSV5.1.1\Demo\CORTEX_STM32F103_Primer_GCC\ST_Code\lcd.c: In function 'LCD_BackLightConfig':
H:\Work\FreeRTOS\FreeRTOSV5.1.1\Demo\CORTEX_STM32F103_Primer_GCC\ST_Code\lcd.c:564: error: 'TIM_OCInitTypeDef' has no member named 'TIM_Channel'

Build failed


Then i checked the mentioned struct and it really doesn't have the TIM_Channel as a member. Did anybody already tried to build this demo?

Thank you for your time,

Borut

RE: STM32circle and Ride7 IDE

Posted by AleŇ° Svetek on December 16, 2008
Hi Borut,

I haven't actually built this demo, but I think the problem is due to different versions of ST firmware library used in Demo
and in your Ride7 installation. The demo is based on FW 1.x. , but I suppose you have installed FW 2.x in Ride7. The versions are incompatible, but you can quite easily resolve the issues. Look for "How to migrate from STM32F10xxx FWLib V1.0 to V2.0 ", AN2776 on STM32 web site.

Regards,
~ AleŇ°

RE: STM32circle and Ride7 IDE

Posted by Borut on December 16, 2008
Thank you Ales. Will try that and let you know.

Regards,

Borut

RE: STM32circle and Ride7 IDE

Posted by Mandeep Kumar on January 3, 2009
Borut,
I have ported FreeRTOS V5.1.1 to work with latest Ride7 and Let me know if you are still looking for this.
I would like to submit this port to freertos.org, let me know if someone know the procedure.
Thanks & Regards,
Mandeep

RE: STM32circle and Ride7 IDE

Posted by Borut on January 3, 2009
Hello Mandeep,

yes i'm still loking for this port - my mail is borutdotkastelicatgmaildotcom. For submiting this port it is best to talk to Richard.

Thank you for all the work. I did try with this port but somehow i wasn't able to make it work. I'm working on the Rowley port and hope this one will be soon ready.

Regards,

Borut

RE: STM32circle and Ride7 IDE

Posted by Richard on January 3, 2009
Excellent - I would be grateful if you could send a copy to me at r (dot) barry [at] freertos.org, I can then figure out the best way to include it. I presume I will need to upgrade my compiler first.

Regards.

RE: STM32circle and Ride7 IDE

Posted by Mandeep Kumar on January 3, 2009
Thanks.. I have sent code in separate email to both you guys. Please let me know if there is any exhaustive test suite that i can run to fully verify all functionality of FreeRTOS.
Regards,
Mandeep

RE: STM32circle and Ride7 IDE

Posted by Borut on January 4, 2009
Thank you Mandeep for your email and your effort. I will try the demo tomorow and let you know of my results.

Regards,

Borut

RE: STM32circle and Ride7 IDE

Posted by samuel on January 7, 2009
Hi, I want to know what is solution for this problem

RE: STM32circle and Ride7 IDE

Posted by Borut on January 7, 2009
Hello,

i tried the demo Mandeep put together and it is working. I haven't checked what the difference are but you can ask Mandeep what he did to make it work.

Regards,

RE: STM32circle and Ride7 IDE

Posted by Todd on January 16, 2009
I am having the same issue as the OP in this thread - could someone chronicle the details of resolving this? I'm new to the STM32 and the library.

Thanks,
Todd

RE: STM32circle and Ride7 IDE

Posted by Todd on 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

RE: STM32circle and Ride7 IDE

Posted by Richard on January 17, 2009
Thanks to all contributors.

The STM32 Primer source code has now been updated and is working with the latest RIDE libraries. The source code has been checked into SVN and will be included in the next release.

Regards.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists