Content originally posted in LPCWare by CC58 on Fri Jan 18 07:35:20 MST 2013
I successfully used the LPC1343 usbmsd_rom sample code to integrate an external 8meg SPI FLASH. Currently trying to migrate code to LPC1345.
The LPC1345/47 equivalent sample code is ROM_USB_msc. This code is very different from LPC1343 sample code. I modified this sample code callback translate_rd() to use my known good SPI FLASH read routine.
When SPI FLASH read routine is called the SPI FLASH read is corrupted. The odd thing is first 256 byte reads are fine, but after that it returns garbage. This same SPI FLASH read routine works correctly if test code is inserted in main() before USB is initiated. It appears ROM USB code interfers with SPI reads.
Has anyone successfully used LPC1345/47 USB rom code to implement an external SPI FLASH?