Hi Again,
I have an explanation. Thanks to Rafael very quick reply !
The Application Note is developped for CodeWarrior 4.5 or higher. If you download the latest CW version the code should work as provided.
You can download an evaluation version (
CWX-H12-PROED-EX -
CW4.6 for S12 Special Edition) that will allow you to compile up to 32K bytes of C code.
One more thing, if you do the change you mentioned (= change the prm section to Read Only), the code
will not work.
The idea is that CW 4.5 and 4.6 make the copy from Flash to RAM when a Read-Write section with code is found. If you want to use an earlier CW version, you need to follow the steps of Technical Note TN228 (attached below) to copy this section of the code from flash to ram.
We think that the best way to proceed is to download the latest CW version.
Reference of Interest:
FAQ-27682I hope this helps !
Alban.
Edit: added attachment
Message Edited by Alban on 2007-09-26 10:55 AM
tn2281.pdf
Message Edited by t.dowe on 2009-10-21 12:28 AM