Regarding MCF5407 initialization

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

Regarding MCF5407 initialization

2,480 次查看
archana
Contributor I
I am using MCF5407 in one of the projects. I am facing a strange problem while initializing the chip.

We are using P&E ICDCFZ for debugging.

After validating the Chipselect 0, the debugger will not be able to recongnize the processor. Only reset will bring me back to processor.

The sequence of initialization is as follows:

1. Disable interrupts
2. caches off, invalidate
3. clear all ACRs
4. Map internal SRAM
5. Map SIM module
6. Initialize PLLCR to 0
7. Disable watchdog
8. Disable all the chipselect other than 0 (V bit in CSMR(n) set to 0)
9. program chipselect 0
10. Initialize the SDRAM

The behaviour remains the same, without debugger connected..

Has anyone faced similar kind of problem before?

In what ways enabling Global chipselect affect the processor?

Any pointer towards solution would be of great help.

Thanks in advance,
Archana
标签 (1)
0 项奖励
回复
1 回复

910 次查看
mnorman
NXP Employee
NXP Employee
Prior to validating CS0, it will respond to all accesses as it is the "global chip-select".  Once it is validated, CS0 will only be activated for accesses that fall within the programmed address range.  Make sure that the debugger and your software are not attempting accesses outside the valid CS0 range after it is validated (i.e. after global CS is disabled).
0 项奖励
回复