Search found 219 matches

by SHughes_Fusion
Sat Oct 06, 2018 12:39 pm
Forum: Compiler
Topic: Install limit
Replies: 3
Views: 4575

Re: Install limit

Thanks a lot David. I had similar issues - being pushed to get some bugs fixed urgently but no access to Swordfish to do so. If only IT departments would schedule upgrades at times when we don't have important work to do...
by SHughes_Fusion
Fri Oct 05, 2018 3:06 pm
Forum: Compiler
Topic: Install limit
Replies: 3
Views: 4575

Install limit

I've had a number of hardware upgrades which have resulted in all 3 installs available with my key being used. I've now got a new laptop but can't install Swordfish as the key has expired. Is there any way to reset the number of installs? I've tried emailing 'enquiries@sfcompiler.co.uk' but had no r...
by SHughes_Fusion
Fri Jul 20, 2018 7:30 am
Forum: Compiler
Topic: PIC18FxxK40 and K42 any support?
Replies: 9
Views: 5600

Re: PIC18FxxK40 and K42 any support?

Thanks, Jerry, from my perspective no great rush as all projects are several weeks away, the main thing I wanted to find out is whether it was technically possible.
by SHughes_Fusion
Tue Jul 17, 2018 8:50 am
Forum: Compiler
Topic: PIC18FxxK40 and K42 any support?
Replies: 9
Views: 5600

Re: PIC18FxxK40 and K42 any support?

That sounds great, thanks for your support Jerry. So, am I right in thinking the K40 and Q10 don't actually need any compiler changes, just library changes? If so I'll bake one in to a board and start playing. Shame about the K42, I was keen to try that as the main limitation I run in to on the larg...
by SHughes_Fusion
Mon Jul 16, 2018 3:28 pm
Forum: Compiler
Topic: PIC18FxxK40 and K42 any support?
Replies: 9
Views: 5600

Re: PIC18FxxK40 and K42 any support? And Q10....

I'll add my voice to calls for K4x support, would prefer not to have to use workarounds. Also, does anyone have any insights as to whether the new Q10 series can be used with Swordfish? They seem friendly enough at first glance and the pricing is better than other 18Fs. Only thing to dislike about t...
by SHughes_Fusion
Mon Oct 02, 2017 1:26 pm
Forum: Compiler
Topic: Compiled size
Replies: 3
Views: 2982

Re: Compiled size

Good call, Jerry, I didn't think of that approach. The highest location in the hex file is 03E0 so it appears it's within the 1k boundary - just!
by SHughes_Fusion
Mon Oct 02, 2017 9:25 am
Forum: Compiler
Topic: Compiled size
Replies: 3
Views: 2982

Compiled size

Quick question - does the compiled size shown in the IDE include the reset and interrupt vectors? I'm writing a bootloader for the 14K22 which has options of 1K and 2K boot block sizes. The code is compiling to 1003 bytes, if this includes the vectors then it fits in the smaller bootblock, if it doe...
by SHughes_Fusion
Mon Oct 02, 2017 9:20 am
Forum: Compiler
Topic: RAM size problems
Replies: 5
Views: 3476

Re: RAM size problems

Swordfish is set up in general to make it easy for the programmer but not necessarily be the most optimised. If possible, define strings to the maximum size they need to be, rather than allowing SF to create a default size string. I've found that you can save a load of both code and data memory by c...
by SHughes_Fusion
Tue Aug 08, 2017 2:27 pm
Forum: Compiler
Topic: support added for K40 devices
Replies: 20
Views: 10955

Re: support added for K40 devices

Thanks, Jerry, good to know someone agrees with my interpretation. Would be better if they were a bit clearer though. Microchip datasheets have always had areas where they weren't too clear but they appear to be getting worse of late. Sorted one timer issue only to hit another... I had forgotten to ...
by SHughes_Fusion
Tue Aug 08, 2017 8:21 am
Forum: Compiler
Topic: support added for K40 devices
Replies: 20
Views: 10955

Re: support added for K40 devices

I could be being thick here, but how does PPS work on the K40s? For outputs, the datasheet has a column for 'Device Configuration' which isn't explained anywhere - is this showing the ports those peripherals can be mapped to? From other PPS devices I've looked at outputs can be mapped to any PPS pin...
by SHughes_Fusion
Mon Jul 31, 2017 1:14 pm
Forum: General
Topic: Minimising battery drain
Replies: 0
Views: 15145

Minimising battery drain

I've got a circuit powered from a single cell LiPo battery which uses an LM3670 buck regulator to provide a 3.3V rail. That all seems to work well, but I was wondering if there is any scope to save power by being able to shut the regulator down and power the processor (18F46K22) directly from the ba...
by SHughes_Fusion
Mon Jul 31, 2017 10:08 am
Forum: Compiler
Topic: K40 and interrupts issue
Replies: 4
Views: 3656

Re: K40 and interrupts issue

I'm just about to decide on which processor to go for on a new project. The K40 series is cheaper and more flexible than the K22 I normally use but I have read a few things which suggests Swordfish isn't immediately compatible without using klunky workarounds. Is there any indication as to whether D...
by SHughes_Fusion
Mon May 22, 2017 7:18 am
Forum: Compiler
Topic: Ease of porting to Firewing
Replies: 4
Views: 3543

Re: Ease of porting to Firewing

Coccoliso - Good idea, I'd not thought of trying Firewing for the current project. Jerry - Understand your point, but it's actually RAM that is the main constraining factor in this application. I'm doing a lot of comms (both Bluetooth and USB) and also have a GLCD to update. Being able to have >1k s...
by SHughes_Fusion
Fri May 19, 2017 3:45 pm
Forum: Compiler
Topic: Ease of porting to Firewing
Replies: 4
Views: 3543

Ease of porting to Firewing

I've got a project where feature creep has been more than expected and I'm starting to struggle to cram it all in to a PIC18. Moving to a PIC24 would offer lots of additional benefits above the extra RAM I'd have access to but having spent a long time developing the firmware in Swordfish I'm wonderi...
by SHughes_Fusion
Fri May 19, 2017 3:36 pm
Forum: Compiler
Topic: Difference between Byte() and .byte0
Replies: 1
Views: 2440

Difference between Byte() and .byte0

Is there any difference either the result or code generated between different ways of casting variables? For example, if I have a variable 'Number' defined as a LongInt, is Byte(Number) the same as Number.byte0? Simple question, but I can't find anything in the manual and have realised I use both va...