This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

External Flash with USBD_MSC example

Dear All,

I need your help because I created a PCB with the nrf52840 and a flash connected exactly as the one on the dev-board.

The only difference is that the one on the dev-board is a 64Mb 80MHz and the new one is a 256Mb 120MHz (both NOR).

If I program the dev-board with the USBD_MSC example it works as expected showing the files inside the flash when connected via USB to the PC but if I run the same on the board with the new flash the PC shows that it is impossible to access to the memory because of an I/O device error.

I think that this is caused by the configuration that has to be set correctly because if I simply print UART data via USB it works correctly (so it seems that it is not an USB problem or hardware issue) and if I use the QSPI example to write random data and read them it also works correctly (so it seems that the flash works correctly).

Thank you very much.

Best regards

Parents Reply
  • Than you very much.

    In fact by simply changing the .read_id with the correct one I can see the memory content via USB.

    I still have a question.

    I have a 256Mb Flash but by changing the .size inside nrf_serial_flash_params.c I can reach up to 64Mb. (from .size = 8*1024*1024 to .size = 64*1024*1024),

    What is the correct modification to increase the size to the maximum 256Mb?

    Thank you.

    Best regards

Children
No Data
Related