What is the sequence to program the flexNVM regions of the new S32K118

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

What is the sequence to program the flexNVM regions of the new S32K118

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

I have written a driver to program a S32K118 device and now I can program the program flash, but when I write to the FlexNVm address (0x1000000) as I program the program flash, I get an error while reading FTFE_FSTAT .

Can someone tell me what is the sequence to program flexNVM? (used like flsh)

0 件の賞賛
1 解決策
744件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@MarioGt

Senlent_0-1687946108150.png

D-Flash->0x1000_2000

FCCOB[1] = 0x80

FCCOB[2] = 0x20

FCCOB[3] = 0x00

元の投稿で解決策を見る

0 件の賞賛
7 返答(返信)
755件の閲覧回数
MarioGt
Contributor II

Hi,
Thanks your information, it's usefull.

How do I program the D-flash area once I have partitioned it?
Because the "Program Phrase" and "Program section" commands can only program 24-bit addresses, and the address of D-Flash starts from 0x10000000, which requires a 32-bit address.

Thanks
Mario

タグ(2)
0 件の賞賛
745件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@MarioGt

Senlent_0-1687946108150.png

D-Flash->0x1000_2000

FCCOB[1] = 0x80

FCCOB[2] = 0x20

FCCOB[3] = 0x00

0 件の賞賛
711件の閲覧回数
MarioGt
Contributor II

Hi

now i can program the area of flexNVM but except the first 0x800 addresses

do you know why?

I discovered that 0x800 is the size of flexRAM and I always find "0x33CC6699F0F055AA" at the first address of FlexNVM (0x10000000) can this information be useful?

 

Thanks
Mario

0 件の賞賛
700件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@MarioGt

I haven't encountered a similar problem. In theory, there should be no data. Maybe the device has been partitioned before.
I suggest that you perform a mass erase on the device first, then partition the device, and then try to read and write to the FlexNVM area.

0 件の賞賛
683件の閲覧回数
MarioGt
Contributor II
Thanks you
I already understood why.
is my problem.
already solved
0 件の賞賛
696件の閲覧回数
MarioGt
Contributor II

Hi 

I found an interesting pattern, in fact I can program the first sector of flexNVM.
But once I disconnect and reconnect the power, the first sector of FlexNVM is automatically modified to the value "0x33CC6699F0F055AA" and "0xFF..."

it's wired.

Do you have any thoughts on this?

Thank
Mario

 

/*********************************************************************************/

Thanks you
I already understood why.
is my problem.
already solved

/*******************************************************************************//

0 件の賞賛
769件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@MarioGt

If you need to use the 32kb space of flexnvm as D-Flash, you need to partition it first.

you can refer to AN11983

https://www.nxp.com/docs/en/application-note/AN11983.pdf 

0 件の賞賛