S32K344-DCF Example

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

S32K344-DCF Example

跳至解决方案
2,946 次查看
Simon-Liu
Contributor V

Hello

Are there any sample programs or detailed documentation about DCF?

 

BestRegards,

Simon

0 项奖励
回复
1 解答
2,875 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

1. yes, just continue writing to the unprogrammed addresses, in your case 0x1B000770.

2. Parity is in bit 1 of control word as you wrote. The parity scheme used is even parity. So, the number of 1s in the data word and parity field needs to be even. So for data 0x00000100, parity should be set and so control word will be 0x00100006

BR, Petr

在原帖中查看解决方案

6 回复数
2,867 次查看
ovidiubriscan
Contributor IV

Hi @PetrS , do you have a description of the default DCF records which are already present in the uC when delivered to TIER1 ? 

See attachment , they do not appear in the DCF clients (xls) 

Thanks a lot, Ovidiu

0 项奖励
回复
2,918 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

for more info refer to Chapter 37 Device Configuration Format (DCF) records  and S32K3xx_DCF_clients excel file attached to the device RM.
You can refer to below example to know how to program DCF record using RTD code;
https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K344-decouple-RTD400-Ip-C40-DS35-v1/ta-p...

BR, Petr

2,904 次查看
Simon-Liu
Contributor V

Hello @PetrS 

Thank you for your reply I have the following questions about the example

1. Why is the Flash address where the dcf_client_utest_misc data is written 0x1B000768? According to the description of S32K3xx_DCF_clients.xlsx in RM, isn't the starting address of UTEST- DCF Records 0x1B000708? So what is the write address of other DCF clients?

2. As shown in the screenshot below, are the descriptions of DCF Control Word and DCF Data Word reversed? The value of DCF Control Word should be 0x00100004, right?

SimonLiu_0-1726714522639.jpeg

 

3. If you want to set the Parity and Stop bits, should they be 0x00100006 and 0x00100005 respectively?

 

BestRegards,

Simon

0 项奖励
回复
2,890 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

1. DCF records are some data in OTP, this is programed only once, not erasable, you can just add new records after the last one. You need to determine the destination program address in UTEST flash. DCF records starts from 0x1B000700. Find out the first double-word filled by 0xFF. This is the target program address: “0x1B000768”

PetrS_0-1726730634727.png

For each new write this address will increase, for sure.

2. yes, in the example a description is swapped

3. Parity should be properly calculated and set accordingly, but Stop bit must be always cleared. Otherwise a record will be taken as last one and next one will be ignored.

BR, Petr

2,887 次查看
Simon-Liu
Contributor V

Hi @PetrS 

Thank you for your answer
1. In the EVB Flash I use, there is already a record at address 0x1B000768. And this record is for configuring dcf_client_utest_misc.
If I want to configure dcf_client_utest_misc differently, can I just continue writing to the unprogrammed addresses behind? For example, write 0x00000100 and 0x00100004.

SimonLiu_0-1726731877659.jpeg

3. I would like to ask where the Parity is located, is it bit 1 of DCF Control Word? Because the description of RM confuses me.

SimonLiu_1-1726731888966.jpeg

 

BestRegards,

Simon

0 项奖励
回复
2,876 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

1. yes, just continue writing to the unprogrammed addresses, in your case 0x1B000770.

2. Parity is in bit 1 of control word as you wrote. The parity scheme used is even parity. So, the number of 1s in the data word and parity field needs to be even. So for data 0x00000100, parity should be set and so control word will be 0x00100006

BR, Petr