AnsweredAssumed Answered

Impossible to declare a 3 bytes sized pointer on QE128

Question asked by Nicolas PADEY on Dec 18, 2007
Latest reply on Dec 20, 2007 by CrasyCat
Hello !
 
I'm working with Code warrior 6.0 and I'm experimenting troubles on the S08QE128.
 
For my application, I need to declare a 3 bytes sized pointer in order to read data saved in paged flash memory.
 
I'm using the "banked" memory model.
 
Code warrior help tels to use the key word "__far" in pointer declaration to declare a 3 bytes sized pointer, but it doesn't work, the pointer remains on 2 bytes only.
 
I also tryed to use the key word "__linear" : it seemed to work at first sight because the pointer had been well resized on 3 bytes, but the compiler failed with C4007 error telling "pointer deref is not allowed"...
 
Do you have any idea ?
 
Thank you very much for your help !
 
Electronico

Outcomes