How to read and write to OTP register for FS26 SBC

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

How to read and write to OTP register for FS26 SBC

1,324 次查看
HemantK
Contributor III

Hello Community members, 

I was wondering if some one could guide us with the following query: 

We have S32K3X4EVB-Q172 Eval Board and have modified it so that Debug pin (FS26_VDEBUG) on FS26 chip remains at +8.0 V. The reason for doing this is so that SBC remains in "OTP emulation or programming" mode. 

Currently all we are trying to do is to read an OTP register, OTP_SYS_CFG1 (0x20) by sending (0x4000006E) to SBC and getting response 0xDA0000B9 which means data to be 0x0000 which is not correct.

Can you please let us know if there is something missing or wrong?

 

The SBC chip on board is PFS26AMDA0WL2.

 

 

 

 

0 项奖励
回复
6 回复数

309 次查看
frunoo
Contributor I

@JozefKozon OTP Emulation mode requires some key access. That is written in AN13850 Section 6.3 OTP Emulation.

frunoo_0-1722581046024.png

Does that mean, I must buy https://www.nxp.com/design/design-center/development-boards-and-designs/analog-toolbox/fs26-safety-s... ? Or is there another way to use OTP Emulation mode?

0 项奖励
回复

301 次查看
JozefKozon
NXP TechSupport
NXP TechSupport

@frunoo 

yes, that is correct. You need the Evaluation board and the GUI

With Best Regards,

Jozef

标记 (2)
0 项奖励
回复

284 次查看
frunoo
Contributor I

Without that kit, using any MCU & SPI communication, can I write OTP registers in OTP mode? Or do I definitely need that KITFS26SKTEVM programming board? 

0 项奖励
回复

276 次查看
JozefKozon
NXP TechSupport
NXP TechSupport

@frunoo 

other customers ask this too. The answer from the application team is, that reading the OTP via SPI is for NXP internal use only. You need to use the Evaluation board and GUI.

With Best Regards,

Jozef

0 项奖励
回复

1,304 次查看
JozefKozon
NXP TechSupport
NXP TechSupport

Hello Hemant,

please check the DBG_MODE bit in the FS_STATES register (latched information) and/or the bit VDBG_VOLT_S in the M_STATUS (real time information) register to confirm, that the FS26 is in Debug mode. 

JozefKozon_1-1667985262702.png

JozefKozon_0-1667985233869.png

There is a flowchart in the Figure 72. in the FS26 datasheet explaining the steps to enter OTP emulate or program mode. Please check it and confirm, that you have followed the steps. 

The FS26 datasheet can be download from the FS26 product page under the secure files.

JozefKozon_2-1667986450215.png

With Best Regards,

Jozef

 

0 项奖励
回复

1,011 次查看
Robert_Wang
Contributor I

Dear Jozef

how to use NXP GUI to make FS26 enter into OTP emulation mode? Since, the UG of the FS26 EV-kit tell me that I should make FS26 enter the debug mode by applying a ~4.5V on its DEBUG pin, however, the DS of FS26 tell me that I should make FS26 enter the OTP emulation mode by applying a 8V on its DEBUG pin, which one is correct?

and how can I change the VCORE/ LDO1/ LDO2 etc regulators output voltage during the engineering test stage with NXP GUI?

Best Regards,

Robert