# Trying to get the uIP IAR port going

**URL:** <https://forums.freertos.org/t/trying-to-get-the-uip-iar-port-going/2949>\
**Category:** Kernel\
**Created:** [November 13, 2005, 5:25am UTC](https://forums.freertos.org/t/trying-to-get-the-uip-iar-port-going/2949 "2005-11-13T05:25:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [November 13, 2005, 5:25am UTC](https://forums.freertos.org/t/trying-to-get-the-uip-iar-port-going/2949/1 "2005-11-13T05:25:40Z")

</div>

**[baxsie](https://sourceforge.net/u/baxsie/)** wrote on [Sunday, November 13, 2005](https://sourceforge.net/p/freertos/discussion/382005/thread/839f37e3/#0186):

I am trying to get the IAR uIP port going.

First I verified that my AT91SAM7X-EK was working by doing the "getting started" exercise for it at [http://www.at91.com](http://www.at91.com) The "LED Swing" application seemed to run fine (blinky, blinky).

I then tried the "rtosdemo.eww" project in "uIP\_Demo\_IAR\_ARM7" directory. The build seems to go fine (0 warnings 0 errors), download is OK, but there are no LED blinks as I expected.

If I click on the "halt" button, it always stops here on the line "while(!(pPMC-\>PMC\_SR & AT91C\_PMC\_MCKRDY));" in "Cstartup\_SAM7.c"

Here is a screenshot:  
[http://www.baxsie.com/scratch/FreeRTOS\_shot\_01.gif](http://www.baxsie.com/scratch/FreeRTOS_shot_01.gif)

Is there some configuration or jumper or something that I need to do to the AT91SAM7X-EK to get the demo to work?

Thanks in advance for your help.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [November 13, 2005, 6:06am UTC](https://forums.freertos.org/t/trying-to-get-the-uip-iar-port-going/2949/2 "2005-11-13T06:06:18Z")

</div>

**[baxsie](https://sourceforge.net/u/baxsie/)** wrote on [Sunday, November 13, 2005](https://sourceforge.net/p/freertos/discussion/382005/thread/839f37e3/#0186/d431):

Update: I manually skipped over the line it was stuck on and now the 3 LEDs are blinking at different rates as I would expect. The 4th LED is toggling every 3 seconds as expected.

However, I do not get any "link" lights on the (known good port of a know good) ethernet switch that the AT91SAM7X-EK is plugged into (I did double-check the cables).&nbsp; The "link/act (green) on the AT91SAM7X-EK is on solid, the "speed" and "full duplex" are off.

Any ideas?

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [November 13, 2005, 7:13am UTC](https://forums.freertos.org/t/trying-to-get-the-uip-iar-port-going/2949/3 "2005-11-13T07:13:23Z")

</div>

**[baxsie](https://sourceforge.net/u/baxsie/)** wrote on [Sunday, November 13, 2005](https://sourceforge.net/p/freertos/discussion/382005/thread/839f37e3/#0186/bd01):

Update: This gets weirder.

At some point I reached over and clicked "reset" button on the&nbsp; AT91SAM7X-EK. After a short pause the LEDs started blinking (without manually skipping the line as above). Still no ethernet lights.

Then I mashed the reset button for like a second. Now the LEDs were blinking, AND the link, speed, and duplex lights came on. The ethernet switch then saw the AT91SAM7X-EK. Woah.

I had to set the IP address (look for UIP\_IPADDR0, UIP\_NETMASK0, and UIP\_DRIPADDR0 in uipopt.h) for my LAN, then I could at least sometines load the page.

The pages did seem to load deathly slow when they did load. Pings seem to be returned about 50% of the time.

I wonder if I have a clock setting or something else configured wrong somewhere?

Any ideas?

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [November 13, 2005, 7:29am UTC](https://forums.freertos.org/t/trying-to-get-the-uip-iar-port-going/2949/4 "2005-11-13T07:29:48Z")

</div>

**[baxsie](https://sourceforge.net/u/baxsie/)** wrote on [Sunday, November 13, 2005](https://sourceforge.net/p/freertos/discussion/382005/thread/839f37e3/#0186/4cb3):

OK. I think I figured it out. I had the USB cable plugged into a powered port, which was plugged into the PC. This USB connection was powering the AT91SAM7X-EK. When I moved the cable to the wall-bug that was suplpied with the AT91SAM7X-EK, and reset the AT91SAM7X-EK, things suddenly looked a lot better.

Maybe the PC was putting traffic on the USB that was confusing FreeRTOS–or using a lot of resources.

In any case, it looks like it is all good now:

[http://www.baxsie.com/scratch/FreeRTOS\_uIP\_IAR\_AT91SAM7X-EK\_Success.gif](http://www.baxsie.com/scratch/FreeRTOS_uIP_IAR_AT91SAM7X-EK_Success.gif)

Tests of embedding an image:

[img][http://www.baxsie.com/scratch/FreeRTOS\_uIP\_IAR\_AT91SAM7X-EK\_Success.gif[/img]](http://www.baxsie.com/scratch/FreeRTOS_uIP_IAR_AT91SAM7X-EK_Success.gif%5B/img%5D)  
\<IMG SRC=‘[http://www.baxsie.com/scratch/FreeRTOS\_uIP\_IAR\_AT91SAM7X-EK\_Success.gif](http://www.baxsie.com/scratch/FreeRTOS_uIP_IAR_AT91SAM7X-EK_Success.gif)’\>

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [November 13, 2005, 9:30am UTC](https://forums.freertos.org/t/trying-to-get-the-uip-iar-port-going/2949/5 "2005-11-13T09:30:32Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Sunday, November 13, 2005](https://sourceforge.net/p/freertos/discussion/382005/thread/839f37e3/#0186/31a0):

Excellent - useful information regarding the USB connection possibly causing a problem.

You will notice that the page showing the RTOS stats will load much more quickly then any of the others (eg the page showing the file stats).&nbsp; This is because the cgi script is set to send all the data in one frame.&nbsp; The other pages are set to send a single line at a time.&nbsp; This is relevant to your previous question regarding the memory usage.&nbsp; If the uIP buffers were much smaller then you would not be able to send all the RTOS stats in a single packet, so this page would also be slower.

Regards.
