Search found 1246 matches

by Jerry Messina
Wed Sep 23, 2020 10:29 am
Forum: IDE
Topic: UMC Build Error
Replies: 17
Views: 1259

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: 1259

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: 1259

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: 1259

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: 822

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: 822

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: 822

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: 1259

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: 1016

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: 312

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: 2009

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!
by Jerry Messina
Tue Sep 01, 2020 4:27 pm
Forum: IDE
Topic: Problem with the path to the Library folder
Replies: 21
Views: 2009

Re: Problem with the path to the Library folder

Putting files into the userlibrary allows you to override what's in the standard library folder. If you want to use the standard copy, get rid of the one in userlibrary. The installer doesn't touch what's in the userlibrary... you wouldn't want it to delete modules you may have changed. That does me...
by Jerry Messina
Sat Aug 29, 2020 11:51 pm
Forum: Modules
Topic: Library modules and recent compiler updates
Replies: 3
Views: 364

Re: Library modules and recent compiler updates

Right... it should have been installed as part of 2.2.3.4.

If you have the older version in your UserLibrary folder, remove it and when you rebuild your project the new version should be included in its place.
by Jerry Messina
Sat Aug 22, 2020 8:25 pm
Forum: Modules
Topic: Library modules and recent compiler updates
Replies: 3
Views: 364

Library modules and recent compiler updates

Just a reminder/FYI- Recent versions of the compiler now include some updated modules as part of the standard libraries. Any files in the UserLibrary folder will override those in the compiler Library folder, so you should review the contents of your UserLibrary folder and make sure you're not overr...
by Jerry Messina
Sat Aug 22, 2020 7:36 pm
Forum: Modules
Topic: Can't get spi to read data
Replies: 19
Views: 2434

Re: Can't get spi to read data

some files like intosc.bas are now included as part of the standard libraries. The compiler will look in the user library folder first, and then the library folder. Remove any old files from the user library folder and you'll get the new ones. After you compile a project,open the .idf file (it's a t...