您好:
请参考下面的链接:
具体方式可以参考community thread -https://community.cypress.com/thread/47705
以及文档- https://www.cypress.com/file/447981/download Appendix B部分
如果是在PSoC Creator 这个集成开发环境下开发的话,把图示SWD接口改成GPIO,就可以阻止外部通过SWD接口读flash,这个时候芯片是不能进行debug的。
您好:
请参考下面的链接:
具体方式可以参考community thread -https://community.cypress.com/thread/47705
以及文档- https://www.cypress.com/file/447981/download Appendix B部分
如果是在PSoC Creator 这个集成开发环境下开发的话,把图示SWD接口改成GPIO,就可以阻止外部通过SWD接口读flash,这个时候芯片是不能进行debug的。
您好,https://www.cypress.com/file/447981/download Appendix B这个链接已失效。
我目前是在用PSoC Creator 4.3做开发,直接把SWD改成GPIO这种方法可靠吗?当芯片hold住reset引脚的话是不是就可以读写flash了。
To disable debug/programming port of PSoC 6, add the following code to write directly to SFLASH NAR. Refer to Chapter 14 Boot Code in P6 TRM for details on NAR bit mapping.
CY_SECTION(".cy_sflash_nar") __USED uint16_t nar = 0x0007;
However, please be caution with this method, as once the NAR bits changed to non zero, the bits can not be cleared and debug/programming port will never be restored.
注意: 本操作是不可逆的,相当于 PSoC4 的 Kill 保护模式被使能
明白了,非常感谢