Trouble viewing registers

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Trouble viewing registers

891 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rlund on Thu Jul 17 11:54:20 MST 2014
I loaded the peripheral blinky routine into an LPC1837 Xplorer board (NGX) using an LPC-Link2 debugger and the LPCXpresso IDE.  The program runs fine, but I wanted to explore some of the register values, and am having some trouble.

When I click on a register, it opens the register view.  Some of the registers work, such as the clock generation unit.  However, many of the registers do not work.  When I click on them the new window comes up and says something to the effect of "peripheral/memory disabled", and the register name is highlighted in red.  I was specifically interested in looking at the CCU registers, and the SPIFI registers, neither of which works.

Is this expected?  How can I get a look at these registers?  I have changed the project properties for both the board, chip, and blinky projects to work on the 1837 instead of the 1830.

I am using the free version of LPCXpresso, version 7.2.  I am running windows 7.

Thanks for the help!
标签 (1)
0 项奖励
回复
2 回复数

864 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rlund on Fri Jul 18 09:45:07 MST 2014
The register(s) I'm interested in right now are primarily the CCU (clock control unit) registers.  I have read the manual back and forth on this chapter and haven't found anything that implies that the CCU would be able to be enabled/disabled.

It does seem I am able to access the registers by reading them through the code, but it would greatly speed up debugging time to be able to view the registers through the IDE as designed.
0 项奖励
回复

864 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Jul 17 14:42:28 MST 2014
The most likely cause is that the peripheral is disabled (powered down). Many peripherals are n this state after power up or reset. You have to enable them before you can access their registers. How to do this for each peripheral is described in the user manual for the chip.
0 项奖励
回复