Problem bootstrapping COldfire 5206e in BDM

Guest #2149135
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!

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.