fabalthazar
ea4b232996
Fix de83dbb: duplicate BMP_MODE_FLASH_VERIFY -> BMP_MODE_FLASH_WRITE_VERIFY
3 years ago
Björn Mellström
5ea01030e2
Add nRF51 command for (only) erasing the UICR registers
Original implementation by: Benjamin Vedder <benjamin@vedder.se>
3 years ago
Björn Mellström
d987a8dd8c
Add define to allow platform override of debug printf function
3 years ago
Björn Mellström
4b8c4990dc
Fix warning about unused variable in adiv5.c
This happens if the platform has debugging support but debugging
is not enabled.
3 years ago
Björn Mellström
711a87f7ba
Fix some warnings when compiling with -Wshadow
There are still a few more places that would need to be corrected
before -Wshadow could be added by default.
3 years ago
Björn Mellström
53f022d29b
Require semicolon after debug log statements
This also fixes a warning about an empty body in cortexm.c
if PLATFORM_HAS_DEBUG is defined but debugging is not enabled:
if (platform_timeout_is_expired(&to))
DEBUG_WARN("Reset seem to be stuck low!\n");
3 years ago
Björn Mellström
04eab8e1f8
Add guard around _GNU_SOURCE define
This avoids warnings if the define has already been set by the
build system.
3 years ago
Uwe Bonnes
2a0d608b07
hosted: Fix last commit
-Wno-format-truncation may not be understood by all systems
3 years ago
Uwe Bonnes
1b49823f64
Fix hosted compile on MacOS. hidapi-libusb has a different name
3 years ago
Uwe Bonnes
de83dbb7e2
cl-utils: Fix bug introduced with 5288eef617
Always use the file size for write and verify.
3 years ago
Uwe Bonnes
c0437e7b25
bmp_serial: Autodetect more BMP string variants.
3 years ago
Uwe Bonnes
891633322a
lpc: Care for protected pages on LPC80x devices.
3 years ago
Uwe Bonnes
f7b4697280
lpc11xx/lpc8c04: Do not expose two top system flash sectors.
3 years ago
Uwe Bonnes
42ebcac329
efm32_devices: Rearrange struct efm32_device_t to save flash space.
3 years ago
Uwe Bonnes
21a702dc1e
lpc: More verbosity and more definitions
4 years ago
Uwe Bonnes
6454d0bc96
bmp_libusb: Invalidate manufacturer and product in case libusb_get_string_descriptor_ascii fails.
Prevent more false detections
4 years ago
Uwe Bonnes
7f1a560288
stm32/usbuart: Clear USART_ICR if provided.
Otherwise endless interrupts happened.
4 years ago
Uwe Bonnes
90534b3cf6
stm32: portability enhancements
Needed for e.g. stlinkv3
4 years ago
Uwe Bonnes
87acd99fe4
cortexm: For Cortex-M0+ devices, probe also for lpc11 to detect LPC80 #884
4 years ago
Uwe Bonnes
cb4cff2c71
hosted/ftdi: Compare only for length of the string given in the header
Devices may have added version like "Tigard V1.1" vs "Tigard"
4 years ago
Uwe Bonnes
c3fd198f0d
bmp_libusb: Reject non-BMP devices with VID 1d50.
4 years ago
Uwe Bonnes
36ad6efc6f
cmsis_dap.h: Fix wrong leftover argument.
4 years ago
Uwe Bonnes
f0dd8c9517
cl_utils: List -l option in the help.
4 years ago
Uwe Bonnes
517d5b5b31
rp: Show spinner only when called from monitor command.
4 years ago
James Turton
0ab10fee0b
rp: Increase timeout for flash_range_program
If the RP2040 is using the ring oscilator (ROSC) rather than the crystal
oscilator (XOSC) then flashing program will take much longer. As the XOSC is not
enabled at boot we should not assume it will be enabled before the debugger is
connected (or indeed at all), thus should use the longer timeout during load
commands.
4 years ago
James Turton
ff30259354
rp: Add more debug logging during flash
4 years ago
James Turton
e453740aca
rp: Increase spinner timeout to 500ms
Increasing spinner timeout to 500 means `tc_printf` is not called during
the `_flash_range_erase`. This is important as `_flash_range_erase` is
used when loading. This fixes the issue:
https://github.com/blacksphere/blackmagic/issues/875
Also adding spinner timeout counter to reduce bus traffic.
4 years ago
James Turton
67c9003522
rp: Flush cache after erase and write
The RP2040 datasheet suggests that _flash_flush_cache and _flash_enter_cmd_xip
should be called after erasing and writing to flash.
4 years ago
James Turton
f880734050
Fix compiling for native probe
4 years ago
Uwe Bonnes
e4421799ba
More header cleanup
4 years ago
Uwe Bonnes
8e438b9e5f
Add missing headers and remove double typedef.
4 years ago
Uwe Bonnes
cfbe9f1c94
pc/gdb_if.c: More verbosity for Error messages #873
Thanks to "pshri" for dissecting and adding messages, as problems with
Hpyer-V and port permissions happened on Win10
4 years ago
Vegard Storheil Eriksen
f121350fc9
hosted/cmsis_dap: Verify that a v2 interface has endpoints.
4 years ago
Vegard Storheil Eriksen
494524dd85
hosted/cmsis_dap: Add v2 support.
4 years ago
Vegard Storheil Eriksen
4f52a7b235
hosted/cmsis_dap: Add discovery by interface string and prepare for v2 support.
4 years ago
Vegard Storheil Eriksen
c4874fdf44
hosted/dap: Add parentheses around bitwise operator.
4 years ago
Uwe Bonnes
f9414d5826
cmsis-dap: Handle ADI DP22 devices on probes not multidrop capable.
4 years ago
Uwe Bonnes
923edc7f7e
cmsis-dap: Fix wrong handling when reading data not word-aligned
4 years ago
Uwe Bonnes
877a6e694c
Revert "cmsis_dap: Always write full reportsize + 1 buffers"
This reverts commit 61e237ec87
.
This makes a CMSIS-DAP probe with version < 1.2 work again on DP V1 devices.
Status of other combination unknown:
DP V1 V2 V2/Multidrop
Probe
< 1.2 ok ok --
>= 1.2 ? ? ?
4 years ago
Uwe Bonnes
1f67bab475
nxpke04: Move unsafe_enables to target bool union.
4 years ago
Uwe Bonnes
f87dff8d83
kinetis: Remove static variables, add word union to target_s.
Add a word union to target structure to hold a single word variable.
4 years ago
Uwe Bonnes
ac7c1057cc
efm32/samd/samx5x: Remove static allocates strings. Allocate in priv_storage.
Static allocated variables in the different targets eat up common RAM and
will collide in chains with multiple similar targets.
4 years ago
Uwe Bonnes
cddf02f174
samx5: Verbose error reports on protected devices.
4 years ago
Uwe Bonnes
8c8aa980cf
adiv5: Detect unprotected SAMD5x only once
4 years ago
Uwe Bonnes
f98b7274b4
hosted/stlinkv3: Detect STlinkV3 in bootloader mode.
4 years ago
Uwe Bonnes
a83700d1cf
stm32/usbuart: DMA stream handling is not STM32F4 specific
4 years ago
Uwe Bonnes
1330288271
firmware: Unify serial number handling
Use one file in dfu and server
For STM32, provide 3 ways to handle
- BMP way (8 bytes)
- DFU way (12 Bytes)
- Full unique id (24 Bytes), as with STLINK(V3) Bootloader
4 years ago
Uwe Bonnes
1b26ff560d
rp.c: Add reset_usb_boot as monitor command
4 years ago
Uwe Bonnes
52bffa70cf
rp: Handle flash.
- Beware, after reset, only a valid flash payload get mapped to XIP!
Only 0 is read from flash when flash image is not valid
4 years ago
Uwe Bonnes
2b0e255c40
cortexm: timeout and debug for run_stub()
4 years ago