Skip to contentSkip to conversation

write flash on MPC5200 board via jtag

OT Albrecht Dreß 5 participants 6 messages Jul 22, 2008 – Jul 25, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

sorry for a somewhat off-topic question...

I want to design a mpc5200b board which is roughly derived from Freescale's 5200B Lite demo. Obviously, I have the problem to initially write u-boot into the boot nor flash. I believe this would be possible using the jtag/bsm interface (is that true?).

Can you recommend any good hardware and software solution for that, if possible running on linux (OSS?)? I don't need a "real" debugger (maybe an interface to gdb), just something to write the flash, so u-boot comes up.

Thanks for any help,
Albrecht.

#1 lore raw
Quoted 9 lines · On Tue, Jul 22, 2008 at 08:56:43PM +0200, =?ISO-8859-1?Q?Albrecht_Dre=DF_ wrote:

Hi,

sorry for a somewhat off-topic question...

I want to design a mpc5200b board which is roughly derived from Freescale's 5200B Lite demo. Obviously, I have the problem to initially write u-boot into the boot nor flash. I believe this would be possible using the jtag/bsm interface (is that true?).

Quoted 4 lines

Can you recommend any good hardware and software solution for that, if possible running on linux (OSS?)? I don't need a "real" debugger (maybe an interface to gdb), just something to write the flash, so u-boot comes up.

Get yourself an Abatron BDI-3000.

g.

Quoted 4 lines

_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

#2 lore raw
In reply to Albrecht Dreß

If you don't have any code on the board then I can't think of how to = write to the flash unless you have a JTAG device. I use a BDI2000 to do = precisely what you're doing: write U-boot into virgin on-board flash on = a design derived from the lite 5200.

The significance of the debugger is that you need something that can = drive the microcontroller via the JTAG port and control the flash device = write intricacies.

Pre-programming your flash device is another option.

-----Original Message-----
From: [email protected] = [mailto:[email protected]] = On Behalf Of Albrecht Dre=DF
Sent: Tuesday, July 22, 2008 1:57 PM
To: LinuxPPC Embedded
Subject: [OT] write flash on MPC5200 board via jtag

Hi,

sorry for a somewhat off-topic question...

I want to design a mpc5200b board which is roughly derived from =20 Freescale's 5200B Lite demo. Obviously, I have the problem to =20 initially write u-boot into the boot nor flash. I believe this would =20 be possible using the jtag/bsm interface (is that true?).

Can you recommend any good hardware and software solution for that, if =20 possible running on linux (OSS?)? I don't need a "real" debugger =20 (maybe an interface to gdb), just something to write the flash, so =20 u-boot comes up.

Thanks for any help,
Albrecht.

#3 lore raw
In reply to Albrecht Dreß
Quoted 5 lines · Albrecht Dre=DF

Hi,

sorry for a somewhat off-topic question...

I want to design a mpc5200b board which is roughly derived from Freescal=

e's

Quoted 6 lines

5200B Lite demo. Obviously, I have the problem to initially write u-boot into the boot nor flash. I believe this would be possible using the jtag/bsm interface (is that true?).

Can you recommend any good hardware and software solution for that, if
possible running on linux (OSS?)? I don't need a "real" debugger (maybe =

an

Quoted 1 line

interface to gdb), just something to write the flash, so u-boot comes up.

I haven't tried it, but a Macraigor USB Wiggler supports the MPC5200 and it's $250.
http://www.macraigor.com/cpus.htm
That should be enough to write uboot into RAM. Once uboot is in RAM you can use it to write the flash.

Let me know if you try it and it works.

Quoted 10 lines

Thanks for any help,
Albrecht.

_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

--=20
Jon Smirl
[email protected]

#4 lore raw

Hi all!

Thank you so much for your tips, they were really helpful!

Am 23.07.08 00:30 schrieb(en) Jon Smirl:

Quoted 1 line

I haven't tried it, but a Macraigor USB Wiggler supports the MPC5200 and it's $250.

[snip]

Quoted 1 line

Let me know if you try it and it works.

I guess I will try this one, and of course give you feedback. Do not expect this too fast, though, I have to get it to Europe, and test it with the Lite board first.

Thanks again,
Albrecht.

#5 lore raw
In reply to Albrecht Dreß

I am using http://urjtag.org/ UrJtag to do accomplish this. I have used it with both a Wiggler clone and an Altera UsbBlaster as the physical JTAG interface on both a Linux and Windows (cygwin) host. The only problem is that this approach is very slow, so I wrote a small (~8kb) "bootstrap" program which is first put into flash. This small program then handles programming u-boot to flash over a serial interface. Once u-boot is in place, I use it to program the rest of flash.

Some JTAG tools actually place a small application in the target devices ram, then this application allows much faster programming of an attached flash device. This requires more information about the COP/BDM interface than is published in the MPC5200B user manual or data sheet. I haven't used the Abatron tools, so maybe they do this. In the case of UrJtag, it is simply fiddling with bus signals using boundry scan, so it is excruciatingly slow.

-WITTROCK

Signature · 2 lines
View this message in context: http://www.nabble.com/-OT--write-flash-on-MPC5200-board-via-jtag-tp18596887p18609501.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.