How to program MKV31F512-LL flash 1 block

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to program MKV31F512-LL flash 1 block

ソリューションへジャンプ
790件の閲覧回数
lishirley
Contributor II

Hello,

I try to program the MKV31F512-LL flash by SWD, and now the first 128 sectors(in flash 0 block) could program success, but the 128~256 sectors could not program yet, I could not find any information in reference Manual in how to program it, would you please help to show me how to choose the flash block to program? Thanks very much.

Shirley

BR 

0 件の賞賛
1 解決策
713件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi Li,

KV31F512 has two flash bank. The two banks are both access by flash controller. They have no difference in accessing. There is a pflash driver example in the SDK. It operates the last several sector in Flash space. You can try it.

Regards,

Jing

元の投稿で解決策を見る

0 件の賞賛
4 返答(返信)
714件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi Li,

KV31F512 has two flash bank. The two banks are both access by flash controller. They have no difference in accessing. There is a pflash driver example in the SDK. It operates the last several sector in Flash space. You can try it.

Regards,

Jing

0 件の賞賛
713件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi,

Please download TWR-KV31F120M SDK from Welcome | MCUXpresso SDK Builder 

Regards,

Jing

713件の閲覧回数
lishirley
Contributor II

Hi Jing,

I have download the SDK, but in the pflash driver, I just see it use the interface to program, but don't find out which register to set, and the program process.

Which flash controller to choose to program the bank 1? Is Flash Bank 1 Control Register? How to set it?

Thanks very much!

BR

Shirley

0 件の賞賛
713件の閲覧回数
lishirley
Contributor II

Hi Jing,

Thanks for your reply.

Would you please tell me how can I get the SDK?

Thanks!

Shirley

0 件の賞賛