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

LPC2468, FreeRTOS 6.0.5 - no stats displaying

Posted by mr_theo on August 30, 2013
Hi all

I've got problem with FreeRTOS v6.0.5 - it compiles just fine, I download it to the demoboard, open the website in my browser, but the website is empty - I mean there is this static menu + it keeps refreshing every 2 seconds as it should be, but there are no stats (neither tasks, nor tcp or connections). So something if faulty and I can't find what exactly. Can you help?

These are all files of my copy of FreeRTOS- [download] - basically it's just fresh LPC23xx copy, modified to run on LPC2468 + my software (compiler)

My demoboard is Olimex LPC2468. I'm using GNU Make 3.81 + GNU ARM Toolchain (arm-2011.03-42-arm-none-eabi), compiling it from command line.
Currently no Eclipse installed, but I don't see this as a potential threat.

Many thanks in advance

RE: LPC2468, FreeRTOS 6.0.5 - no stats displaying

Posted by mr_theo on August 30, 2013
Just upgraded my FreeRTOS to v7.5.2 - just had to copy original (v.6.0.5) emac.c + emac.h files, because with the v.7.5.2 ones my ethernet interface would not power up (no leds blinking, couldn't connect).
Anyway, the stats problem still exists. Strange, considering it should be out of the box feature.

RE: LPC2468, FreeRTOS 6.0.5 - no stats displaying

Posted by MEdwards on August 30, 2013
Run time stats is not an out the box feature because it uses a separate timer, and each chip family has different timers. You must configure the timer and feed the timer counter to the stats functions. The rest of the functionality is built in. Have you done this? http://www.freertos.org/rtos-run-time-stats.html

RE: LPC2468, FreeRTOS 6.0.5 - no stats displaying

Posted by mr_theo on August 30, 2013
I'm not saying run time stats, i'm saying general stats, which (correct me if i'm wrong) are out of the box feature:


RE: LPC2468, FreeRTOS 6.0.5 - no stats displaying

Posted by Diptopal Basu on August 31, 2013
Can you run a small experiment? The task statistics are generated through the vTaskList call and then printed out on the web page I think. If you are using some sort of print function to print characters out to a terminal, then make a call to vTaskList and print out the value to the terminal. If all goes well, you should see the same type of report as you pasted above in the console. If the vTaskList call works and you are able to see the report, you should be able to see it on the webpage also ideally. I am assuming that all tabs are not visible. Now, I have not seen the webserver code but I am not sure if one tab is broken, if it has any effect on the other tabs.

Also in your FreeRTOSConfig.h, I saw no entry for generating run time task statistics. Which is #define configGENERATE_RUN_TIME_STATS1 . and the associated configuration. In the link that I have pasted above you will find the other functions too that are responsible for generating statistics data. Also in your main program the prvSetupHardware function which should have been referred to in the FreeRTOSConfig.h, a portion of code is commented out, I have not worked on the LPC2648 so I cant say for sure.

RE: LPC2468, FreeRTOS 6.0.5 - no stats displaying

Posted by mr_theo on September 5, 2013
Nope, that's not it. What I had to change was some code in httpd-cgi.c file, line ~79

oryginal:
httpd_cgifunction
httpd_cgi(char *name)
{
const struct httpd_cgi_call **f;

/* Find the matching name in the table, return the function. */
for(f = calls; *f != NULL; ++f) {
if(strncmp((*f)->name, name, strlen((*f)->name)) == 0) {
return (*f)->function;
}
}
return nullfunction;
}


to paste:
httpd_cgifunction
httpd_cgi(char *name)
{
char funNumb, funIdx;
funNumb = sizeof(calls) - 1; // -1 bo NULL na koncu

for(funIdx = 0; funIdx < funNumb; funIdx++) {
if(strncmp(calls[funIdx]->name, name, strlen(calls[funIdx]->name)) == 0) {
return calls[funIdx]->function;
}
}
return nullfunction;
}


effect:


:D


[ 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