AnsweredAssumed Answered

Printf() in Banked Memory Model (HCS12)

Question asked by vectorio on Nov 21, 2006
Latest reply on Jul 16, 2007 by CrasyCat
I am facing some problems using printf(). It works nicely in large memory model, but in banked memory model, I am forced to allocate STRINGS in the nonbanked section, which isn't very nice because we don't have a lot of unbanked space. Is it possible to make printf() work in banked memory model with arguments in banked ROM/RAM? If so, how? The code I get seems to hand over 16bit pointers only.

I tried recompiling the lib, and the code I got actually handed over 3 bytes, but the page part was always 0.

Outcomes