1770 Commits

Author SHA1 Message Date
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
Michal Moskal
6b465d6a77 Temporarily enable DBG clock in stm32g0_detach(); fixes #1003 2022-04-12 05:39:14 -04:00
mean
e535f53981 remove static vars 2022-04-10 23:40:44 -04:00
mean
844ca65a8f cosmetic 2022-04-10 23:40:44 -04:00
mean
17dca6f791 tabify 2022-04-10 23:40:44 -04:00
mean
733cf12663 cleanup 2022-04-10 23:40:44 -04:00
mean
17d7dca9ae build ch32 in its own file 2022-04-10 23:40:44 -04:00
mean
7c120ecb58 put ch32f1 in its own file 2022-04-10 23:40:44 -04:00
mean
04eb33e039 rename to comply to naming scheme 2022-04-10 23:40:44 -04:00
mean
e12939582c revert function clones_probe 2022-04-10 23:40:44 -04:00
mean
83e3d9c135 disable verification 2022-04-10 23:40:44 -04:00
mean
a3feae60aa cleanup tabs 2022-04-10 23:40:44 -04:00
mean
fb216a2a98 tabify 2022-04-10 23:40:44 -04:00
mean
9b23265dde add support for ch32 flash write, it is a bit hackish 2022-04-10 23:40:44 -04:00
mean
90d15e6633 add probe for ch32 + make room for other clones 2022-04-10 23:40:44 -04:00
dragonmux
be83c2861e
gdb_packet: Formatting cleanup 2022-03-31 14:11:38 -04:00
dragonmux
e424859ecb
gdb_main: Formatting cleanup 2022-03-31 14:03:29 -04:00
dragonmux
804a1a4f43
stm32f4: Attach logic cleanup by making sure we only set the extra bits needed when writing DBGMCU_CR 2022-03-31 13:46:29 -04:00