您好。
我用;BSL的工程,上电加载完gel后,load了程序就进入了supervisor模式,pinmux等寄存器都可以配置。
但是自己建立一个工程,同样的gel,load了程序就是user模式,pinmux寄存器无法配置,为什么?
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.
在system reference文档里,
To access any registers in the SYSCFG module, it is required to follow a special sequence of writes to the
Kick registers (KICK0R and KICK1R) with correct key values. Writing the correct key value to the kick
registers unlocks the registers in the SYSCFG memory-map. In order to access the SYSCFG registers,
the following unlock sequence needs to be executed in software:
1. Write the key value of 83E7 0B13h to KICK0R.
2. Write the key value of 95A4 F1E0h to KICK1R.
After steps 1 and 2, the SYSCFG module registers are accessible and can be configured as per the
application requirements.
你需要在你的代码里, 在访问pinmux寄存器之前,执行上述操作。
小弟最近在弄 AM1808 ,对IO扩展芯片 PCF8574 ,原linux内核已经做PCF8574的驱动 ,现在的问题是 对PCF8574的写操作已经完全可以控制 ,在对其读的时候一直是0 ,因为PCF8574 读的时候要考虑到中断的情况 ,现在不知道怎么弄啊 卡了好些时日了
看大哥能否给点思路 谢谢先了