Search found 1220 matches

by Jerry Messina
Sat Oct 10, 2020 1:18 pm
Forum: Announcements
Topic: SwordfishICC V1.2.0.5 update for Swordfish V2.2.3.5
Replies: 0
Views: 382

SwordfishICC V1.2.0.5 update for Swordfish V2.2.3.5

An update is available to fix an issue for Q10/Q43 devices.

See "SwordfishICC V1.2.0.5 update for Swordfish V2.2.3.5" on the User Modules wiki page
https://www.sfcompiler.co.uk/wiki/pmwik ... er.Modules
by Jerry Messina
Wed Sep 30, 2020 1:59 pm
Forum: IDE
Topic: UMC Build Error
Replies: 17
Views: 698

Re: UMC Build Error

Thanks for checking that out.

Just fyi... the intosc of the K42 should be accurate enough for serial use in most cases (spec is 2% over range 0-60degC)
That'll let you run up to 64MHz
by Jerry Messina
Sun Sep 27, 2020 9:08 pm
Forum: IDE
Topic: UMC Build Error
Replies: 17
Views: 698

Re: UMC Build Error

I normally uncheck 'Case Sensitive' and set 'Processor' to 'default'
Clipboard01.jpg
Clipboard01.jpg (52.44 KiB) Viewed 178 times
If there are any error messages it'll produce a .ERR file with the line number + message.
It also produces a .O file (which you don't need)
by Jerry Messina
Wed Sep 23, 2020 11:25 am
Forum: IDE
Topic: UMC Build Error
Replies: 17
Views: 698

Re: UMC Build Error

Thanks, Gav. One other thing... I only tested this using the internal osc (I'm too lazy to go find my other dev boards), so if anyone has problems using an external xtal let me know. It's supposed to switch the config settings for you based on '#define intosc' but I didn't check to see if I got thos...
by Jerry Messina
Wed Sep 23, 2020 10:29 am
Forum: IDE
Topic: UMC Build Error
Replies: 17
Views: 698

Re: UMC Build Error

Right, you need MPLABX 5.35... that's the last version that has the MPASM assembler. If you're trying to build this in mplabx, open the project properties, navigate to 'mpasm (Global Options)' and check 'Build in absolute mode'. I find it easier to just assemble it outside of mplabx. If you run mpas...
by Jerry Messina
Tue Sep 22, 2020 4:17 pm
Forum: IDE
Topic: UMC Build Error
Replies: 17
Views: 698

Re: UMC Build Error

I surely would like to buy you a beer IMHO that's the biggest problem with the internet... virtual beer just doesn't cut it! Anyway, here's a UMC bootloader for the K42. It's a standalone .asm file that supports the whole 18FxxK42 family. Just assemble it with mpasmx.exe to create the hex file. The...
by Jerry Messina
Sun Sep 20, 2020 10:32 pm
Forum: IDE
Topic: UMC Build Error
Replies: 17
Views: 698

Re: UMC Build Error

I have bootloaders for the K22 and K40 but none for the K42.

I'll put together a converter tool to generate the .dev file info from the mplabx files.
In the meantime I'll see what's needed for a K42 loader... maybe I could do a standalone .asm file that you could assemble with mplabx.
by Jerry Messina
Fri Sep 18, 2020 3:20 pm
Forum: IDE
Topic: UMC Build Error
Replies: 17
Views: 698

Re: UMC Build Error

I did a little poking around with this and found that the reason that it worked for me was because I also have the old MPLAB 8.92 installed, and as David pointed out you need some of the files from MPLAB that aren't in mplabx. The file you need for umcbuild.exe is a '.dev' file to match your device,...
by Jerry Messina
Fri Sep 18, 2020 11:33 am
Forum: Modules
Topic: new SSD1306S Library
Replies: 5
Views: 519

Re: new SSD1306S Library

Cool video! Just in case anyone's interested, in many cases you can simplify the test code and just use the defaults for most of the #options. For a K22 and MSSP1 I2C, that might look something like... Device = 18F26K22 Clock = 64 Include "intosc.bas" // setup intosc based on 'clock=' // select SSD1...
by Jerry Messina
Sun Sep 13, 2020 11:20 am
Forum: Modules
Topic: new SSD1306S Library
Replies: 5
Views: 519

Re: new SSD1306S Library

Some of the setup can be a bit confusing now that the new modules use the standard libs for their interface code, but at least that way they'll work with any device that the std libs support, and also allow using PPS. main_GLCD_ST7565RS.bas has an example of setting up hdw using the 27K40, SPI, and ...
by Jerry Messina
Sun Sep 13, 2020 10:52 am
Forum: Modules
Topic: new SSD1306S Library
Replies: 5
Views: 519

Re: new SSD1306S Library

If you look in the folder 'Samples\NewExamples' there's 'main_GLCD_ssd1306s.bas', which is one of the files I used to test the library.

It's not really a demo program and there's stuff in there that you won't need (like mplab debugging) but it has the basic setup for various hardware configurations.
by Jerry Messina
Sat Sep 12, 2020 12:24 pm
Forum: IDE
Topic: UMC Build Error
Replies: 17
Views: 698

Re: UMC Build Error

I was able to get it to work with the files from mplabx, but I had to do the following: - copy the folder "C:\Program Files (x86)\Microchip\MPLABX\v5.35\mpasmx" to a folder with no spaces, periods, or special chars, ie "C:\mpasmx" - copy the file "C:\mpasmx\mpasmx.exe" to "C:\mpasmx\mpasmwin.exe" - ...
by Jerry Messina
Wed Sep 09, 2020 12:09 pm
Forum: Announcements
Topic: Online update - 09-09-2020
Replies: 0
Views: 378

Online update - 09-09-2020

There is a new compiler update (2.2.3.5) available for registered users. Download: http://www.mecanique-web.co.uk/downloads/swordfish-si.exe and enter your activation key to install. You can view a list of changes here: https://www.sfcompiler.co.uk/wiki/pmwiki.php?n=Swordfish.VersionHistory For SE v...
by Jerry Messina
Sat Sep 05, 2020 10:28 pm
Forum: Modules
Topic: VERIFY USART2_TX/RX PIN error with USART_2
Replies: 2
Views: 146

Re: VERIFY USART2_TX/RX PIN error with USART_2

Garry, The '#option' statements must be before the module that needs them is included. The important ones here would be: #option USART2_TX = PORTA.1 ' uart2 TX data out - RP1 #option USART2_RX = PORTA.5 ' uart2 RX data in - RP2 Include "USART2.bas" Your pps statements look ok to me.
by Jerry Messina
Tue Sep 01, 2020 5:05 pm
Forum: IDE
Topic: Problem with the path to the Library folder
Replies: 21
Views: 670

Re: Problem with the path to the Library folder

If you were to delete the two folders:
c:\users\g\documents\swordfish\userlibrary
C:\ProgramData\Mecanique\Swordfish\userlibrary

then I don't know where in the world it could pull a copy from!