Hello
Are there any sample programs or detailed documentation about DCF?
BestRegards,
Simon
Solved! Go to Solution.
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
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
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
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?
3. If you want to set the Parity and Stop bits, should they be 0x00100006 and 0x00100005 respectively?
BestRegards,
Simon
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”
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
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.
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.
BestRegards,
Simon
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