Now working after compiling in large model and other software changes. Thank you very much, Jordi Costa ----- Original Message ----- From: "Robert" <> To: <> Sent: Wednesday, June 25, 2003 10:35 AM Subject: RE: [68HC12] Codewarrior & flash data problem > Your compiler is set to banked model witch allow only banked code and > not banked data. > Data must be in non banked memory. > > Try to set compiler to large memory model. > > -----Izvirno sporocilo----- > Od: Jordi Costa [mailto:] > Poslano: 25. junij 2003 10:07 > Za: > Zadeva: [68HC12] Codewarrior & flash data problem > > I sent this question days ago and I don't receive any answer. Now I will > try to explain the problem better. > > I'm new in HCS12 programming and after successful tests with Codewarrior > Processor Expert using SPI, SCI, timers, etc., now I'm trying to store > some data in flash. I thought that Codewarrior Bean "Internal Flash" > would help, but I got some problems. > > For example, if I read some data from 0x388000 (Flash1, Page 0x38) > calling IFsh1_GetPage(0x388000) got the code stored in Page 0x30 from > where program is running. > > Otherwise, if I trace into the process, when IFsh1_GetPage calls > SelectBank(dword Addr) PPAGE is changed to 0x38 and program hangs due > 0xFFFF execution in erased flash. > > Any help will be appreciated. > Jordi Costa |