Hello,
Can we change CRP protection from code. Like this const unsigned long crp __attribute__ ((at(0x2FC))) = 0x87654321;
I need code read protection in my project. But if I enable it then JTAG will be disabled. To make it work in need, I will provide Button on My touch HMI and on button press event, I will change CRP protection to NO_CRP so I can use JTAG.
After burning new software, CRP will be reset to CRP2.
Pradeep P.
I dont have provision for ISP on my board to program it after programming once with CRP2 protection enabled. Then In field, it will be difficult to program it, if necessary. Thats why, I was thinking about said scheme. I know its not a good option.
As long as you use CRP1 or 2, ISP mode is still available but requires you to erase the entire chip to make changes. IAP is still available in those modes, too. If you can deliver an image to your application via serial, USB, TCP/IP etc., field upgrades are not an issue.
Yes, I am already using Secondary USB bootloader for firmware upgrade and ISP hardware is not provided on Card. I was thinking about CRP break for Debugging of particular card which is already programmed with CRP2 Level protection.
Pradeep Pol