Ian.M wrote:The simulator does work with C programs, but the simulation speed is far slower than the real chip.
I forgot about the delays and that is where the sim did just sit and do nothing. I commented // them out and it works just fine. Seems like in asm, the cursor would blink at the delay and wake me up to comment it out.
I think I forgot because when I run the same program in MicroC, the sim just ignores the delays. Score one for MicroC.
>XC8 v1.32's program memory allocation strategy seems to be top down. The HEX file starts with a jump to the C startup code but then there's a big gap in the memory map before it gets to the main code. That pro
bably explains all the 0x3FFF locations you are seeing.
Not sure I understand all that but does it mean that I can't look at the hex file or use the Pickit2 program?
The only way I can see the hex is using Word which is not very helpful. It is sometimes useful to read the hex from a chip and load it into another.
To make clear what I am seeing is ALL locations are 3fff except the first one which is 2ffe.
............ actually that is not true, I just looked again and the program seems to start at 7f7 but then runs out of memory or whatever after the next line.
The Pick1 program just crashes and shuts down when I try to load the hex.
Jack