tinyriscv-openocd/contrib/loaders/flash
Anders 1662c854e2 flash/nor/lpcspifi.c: fix bug that prevented clean reset after flash write
After SPI flash was written by the assembly language stub,
the last SPI command was not terminated by raising CS.
This left the SPI device in a hung state that prevented the
flash from being read by the M4 SPIFI controller, even after
the M4 was fully reset. To access the flash via SPIFI, it was
necessary to completely power cycle the board.

This fix adds the missing instructions to raise CS and
terminate the SPI command after the last byte. This allows
the M4 to be resumed or reset cleanly after flashing. The
SPIFI memory is now immediately accessable at address
0x1400 0000 after flashing is complete.

Change-Id: I4d5e03bded0fa00c430c2991f182dc18611d5f48
Signed-off-by: Anders <anders@openpuma.org>
Reviewed-on: http://openocd.zylin.com/2359
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-11-24 22:14:38 +00:00
..
at91sam7x Move ocl (at91sam7x flash loader) sources to contrib 2014-03-29 07:55:34 +00:00
armv4_5_cfi_intel_8.s update files to correct FSF address 2013-06-05 19:52:42 +00:00
armv4_5_cfi_intel_16.s update files to correct FSF address 2013-06-05 19:52:42 +00:00
armv4_5_cfi_intel_32.s update files to correct FSF address 2013-06-05 19:52:42 +00:00
armv4_5_cfi_span_8.s update files to correct FSF address 2013-06-05 19:52:42 +00:00
armv4_5_cfi_span_16.s update files to correct FSF address 2013-06-05 19:52:42 +00:00
armv4_5_cfi_span_16_dq7.s update files to correct FSF address 2013-06-05 19:52:42 +00:00
armv4_5_cfi_span_32.s update files to correct FSF address 2013-06-05 19:52:42 +00:00
armv7m_cfi_span_16.s update files to correct FSF address 2013-06-05 19:52:42 +00:00
armv7m_cfi_span_16_dq7.s Support for SST 39VF3201C NOR flash 2013-07-01 08:39:36 +00:00
armv7m_io.s update files to correct FSF address 2013-06-05 19:52:42 +00:00
efm32.S update files to correct FSF address 2013-06-05 19:52:42 +00:00
lpcspifi_erase.S update files to correct FSF address 2013-06-05 19:52:42 +00:00
lpcspifi_init.S update files to correct FSF address 2013-06-05 19:52:42 +00:00
lpcspifi_write.S flash/nor/lpcspifi.c: fix bug that prevented clean reset after flash write 2014-11-24 22:14:38 +00:00
mdr32fx.S mdr32fx: support for Milandr's MDR32Fx internal flash memory 2013-08-07 21:02:51 +00:00
mrvlqspi_write.S flash/nor: add mrvlqspi flash controller driver 2014-09-22 19:37:09 +00:00
pic32mx.s update files to correct FSF address 2013-06-05 19:52:42 +00:00
stellaris.s update files to correct FSF address 2013-06-05 19:52:42 +00:00
stm32f1x.S update files to correct FSF address 2013-06-05 19:52:42 +00:00
stm32f2x.S update files to correct FSF address 2013-06-05 19:52:42 +00:00
stm32lx.S update files to correct FSF address 2013-06-05 19:52:42 +00:00
str7x.s update files to correct FSF address 2013-06-05 19:52:42 +00:00
str9x.s update files to correct FSF address 2013-06-05 19:52:42 +00:00