Hi @JXiao.1 ,
you have to change the content of the DEB_STEP[7:0] bits of the ****_DEB_STEPS_CONF register to change the number of steps. Please note that to access this particular register, and in general all the registers of the embedded functions, you have to write a particular set of commands to access a memory page that is not the default one: you can follow the indications described in the datasheet, p. 125:
Write procedure example:
Example: write value 06h register (meaning 6 initial steps) at address 84h (****_DEB_STEPS_CONF) in Page 1
1. Write bit FUNC_CFG_EN = 1 in FUNC_CFG_ACCESS (01h) // Enable access to embedded functions registers
2. Write bit PAGE_WRITE = 1 in PAGE_RW (17h) register // Select write operation mode
3. Write 0001 in PAGE_SEL[3:0] field of register PAGE_SEL (02h) // Select page 1
4. Write 84h in PAGE_ADDR register (08h) // Set address
5. Write 06h in PAGE_DATA register (09h) // Set value to be written
6. Write bit PAGE_WRITE = 0 in PAGE_RW (17h) register // Write operation disabled
7. Write bit FUNC_CFG_EN = 0 in FUNC_CFG_ACCESS (01h) // Disable access to embedded functions registers
Please let me know if you can manage this particular "Page section" R/W in your code.
-Eleon