Quality RTOS & Embedded Software

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




Loading

Visual Studio (WIN32 simulation) port

Posted by nidujay on September 14, 2008
Hi,

Just a quick note to let you know that there's a VS port included in the latest freeRTOS distro. It's included with the Contributed RTOS ports section. ( x86_VisualStudio8_DJ.zip). It's written for Version 4.1.3 but might work for the latest version also. You'll just have to try it.

It's written for Visual Studio 2005.

Have fun!
Dushara

RE: Visual Studio (WIN32 simulation) port

Posted by Richard on September 15, 2008
Your post is quite a co-incidence, I was just playing with the port this weekend. I am very impressed! This makes a really nice test bench - I have been trying out some new TCP/IP ideas using it.

I found I had to remove the idle hook to get the debugger to behave nicely - the idle hook doing nothing but 'sleeping'.

I cannot get direct access to the Ethernet interrupts so instead created a task that runs in the background generating simulated events to wake the Ethernet task. I think this is similar to how you are creating the tick interrupts, only you are using a Windows thread, rather than a FreeRTOS.org task. Is this correct? I know very little about native Windows programming.

To use the port I downloaded the latest "Microsoft Visual C++ 2008 Express Edition" - which is completely free but huge so you need a fast internet connection and plenty of disk space.

Thank you for your great contribution. Any volunteers for a Linux version?

Regards.

RE: Visual Studio (WIN32 simulation) port

Posted by nidujay on September 15, 2008
Hi,

I'm glad you find the port useful.

You're right about the Sleep. Without it you get the CPU fans running etc because the process is always busy. I have used Sleep(INFINITE) - We don't use the IDLE thread except for patting the watchdog.

FreeRTOS tasks are wrapped by windows threads so yes, the solution is similar. Only thing is, the solution you have adopted brings the interrupt generators under the fold of the FreeRTOS scheduler (which may or may not be a problem in your case).

Another gotcha is, the windows tick occurs every 15.xxx ms. My suggestion is to add a couple of macros to convert from ms to ticks and vise versa and use them to abstract out the delays arguments.

All the best
Dushara

RE: Visual Studio (WIN32 simulation) port

Posted by mike on September 16, 2008
Hi Richard

I cannot find how to download this - the various links all end up at the sourceforge download for FreeRTOS.

What simple bit am I missing?

Many thanks for you work on FreeRTOS,

Mike Newsome

RE: Visual Studio (WIN32 simulation) port

Posted by nidujay on September 16, 2008
Sorry. I should have posted this (http://sourceforge.net/forum/message.php?msg_id=5275316) here.

:-)

RE: Visual Studio (WIN32 simulation) port

Posted by nidujay on September 16, 2008
Have a look at this http://www.freertos.org/RTOS-contributed-ports.html


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




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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

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

OpenRTOS and SafeRTOS