dragonmux
5cd430647e
gdb_main: Fixed a small DEBUG_GDB regression for vFlashErase and vFlashWrite debugging
2 years ago
dragonmux
fc55400aad
gdb_main: Implemented a notification to GDB that the "process" has exited when the user runs a new bus scan while attached to a target
2 years ago
dragonmux
d2370f780f
gdb_packet: Implement notification packets
2 years ago
dragonmux
f254e86511
gdb_main: Add some output in the scan commands to indicate when still attached that you aren't after the command, despite what GDB thinks
2 years ago
dragonmux
3cc6aa1236
gdb_main: Implemented qfThreadInfo and qsThreadInfo for GDB 11+
2 years ago
dragonmux
65ac074410
gdb_main: Implemented vKill as it's required for GDB 11+
2 years ago
dragonmux
c6d1bcb352
gdb_main: Cleaned up the naming in the 'g' and 'G' packet handlers
2 years ago
dragonmux
eb9d9893f8
hex_utils: Cleaned up and fixed the type confusion that was going on
2 years ago
dragonmux
8db1d30852
gdb_main: Reply to vAttach with TID 1 because GDB 11 and 12 are terminally broken otherwise
2 years ago
dragonmux
1f22c72634
gdb_main: Implemented support for qC queries
2 years ago
dragonmux
7322bb3ffa
gdb_main: More type confusion fixes and cleanup
2 years ago
dragonmux
17ba28c44b
gdb_main: Implemented H[m|M|g|G|c] packet support
2 years ago
dragonmux
47c84fac85
gdb_packet: Done a spring pass on the types situation and cleaned things up
2 years ago
Piotr Esden-Tempski
1cf1ba1ddb
stm32f4: Fixes erase_mass command return error.
The final erase_mass command check is looking for the EOP (End of
OPeration) bit to be set. This bit is only set when the EOP interrupts
(EOPIE = 1) are enabled. We are not enabling those on the target so this
bit will never get set. As we are monitoring the BSY flag to make sure
the erase_mass operation is still ongoing and finished it is enough if
we just check the error flags.
2 years ago
dragonmux
34696c0fec
target: Make the buffers used to program a target's Flash better bounded in lifetime and memory usage
2 years ago
Piotr Esden-Tempski
a067e801d7
BMP V2.3: Fix outdated ADC reads.
We are using GD32F103 on the BMP V2.3 hardware. The GD32F103 has an
errata for the ADC where the end of conversion (EOC) bit is not reset
when reading the ADC result. This resulted in us not waiting for the new
value to be acquired and reading an old value instead. The solution for
that is resetting the EOC bit manually after reading the ADC result, so
that on the next acquisision we wait for the conversion to finish.
This patch also increases the sampling time as the GD32 have lower ADC
impedance than the STM32 and this should help us read a more accuarate
target voltage.
2 years ago
dragonmux
d01acd8030
kinetis: Clean up how kl_gen_flash_done builds the command buffers to send to ensure the security byte is OK
2 years ago
dragonmux
0dffd2ffd2
kinetis: Fixed the flash write command generation for K64 devices
2 years ago
dragonmux
0f1006bf08
kinetis: Try to be safer about our FCCOB writes so the Flash controller's less likely to get mad
2 years ago
Rafael Silva
f69ed07ba7
kinetis: macro organization and clearer function naming
Signed-off-by: Rafael Silva <perigoso@riseup.net>
2 years ago
dragonmux
9591649ec6
kinetis: Run clang-format on the code
2 years ago
dragonmux
e9abd83412
kinetis: Refactored out some common code from kinetis_probe for the S32K14 lineup
2 years ago
dragonmux
4de54fbee6
kinetis: General formatting and readability cleanup
2 years ago
dragonmux
77a83f4ffc
ch32f1: Fixed another broken debug print that made assumptions about %x and %d that are wrong
2 years ago
dragonmux
d613d29839
cortexm: Added additional debug information for part probing
2 years ago
dragonmux
c7c5f68a84
ch32f1: Re-ordered a couple of the operation in ch32f1_probe so it plays nicer with the STM32 parts
2 years ago
dragonmux
d9f4d069e6
ch32f1: Further formatting and layout cleanup
2 years ago
dragonmux
eb8bb01c57
ch32f1: Fixed the probe routine distrubing state for other parts wrt `t->idcode`
The CH32F1 routine now reads the IDCode into a local.
If the part number matches and appears to be the chip (based on Flash locking), it only then writes the IDCode into `t->idcode`, which is at the point we can only `return true` from the probe routine anyway.
2 years ago
dragonmux
7e91c401d3
ch32f1: formatting cleanup to bring things closer to inline with the rest of the codebase
2 years ago
Maciej Musiał
54790f032e
cortexm: fixed an issue with watchpoint handling and a register sanity check
2 years ago
dragonmux
08956eb4fb
gdb_main: Fix a formatting bug that breaks, among other things, breakpoints
2 years ago
Mikaela Szekely
289d963ba5
Complete the version string migration from 5e3cade
, fixing HOSTED_BMP_ONLY
2 years ago
Piotr Esden-Tempski
5e3cadec20
Updated Copyright and Vendor strings to Black Magic Debug.
The project is not part of Black Sphere Technologies any more. It was
renamed to Black Magic Debug instead.
2 years ago
Piotr Esden-Tempski
84311b3888
docs: Corrected org in links to blackmagic-debug
2 years ago
dragonmux
29dc94c3d6
hosted: with mubes help, fixes some issues with how we talk CMSIS-DAP
3 years ago
dragonmux
c4869a5473
hosted/stlinkv2: Cleaned up the new error messages as they weren't outputting nicely
3 years ago
dragonmux
a27661cd0b
hosted/platform: Formatting consistency improvements
3 years ago
dragonmux
ba8ed132a8
hosted/stlinkv2: Fix !found causing hosted to continue on anyway, and improved the error reporting from the device finder loop
3 years ago
dragonmux
4287f1ba0e
hosted/stlinkv2: Rewrote the serial number readering logic to not violate the USB spec and properly handle libusb errors
3 years ago
dragonmux
94e9281404
hosted/bmp_libusb: Rewrote the string reader logic to not violate the USB spec and properly handle libusb errors
3 years ago
dragonmux
c7eba0a439
hosted/bmp_libusb: Fixed some signed/unsigned issues and UB in send_recv
3 years ago
dragonmux
c5dbf851f6
hosted/bmp_libusb: Formatting cleanup
3 years ago
Michal Moskal
6b465d6a77
Temporarily enable DBG clock in stm32g0_detach(); fixes #1003
3 years ago
mean
e535f53981
remove static vars
3 years ago
mean
844ca65a8f
cosmetic
3 years ago
mean
17dca6f791
tabify
3 years ago
mean
733cf12663
cleanup
3 years ago
mean
17d7dca9ae
build ch32 in its own file
3 years ago
mean
7c120ecb58
put ch32f1 in its own file
3 years ago
mean
04eb33e039
rename to comply to naming scheme
3 years ago