Hello,
I'm attempting to use the JLink Plus with the JFlashSPI_CL utility under Linux to erase and program an n25q256a SPI flash memory from Micron. However, I cannot get it to work. I attempt to run the following command:
$ JFlashSPI_CL -connect -open working_base_image.bin 0x0 -speed 20000 -auto
SEGGER J-Flash SPI V6.22d Command Line Version
JLinkARM.dll V6.22d (DLL compiled Dec 14 2017 18:34:21)
Creating new project file [Default.jflash] ...
- New project created successfully
Connecting ...
- Connecting via USB to J-Link device 0
- VTarget = 3.320V
- Read SPI Flash Id = 0x20 BA 19
- Found SPI Flash: Micron N25Q256A
- Connected successfully
Executing init sequence ...
- Executed successfully
Opening data file [working_base_image.bin] ...
- Data file opened successfully (14155776 bytes, 1 range)
Auto programming target (14155776 bytes, 1 range) ...
- Reading affected sectors ...
- Target memory read successfully. (14155776 bytes, 1 range)
- Erasing affected sectors ...
- ERROR: Communication timed out: Requested 2 bytes, received 0 bytes !
- ERROR: Emulator does not support SPI.
If I try to use the GUI version of JFlash SPI under windows, all works well as expected. Is there something I'm missing here or does anyone have any pointers?
Thankful for any help!</infinite>
I'm attempting to use the JLink Plus with the JFlashSPI_CL utility under Linux to erase and program an n25q256a SPI flash memory from Micron. However, I cannot get it to work. I attempt to run the following command:
$ JFlashSPI_CL -connect -open working_base_image.bin 0x0 -speed 20000 -auto
SEGGER J-Flash SPI V6.22d Command Line Version
JLinkARM.dll V6.22d (DLL compiled Dec 14 2017 18:34:21)
Creating new project file [Default.jflash] ...
- New project created successfully
Connecting ...
- Connecting via USB to J-Link device 0
- VTarget = 3.320V
- Read SPI Flash Id = 0x20 BA 19
- Found SPI Flash: Micron N25Q256A
- Connected successfully
Executing init sequence ...
- Executed successfully
Opening data file [working_base_image.bin] ...
- Data file opened successfully (14155776 bytes, 1 range)
Auto programming target (14155776 bytes, 1 range) ...
- Reading affected sectors ...
- Target memory read successfully. (14155776 bytes, 1 range)
- Erasing affected sectors ...
- ERROR: Communication timed out: Requested 2 bytes, received 0 bytes !
- ERROR: Emulator does not support SPI.
If I try to use the GUI version of JFlash SPI under windows, all works well as expected. Is there something I'm missing here or does anyone have any pointers?
Thankful for any help!</infinite>