-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Microsoft has finally fixed Windows 11 May Patch Tuesday install issues
By Usama Jawad96,
- microsoft
- windows 11
- (and 8 more)
- 2 replies
- 0 views
-
Microsoft confirms Domain Controller bug in Windows Server 2016
By Usama Jawad96,
- microsoft
- windows server
- (and 8 more)
- 7 replies
- 0 views
-
Microsoft blames macOS for annoying Teams bug
By Usama Jawad96,
- microsoft
- microsoft teams
- (and 6 more)
- 1 reply
- 0 views
-
Windows 11 KB5083769 update breaks BITS and causes system freezes
By zikalify,
- microsoft
- windows 11
- (and 6 more)
- 7 replies
- 0 views
-
The "Windows bug" that mysteriously crashed File Explorer
By Usama Jawad96,
- 9 replies
- 0 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
https://www.neowin.net/forum/topic/1133852-gputils-pic-bug/Share on other sites
33 answers to this question
Recommended Posts