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.

关于6678 开发板例程的问题



请问下技术支持工程师:我使用的是TI原厂6678开发板,用的原厂GPIO例程,可程序总是停在这个函数末尾的判断语句那里不动了,求解决办法,或者如何修改程序,感谢。

#pragma CODE_SECTION (lock_mem_prot_regs, ".text:Core_MPAX") void lock_mem_prot_regs() { int i; /*1. Write a 1 to the KEYR field of the MPLKCMD register. This resets some internal status for the MPLK0 through MPLK3 registers.*/ gpCGEM_regs->MPLKCMD = (1<MPLK[i] = mem_prot_key[i]; } /*3. Write a 1 to the LOCK field of the MPLKCMD register. This engages the lock.*/ gpCGEM_regs->MPLKCMD = (1<MPLKSTAT&CSL_CGEM_MPLKSTAT_LK_MASK));