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.

DM8168裸机测试时修改时钟,处于usr用户模式无法修改,而在system系统模式成功修改。why?



开发软件: CCS5.5

硬件:       启动方式设置为 MDBOOT[4:0]=000 10 即uart为第一启动方式

现象:       1、在usr模式下(程序加载后,查看CPSR判断模式)

                         设置MAINPLL时钟时,无法进入旁路模式。(即向MIANPLL_CTRL寄存器BP位写1,通过读取该寄存器状态,可知写入失败)

                 2、在system模式下(通过修改 startup.asm,跳过修改为usr用户模式程序)

                        支持设置MAINPLL、DDRPLL、VideoPLL、AudioPLL,通过CLKOUT2输出来验证设置值。

 为什么时钟设置需要在系统模式下?