We are moving into the production phase of our board using the LS1046A. It is booting from QPSI. We need to program that QSPI chip after assembly. We have the standard 10 pin JTAG header on the board and previously programmed via Code Warrior. However, Code Warrior is too expensive and cumbersome for a production environment.
What other tools can be used just to program the QSPI and get the board to boot? We only need to load three files, RCW, ATF, and the Ethernet driver. I can probably concatenate those into a single blob file.
Is there support for this from something like OpenOCD using the CMSIS-DAP interface?
Unfortunately, there was no good solution to this. Our manufacturing uses a single PC to perform the initial programming. On this PC, they have an evaluation copy of CodeWarrior. Every time that the evaluation copy expires, then they erase the hard drive of the PC, install the OS again, and load another evaluation copy. Very time consuming.
Oh man, that is awful.
I am currently looking into the OpenOCD solution myself, which is how I came across this thread.
My thinking was that we could use literally any other JTAG probe (probably a Digilent because we have a dozen of those floating around the office) and use OpenOCD to do the initial programming.
I noticed that in May of 2022, a commit was added to OpenOCD which added support for the ls1046a. The change appears to consist of a single configuration file. I have my doubts that this will work out-of-the-box for either of us, but it does appear to be a starting point. In particular, I don't see how OpenOCD sets the RCW or anything else that those CodeWarrior python init scripts do (DDR timing, etc). I dread trying to figure this out myself, especially considering the absolute nightmare NXP created with all the peripherals on this processor having different endianness.
The OpenOCD commit: https://review.openocd.org/c/openocd/+/6854/4
If I come up with anything workable, I'll be sure to let you know.
There are no direct recommendations to use specific tool for production SPI Flash programming. In general any debugger tool could be used. Possible alternatives to CodeWarrior are tools from Lauterbach, Wind River, Green Hills.