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

freertos windows simulator

Posted by vamsi on March 26, 2011
hi all,
Is there any documentation available for the official freertos simulator for win-32.
I have gone through the page on the freertos website explaining :

1. Principals of Operation
2. Items to Note Before Using the Simulator
3. Source Code Organisation
4. Using the Eclipse / MingW (GCC) Demo
5. The Demo Application
6. Defining and Using Simulated Interrupt Service Routines

But it was not sufficient to get me started

RE: freertos windows simulator

Posted by Dave on March 26, 2011
The .zip file has all the code and projects that just build and work so that is the way to get started. If you mean you want to learn more about the implementation I suggest running it and stepping through the code.

RE: freertos windows simulator

Posted by vamsi on March 26, 2011
i like to know how to use the simulator with different my programs .

regards,
vamsi

RE: freertos windows simulator

Posted by vamsi on March 26, 2011
and running the demo program using the simulator just prints
ok 250
ok 500
etc.

how could I get a more detailed information on the simulation.

regards,
vamsi

RE: freertos windows simulator

Posted by Richard on March 26, 2011
“and running the demo program using the simulator just prints
ok 250
ok 500
etc.”


Which - as per the documentation page you referenced before, means you have it running, and it is running correctly.

“how could I get a more detailed information on the simulation.


Can you be more specific about what you want to know? You have read the documentation page, which provides information, over and above that, you have all the source code and a debugger, so can see what it is doing. The port layer for the simulator is very thin.

Regards.

RE: freertos windows simulator

Posted by vamsi on March 26, 2011
Is there a difference between using the simulator and using the arm-gdb?
the tracecon utilities were also provided may be using them can provide me with more information.
but there is no trace.bin file produced after the simulation

RE: freertos windows simulator

Posted by Richard on March 26, 2011
“Is there a difference between using the simulator and using the arm-gdb?”


Well, yes, lots. For example:

Running on ARM you are running in real time, and using the interrupt mechanism provided by the hardware.

Running in the simulator you are not going to get real time performance, and there is no underlying hardware interrupt mechanism. Interrupt processing is simulated by using high and low priority windows threads.

Regards.

RE: freertos windows simulator

Posted by vamsi on March 26, 2011
no,actually, i meant difference between "this simulator" and "gdb".

and how can i use tracecon?

regards

RE: freertos windows simulator

Posted by Richard on March 26, 2011
Well the GDB simulator is simulating an ARM architecture - I don't know how far it goes in that because I have not used it in a long time. It is in effect simulating the execution of ARM instructions in an x86 environment. Running the kernel in the GDB simulator (if that is possible) is not simulating the execution pattern of a FreeRTOS application, it is simulating running an ARM binary on an x86 computer.

The Windows simulator is simulating the execution pattern of a a real time scheduler, it is not simulating the execution of instructions in a non-native hardware environment.

With regards to tracecon - I have not used it with the Windows simulator. I cannot think of any reason off the top of my head why it would not work, although the timing information the trace contained would be a bit weird potentially. However, the tracecon utility has been legacy for a long time - I would recommend using the trace macros instead.

Regards.

RE: freertos windows simulator

Posted by vamsi on March 26, 2011
That was helpful. But, is there a way to simulate peripherals? (i feel embedded system application simulation is incomplete without simulating peripherals)

regards,
vamsi

RE: freertos windows simulator

Posted by Dave on March 26, 2011
“But, is there a way to simulate peripherals? ”


If that was your question, why is that not what you asked?

If you want to simulate ARM peripherals then you will have to either extend the windows simulator somehow, which will be very difficult because it is not running ARM instructions so will never be accurate (although it does provide an interrupt simulation mechanism). More realistically you will need to run an ARM simulator under windows, like quemu or the simulator found in Keil and IAR tools. GDB does not simulate peripherals, only the core, I think.

I think you are confusing what has already been said about the difference between a platform that allows you to run FreeRTOS applications in a windows environment and a platform that is simulating another bit of hardware.


[ 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