Latest version of MPASMwin

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
CharlieM
Registered User
Registered User
Posts: 211
Joined: Wed Oct 10, 2007 12:05 am

Latest version of MPASMwin

Post by CharlieM » Thu Jan 06, 2011 10:37 am

Hello All,

Just updated to the latest version of MPLAB. So I figured I would update the MPASMWIN in the SF/Bin folder. Well I di that and now programs that did compile ... don't. So I reverted back to the previous version and now my programs compile. Anyone else seeing this?
Last edited by CharlieM on Sun Feb 27, 2011 9:00 pm, edited 2 times in total.
Running version 2.2.4.0 ICC 1.2.1.0
Regards CharlieM

Jerry Messina
Swordfish Developer
Posts: 1470
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Post by Jerry Messina » Thu Jan 06, 2011 2:08 pm

Did you see my post just below this one?

http://www.sfcompiler.co.uk/forum/viewtopic.php?t=1385

User avatar
Senacharim
Posts: 139
Joined: Tue Aug 10, 2010 5:19 pm
Location: Ventura, CA

Post by Senacharim » Thu Jan 06, 2011 2:38 pm

Haven't updated mine yet--not broke, no need to fix it.

Plus, I'm in the midst of a fairly hefty project and the last thing I need is something inexplicably effing up due to an update.

I plan to later though, thanks for the 'heads up.'
Surviving Member
Bermuda Triangle Battalion
from 2026 to 1992

Voted "Most likely to time travel"--Class of 2024.

CharlieM
Registered User
Registered User
Posts: 211
Joined: Wed Oct 10, 2007 12:05 am

Post by CharlieM » Thu Jan 06, 2011 10:24 pm

Hi Jerry,

Thanks. I will give it a shot.
Running version 2.2.4.0 ICC 1.2.1.0
Regards CharlieM

be80be
Registered User
Registered User
Posts: 90
Joined: Mon Feb 23, 2009 2:15 am
Location: tn

Post by be80be » Sat Jan 15, 2011 5:09 am

Will this let you use it with 18f14k50
It give error with 18f452 Image

I guess it works LOl you have to fix all the error in the include file there is no
25 in this it's 20 BORV(BORV) = [45, 42, 27, 20],

be80be
Registered User
Registered User
Posts: 90
Joined: Mon Feb 23, 2009 2:15 am
Location: tn

Post by be80be » Sat Jan 15, 2011 6:28 am

Maybe it will not be to bad 4 out 5 complied ok

Maybe I try the 18f14k50 and changing the inc files I sure hope that works I got swordfish just to use them and usb

Jerry Messina
Swordfish Developer
Posts: 1470
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Post by Jerry Messina » Sat Jan 15, 2011 9:31 am

You might want to look at updating the device INC and BAS files using the SystemConvert utility.

The new mpasm has a number of corrections.

be80be
Registered User
Registered User
Posts: 90
Joined: Mon Feb 23, 2009 2:15 am
Location: tn

Post by be80be » Sat Jan 15, 2011 7:26 pm

I remade all of them last night using System Convert so it would be safe to save old ones and replace them with the new ones.?

Jerry Messina
Swordfish Developer
Posts: 1470
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Post by Jerry Messina » Sat Jan 15, 2011 7:36 pm

Probably, but you might want to keep a copy of the old ones somewhere. That way you have something to compare the new ones to.

Even though the conversions are automatic, once in a while some of the values are hand-tweaked as I understand it.

You could always just replace the one or two that you're having problems with. That might be the safest way to go.

Rickado
Registered User
Registered User
Posts: 17
Joined: Tue Apr 28, 2009 9:43 pm
Location: Dunedin, New Zealand

Post by Rickado » Tue Jan 18, 2011 7:28 am

Beware when converting pic18f46k22.

In 18F46K22.bas file
#variable _maxram = $0F60 // 3936 bytes of user RAM

will have to be changed to
#variable _maxram = $0F38 // 3896 bytes of user RAM from DataSheet

Rickado
Registered User
Registered User
Posts: 17
Joined: Tue Apr 28, 2009 9:43 pm
Location: Dunedin, New Zealand

Post by Rickado » Tue Jan 18, 2011 9:39 pm

Looks like the pic18f26k22 has an incorrect
#variable _maxram

also or is there something I'm missing

User avatar
Senacharim
Posts: 139
Joined: Tue Aug 10, 2010 5:19 pm
Location: Ventura, CA

Post by Senacharim » Tue Jan 18, 2011 9:48 pm

Rickado wrote:Looks like the pic18f26k22 has an incorrect
#variable _maxram

also or is there something I'm missing
I've been using the 26K22 for a few weeks now, and not had any oddities with the RAM.

(In mine it's #variable _maxram = $0F00 // 3840 bytes of user RAM)
Surviving Member
Bermuda Triangle Battalion
from 2026 to 1992

Voted "Most likely to time travel"--Class of 2024.

Rickado
Registered User
Registered User
Posts: 17
Joined: Tue Apr 28, 2009 9:43 pm
Location: Dunedin, New Zealand

Post by Rickado » Tue Jan 18, 2011 10:18 pm

It should work fine, it just means you wont be able to use the full amount of ram $0F38. SF will think $0F00 is the max amount of ram

breakthrough
Posts: 8
Joined: Wed Jul 29, 2009 9:43 pm
Location: WA

Post by breakthrough » Sat Feb 26, 2011 10:02 pm

Hmm- I've had the same problem but still don't know how to resolve it. I upgraded MPASMWin to the recent version and read the thread about this at

http://www.sfcompiler.co.uk/forum/viewtopic.php?t=1385

And followed all the instructions. PIC18F452 chips won't compile. Editing the include file doesn't fix it -- only generates more errors.

Where is a clear solution for this problem?
"If we use fuel to get our power, we are living on our capital and exhausting it rapidly. This method is barbarous and wantonly wasteful and will have to be stopped in the interest of coming generations." - Nikola Tesla

Jerry Messina
Swordfish Developer
Posts: 1470
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Post by Jerry Messina » Mon Feb 28, 2011 1:01 pm

PIC18F452 chips won't compile. Editing the include file doesn't fix it -- only generates more errors.
What error(s) are you getting, and how did you change the include file?

Post Reply