-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Can't close Facebook chat windows in a desktop browser? Here is a simple workaround
By Martin Hodás,
- 2 replies
- 3 views
-
KB5028166 is causing system issues, break Secure Channel, forces Synology to release a patch
By Qblade_,
- microsoft
- windows 10
- (and 7 more)
- 6 replies
- 3 views
-
Latest Microsoft Launcher update breaks the app for many, including Surface Duo users
By Qblade_,
- microsoft
- microsoft launcher
- (and 3 more)
- 12 replies
- 3 views
-
Windows 10 KB5027215 update is causing installation issues for some users
By Qblade_,
- microsoft
- windows 10
- (and 6 more)
- 0 replies
- 4 views
-
Accept essential biscuits: Windows 11 calls .ZIP files Postcode files in UK English 1 2
By Chasethebase,
- microsoft
- windows 11
- (and 9 more)
- 26 replies
- 7 views
-
Question
n_K
So I've been using GPUtils for a few weeks now, used to use MPASM back in the day on windows but I have to say I really like GPUtils.
So I've been playing around with this PIC 18F4520 IC I have and have been writing a pretty large program (in terms of pages). I've been frustrated for a whole day now on why a function won't work and has undesirable behaviour - returns 0 or crashes or resets the PIC... Then I realised something - the code was too long for one page and I've been coding in the next page without knowing it.
So (this is all reloctable code - NOT absolute) I read up on using BANKSEL and PAGESEL in GPUtils... Unfortunately, it appears to do buggar all, I'm not sure if I'm using it wrong or if features is bugged and just isn't working. This is the code I'm using (from the lst to see the addresses):
And as can be seen - PAGESEL is doing nothing if I provide it with the function name or an address, I have to alter the PCLATH register manually as if I'm using absolute assembly which is a bit dumb and will always vary depending on what's added or what it's linked with or if anything is changed so I'm unsure if I'm doing something wrong or if I need to report a bug.
(Compiling using: gpasm -c 18f4520LCD.asm, linking using: gplink -m -c -s /usr/share/gputils/lkr/18f4520.lkr -o 18f4520LCD 18f4520LCD.o)
Anyone else got GPUtils, a programmer and can see if this is happening when they try this?
Thanks!
Link to comment
Share on other sites
33 answers to this question
Recommended Posts