Well, it turned out that there are so many changes required to get umcbuild to use mpasmx it just wasn't worth the bother.
Here's the asm source for a UMC loader that works with the K40 (at least the 27K40... the only one I tried).
You'll have to change the entries in the USER CONFIGURATION SECTION to match what you're using.
Right now it's setup for an 18F27K40, 16MHz intosc, and uart1 on RC6/RC7.
There are no other files required except for the mpasmx p18FxxK40.inc file. Don't use umcbuild.exe... just assemble it with mpasmx
Bookmarks