We are working on CY8CKIT-062-WIFI-BT running Amazon freeRTOS aws_demo application. The IDE is modustoolbox2.0.
Our system design two uart, one is for debug message through kitprog3/uart bridge and another is for AT-command r/w.
Is it possible to disable SWD/JTAG port to prevent user trace log? If we don't want to change life cycle to secure, since in secure state our board seems not work with AT-command uart port anymore.
How could we doing that in normal state?
Thanks for your help.
The secure way is to disable the SWD/JTAG ports by entering SECURE mode. But in case you want the SWJ pins to be disabled in NORMAL mode, you can basically modify the TOC2 flags of the SFlash that configures the flash boot parameters.
Here's some more details regarding this:
For more information please refer to the Chapter Boot Code in the Architecture TRM.
Hope this helps