i.MX6SDL DCD Data Check Command.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX6SDL DCD Data Check Command.

529 Views
satoshishimoda
Senior Contributor I

Hi community,

Our partner have some questions about i.MX6SDL DCD check data command (chapter 8.6.2.2 in IMX6SDLRM Rev.1).

Please see their questions as following.

[Q1]

Would you let me know how long polling time to count the [Count] of check data command.

In other words, we want to know the term from count up (down?) and next count up (down?).

(e.g. 1/32768 [s])

[Q2]

When [Count] is set, what is happen if the exit condition is NOT satisfied and the poll count is reached to [Count]?

Stop at Check Data command? or skip Check Data Command?

[Q3]

We understand we can set [Count] to 0x00000000 ~ 0xFFFFFFFF (32bit).

Is this correct?

[Q4]

Could you let me know how to use [Count] option in flash_header.S?

In BSP (L3.0.35_4.1.0_ER), we know defined "MXC_DCD_ITEM(i, addr, val)", but we did not understand how to set [Count].

If you have a sample code, could you send me it?

Best Regards,

Satoshi Shimoda

Labels (2)
Tags (2)
0 Kudos
1 Reply

372 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

In regards Q1 and Q2, I have to delve into it a little more.

But the count should be the amount of times to check the register. I suppose there must be an amount of  asm instructions equivalent to this command. Also the command should be skipped and continue with the rest of the commands.

Q3: Yes, you should be able to set those values.

Q4: The IMXC_DCD_ITEM does not apply the count parameter.

You can find code in the imx6q sdk code. At least it shows the way you can create the check command:

#define CHK_DAT(flags, bytes, address, mask, count)                 \
HDR(HAB_CMD_CHK_DAT, CHK_DAT_BYTES, WRT_DAT_PAR((flags), (bytes))), \
    EXPAND_UINT32(address),                                     \
    EXPAND_UINT32(mask),                                        \
    EXPAND_UINT32(count)

Best Regards,

Alejandro