Can’t get the web server demo to work πŸ™

Hi all I am using the Keil MCB2300 eva. board, CrossStudio ver. 1.7 build 3 and the Jtag from Rowley. I can compile and run the project, but nothing happens??? It seems like the tasks newer start. Nothing happens in the display…it is not even initalised… Please help Best regards Kellelein

Can’t get the web server demo to work πŸ™

Did you alter the project or code at all?  Can you step through the code and see where the problem occurs? I would suggest starting by setting a breakpoint on the call to vTaskStartScheduler() within main, then step from there.  You should see that the idle task is created, then vPortStartScheduler() is called.  What happens then? Regards.

Can’t get the web server demo to work πŸ™

main.c vTaskStartScheduler() is called task.c xTaskCreate is then called and creates prvIdleTask. xTaskCreate returns pdPASS. xPortStartScheduler is then called. port.c vPortISRStartFirstTask() calls portRESTORE_CONTEXT(). If I try to step in to this function, I see som disassembly code???? if I then push F5 nothing happens in the display etc. Is it possible to set a breakpoint in a task, to see if it is running? hope you can help… Best regards kellelein

Can’t get the web server demo to work πŸ™

Hi again It works now…I tryed to set the ARM Falsh Debug to THUMB Flash Debug….WHY??? on the webpage it says that it has to be in ARM Falsh Debug mode???? Best regards kellelein

Can’t get the web server demo to work πŸ™

Try this: In main.c, change the definition – #define mainCREATOR_TASK_PRIORITY           ( tskIDLE_PRIORITY + 3 ) to #define mainCREATOR_TASK_PRIORITY           ( tskIDLE_PRIORITY + 2 ) This means you only have one task running ( taskIDLE_PRIORITY + 3 ), the check task.  This is the highest priority task in the system so should be the task that starts to execute first. Now find the function that defines the check task, it is in the same file: static void vCheckTask( void *pvParameters ) and place a break point on the function entry. Does the break point ever get hit when you run your code? Regards.

Can’t get the web server demo to work πŸ™

Don’t know, I cannot see any problems with the command line used for the ARM Debug configuration.  I would have to run the code on the hardware to see why.  I’m sure it worked for both when I tested it? Regards.

Can’t get the web server demo to work πŸ™

OK, I reset target and it’s running now. Display write PASS but then nothing more happend, LED’s stop blinking. If I set a breakpoint after vTaskDelayUntil(.. in vCheckTask, the breakpint are only hit one time. (when the preakpoint was hit I moved the breakpoint to vTaskDelayUntil and whit one was hit, but the it hang in vTaskDelayUntil) Regards

Can’t get the web server demo to work πŸ™

Status :-) Using: Rowley CrossStudio ver 1.7 Rowley CrossConnect for ARM (JTAG) Keil MCB2300 eva. board with the NXP LPC2368 ARM 7 processor I startede all over. 1)Un zipped the project to C:FreeRTOSV4.5.0 2)Startede the project in CrossStudio ver 1.7 3)Installed the Keil_MCB2300.hzq and NXP_LPC2000.hzq in CrossStudio 4)Changed the IP adress in main.c to 10.10.240.75 5)Build the project (F5). No errors and no warnings. If i choose "ARM Flash Debug" nothing happens, when the project runs. It "works" if I choose "ARM Flash Release" or "THUMB Flash Debug"?????????????? 6)When I run the project on the eva. board, it starte up an write "www.FreeTROS.org" on the display. After that it writes "PASS" and LED P2.0 P2.1 and P2.2 starts blinking. I can ping the eva. board, but I can’t get in contact with it, in a webbrowser(http://10.10.240.75). The program runs very unstable and crashes after (5 – 60 sek.) Hope anyone can help. Best regards Kellelein

Can’t get the web server demo to work πŸ™

Are you running this on a wider network?  Could there be another device with the same IP address? ARM Flash Debug configuration will not have STARTUP_FROM_RESET defined so will only start from the debugger.  See the FAQ on the Rowley site about this.

Can’t get the web server demo to work πŸ™

Hi 1)I have checked the IP with ipconfig /all, and it is the only device, with this IP adress. 2)OK Still can’t get it to work :-( Kellelein

Can’t get the web server demo to work πŸ™

ipconfig /all will only show you the IP addresses used by your host computer.  If this is the only computer on the network then that is ok.  It will not show you the IP addresses of any other computer on the network.  If you unplug your LPC2368 from the network then try pinging the IP address again, if anything else answers then you have a conflict.

Can’t get the web server demo to work πŸ™

Have tryed to ping the adress, witout the board connected. There isen’t any other device with that IP adresse on the network. I think something goes wrong in the program, maby some tasks crashes??? can’t figure out, whats going wrong. Kellelein

Can’t get the web server demo to work πŸ™

I have the same hardware as you.  I have just: 1) Unzipped a clean FreeRTOS.org V4.5.0 into a temp directory. 2) Opened the LPC2368 project from within the CrossStudio IDE. 3) Set the IP address to 172.25.218.20 (compatible with my network). 4) Build and downloaded the ARM Debug configuration (the one selected when the project was opened). I found that the first couple of pings were missed (probably still initialising and ARPing), but after that the ping and served WEB pages have worked well. 5) Stopped the debugger. 6) Selected the THUMB Flash Debug configuration. 7) Build and downloaded. Same result.  No problems, so it is difficult to know what to suggest. Regards.

Can’t get the web server demo to work πŸ™

Ok very strange…. 1) How is your jumper settings on the Eva. board 2) What about the stack size in the project settings?…but isen’t this config included in the project? 3) Do you mind zip your project and send to me (clakj(AT)kk-electronic.com)  Best regards Kellelein

Can’t get the web server demo to work πŸ™

1) How is your jumper settings on the Eva. board I’m not in the right office to look at the moment, but they are the same as on the picture of the documentation page:  http://www.freertos.org/portlpc2368uIP.html is the picture detailed enough to see?  I don’t remember changing anything from their default settings. 2) What about the stack size in the project settings?…but isen’t this config included in the project? This is set in the project itself, so if you have not changed anything from the .zip file download then we will be using the same. 3) Do you mind zip your project and send to me (clakj(AT)kk-electronic.com)  I didn’t change anything, so it is exactly as per the V4.5.0 download.  I unzipped a clean installation to make sure nothing had changed. I would guess it was something on the networking side.  Did you say you could ping the board, but not connect to the HTTP server?  What else do you have on the network?  Are you going through a router?  Is the first octet of the MAC address you are using (for the LPC) 00? Regards.

Can’t get the web server demo to work πŸ™

Hi again 1) I use the same jumper settings. My HW version is ver. 3.1, yours is 3.0!!! Don’t know if this has anything to do with the problem. 2) Thought so :-) 3) Ok I now have tried to connect the board and my computer, to a switch. There isen’t anything else connect to the switch. Then I run the program. It runs very unstable, sometimes I can ping it, where it answers once, maby twice, before the program hangs.  I altso have tryed to program the flash as an "ARM Flas Release" and disconnect the RJ45 cable and JTAG. When I reset the target, the program startes, but after a wile approx. 5-60 sek, it hangs. Any suggestions? Best regards Kellelein

Can’t get the web server demo to work πŸ™

On the Keil homepage there’s a question about a similar problem: http://www.keil.com/support/docs/3338.htm (MCB2300: MCB2368 RUNS INTERMITTENTLY) Could this be relevant for my problem? I can’t find any code in the FreeRTOS that initializes the MAM, should this be done? Especially on my HW version 3.1? Best regards Kellelein

Can’t get the web server demo to work πŸ™

I now have tried to set the MAM value in main.c MAMCR = 0; MAMTIM = 4; MAMCR = 2; //(FULL MODE) If I write this, the system becoms very stable, and stops chrashing/hangs. If I try to ping the system, it sometimes answers back….but only 1 out of 20 :-( best regards Kellelein

Can’t get the web server demo to work πŸ™

See this answer https://sourceforge.net/forum/message.php?msg_id=4536135 your post would seem to confirm the suspicion.