Jason Kotzin
9c95dfb712
adding adiv5 support
2022-08-01 17:45:49 -07:00
Jason Kotzin
f99fe59ce8
updating libopencm3 with samd i2c support
2022-08-01 17:45:30 -07:00
dragonmux
5cd430647e
gdb_main: Fixed a small DEBUG_GDB regression for vFlashErase and vFlashWrite debugging
v1.8.2
2022-07-21 07:14:47 +01:00
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
2022-07-21 05:45:23 +01:00
dragonmux
d2370f780f
gdb_packet: Implement notification packets
2022-07-21 05:45:23 +01:00
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
2022-07-21 05:45:22 +01:00
dragonmux
3cc6aa1236
gdb_main: Implemented qfThreadInfo and qsThreadInfo for GDB 11+
2022-07-21 05:45:22 +01:00
dragonmux
65ac074410
gdb_main: Implemented vKill as it's required for GDB 11+
2022-07-21 05:45:22 +01:00
dragonmux
c6d1bcb352
gdb_main: Cleaned up the naming in the 'g' and 'G' packet handlers
2022-07-21 05:45:22 +01:00
dragonmux
eb9d9893f8
hex_utils: Cleaned up and fixed the type confusion that was going on
2022-07-21 05:45:22 +01:00
dragonmux
8db1d30852
gdb_main: Reply to vAttach with TID 1 because GDB 11 and 12 are terminally broken otherwise
2022-07-21 05:45:21 +01:00
dragonmux
1f22c72634
gdb_main: Implemented support for qC queries
2022-07-21 05:45:21 +01:00
dragonmux
7322bb3ffa
gdb_main: More type confusion fixes and cleanup
2022-07-21 05:45:19 +01:00
dragonmux
17ba28c44b
gdb_main: Implemented H[m|M|g|G|c] packet support
2022-07-21 05:44:21 +01:00
dragonmux
47c84fac85
gdb_packet: Done a spring pass on the types situation and cleaned things up
2022-07-21 05:43:55 +01:00
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.
v1.8.1
2022-07-13 21:06:53 -07:00
dragonmux
34696c0fec
target: Make the buffers used to program a target's Flash better bounded in lifetime and memory usage
2022-07-13 22:28:33 -04:00
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.
2022-07-13 20:54:14 -04:00
dragonmux
d01acd8030
kinetis: Clean up how kl_gen_flash_done builds the command buffers to send to ensure the security byte is OK
2022-07-11 20:17:53 -04:00
dragonmux
0dffd2ffd2
kinetis: Fixed the flash write command generation for K64 devices
2022-07-11 20:17:52 -04:00
dragonmux
0f1006bf08
kinetis: Try to be safer about our FCCOB writes so the Flash controller's less likely to get mad
2022-07-11 20:17:52 -04:00
Rafael Silva
f69ed07ba7
kinetis: macro organization and clearer function naming
...
Signed-off-by: Rafael Silva <perigoso@riseup.net>
2022-07-09 19:12:05 -04:00
dragonmux
9591649ec6
kinetis: Run clang-format on the code
2022-07-09 19:10:40 -04:00
dragonmux
e9abd83412
kinetis: Refactored out some common code from kinetis_probe for the S32K14 lineup
2022-07-09 19:10:39 -04:00
dragonmux
4de54fbee6
kinetis: General formatting and readability cleanup
2022-07-09 19:10:39 -04:00
dragonmux
77a83f4ffc
ch32f1: Fixed another broken debug print that made assumptions about %x and %d that are wrong
2022-06-26 17:34:22 -04:00
dragonmux
d613d29839
cortexm: Added additional debug information for part probing
2022-06-26 17:34:22 -04:00
dragonmux
c7c5f68a84
ch32f1: Re-ordered a couple of the operation in ch32f1_probe so it plays nicer with the STM32 parts
2022-06-26 17:34:22 -04:00
dragonmux
d9f4d069e6
ch32f1: Further formatting and layout cleanup
2022-06-26 17:34:22 -04:00
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.
2022-06-26 17:34:22 -04:00
dragonmux
7e91c401d3
ch32f1: formatting cleanup to bring things closer to inline with the rest of the codebase
2022-06-26 17:34:09 -04:00
Maciej Musiał
54790f032e
cortexm: fixed an issue with watchpoint handling and a register sanity check
2022-06-26 17:32:19 -04:00
dragonmux
08956eb4fb
gdb_main: Fix a formatting bug that breaks, among other things, breakpoints
2022-06-26 17:31:13 -04:00
Mikaela Szekely
289d963ba5
Complete the version string migration from 5e3cade, fixing HOSTED_BMP_ONLY
2022-06-03 14:45:16 -07:00
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.
v1.8.0
2022-05-30 15:09:55 -07:00
Piotr Esden-Tempski
84311b3888
docs: Corrected org in links to blackmagic-debug
2022-05-30 14:32:36 -07:00
Piotr Esden-Tempski
9b5b6fab5b
upgrade: Changed copyright to BMD and allowed more vendor strings.
2022-05-30 14:30:06 -07:00
Piotr Esden-Tempski
e4d692bf7a
driver: Updated vendor name to Black Magic Debug. Closes #1009
2022-05-30 14:30:00 -07:00
dragonmux
434a23b478
misc: Corrected the patreon link in FUNDING.yml
2022-05-25 18:57:38 -04:00
dragonmux
0ee03080c3
misc: Added Esden's patreon to FUNDING.yml
2022-05-25 16:31:33 -04:00
dragonmux
754d65ad54
misc: Added GitHub funding configuration for the project
2022-05-25 14:37:55 -04:00
dragonmux
29dc94c3d6
hosted: with mubes help, fixes some issues with how we talk CMSIS-DAP
2022-05-17 15:46:33 -07:00
dragonmux
c4869a5473
hosted/stlinkv2: Cleaned up the new error messages as they weren't outputting nicely
2022-04-16 18:22:14 -04:00
dragonmux
a27661cd0b
hosted/platform: Formatting consistency improvements
2022-04-16 18:22:14 -04:00
dragonmux
ba8ed132a8
hosted/stlinkv2: Fix !found causing hosted to continue on anyway, and improved the error reporting from the device finder loop
2022-04-16 18:22:14 -04:00
dragonmux
4287f1ba0e
hosted/stlinkv2: Rewrote the serial number readering logic to not violate the USB spec and properly handle libusb errors
2022-04-16 18:22:14 -04:00
dragonmux
94e9281404
hosted/bmp_libusb: Rewrote the string reader logic to not violate the USB spec and properly handle libusb errors
2022-04-16 18:22:14 -04:00
dragonmux
c7eba0a439
hosted/bmp_libusb: Fixed some signed/unsigned issues and UB in send_recv
2022-04-16 18:22:14 -04:00
dragonmux
c5dbf851f6
hosted/bmp_libusb: Formatting cleanup
2022-04-16 18:22:14 -04:00
Nicolas Schodet
6c700f7b6c
scripts: bootprog.py: use bytes literals
2022-04-15 11:59:40 -07:00