# FreeRTOS demo working in Linux/Ubuntu but not in Windows\_Webserver on LPC1768

**URL:** <https://forums.freertos.org/t/freertos-demo-working-in-linux-ubuntu-but-not-in-windows-webserver-on-lpc1768/7967>\
**Category:** Kernel\
**Created:** [July 16, 2019, 2:53pm UTC](https://forums.freertos.org/t/freertos-demo-working-in-linux-ubuntu-but-not-in-windows-webserver-on-lpc1768/7967 "2019-07-16T14:53:58Z")\
**Posts on this page:** 3\
**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:** [July 16, 2019, 2:53pm UTC](https://forums.freertos.org/t/freertos-demo-working-in-linux-ubuntu-but-not-in-windows-webserver-on-lpc1768/7967/1 "2019-07-16T14:53:58Z")

</div>

**[dviesca](https://sourceforge.net/u/dviesca/)** wrote on [Tuesday, July 16, 2019](https://sourceforge.net/p/freertos/discussion/382005/thread/c05c576962/#0d39):

I adapted this demo: [https://www.freertos.org/LPC1768\_CrossWorks.html](https://www.freertos.org/LPC1768_CrossWorks.html) to work on a **Seeed Arch Pro board** that uses an **LPC1768 micro** (the same one as the demo).  
**FreeRTOS version: 10.2.1**  
I was able to successfully compile the demo using a makefile and when I plug the board (both USB and Ethenet cables of course) to a Linux or an Ubuntu PC the demo works like a charm. However, when I do the same on a Windows PC the board doesn’t execute the demo.

**What happens:**

- The “powered on” LED on the board turns on, this is normal.
- My PC detects the board and lets me put the .bin file in it without (apparently) errors. This is expected.
- The board keeps “unplugging” and “plugging” itself consistently every ~20 seconds (this doesn’t happen in a Linux or an Ubuntu machine). If I don’t put a .bin file to the board in that ~20 second window a .txt file appears with an error that reads “TIMEOUT”.
- I programmed the board to blink an LED to see if it’s responding properly while executing the demo. The LED blinks fine in Linux/Ubuntu but it doesn’t turn on if it’s plugged in a Windows host.

I have read extensively but can’t seem to find anything that can explain why the demo works on Linux/Ubuntu but not on Windows except maybe that the stack size is not sufficient, however I don’t believe that’s the problem. Any ideas?

---

<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:** [July 16, 2019, 3:37pm UTC](https://forums.freertos.org/t/freertos-demo-working-in-linux-ubuntu-but-not-in-windows-webserver-on-lpc1768/7967/2 "2019-07-16T15:37:43Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, July 16, 2019](https://sourceforge.net/p/freertos/discussion/382005/thread/c05c576962/#0d39/79d5):

This is a really old demo so I’m not really familiar with it any more,  
but you say you plugged in both the USB and the Ethernet. I presume you  
tried with just the USB plugged in in case the Ethernet was causing a  
crash or something - so I would guess that there was something different  
between the ways Windows and Linux are attempting to enumerate the USB.  
Maybe I’m just stating the obvious, which is not helpful.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [July 16, 2019, 6:24pm UTC](https://forums.freertos.org/t/freertos-demo-working-in-linux-ubuntu-but-not-in-windows-webserver-on-lpc1768/7967/3 "2019-07-16T18:24:13Z")

</div>

**[dviesca](https://sourceforge.net/u/dviesca/)** wrote on [Tuesday, July 16, 2019](https://sourceforge.net/p/freertos/discussion/382005/thread/c05c576962/#0805):

Yes, I have tried plugging in the USB by itself to no avail. If there is a problem enumerating the USB in the Windows host would you have any ideas or pointers as of what can be done to fix this? Thank you.
