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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,884 次查看
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

标签 (1)
0 项奖励
回复
1 解答
659 次查看
ipa
Contributor III

Hi,

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

Regards,

ipa

在原帖中查看解决方案

0 项奖励
回复
2 回复数
660 次查看
ipa
Contributor III

Hi,

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

Regards,

ipa

0 项奖励
回复
659 次查看
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 项奖励
回复