AnsweredAssumed Answered

reading constant from paged memory

Question asked by martin lockner on Apr 29, 2014
Latest reply on May 5, 2014 by ZhangJennie

I am using codewarrior 10.4 with a mc9s08dz128 microcontroller. I have the micro set for banked memory and have placed a constant table in paged memory (it starts at 0x58000). I used the following #pragma to locate the table in paged memory:





extern const byte printer_fonts [] = {


My problem is reading one of these constant bytes. In reading the documentation it seems like the compiler/linker will automatically handle the extra addressing needed but nothing I have tried works. If I try to read the first byte I get the value that is located at address 0x8000 which means that the page register is not being handled. Anyone run into similar problems? Thanks in advance.