Programming/reading/erasing MC68HC908MR32 FLASH

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Programming/reading/erasing MC68HC908MR32 FLASH

5,713 Views
fra
Contributor I
Hi everybody.
The target in my firmware application is read/write operations on 32KB MR32 µC.
I follow AN2183 ( Using FLASH as EEPROM on the MC68HC908GP32 ) and AN2183SW to implement the features, in fact  either the GP32 µC and MR32 one have no embedded ROM routines to use for writing and reading flash memory.
First of all, I would like to know if this application note is the one I can consider for my operations.
Besides, I tried to make a Code Warrior Project for GP32 to use directly AN2183SW algorithm, but I get some errors when I build the project because the CASM08 used by Code Warrior doesn't recognize for example "{ }", logical symbols like " | " and so on. Could anybody tell me why?
Thank you.
Labels (1)
0 Kudos
Reply
3 Replies

1,489 Views
vivek
Contributor II

Hi FRA,

I doubt wether i ve clearly understood ur question. Wats ur ultimate aim? Is it to erase and program MC68HC908MR32's flash using ur custom built hardware (MR32==>RS-232==>PC==>Code warrior)  and Code warrior?

Well I have jus gone thro this and now I hav successfully erased and programmed MR32. I am also able to debeug my code, ADC, IO ports...

 For this all u need is to download the datasheet MC68HC908MR32_Rev_6.1.pdf.

Then pg 257 gives a Monitor mode entry circuit.  Some minor changes in the circuit will help u to do wat u intend... 

Thanks and regards

ViVek

0 Kudos
Reply

1,489 Views
fra
Contributor I

Hi ViVek, thanks for the reply. You're right, perhaps I explained the problem not clearly. My goal is to write, read and erase MR32's FLASH run-time: I need to store some dates while my application is running, so that the control board can remember it after a supply fault, for example. In this way I could  use FLASH memory like an EEPROM one, isn't it?

I know MR32 datasheet, I think it's not enough to implement this feature. A valid help is AN2183 and I would like get other documents, if they exist. 

0 Kudos
Reply

1,489 Views
ok2ucx
Contributor IV

Hi, I wonder if HC08 Bootloader appnote (AN2295) may help you with in-circuit Flash programming. MR32 too is supported so looking into bootloader sources you can find the actual code for Flash programming.

Hope it helps.

Pavel, ok2ucx (AN2295 developer)

Freescale Roznov, CZ

0 Kudos
Reply