Thanks for reviewing! Can you confirm if it works on your hardware too? Makes sense. I am pretty sure that the 4370 ROM does have code for erase and write now. I disassembled what looks like live code from the entry points on my chip. However the manual implies you should include the latest SPIFI driver from LPCOpen in your application and reinitialize the SPIFI for "best performance". I think this is in case the built-in ROM doesn't know about your flash chip and sets it up in a slower more generic mode. I've also noticed that NXP's website, code, and documentation is a really disorganized maze. I sure hope they can improve it.
Given that, and the fact that some early chips were missing the ROM, it seems the best bet would be to use the SPIFI registers. Maybe someday if I get the urge I will look at it and try that to see how well it works. But for now, it works and I'm happy :)
------------------------------------------------------------------------------
_______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
