# problem run PC app 

**URL:** <https://forums.freertos.org/t/problem-run-pc-app/4076>\
**Category:** Kernel\
**Created:** [May 9, 2007, 11:14am UTC](https://forums.freertos.org/t/problem-run-pc-app/4076 "2007-05-09T11:14:14Z")\
**Posts on this page:** 7\
**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:** [May 9, 2007, 11:14am UTC](https://forums.freertos.org/t/problem-run-pc-app/4076/1 "2007-05-09T11:14:14Z")

</div>

**nobody** wrote on [Wednesday, May 09, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/b4bee57c/#80fc):

In demo PC application,Main.c i have modified with very basic things like crate task and in that task entry function send mess in queue and receive mess , but after some point of time it gives error. this dialog is appear.

------------------------  
16 bit MS-DOS Subsystem

C:\FreeRTOS\Demo\PC\rtosdemo.exe  
The NTVDM CPU has encountered an illegal instruction.  
CS:1044 IP:a72c OP:ff ff 00 00 4d Choose ‘close’ to terminate the application

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; close&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ignore  
---------------------------

---

<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:** [May 10, 2007, 8:08am UTC](https://forums.freertos.org/t/problem-run-pc-app/4076/2 "2007-05-10T08:08:14Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Thursday, May 10, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/b4bee57c/#80fc/6a92):

Which OS are you running the demo under?&nbsp; DOS, Win2K, XP, etc.&nbsp; There may be a problem accessing the parallel port if you are running XP.

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 10, 2007, 9:23am UTC](https://forums.freertos.org/t/problem-run-pc-app/4076/3 "2007-05-10T09:23:02Z")

</div>

**nobody** wrote on [Thursday, May 10, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/b4bee57c/#80fc/61e2):

I am using Win XP, PC demo application is for 16bit DOS and using owotcom compiler.  
If i want to run on intel processor & XP OS what i can do? and without ERROR.  
Thanks

---

<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:** [May 10, 2007, 9:33am UTC](https://forums.freertos.org/t/problem-run-pc-app/4076/4 "2007-05-10T09:33:13Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Thursday, May 10, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/b4bee57c/#80fc/61e2/fa76):

You could either boot a PC into FreeDOS, using a floppy disk (this is what I do), or run it on an Win2K or lower machine - then you should be able to run the whole system.

To run it on XP you will probably have to remove anything that attempts to write directly to the hardware.&nbsp;

Try this:

+ In main.c, commount out the lines:&nbsp;  
—vParTestInitialise()  
—vStartFlashCoRoutines( mainNUM\_FLASH\_CO\_ROUTINES );  
—vStartComTestTasks( mainCOM\_TEST\_PRIORITY, serCOM1, ser115200 );

The first two write to the parallel port, the last writes to the serial port.&nbsp; If the code executes like this you will get some warnings on the display that the COM test tasks are failing (because the line that creates the tasks has been commented out).

The code will still attempt to write to the hardware timer, which may generate the same error.&nbsp;

Regards.

---

<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:** [May 10, 2007, 9:35am UTC](https://forums.freertos.org/t/problem-run-pc-app/4076/5 "2007-05-10T09:35:39Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Thursday, May 10, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/b4bee57c/#80fc/61e2/fa76/eae4):

Actually - I just tried running it on an XP machine and it executed without any problems.&nbsp; The error must be being caused by something else.&nbsp; I should ignore my last post.

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 10, 2007, 9:49am UTC](https://forums.freertos.org/t/problem-run-pc-app/4076/6 "2007-05-10T09:49:00Z")

</div>

**nobody** wrote on [Thursday, May 10, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/b4bee57c/#80fc/0268):

In demo main.c : It is giving error "Com test count unchange! " Beacause of no loopback connector

I modified this main.c  
But in&nbsp; my main.c only this things are there ,all i deleted

sQueuecreate  
xTaskCreate  
TaskstartScheduler

Task entry function  
used xQueuesend and xQueuerecive

that’s all.

I have given print statement , through i can see queue recive the mess.  
give mess for nearly 1 sec,  
then it gives error

Compiling successfully.  
While running it is giving error: that is in 1st message of mine

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 11, 2007, 10:14am UTC](https://forums.freertos.org/t/problem-run-pc-app/4076/7 "2007-05-11T10:14:56Z")

</div>

**nobody** wrote on [Friday, May 11, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/b4bee57c/#80fc/8637):

Is anybody have answer of this? please let me know. it is very urgent.  
Thanks
