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


Webserver NXP LPC1768 Cortex M3 Red Suite

Posted by Tom on March 20, 2012

i try to make the webserver run. I use LPCxpresso with a RedProbe+ and the Keil Evaluation Board.
I can build without errors and i changed the IP - PC, Board Netmask
I run another Webserver Demo without FreeRTOS with the Jumpersettings on the Board.
This Demo told me: "A bit-banging on the MDIO and MDC are included in the driver. Setting MDC_MDIO_WORKAROUND to 1 will enable the bit-banging in both MDC and MDIO."

I think that is the mistake but where can i enable bit-banging in MDC and MDIO in FreeRTOS or the Demo?

RE: Webserver NXP LPC1768 Cortex M3 Red Suite

Posted by Tom on March 20, 2012
I forgott to say that i use a LPC1758 instead of the 1768. But i think that should not be a problem, or am i wrong?

RE: Webserver NXP LPC1768 Cortex M3 Red Suite

Posted by Richard on March 20, 2012
The first thing to look at would be whether the PHY being used by the FreeRTOS demo is the same as the one on the Keil board. All the hardware specifics are in their own files - so there should be nothing in FreeRTOS itself, or lwIP outside of its thin hardware port that would make any difference.

Regarding the change to LPC1758 - as long as that part has a MAC and adequate RAM, it should be a matter of simply changing the linker script to be correct for that part. If it has less RAM than the LPC1768 then you may need to make further changes to fit the Ethernet buffers in.


RE: Webserver NXP LPC1768 Cortex M3 Red Suite

Posted by Tom on March 21, 2012
I think i found some differences in the PHY and right now i'm trying to fix this problem. My new question is: It is possible just to make the webserver run and ignore the LCD and USB? in main i did this:

char cIPAddress[ 16 ]; // Enough space for "xxx.xxx.xxx.xxx\0".

// Configure the hardware for use by this demo.

// Start the standard demo tasks. These are just here to exercise the
//kernel port and provide examples of how the FreeRTOS API can be used.
vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );
vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );
vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );
vStartIntegerMathTasks( mainINTEGER_TASK_PRIORITY );
vStartGenericQueueTasks( mainGEN_QUEUE_TASK_PRIORITY );
vStartLEDFlashTasks( mainFLASH_TASK_PRIORITY );

// Create the USB task.
// xTaskCreate( vUSBTask, ( signed char * ) "USB", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );

// Display the IP address, then create the uIP task. The WEB server runs
//in this task.
// LCDdriver_initialisation();
// LCD_PrintString( 5, 10, "FreeRTOS.org", 14, COLOR_GREEN);
sprintf( cIPAddress, "%d.%d.%d.%d", configIP_ADDR0, configIP_ADDR1, configIP_ADDR2, configIP_ADDR3 );
// LCD_PrintString( 5, 30, cIPAddress, 14, COLOR_RED);
xTaskCreate( vuIP_Task, ( signed char * ) "uIP", mainBASIC_WEB_STACK_SIZE, ( void * ) NULL, mainUIP_TASK_PRIORITY, NULL );

// Start the scheduler.

// Will only get here if there was insufficient memory to create the idle
//task. The idle task is created within vTaskStartScheduler().
for( ;; );

Can there be any problem or does the webserver normaly work with a main liek this.

Thanks and regards.

RE: Webserver NXP LPC1768 Cortex M3 Red Suite

Posted by Richard on March 21, 2012
I can't recall the exact details of that demo as it was done some time ago - but there is one demo (maybe a different one) where commenting out the USB task also requires that the idle hook function is removed because the idle task attempts to send to a queue that is no longer being created.


RE: Webserver NXP LPC1768 Cortex M3 Red Suite

Posted by Tom on March 21, 2012
I am debugging it right now and included the usbTask again, no matter if i need it or not.
BUT i saw something strange and think that there's something wrong with the tasks.....
While i say "resume debug" and the programm is running the ethernet port is not there! but when i then pause, the ethernet interface comes up (The LED jack is on!) What pulls the Interface down, has anyone any clue?

Thanks and regards.

RE: Webserver NXP LPC1768 Cortex M3 Red Suite

Posted by Richard on March 21, 2012
Maybe strange, you would have to look at the schematic for the hardware to see if there could be a hardware reason for it. It could, potentially I suppose, be a floating input somewhere.


[ 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