Commit Graph

1604 Commits

Author SHA1 Message Date
Gareth McMullin 600f0d27d9 Use sniprintf on newlib platforms. 2015-11-11 12:41:13 -08:00
Gareth McMullin 56b10a1255 Merge branch 'f205' of https://github.com/schodet/blackmagic into schodet-f205
Conflicts:
	src/stm32f4.c
2015-11-11 12:27:27 -08:00
Richard Meadows 07f7571dd1 Add basic support for EFM32/EZR32 chips
Tested with EZR32LG230
2015-10-23 19:58:44 +01:00
Antti Nykänen 3f9ea8250a Defined snprintf to sniprintf on launchpad-icdi 2015-10-22 19:33:45 +03:00
Antti Nykänen 2365bbe010 TI TM4C/LM4F cdc-acm fixes 2015-09-30 15:48:01 +03:00
Gareth McMullin 7e5a664df9 Merge pull request #98 from UweBonnes/stm32l4
Add STM32L4 handling. No option write handling yet.
2015-09-01 11:01:36 +12:00
Gareth McMullin 6ec35bc9ff Merge pull request #97 from UweBonnes/stm32f7
Stm32f7
2015-09-01 10:58:57 +12:00
Gareth McMullin 3aa333ee1c Merge pull request #95 from bvanheu/feature/nrf51_new_idcode
Add 0x0072 as a valid & supported idcode for NRF51
2015-09-01 10:30:55 +12:00
Uwe Bonnes f7492d93be Cortex-M: Detect and handle flash patch revision.
According to ARM v7-M Architecture Reference Manual
ARM DDI 0403E.b (ID120114)
2015-08-22 13:01:24 +02:00
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