Just in case someone else falls foul of this..
I have just spent three evenings battling with XC8 v2.05... C99.. I have a pic18f87k22 and couldn't get simulation going let alone for real..
Stupid mistake... XINST was on by default.. WHY!!!! XC8 does not support extended instruction set.. Surely the mad hatters at Microchip could mask that piggin bit out if they don't support it.. I know its there for assembly and asm can be used with XC8, but any C code will not work...
Make my blood boil... I thought it was a C99 thing, but you can change the standard... Didn't help..
Rant over!!
I have just spent three evenings battling with XC8 v2.05... C99.. I have a pic18f87k22 and couldn't get simulation going let alone for real..
Stupid mistake... XINST was on by default.. WHY!!!! XC8 does not support extended instruction set.. Surely the mad hatters at Microchip could mask that piggin bit out if they don't support it.. I know its there for assembly and asm can be used with XC8, but any C code will not work...
Make my blood boil... I thought it was a C99 thing, but you can change the standard... Didn't help..
Rant over!!