EmbDev.net

Forum: µC & Digital Electronics Problem bootstrapping COldfire 5206e in BDM


von Ale (Guest)


Rate this post
useful
not useful
I developed a BDM interface and a board based on the 5206e: 
http://forums.parallax.com/showthread.php?129934-Coldfire-BDM-with-the-prop

I am trying to bootstrap the board using BDM. Initialization of 
MBAR/CACR and internal SRAM works well, I can read/write the internal 
SRAM.
When I try to initialize CS0 so I can access the FLASH, reading the 
FLASH hangs (the read operation never completes and CSO is never 
asserted).
I tried Motorola's examples, the CFInit utility also without luck.
Just an example (taken from the CFInit utility) :

MBAR = 00000001
CACR = 01000000
ACR0 = 0
ACR1 = 0
CSAR0 = 0008
CSCR0 = 095F
CSMR0 = 00070000
DMCR = 0100
1
> WC MBAR 1
2
MBAR: 00000001
3
> WC CACR 01000000
4
CACR: 00000000
5
> WC ACR0 0
6
ACR0: 00000000
7
> WC ACR1 0
8
ACR1: 00000000
9
> WW 64 8
10
> WW 6E 95F
11
> WL 68 70000
12
> WW C6 0100
13
> RL 68
14
00000068: 00070000
15
> RB 80000
16
00080000: 00
17
> RL 68
18
00000068: 00000000
19
>

The last read to 0x68 shows that the BDM does not answer anymore... 
meaning that the read to memory did not complete (it returns 0s).

Any idea what can be wrong ?.

(The read to CACR should return 01000000 I know, I just do not know why 
it does not...).

Thanks!

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.