Search found 1166 matches

by David Barker
Tue Jul 19, 2016 1:34 pm
Forum: Compiler
Topic: compiler expectations for bank select register?
Replies: 4
Views: 2207

Re: compiler expectations for bank select register?

It needs to be the same - the compiler does not track ANY user changes
by David Barker
Tue Jul 19, 2016 12:24 pm
Forum: Compiler
Topic: compiler expectations for bank select register?
Replies: 4
Views: 2207

Re: compiler expectations for bank select register?

If some user code modifies BSR, the user code is responsible for restoring it.
by David Barker
Fri Jun 17, 2016 4:27 pm
Forum: Compiler
Topic: issue with comparing structures
Replies: 2
Views: 1997

Re: issue with comparing structures

I would say that the compiler should not really be allowing this comparison, as there is no internal mechanism for making the comparison (at least, not as far as a remember). There is a mechanism for strings, which are very similar in terms of comparing a block of data but not for structures. My onl...
by David Barker
Tue Apr 12, 2016 4:48 pm
Forum: Compiler
Topic: Swordfish Simulator?
Replies: 6
Views: 3566

Re: Swordfish Simulator?

I think Labcenter have gone down the route that everything should be centered around their IDE, which means they have pulled support for a standalone simulator (ISIS). I think the only viable future is source level debugging, as Jerry previously mentioned. This thread may also be of use: http://sfco...
by David Barker
Tue Mar 15, 2016 9:36 am
Forum: IDE
Topic: Microcode loader not loading programme
Replies: 4
Views: 2643

Re: Microcode loader not loading programme

$long-hex-filename$ => pass fully qualified hex filename to loader
-dPIC$target-device$ => PIC device
-iprogram => start programming, don't show loader interface
-b<baudrate> => COM buadrate
-c<COM> => COM port
by David Barker
Mon Mar 14, 2016 8:02 am
Forum: IDE
Topic: Microcode loader not loading programme
Replies: 4
Views: 2643

Re: Microcode loader not loading programme

The "UMC Firmware" button needs to be in the down state when using firmware designed for it...
by David Barker
Thu Mar 03, 2016 1:24 pm
Forum: Modules
Topic: SDFileSystem 4.0.9 Dir command
Replies: 3
Views: 2634

Re: SDFileSystem 4.0.9 Dir command

I've posted the file here:

http://www.sfcompiler.co.uk/wiki/pmwiki ... ardLibrary

Thanks again for sharing...
by David Barker
Thu Mar 03, 2016 10:25 am
Forum: Modules
Topic: SDFileSystem 4.0.9 Dir command
Replies: 3
Views: 2634

Re: SDFileSystem 4.0.9 Dir command

Thanks for posting these changes. They look like they could be really useful. If you email me the new, modified library, I could post on the wiki for others to share..
by David Barker
Wed Feb 24, 2016 10:35 am
Forum: User Modules
Topic: Swordfish --> Web Server
Replies: 6
Views: 2837

Re: Swordfish --> Web Server

This is also worth checking out

http://www.sfcompiler.co.uk/wiki/pmwiki ... User.W5500

I've also worked with the ESP8266 WiFi chip with Firewing with good results. Depends what you want to do I guess...
by David Barker
Fri Feb 19, 2016 2:01 pm
Forum: IDE
Topic: Way to verify consts?
Replies: 6
Views: 2862

Re: Way to verify consts?

I haven't written a plugin for ages - John B used to be pretty adept, maybe try contacting him for tips...

http://sfcompiler.co.uk/phpBB3/memberli ... rofile&u=8
by David Barker
Fri Feb 19, 2016 10:14 am
Forum: IDE
Topic: Way to verify consts?
Replies: 6
Views: 2862

Re: Way to verify consts?

> are there any compiler constants for the size of the various variables I don't understand the question > Personally, I'd say this is the sort of check that would be better done in the IDE It would not work for all those people using MPLAB/X to compile their code. > wouldn't be picked up anyway unl...
by David Barker
Fri Feb 19, 2016 9:35 am
Forum: IDE
Topic: Way to verify consts?
Replies: 6
Views: 2862

Re: Way to verify consts?

The IDE is always still under development, should user demand require it. However, I think you can achieve what you want in code, which should work fine for byte and word size constants: #variable aval = 200 #variable bval = 56 #variable rval = aval + bval #if rval > $FF #warning "rval out of range"...
by David Barker
Thu Feb 11, 2016 2:12 pm
Forum: User Modules
Topic: ISR for ADC's
Replies: 14
Views: 4698

Re: ISR for ADC's

Top tip... You also have to be very careful using interrupts when "writing to globals", particularly if the data is greater than 8 bits (1 byte). For example, your main program may be reading the first byte of a 16 bit value then an ISR triggers. The word variable gets changed, you return to the mai...
by David Barker
Sat Jan 23, 2016 6:05 pm
Forum: Compiler
Topic: System Error: Working register allocation failure
Replies: 3
Views: 2028

Re: System Error: Working register allocation failure

You should not normally see this error - it's a compiler allocation problem with RAM. The only solution is reworking code but without seeing anything there isn't much I can offer in terms of help.