You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.am 892 B

mdr32fx: support for Milandr's MDR32Fx internal flash memory This adds example config and flash driver for russian Cortex-M3 microcontroller model. Run-time tested on MDR32F9Q2I evaluation board; the flash driver should be compatible with MDR32F2x (Cortex-M0) too but I lack hardware to test. There're no status bits at all, the datasheets specifies some delays for flash operations instead. All being in <100us range, they're hard to violate with JTAG, I hope. There're also no flash identification registers so the flash size and type has to be hardcoded into the config. The flashing is considerably complicated because the flash is split into pages, and each page consists of 4 interleaved non-consecutive "sectors" (on MDR32F9 only, MDR32F2 is single-sectored), so the fastest way is to latch the page and sector address and then write only the part that should go into the current page and current sector. Performance testing results with adapter_khz 1000 and the chip running on its default HSI 8MHz oscillator: When working area is specified, a target helper algorithm is used: wrote 131072 bytes from file testfile.bin in 3.698427s (34.609 KiB/s) This can theoretically be sped up by ~1.4 times if the helper algorithm is fed some kind of "loader instructions stream" to allow sector-by-sector writing. Pure JTAG implementation (when target memory area is not available) flashes all the 128k memory in 49.5s. Flashing "info" memory region is also implemented, but due to the overlapping memory addresses (resulting in incorrect memory map calculations for GDB) it can't be used at the same time, so OpenOCD needs to be started this way: -c "set IMEMORY true" -f target/mdr32f9q2i.cfg It also can't be read/verified because it's not memory-mapped anywhere ever, and OpenOCD NOR framework doesn't really allow to provide a custom handler that would be used when verifying. Change-Id: I80c0632da686d49856fdbf9e05d908846dd44316 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/1532 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
10 years ago
dsp5680xx: disable for now, it generates warnings Use "git revert <commit>" to revert this commit, then build and repair and post patch to the mailing list. Warnings generated with: nios2-elf-gcc (GCC) 3.4.6 (Altera Nios II 9.1 b222) openocd/src/target/dsp5680xx.c: In function 'eonce_rx_upper_data': openocd/src/target/dsp5680xx.c:252: warning: cast increases required alignment of target type openocd/src/target/dsp5680xx.c: In function 'eonce_rx_lower_data': openocd/src/target/dsp5680xx.c:268: warning: cast increases required alignment of target type openocd/src/target/dsp5680xx.c: In function 'eonce_pc_store': openocd/src/target/dsp5680xx.c:508: warning: dereferencing type-punned pointer will break strict-aliasing rules openocd/src/target/dsp5680xx.c: In function 'dsp5680xx_read': openocd/src/target/dsp5680xx.c:736: warning: cast increases required alignment of target type openocd/src/target/dsp5680xx.c:737: warning: cast increases required alignment of target type openocd/src/target/dsp5680xx.c: In function 'dsp5680xx_write_8': openocd/src/target/dsp5680xx.c:823: warning: cast increases required alignment of target type openocd/src/target/dsp5680xx.c: In function 'dsp5680xx_write': openocd/src/target/dsp5680xx.c:938: warning: cast increases required alignment of target type openocd/src/target/dsp5680xx.c:941: warning: cast increases required alignment of target type openocd/src/target/dsp5680xx.c: In function 'dsp5680xx_f_wr': openocd/src/target/dsp5680xx.c:1355: warning: cast increases required alignment of target type
12 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. include $(top_srcdir)/common.mk
  2. noinst_LTLIBRARIES = libocdflashnor.la
  3. libocdflashnor_la_SOURCES = \
  4. core.c \
  5. tcl.c \
  6. $(NOR_DRIVERS) \
  7. drivers.c
  8. NOR_DRIVERS = \
  9. aduc702x.c \
  10. aducm360.c \
  11. at91sam4.c \
  12. at91sam4l.c \
  13. at91samd.c \
  14. at91sam3.c \
  15. at91sam7.c \
  16. atsamv.c \
  17. avrf.c \
  18. cfi.c \
  19. dsp5680xx_flash.c \
  20. efm32.c \
  21. em357.c \
  22. faux.c \
  23. fm3.c \
  24. fm4.c \
  25. jtagspi.c \
  26. kinetis.c \
  27. kinetis_ke.c \
  28. lpc2000.c \
  29. lpc288x.c \
  30. lpc2900.c \
  31. lpcspifi.c \
  32. mdr.c \
  33. mrvlqspi.c \
  34. niietcm4.c \
  35. non_cfi.c \
  36. nrf51.c \
  37. numicro.c \
  38. ocl.c \
  39. pic32mx.c \
  40. psoc4.c \
  41. sim3x.c \
  42. spi.c \
  43. stmsmi.c \
  44. stellaris.c \
  45. stm32f1x.c \
  46. stm32f2x.c \
  47. stm32lx.c \
  48. stm32l4x.c \
  49. str7x.c \
  50. str9x.c \
  51. str9xpec.c \
  52. tms470.c \
  53. virtual.c \
  54. xmc1xxx.c \
  55. xmc4xxx.c
  56. noinst_HEADERS = \
  57. core.h \
  58. cfi.h \
  59. driver.h \
  60. imp.h \
  61. non_cfi.h \
  62. ocl.h \
  63. spi.h
  64. MAINTAINERCLEANFILES = $(srcdir)/Makefile.in