932 Commits

Author SHA1 Message Date
Uwe Bonnes
5f404cdbc0 Construct memory map on the stack
The memory map uses 1k of SRAM and is only needed during attach. Release
after use lowers pressure on SRAM.
2018-04-23 10:51:04 +12:00
Uwe Bonnes
6127a6431e stlink: Check nRST line level when setting SRST.
Problem: On some boards flashing hanged.
Cause: Releasing SRST caused a slow rise of nRST and flashing
started while the target still was in reset.
Attention: platform_delay(ms) only resolved 0.1 s.
Nucleo-P boards have SRST unconnected to target nRST by default.
2018-04-23 10:48:05 +12:00
Gareth McMullin
63967346cd stm32f4: Don't duplicate resources on reattach. 2018-04-23 10:48:05 +12:00
Gareth McMullin
00decb3718 target: Separate function to free memory map. 2018-04-23 10:48:05 +12:00
Gareth McMullin
1fd2a24c2d stm32f4: Only construct memory map at attach. 2018-04-23 10:48:05 +12:00
Uwe Bonnes
72c1498ae1 stlink: Make SWO Trace Buffer smaller.
Changes for delayed memory map setup otherwise overflow SRAM silently.
2018-04-23 10:48:05 +12:00
Gareth McMullin
455e0a74d2
Merge pull request #302 from gsmcmullin/always_buffer_flash
Only support buffered flash writes
2018-04-23 10:45:25 +12:00
Gareth McMullin
9d7925792f Merge branch 'master' into always_buffer_flash 2018-04-23 10:40:20 +12:00
Gareth McMullin
28bd4fc0ce
Merge pull request #305 from UweBonnes/swo_async
Use async SWO from the bluepill pull request.
2018-04-09 08:27:49 +12:00
Mike Walters
fa62403ee3 nrf51: Add nRF51802 device id. (#331) 2018-04-03 10:45:56 +12:00
Uwe Bonnes
29cdba0d70 SWO: Some explanations and a test program. 2018-03-27 13:40:49 +02:00
Uwe Bonnes
fc25a3339a traceswoasync: Implement async swo for stm32.
Use for stlink.
Uses dma with large buffer.
Pull up swo to provide idle level on unconnected swo pin.
2018-03-27 13:40:49 +02:00
Uwe Bonnes
93bc3a155a traceswo: Provide command option for async swo. 2018-03-27 13:40:49 +02:00
Uwe Bonnes
3e3e450408 cdcacm.c: Use less buffer for the usb_uart buffers and reallocate.
With 128 bytes for both usb_uart buffers, traceswo gives errors!
Keep the size for the receive buffer and diminisch the transmit buffer,
as there is no flow control to the device.
Probably related to https://github.com/libopencm3/libopencm3/issues/477
2018-03-27 13:40:49 +02:00
Gareth McMullin
cfaa5ea963 Merge branch 'korken89-master' 2018-03-27 13:01:06 +13:00
Gareth McMullin
76bfb4929d Use lowercase register names. 2018-03-27 13:00:39 +13:00
Gareth McMullin
90f7bdcd09 Merge branch 'konsgn-master' 2018-03-27 08:08:02 +13:00
Gareth McMullin
a3f855ce5c Merge branch 'master' of https://github.com/konsgn/blackmagic into konsgn-master 2018-03-27 08:03:03 +13:00
Christopher Woodall
31965a5bbc Added support for k64 (#301) 2018-03-25 14:43:33 -07:00
Akila Ravihansa Perera
471ce2547c Added LPC17xx support (#317) 2018-03-25 12:53:30 -07:00
Mark Rages
a41d8cb97a Another nRF52 device id. (#315) 2018-03-25 12:37:51 -07:00
Gareth McMullin
0c659f49cd
Merge pull request #322 from jrwhite/master
hexprog.hex fails due to divide-by-zero
2018-03-25 12:35:52 -07:00
Emil Fresk
1ee6d4503e Update to split 'special' into its sane parts (update from @mubes) 2018-03-24 16:44:59 +01:00
jrwhite
0ddd8b55d7 divide-by-zero fix 2018-03-11 14:35:38 -05:00
Konsgn
04fbabb299 mkl27 support 2018-01-21 23:43:01 -05:00
konsgn
1fe870b8df added MKL27<128kB support 2018-01-16 13:23:36 -05:00
Gareth McMullin
a9219c3616
Merge pull request #314 from adamheinrich/usbuart-ignore-noise
platforms/stm32: Ignore noise errors on USBUART
2018-01-15 08:29:18 +13:00
Adam Heinrich
f5cac4c78d platforms/stm32: Ignore noise errors on USBUART 2018-01-13 21:11:17 +01:00
Gareth McMullin
dd055b675e
Merge pull request #313 from UweBonnes/stm32f3_ccm
stm32f1.c: Add missing fall through statement needed by GCC7.
2017-12-18 10:33:08 -08:00
Uwe Bonnes
922f857de7 stm32f1.c: Add missing fall through statement needed by GCC7. 2017-12-18 13:56:59 +01:00
Gareth McMullin
a3484e3d3b
Merge pull request #311 from UweBonnes/f3_ccm
stm32f1.c: Export CCM RAM of F303.
2017-12-12 14:49:21 -08:00
Uwe Bonnes
1f3c235205 src/target/stm32f1.c: Add CCM Ram of STM32F303 devices. 2017-12-08 13:39:24 +01:00
Gareth McMullin
568655063f
Merge pull request #300 from gsmcmullin/m7-cache
Cache support for Cortex-M7
2017-11-07 08:44:56 +13:00
Gareth McMullin
048e8447a5 target: Only support buffered flash writes 2017-10-13 08:58:37 +13:00
Gareth McMullin
c53a12bfd1 cortexm: Better cache support for Cortex-M7
- On probe, read CTR for cache presence and minimum line length
- Make D-Cache clean a function
- Clean before memory reads
- Clean and invalidate before memory writes
- Flush all I-Cache before resume
2017-10-12 09:26:01 +13:00
Nick Downing
0e5b3ab00e Make Cortex M driver write DCCIMVAC (Data cache clean and invalidate by address to the PoC=Point of Coherency) prior to reading or writing each 32 bytes of RAM 2017-10-12 08:41:58 +13:00
Gareth McMullin
9a5b31c37b Fix fallthrough warnings on gcc 7 2017-10-09 11:07:29 +13:00
Gareth McMullin
231d42d581 Merge pull request #297 from UweBonnes/write_size
target: Fix calculation of erase size.
2017-10-06 19:40:02 +13:00
Uwe Bonnes
120a2d9378 target: Fix calculation of erase size. 2017-10-05 22:11:01 +02:00
Gareth McMullin
5950d8f56c Merge pull request #293 from UweBonnes/write_size
target: Fix wrong size calculation for write.
2017-10-05 09:07:18 +13:00
Gareth McMullin
ed8366813d Merge pull request #294 from UweBonnes/stm32_mem
stm32_mem: Really wait 5 seconds for DFU device to appear.
2017-10-05 09:03:09 +13:00
Uwe Bonnes
dc29e45606 stm32_mem: Really wait 5 seconds for DFU device to appear. 2017-10-04 21:53:53 +02:00
Uwe Bonnes
a7815fff3d target.c: No need to split write while still in same flash block. 2017-10-04 21:52:29 +02:00
Uwe Bonnes
25610e5ec5 target: Fix unconsistant use of tmplen. 2017-10-04 21:52:29 +02:00
Gareth McMullin
72c86f939e Merge pull request #296 from gsmcmullin/libftdi_tdi_tdo_fix
libftdi: Fix tdi_tdo_seq result unpacking
2017-10-05 08:32:08 +13:00
Gareth McMullin
f27f3bad5c libftdi: Fix tdi_tdo_seq result unpacking 2017-10-05 08:26:33 +13:00
Gareth McMullin
2db42ba8e5 Merge pull request #287 from gsmcmullin/update_libopencm3
Update libopencm3
2017-10-04 10:58:44 +13:00
Gareth McMullin
19e58a7205 Merge pull request #284 from UweBonnes/stm32_mem
stm32_mem.py: Print longer strings and small formatting changes.
2017-10-03 10:41:04 +13:00
Uwe Bonnes
2b2b6d8f31 stm32_mem.py: Allow to set start address. 2017-10-02 21:30:56 +02:00
Uwe Bonnes
7cc9ee9d7a stm32_mem.py: Verify after write when bootloader supports upload
This should help people using STM32F103C8 above 64 k.
2017-10-02 21:30:56 +02:00