Priyank Bhatt

How can I write binary file onto external flash received from usb

Discussion created by Priyank Bhatt on Jul 7, 2018
Latest reply on Jul 14, 2018 by Priyank Bhatt

Hi,

 

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.

 

Thank you.

Priyank.

Outcomes