Hi Dialog,
We realized that pin 1_4 and 1_5 is used by jtag/swd as swdio/sclk. We want to use these pins as GPIO too.
We already disabled DEBUGGER_ENABLE bit within SYS_CTRL_REG during peripheral initialization. However, we observed that
these pins are still going high right after reset, we assume that DEBUGGER_ENABLE bit is set during boot.
Since we are booting from SPI flash without OTP written, it takes some time before it reach peripheral initialization.
1. It is said stated in datasheet that reset value for SYS_CTRL_REG:DEBUGGER_ENABLE is 0 (disabled),
we want to know if it is correct to assume that setting this bit 1 is part of the booting process (inside ROM code).
2. Is it possible to completely set pin 1_5 low from the beginning within sdk code?
Thank you.
嗨meriororen,
The DEBUGGER_ENABLE bit is indeed set during boot via the bootloader, and since you are booting via SPI, the bootloader switches on the debugger module as soon as it starts scanning the peripherals. Yes, i suppose that you can set the 1_5 to low from the begging of the actual code running on the 580, you can try switching off the debugger and configure the pins accordingly first thing in the system_init() function.
Thanks MT_dialog