This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

tm4c123XX系列芯片如何保护程序对芯片加密呢。

以前M3系列用下列代码可以锁住芯片jetg口,烧到M4系列里面锁不住是怎么一回事啊,还有是其他加密方法。

void jtagPinToGPIO(void)
{
    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB);                        /*  使能PB7                     */
    GPIOPinTypeGPIOOutput(GPIO_PORTB_BASE, GPIO_PIN_7);                 /*  用作GPIO                    */
    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOC);                        /*  使能PC[3:0]                 */
    HWREG(GPIO_PORTC_BASE + GPIO_O_LOCK) = 0x1ACCE551;                  /*  解锁                        */
    HWREG(GPIO_PORTC_BASE + GPIO_O_CR)   = 0x000000FF;                  /*  确认功能                    */
    HWREG(GPIO_PORTC_BASE + GPIO_O_LOCK) = 0;                           /*  锁定                        */
    HWREG(GPIO_PORTC_BASE + GPIO_O_AFSEL) = 0;
    GPIOPinTypeGPIOOutput(GPIO_PORTC_BASE, GPIO_PIN_0|                  /*  用作GPIO                    */
                                           GPIO_PIN_1|
                                           GPIO_PIN_2|
                                           GPIO_PIN_3);
}