It appears tonyp is correct--you must execute out of ram. From the QG 8 reference manual, we go back to the HCS08 Family reference manual, then back to Application Note 2140, which describes a bootloader (in assembly) which "uses no ram other than the stack itself"
Going into the application note, we find they load machine instructions onto the stack to manipulate flash.
Hi,
Have you seen this thread
http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&message.id=1066
Regards David
Message Edited by irob on 2006-06-29 02:08 PM
Sorry, irob I have not bothered to modify flash in ram. We have decided to do the calibration and put the constants in my application by Cyclone programmer rather than serial link.
-I dont usually include a semicolon after a pragma. You have to get rid of this error first.
-pointers to functions- always confusing. Is this a pointer to a function that returns a char?
Sorry I cant offer specific advice. When I get problems like these, the first thing I do is get rid of the errors (always) and warnings (almost always), and then inspect the map file and disassembled code to see if it matches my expectations.
C4200: Other segment than in previous declaration