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

Shell for FreeRTOS?

Posted by Nobody/Anonymous on March 13, 2006
I was wondering if you know of a "shell" for freertos? Currently we are using FORTH, which is an interpretive language and it helps our manufacturing and support staff to tweak some parameters without using heavy IDE's.
I was wondering if you have some kind of "shell" and command prompt which could do the same.

RE: Shell for FreeRTOS?

Posted by Nobody/Anonymous on March 13, 2006
What kind of system are you running? Are you just wanting to change memory locations?

You might be able to just run the system in the debugger of your choice, then change variables etc at run time through that.

Or you could write a simple UART driver that accepts commands. You could have a simple command interpreter as low priority task. This could be very simple if you tailor it to your application rather than try to make it too generic.

RE: Shell for FreeRTOS?

Posted by Nobody/Anonymous on March 14, 2006
A simple serial port interpreter with a dumb terminal?

RE: Shell for FreeRTOS?

Posted by Nobody/Anonymous on March 14, 2006
Hi,

We are currently using a version of 68HC12 and will be using Atmel ARM7TDMI in the next project. A mix of both in future.

If I think about it, some of the features could be...
1. Change memory location/registers/variables/EEPROM
2. maybe simple loops.

I have never used this. but something like this.
http://acceleratedtechnology.com/embedded/nuc_term_app.html

We never had to worry about these things because the LMI forth from 1980's ran of the serial port and its very simple to use.

Can you suggest any debuggers which can run on command lines and are easy enough for manufacturing staff to use? Preferably on serial port.

Thanks
Nihar

RE: Shell for FreeRTOS?

Posted by Nobody/Anonymous on March 14, 2006
> If I think about it, some of the features could be...
> 1. Change memory location/registers/variables/EEPROM

This should be easy enough with a simple command interpreter through a dumb terminal.

Have a low priority task look at the serial port and accept commands such as: "0x2000 0x1", set memory address 0x2000 to 0x1 to (as an example) turn a particular feature on.

If this is a low priority task then it could access an eeprom while the rest of the application had nothing to do without delaying the higher priority tasks should they become ready.

The PC demo application accepts simple single character commands like 't' to display a list of the tasks and their current status.

A standard interface might make a really good enhancement to FreeRTOS.

> 2. maybe simple loops.

?


> Can you suggest any debuggers which can run on command lines and are easy enough
> for manufacturing staff to use?


Generally command line debugger and easy to use don't go together ;-) although some of the more complex commands could be hidden in macros or scripts.

GDB might be all you are looking for.

>Preferably on serial port.

You can get GDB stubs that run over a serial port, alternatively you can use it over a jtag port with the correct interfaces (OCDLibRemote for example).

RE: Shell for FreeRTOS?

Posted by Nobody/Anonymous on March 14, 2006
>A standard interface might make a really good enhancement to FreeRTOS
Yes,
thats the kind of thing I was looking for. Thinking out loud...maybe some kind of a barebone *nix shell where you can write simple loops/conditions/variables.



RE: Shell for FreeRTOS?

Posted by Jim P on March 14, 2006
That's basically what I do now... I have an API command set between the host and the board (over UART0). The host has a command-line user interface, which can also read script files.
The serial interface consists of commands that contain a command initiator, a command byte, 2 bytes for data length, the data bytes, and a command terminator.
Commands include: Reset, Read memory, Write memory, dump trace buffer (I also implemented tracing memory in the code on the board)
The host utility implements the command-line interface, reading scripts, etc. I hadn't thought of it, but the host can also implement the for loops you mentioned.

RE: Shell for FreeRTOS?

Posted by Richard on March 14, 2006
Sounds excellent. Would you care to share? I can make this available from the FreeRTOS.org site - obviously crediting you with the work. Alternatively I can provide a link if you would prefer to host yourself.

Regards.

RE: Shell for FreeRTOS?

Posted by Jim P on March 14, 2006
Seeing as I'm doing this as my hobby, I can certainly post a stripped-down version at some point. I'm extremely busy this week, but I'll try and put something together next week.
Perhaps I should post it on the LP2000 yahoo group... Would that be acceptable?
Also, I don't have any licensing headers at the moment, although I could probably make it GPL. I'm not sure what to include in that case. Suggestions?
I've also found the need to do some timing estimates (something I want to add in soon). In my case I'm using Timer 1 just to provide a full-resolution (PCLK) clock to get a time before a call, then get the clock again after the call, and add a trace of the difference to be able to report the timing in the trace buffer dump.

RE: Shell for FreeRTOS?

Posted by Richard on March 14, 2006
> Perhaps I should post it on the LP2000 yahoo group... Would that be acceptable?

Sure.

> Also, I don't have any licensing headers at the moment, although I could probably
> make it GPL. I'm not sure what to include in that case. Suggestions?


You can copy the header from the FreeRTOS source code. Alternatively: http://www.opensource.org/licenses/index.php there are so many to choose from ;-)

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