Electrical – Programming flash in manufacturing environment using Codewarrior TAP

flashmanufacturingprogrammer

I would like to use the Codewarrior TAP to program flash on boards in a manufacturing environment.

My target is a P4080 CPU w/Flash memory. I am currently using an Abatron BDI-3000 for this, but that device is now EOL and I will eventually need to find another way to program the flash. It looks like the Codewarrior TAP can do it, but I can't find any solid clues for how to do this.

I suspect it can be done because some engineering folks in my org have used the "Codewarrior IDE" to program flash. However, I would very much like to avoid using the IDE in a factory. I know that I can telnet to the TAP, but there doesn't seem to be any analogous CLI commands to what I used on the BDI-3000. There's some words about the TAP having support for gdb, but I am not sure of the capabilities of gdb.

My tasks are very simple…

  • Erase some memory range. BDI command was "erase 0xeff80000 0x20000 4"

  • Program a binary from a tftp server. BDI command was "prog 0xeff80000
    /path/in/tftp/server/MyBinary.bin bin"

  • Verify the binary was programmed correctly. BDI command was "verify
    0xeff80000 /path/in/tftp/server/MyBinary.bin bin"

The problem is I don't see the equivalent of any program, erase, or verify commands in the Codewarrior TAP manual. Moreover, there doesn't seem to be a way to specify a TFTP server which contains binaries to write to the target. But if I need forget about TFTP and put the binaries on the host PC, that's OK too.

Can anyone help me get started with this? I just need to get pointed in the right direction. Alternatively, what other tools can I use to program this flash in a way that is automation/factory friendly?

Best Answer

You can startup the arm cross gdb, and run available python scripts for flashing. You might need to modify startup configuration files, and maybe create your own XML file with details of your device. You can copy/modify the XML File.

https://community.nxp.com/thread/473850