Commit Graph

1945 Commits

Author SHA1 Message Date
Uwe Bonnes 51e2adc6d9 Add STM32F7. 2015-08-22 13:01:24 +02:00
Uwe Bonnes 043a2d804d flashstub/stm32f4.c: Add barrier needed for STM32F7. 2015-08-22 13:01:24 +02:00
Uwe Bonnes 2336a313e4 Add STM32L4 handling. No option write handling yet. 2015-08-22 12:59:56 +02:00
Nicolas Schodet 97cb75145d Add support for STM32F2xx family
The F405 rev A uses a wrong CPUID, this patch use the core identifier to make
the distinction.

Tested with:
 - F205
 - F405 rev Z
 - F429

Unfortunately, I do not have any F405 rev A.
2015-08-17 14:35:11 +02:00
Gareth McMullin ef574b72b1 Add support for STM32F446x family.
Tested with a custom hardware.
2015-07-31 09:05:27 -07:00
Gareth McMullin e4bb1e8c55 Merge pull request #93 from richardeoin/stm_bugfix
[Bugfix] stm32f1_probe would always return true, breaking support for…
2015-07-31 09:02:05 -07:00
Benjamin Vanheuverzwijn 420d2c41c7 Add 0x0072 as a valid & supported idcode for NRF51 2015-07-31 00:00:00 -04:00
Richard Meadows beacf9c85c Refactor stm32f1_probe 2015-07-30 07:58:55 +01:00
Richard Meadows 101821ae31 [Bugfix] stm32f1_probe would always return true, breaking support for all other targets
The intention of `if (t->driver)` conditional was to test if any of the cases in the preceeding switch/case were met. However t->driver was previously set to point to a default value in cortexm.c:200 and therefore this would always evaluate to true. I've replaced the broken if statement with a duplicate of the switch/case run above.

It looks like this was introduced in 09544bc710 (PR #92) but 492d6c9cf8 maybe contributes to the confusion in this instance.
2015-07-12 17:32:48 +01:00
Gareth McMullin 762e54060f Merge pull request #92 from maknoll/master
Fixes #90 flashing of STM32 m0 chips
2015-06-29 19:29:57 -07:00
Nicolas Schodet b60f5283ae Fix usage of USB_VBUS
USB_VBUS is not an alternate function, it is an additionnal function which is
always enabled.

If configured as an alternate function, it will draw current from VBUS.
2015-06-23 11:51:56 +02:00
Uwe Bonnes c97d3f0f63 flashstub: Stubs need to run on different targets. Compile for M0. 2015-06-22 16:44:28 +02:00
Uwe Bonnes a7f6753153 STM32f0: F07 and F09 have 2kiByte blocksize. 2015-06-22 16:44:19 +02:00
Uwe Bonnes 09544bc710 src/stm32f1.c: More verbose FO detection message. 2015-06-22 16:44:08 +02:00
Gareth McMullin 492d6c9cf8 Merge pull request #87 from gsmcmullin/new_flash
Rework flash memory driver interface.
2015-05-19 10:21:55 +12:00
Gareth McMullin 4af5c03d75 lmi: Use registers for stub parameters. 2015-04-21 20:05:41 +12:00
Gareth McMullin ca17de6243 lpc11xx: Correctly detect LPC8xx devices. 2015-04-11 17:23:01 -07:00
Gareth McMullin 9009ed6581 cortexm: Add target option to inhibit assersion of SRST. 2015-04-11 16:08:59 -07:00
Gareth McMullin 24122aa318 lpc43xx: add chipid for LPC43S37. 2015-04-11 16:08:25 -07:00
Gareth McMullin 09b781f1c1 target: Remove old flash interface. 2015-04-11 16:05:41 -07:00
Gareth McMullin 3d8b34f180 lpc: split out common code and rewrite to use new interface. 2015-04-11 16:05:40 -07:00
Gareth McMullin cd5d569d38 lpc: Reduce differences between lpc11xx and lpc43xx code. 2015-04-11 16:05:40 -07:00
Gareth McMullin 54eb3a719f samd: use new flash interface. 2015-04-11 16:05:40 -07:00
Gareth McMullin d340053078 nrf51: use new flash interface. 2015-04-11 16:05:40 -07:00
Gareth McMullin 1541f1c7a8 kinetis: use new flash interface. 2015-04-11 16:05:40 -07:00
Gareth McMullin 9e09ae2e1e lmi: use new flash interface. 2015-04-11 16:05:40 -07:00
Gareth McMullin 622497f7e2 stm32f1: use new flash interface. 2015-04-11 16:05:40 -07:00
Gareth McMullin 7cd3432994 stm32f4: Add second bank for F42x/F43x. 2015-04-11 16:05:40 -07:00
Gareth McMullin 1efad1a03a stm32f4: use new flash interface. 2015-04-11 16:05:40 -07:00
Gareth McMullin fc2f266a13 sam3x: Update to use new buffered flash interface. 2015-04-11 16:05:40 -07:00
Gareth McMullin 21c209fd8f sam3x: simplify probe function. 2015-04-11 16:05:40 -07:00
Gareth McMullin 3ed4207e8a stm32l0: Update to use new buffered flash writes. Remove old stubs. 2015-04-11 16:05:40 -07:00
Gareth McMullin 45328ea124 Add buffering support for flash drivers.
Some devices can get a significant boost in performance by writing to
flash memories one page at a time.  Generic function to do this are
provided at the target layer and may be used by flash drivers.
2015-04-11 16:05:40 -07:00
Gareth McMullin 36f749fed9 Fix flash buffer alignment in target layer. 2015-04-03 21:21:30 -07:00
Gareth McMullin 7202db5860 Add new functions to wrap flash driver erase/write/done operations. 2015-04-03 21:20:01 -07:00
Gareth McMullin 691d21989a Add function to add simple flash driver to target.
Clean up ram/flash/memory map on target destruction.
2015-04-03 21:18:16 -07:00
Gareth McMullin 0fc635b3f8 Add functions for dynamically generating the XML memory map. 2015-04-03 21:18:16 -07:00
Gareth McMullin 482070c91b Merge branch 'v1.6-branch'
Conflicts:
	src/Makefile
	src/platforms/stlink/platform.h
	src/platforms/swlink/platform.h
2015-04-03 21:02:01 -07:00
Gareth McMullin 97824b7f02 Use git describe for version in generated header file. 2015-04-03 20:21:33 -07:00
Gareth McMullin 865beaba98 Suppress warning about longjmp clobbering local variable. 2015-04-02 21:06:18 -07:00
Gareth McMullin 05f062612b Merge pull request #86 from florolf/atsam3u
sam3x: add SAM3U support
2015-04-01 20:28:37 -07:00
Florian Larysch bc89217e3f sam3x: add SAM3U support 2015-04-01 00:04:52 +02:00
Gareth McMullin 21d464293c gdb: don't access target fields directly. 2015-03-29 18:06:13 -07:00
Gareth McMullin c2cde32716 Improve cortexm_read/write_regs. Use more sensible return types. 2015-03-29 17:37:03 -07:00
Gareth McMullin 274b818517 Make cortexm_pc_write static. 2015-03-29 16:48:51 -07:00
Gareth McMullin 779dcf0f69 stm32l0: use cortexm_run_stub. 2015-03-29 16:47:55 -07:00
Gareth McMullin 012922ed00 nrf51: use cortexm_run_stub. 2015-03-29 16:31:38 -07:00
Gareth McMullin 810269dce1 nrf51: Use generated stub. 2015-03-29 16:28:18 -07:00
Gareth McMullin cac286d398 lmi: Use generated stub with cortexm_run_stub. 2015-03-29 16:20:57 -07:00
Gareth McMullin 2215e33bcf lmi: Clean up magic numbers, remove adiv5 links, and doc ref. 2015-03-29 15:58:18 -07:00