Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - RogerH

Pages: [1]
1
NXPTM LPC2XXX and LPC17XX / Issue with uTasker on Olimex LPC2478-STK
« on: September 20, 2009, 04:23:18 AM »
Hi,

I am having problems getting uTasker to run on my Olimex LPC2478-STK board.

On running in the simulator following Marks directions in the NXP LPC2XXX Tutorial all appears to be going well until I get an exception thrown when I try to upload the Webpages via FTP using the DOS Copy_All batch file.

The following exception is thrown at the following code in LPC23XXSim.c when the *(unsigned char *)0 = 0; is executed as it is trying to write to location 0x0000000. "Unhandled exception at 0x00474fe3 in uTaskerV1-4.exe: 0xC0000005: Access violation writing location 0x00000000."

                if (iOldLineBlank == 0) {                                // check that we only write 1 to non-blank lines
                    iLineLength = 0;
                    while (iLineLength < FLASH_LINE_SIZE) {
                        if (ucNewLine[iLineLength++] != 0xff) {
                            *(unsigned char *)0 = 0;                     // writing non '1' to a non-blank line - signal so that this can be corrected
                        }
                    }
                }

Why is this code writing to memory location 0. The comment is suggesting that this is to signal an error so that it can be corrected later.

Any assistance here would be gratefully received.

Many thanks, RogerH



Pages: [1]