Tumbleweed, It works a treat. Thanks... Wow these K40's can really be a pain but, twice the memory. I only wish my UMC Loader worked with them...
Tumbleweed, It works a treat. Thanks... Wow these K40's can really be a pain but, twice the memory. I only wish my UMC Loader worked with them...
Last edited by Dave; - 20th May 2018 at 16:40.
Dave Purola,
N8NTA
EN82fn
Great. Glad it's working.
I've got a 27K40 floating around here someplace. When I get a chance I'll see if I can get a UMC build together that works with it.I only wish my UMC Loader worked with them...
I believe the problem is with the UMCBuild.exe file that needs to be changed. I have tried a few times with the config's set for the appropriate devices and all I get is the message "Device not Self Programmable". I have emailed David Barker and he said that he will not support new devices for that Bootloader any more.
Dave Purola,
N8NTA
EN82fn
UMCBuild.exe requires mpasm and some of the files from the old MPLAB8, but you need mpasmx from MPLABX to support the K40. Add to that it's possible MPLABX no longer includes some of the files UMCBuild is looking for.
I'm pretty sure I can knock something together for you... I just need some free time to look at it.
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
Thanks Tumbleweed, I will give it a try when I get home from work tonight and let you know.
Dave Purola,
N8NTA
EN82fn
Well Tumbleweed, I just couldn't wait to try it out. It all looks good. The only error I got when compiling was "undefined symbol":
; check to make sure program fits 26-5-2018
#if $ > DEVICE_ROM
error "program code exceeds flash size. change LOADER_SIZE_MIN"
#endif
I just commented them out and away we go....
Once again, Thanks for the mod's.
Last edited by Dave; - 30th May 2018 at 15:14.
Dave Purola,
N8NTA
EN82fn
Bookmarks