CodeWarrior-AN2720- I want a program in C for writing in Flash Memory

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

CodeWarrior-AN2720- I want a program in C for writing in Flash Memory

Jump to solution
1,634 Views
ARBM66
Contributor I

Hello everybody!

I'm trying to write a program in C in Codewarrior for writing data in flash memory.

I'm using a 9S12E128 16 bit microelectronic with a Licensed Codewarrior v5.9.

I have many difficulty in this way. I have studied many books and test many subroutine.

Found a application note and program in freescale website(A2720) for Flash Programming but I couldn't find the file Flash.h in the download files so it does not work unfortunately.

I'm looking for a fastest way to get result.

Is anybody can help me please?

Thanks

Labels (1)
0 Kudos
1 Solution
409 Views
ipa
Contributor III

Hi,

If you have AN2720, see page 9 - flash.h file is included there.

Regards,

ipa

View solution in original post

0 Kudos
2 Replies
410 Views
ipa
Contributor III

Hi,

If you have AN2720, see page 9 - flash.h file is included there.

Regards,

ipa

0 Kudos
409 Views
ARBM66
Contributor I

Thank you jpa for your kind and prompt reply

I have another problem There is couple of error in my compiler

it could not find  "projectglobals.h" and also the the variable declration such as:

 Flash.fclkdiv.byte = Flash.fclkdiv.byte | fclk_val| FDIV8;

Could you please again help me to find out the problem?

Best regards

ARBM66

 

  

0 Kudos