Commit Graph

827 Commits

Author SHA1 Message Date
Gareth McMullin c0f92ea5a7 Merge pull request #116 from esden/flashier_dfu
[native] Make the native bootloader bit more flashy.
2016-03-09 10:26:56 +13:00
Gareth McMullin 4e23c95c53 Merge pull request #115 from esden/bmpm2
[native] Check for hardware version by pull-up and -down. Print HW Ve…
2016-03-09 10:26:43 +13:00
Gareth McMullin 53d2c74b99 Merge pull request #118 from ziutek/master
nrf51: Another undocumented version.
2016-02-26 14:10:31 +13:00
Michał Derkacz fbc344c1cd nrf51: Another undocumented version. 2016-02-25 17:43:14 +01:00
Piotr Esden-Tempski c0c8bade6f [native] Make the native bootloader bit more flashy.
This change has also a practical reason. When flashing and testing the
hardware this change makes it easier to make sure all the LEDs work. Now
when the DFU bootloader is idle it is scanning the LEDs making it easy
to see if one of them has an issue.

In addition to that, the bootloader now indicates when there is data
being flashed using the DFU interface. In cases when one has more than
one device connected and accidently starts flashing a wrong device this
is very useful feature to have.
2016-02-14 23:47:57 -08:00
Piotr Esden-Tempski b7e5005679 [native] Check for hardware version by pull-up and -down. Print HW Version in mon command.
Until now the native hardware was pulling PB5-7 down and checking if
they were asserted high. BMPMV2b is pulling the pins down instead of
high. The hardware version routine now determines the hardware version
based on the fact if a pin is asserted at all. This means that if a pin
is left floating, the version number bit will be 0, and if the pin is
asserted either high or low the bit will be set to 1. While we were
already at it the "monitor version" command in GDB will now also print
the hardware version number.
2016-02-14 22:49:29 -08:00
Gareth McMullin ac9d87635c Merge pull request #114 from markrages/master
Add nRF52 support.
2016-02-11 15:49:13 +13:00
Mark Rages 9c846d5029 Add nRF52 support. 2016-02-10 20:23:43 -07:00
Gareth McMullin d5e263122f Increase JTAG_MAX_DEVS to 32.
Fixes #112
2016-02-02 10:04:57 +13:00
Gareth McMullin 3527880452 Merge pull request #110 from markrages/master
Update nRF51 IDs, add nRF51422 and xxAB/xxAC devices.
2016-01-04 10:39:00 +13:00
Mark Rages 7d957cbfdf Update nRF51 IDs, add nRF51422 and xxAB/xxAC devices.
There were a lot of nRF51 device ids missing. I wrote a script to pull nRF51 IDs from the openocd repository, which seems to be more up-to-date.  The script's output goes in nrf51.c.
2015-12-17 17:50:41 -07:00
Laurent Bonnans c9d3cf71dd gdb_main.c: fix buffer overflow on large reads
When gdb issues a `m xx,200` command, the probe should respond with a
packet of size 2*0x200=1024 which is the size of the packet buffer.

However, the `hexify()` procedures writes 1025 bytes in the buffer.

During my tests, it caused the probe to hang when issuing a `dump`
command. Presumably by overwritting the `cur_target` variable.
2015-12-14 11:28:28 +01:00
Laurent Bonnans 2d7b24c566 efm32: inhibit srst
EFM32s don't seem to like to be completely resetted while being debugged
(load and break were broken)
2015-12-14 11:28:28 +01:00
Laurent Bonnans 1e5c053f4f flashstub: build efm32.stub with makefile 2015-12-14 11:28:28 +01:00
Laurent Bonnans ff748e8fa1 flashstub: factor Makefile rules
Use target-specific variables
2015-12-14 11:28:28 +01:00
Clement Burin des Roziers 1f62fa4909 CRC32: improved computation time
Reading one byte at a time was so slow that it caused the gdb client to
timeout.
2015-12-14 11:28:28 +01:00
Gareth McMullin 61c6c767b0 Merge pull request #107 from richardeoin/efm32
[efm32] Use SW-DP IDCODE register for identification
2015-12-13 14:59:49 +13:00
Richard Meadows 544e1080a3 [efm32] Use SW-DP IDCODE register for identification
Instead of the Device ID register which isn't constant for EFM32 parts
2015-12-01 21:41:08 +00:00
Gareth McMullin e6d388d057 Merge pull request #106 from richardeoin/efm32
Support for Silicon Labs EFM32/EZR32
2015-11-17 07:59:35 -08:00
Richard Meadows fa7cccff23 [efm32] Formatting fixes 2015-11-14 14:56:03 +00:00
Richard Meadows b678b83062 [efm32] oops, fixed ezr32lg probe message 2015-11-14 14:42:09 +00:00
Richard Meadows fe3874bc82 [efm32] add extra details to probe message 2015-11-14 14:41:48 +00:00
Gareth McMullin 091adda0b4 Merge branch 'umetronics-master' 2015-11-11 12:41:57 -08:00
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