I am using lpc4088 custom board with LPCOpen and aim is to use USB CDC to get binary/hex/s19 file from VCOM and send it to external Microchip flash(16 bit) using EMC.
I am trying to read a chunk(64/128/1024) of data from USB and write it to flash. When I read a whole file (say 1KB) and then write to flash, it works.
The write to flash hangs if I try to read 64/128/1024 bytes(multiple chunks of data) and write it to flash in a loop until whole file is written. I don't understand why looping is not working.
Any help will be appreciated.