Regarding MCF5407 initialization

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Regarding MCF5407 initialization

2,019 Views
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
Labels (1)
0 Kudos
1 Reply

449 Views
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 Kudos