I am using a LPC5418 (OM13094 demo board).
I am trying to do ISP over SPI and after sending appropriate SPI command I would like to read response!
My first try was to simply read response by writing appropriate number of 0x00 to LPC and shifting out response. This works but I have problem that ISP command handler tries to decode those 0x00 and interprets them as new command! So at the end when executing next command I am getting response INVALID_COMMAND (0x55 0x00 0x04 0x00 0x01).
My quations are:
- Is there any special command that I need to use when reading response? Or I simply have to read response(from previous command) when executing next command?
- Is there any ISP over SPI host tool(example)?
- Better documentation on this topic than LPC546xx User manual?