dragonmux
9cb9cda62f
usbuart: Removed the TM4C version of usbuart.c as it's now not required
2022-08-22 12:59:24 -07:00
dragonmux
60b91e1da9
usbuart: Moved the AUX serial receive buffer definition into aux_serial.c
2022-08-22 12:59:24 -07:00
dragonmux
62b1a33188
aux_serial: Cleaned up the receive index counters
2022-08-22 12:59:24 -07:00
dragonmux
2657594a66
usb_serial: Refactored out the code that deals with and adjusts the AUX serial receive FIFOs
2022-08-22 12:59:24 -07:00
dragonmux
cd67c7de29
usb_serial: Begun refactoring out components of debug_uart_send_aux_serial_data()
2022-08-22 12:59:24 -07:00
dragonmux
90a0931f78
usbuart: Renamed buf_rx -> aux_serial_receive_buffer
2022-08-22 12:59:24 -07:00
dragonmux
8a3b8a90e8
aux_serial: Renamed the receive FIFO indexes
2022-08-22 12:59:24 -07:00
dragonmux
af6f2ed197
usbuart: Moved the definitions of the AUX serial receive buffer into aux_serial.c
2022-08-22 12:59:24 -07:00
dragonmux
35ae0adcd1
aux_serial: Cleaned up the buffer sizing macros
2022-08-22 12:59:24 -07:00
dragonmux
3afb041f03
usbuart: Moved the Tiva-C platform UART interrupt routine into aux_serial.c
2022-08-22 12:59:24 -07:00
dragonmux
79898808af
usbuart: Moved aux_serial_receive_complete into usb_serial.c
2022-08-22 12:59:24 -07:00
dragonmux
c2d2263395
usb_serial: Renamed rx_usb_trfr_cplt -> aux_serial_receive_complete
2022-08-22 12:59:24 -07:00
dragonmux
fa966924e4
usbuart: Moved the aux UART DMA RX interrupt handling into aux_serial.c
2022-08-22 12:59:24 -07:00
dragonmux
d25a093d7f
usbuart: Moved the aux UART DMA TX interrupt handling into aux_serial.c
2022-08-22 12:59:24 -07:00
dragonmux
5d94ea3017
usbuart: Moved the aux UART RX interrupt handling into aux_serial.c
2022-08-22 12:59:24 -07:00
dragonmux
a3703186be
usbuart: Moved aux_serial_init() into aux_serial.c
2022-08-22 12:59:24 -07:00
dragonmux
4ec95994a7
usbuart: Renamed tx_trfr_cplt -> aux_serial_transmit_complete
2022-08-22 12:59:24 -07:00
dragonmux
070e53a69b
aux_serial: Renamed buf_tx_act_sz -> aux_serial_transmit_buffer_consumed
2022-08-22 12:59:24 -07:00
dragonmux
dd619ad808
aux_serial: Moved all the transmit logic into aux_serial.c and cleaned up in usb_serial.c
2022-08-22 12:59:24 -07:00
dragonmux
b94476841f
usb_serial: Begun bringin more commonality to debug_uart_receive_callback
2022-08-22 12:59:24 -07:00
dragonmux
a5c07c188f
usb_serial: Begun refactoring debug_uart_receive_callback
2022-08-22 12:59:24 -07:00
dragonmux
960806c324
aux_serial: Redefined the DMA transmit buffers as two actual buffers and simplified
2022-08-22 12:59:24 -07:00
dragonmux
98a2b4d350
aux_serial: Refined how flip-flopping between the two transmit buffers is achieved
2022-08-22 12:59:24 -07:00
dragonmux
52e9065426
usbuart: Further refined the buffer sizing definition process
2022-08-22 12:59:24 -07:00
dragonmux
39df8fa6a6
usbuart: Moved all the STM32 buffer sizing logic into one header and one location
2022-08-22 12:59:24 -07:00
dragonmux
5108ecf759
aux_serial: tx_buf -> aux_serial_transmit_buffer
2022-08-22 12:59:24 -07:00
dragonmux
7feeb70430
usb_serial: Begun cleaning up in debug_uart_receive_callback()
2022-08-22 12:59:24 -07:00
dragonmux
bc256a9201
aux_serial: Begun moving globals into their proper private TU scopes
2022-08-22 12:59:24 -07:00
dragonmux
af93aba0da
aux_serial: Moved the transmit buffer swap function declaration into aux_serial.h and implemented a function to get the current buffer
2022-08-22 12:59:24 -07:00
dragonmux
25ac055602
usb_serial: Renamed usbuart_usb_out_cb() -> debug_uart_receive_callback()
2022-08-22 12:59:24 -07:00
dragonmux
27ab12f3fc
aux_serial: Renamed usbuart_change_dma_tx_buf() -> aux_serial_switch_transmit_buffers()
2022-08-22 12:59:24 -07:00
dragonmux
8eea6110b8
usbuart: Moved usbuart_change_dma_tx_buf() into aux_serial.c
2022-08-22 12:59:24 -07:00
dragonmux
693c408b98
usbuart: Moved usbuart_usb_out_cb() into usb_serial.c
2022-08-22 12:59:24 -07:00
dragonmux
9afa946703
usb_serial: Renamed usbuart_usb_in_cb() -> debug_uart_send_callback()
2022-08-22 12:59:24 -07:00
dragonmux
a0fab9b772
usbuart: Moved usbuart_usb_in_cb into usb_serial.c
2022-08-22 12:59:24 -07:00
dragonmux
67e8a5b840
usbuart: Moved usbuart_usb_in_cb into usb_serial.c
2022-08-22 12:59:24 -07:00
dragonmux
bbbb49c2b5
usb_serial: Renamed usbuart_send_rx_packet() -> debug_uart_send_rx_packet()
2022-08-22 12:59:24 -07:00
dragonmux
9b6d9c4780
usbuart: Moved usbuart_send_rx_packet to usb_serial.c
2022-08-22 12:59:24 -07:00
dragonmux
8723fdf3de
usb_serial: Renamed usbuart_run() -> debug_uart_run()
2022-08-22 12:59:24 -07:00
dragonmux
2d83b25b3c
usbuart: Moved usbuart_run() into usb_serial.c
2022-08-22 12:59:24 -07:00
dragonmux
04cf410247
platform: Moved the aux serial functions into their own header
2022-08-22 12:59:24 -07:00
dragonmux
f5ecae48f1
usb_serial: clang-foramt cleanup of debug_uart_write()
2022-08-22 12:59:24 -07:00
dragonmux
da447a849f
usb_serial: Renamed usbuart_debug_write() -> debug_uart_write()
2022-08-22 12:59:24 -07:00
dragonmux
35e88d0409
usbuart: Moved the SemiHosting implementation to usb_serial.c
2022-08-22 12:59:24 -07:00
dragonmux
15a37f830a
usbuart: Moved usbuart_debug_write() to usb_serial.c
2022-08-22 12:59:24 -07:00
dragonmux
62adb8a7d2
usbuart: Moved some important definitions to the header temporarily
2022-08-22 12:59:24 -07:00
dragonmux
2da8b44c1d
aux_serial: Renamed usbuart_set_line_coding() -> aux_serial_set_encoding()
2022-08-22 12:59:24 -07:00
dragonmux
487bcf029d
usbuart: Moved usbuart_set_line_coding() out into a new file
2022-08-22 12:59:24 -07:00
dragonmux
13209385f8
usb_serial: Refactored debug_uart_send_stdout() and cleaned up
2022-08-22 12:59:24 -07:00
dragonmux
3af03c0778
usb_serial: Renamed usbuart_send_stdout() -> debug_uart_send_stdout()
2022-08-22 12:59:24 -07:00
dragonmux
70e24f4203
usb_serial: Moved usbuart_send_stdout() into the usb_serial code
2022-08-22 12:59:24 -07:00
dragonmux
099540cccb
usb_serial: Moved the "SemiHosting" init into a more suitable spot in bringup
2022-08-22 12:59:24 -07:00
dragonmux
24ac50ff60
usbuart: Begun refactoring the physical UART code to seperate out the mixed interests
2022-08-22 12:59:24 -07:00
Jonathan Giles
9570b7d21e
ch32f1: Differentiate CH32F103 from CKS32F103 and APM32F103 based on REV ID (upper 16 bits of DBGMCU_IDCODE)
2022-08-22 12:48:48 -07:00
dragonmux
a86340790d
usbuart: Replaced most of the debug monitor code with newlib hooks and documented everything
2022-08-21 18:26:17 -07:00
dragonmux
99e894cd0f
platform: Removed usbuart_debug_write() from the headers and fixed its return type
2022-08-21 18:26:17 -07:00
dragonmux
999ac27172
native/usbdfu: clang-format for part of the DFU bootloader
2022-08-21 18:26:17 -07:00
dragonmux
54bcbf95fa
native: Done a little more cleanup in the platform with clang-format
2022-08-21 18:26:17 -07:00
Rafael Silva
98b4c71156
misc: superfluous semicolon cleanup
2022-08-20 07:15:53 -04:00
Rafael Silva
b16e55da30
gdb_main: don't print debug for vMustReplyEmpty packets
2022-08-19 12:30:09 -04:00
dragonmux
79575cc8a9
adiv5: Attempt to handle JTAG DPv0 devices
2022-08-18 18:58:29 -07:00
dragonmux
b795cb7ef4
samd: Added an errata workaround for the SAMD11 DFLL48M which can have issues if left unrequested before configuration.
2022-08-18 18:52:00 -07:00
dragonmux
663f2a329a
samd: Cleanup and stylistic fixes
2022-08-18 18:52:00 -07:00
dragonmux
dde75f186d
command: Cleaned up in the auto_scan command routine
2022-08-15 22:16:15 -07:00
dragonmux
8d7a5cd422
command: Added some additional tristating to the end of the scan routines
2022-08-15 22:16:15 -07:00
dragonmux
37a6a2a274
remote: Refactored the handling for REMOTE_TDITDO_{NO,}TMS
2022-08-15 22:16:15 -07:00
dragonmux
800a2a8f12
gdb_main: Run clang-format over the reset command handling code
2022-08-15 22:16:15 -07:00
dragonmux
8cf1d2f09c
target: Added target clock tristating to the target attach and detach functions
2022-08-15 22:16:15 -07:00
dragonmux
d4d6218234
stm32g0: Refactored the wait code in the flash write routine
2022-08-15 22:16:15 -07:00
dragonmux
d6c1d8a1cc
stm32g0: Made the flash write routine a little more understandable
2022-08-15 22:16:15 -07:00
dragonmux
23cf81eb55
stm32g0: Begun cleaning up the flash write routine
2022-08-15 22:16:15 -07:00
dragonmux
486fb6504c
stm32g0: Cleaned up stm32g0_flash_lock
2022-08-15 22:16:15 -07:00
dragonmux
f554fbd831
stm32g0: Refactored out the cleanup step for the flash routines
2022-08-15 22:16:15 -07:00
dragonmux
de909d96f0
stm32g0: Removed some checks from the erase function which can never fire
2022-08-15 22:16:15 -07:00
dragonmux
90fc89fd63
stm32g0: Further naming and structural cleanup in stm32g0_flash_erase
2022-08-15 22:16:15 -07:00
dragonmux
f4d8022437
stm32g0: Refactored out the busy wait code into a small function,
...
This netted a 36 byte code size reduction
2022-08-15 22:16:15 -07:00
dragonmux
60af35b06c
stm32g0: Begun sorting out the erase routine mess
2022-08-15 22:16:15 -07:00
dragonmux
f859368a97
stm32g0: Fixed the structure naming and typedef'd them
2022-08-15 22:16:15 -07:00
dragonmux
04b86f6eea
stm32g0: Cleaned up the STM32G0B_C memory map setup slightly
2022-08-15 22:16:15 -07:00
dragonmux
c500e720e3
stm32g0: Removed some more unnecessary casts
2022-08-15 22:16:15 -07:00
dragonmux
43afb5207a
stm32g0: Run clang-format through much of the code
2022-08-15 22:16:15 -07:00
dragonmux
ba7c6a3048
stm32g0: Cleaned up the flash function definitions
2022-08-15 22:16:15 -07:00
dragonmux
1aa1a3598a
stm32g0: Removed some needless casts from the command list build
2022-08-15 22:16:15 -07:00
dragonmux
6b5c492bc7
adiv5_swdp: Implemented clock tristating for adiv5_swdp_scan
2022-08-15 22:16:15 -07:00
dragonmux
c847007008
jtagtap: Implemented clock tristating
2022-08-15 22:16:15 -07:00
dragonmux
9198f5b630
native: Properly handled the TCK/SWCLK processor pin when doing clock tristating
2022-08-15 22:16:15 -07:00
dragonmux
1890426669
native: Reformatted the TMS and SWDIO macros in the platform header
2022-08-15 22:16:15 -07:00
dragonmux
4ca3982599
native: Cleaned up the SWDIO turnaround macros
2022-08-15 22:16:15 -07:00
dragonmux
e7f45aea7e
hosted/remote_jtagtap: Refactored out another unnecessary snprintf() call from TAP init remote call code
2022-08-15 22:16:15 -07:00
dragonmux
cf07861405
hosted: Implemented support for the new target clock tristating on BMP
2022-08-15 22:16:15 -07:00
dragonmux
450581cc0a
hosted/bmp_remote: Implemented support for the new remote protocol target clock tristating
2022-08-15 22:16:15 -07:00
dragonmux
84527d501b
remote: Implemented support for target clock tristating
2022-08-15 22:16:15 -07:00
dragonmux
01110a206b
remote: Run clang-format across most of the rest of the remote interface header
2022-08-15 22:16:15 -07:00
dragonmux
3efcc9b0f5
remote: Fixed the naming style of the JTAG and SWD packet processors to comply with the project style
2022-08-15 22:16:15 -07:00
dragonmux
e1007a98bb
remote: Run clang-format on the JTAG and SWD packet processors
2022-08-15 22:16:15 -07:00
dragonmux
dd0e99b0e6
remote: Run clang-format on the JTAG and SWD protocol header definitions
2022-08-15 22:16:15 -07:00
dragonmux
682ae75431
remote: Rewrote remotehston using a for loop and a const-correct type signature
2022-08-15 22:16:15 -07:00
dragonmux
52160db72b
native: Done a spring pass in platform_init() with clang-format and removed a duplicate gpio_set_mode() call
2022-08-15 22:16:15 -07:00
dragonmux
7a0f6597ff
platform: Implemented sub support in the non-native platforms for target clock tristating
2022-08-15 22:16:15 -07:00
dragonmux
adcfe22f86
native: Implemented platform support for tristating the TCLK/SWCLK pin
2022-08-15 22:16:15 -07:00
Uwe Bonnes
b70b807a4e
F072/F3: Rework Readme.md
...
Give explicit instructions for initial firmware loading and updating.
2022-08-15 19:11:44 -07:00
dragonmux
eedf21e821
usb_serial: run clang-format on the code
2022-08-12 22:25:52 -07:00
dragonmux
0477d5ee8e
traceswo: Replaced two magic numbers with the proper macros
2022-08-12 22:25:52 -07:00
dragonmux
0f37edc36a
misc: Renamed cdcacm.{c,h} to usb_serial.{c,h}
2022-08-12 22:25:52 -07:00
dragonmux
8f41217d29
gdb_if: Run clang-format and done some cleanup
2022-08-12 22:25:52 -07:00
dragonmux
aa6d0fa7e4
usb: Moved usb_get_config() into the main usb header
2022-08-12 22:25:52 -07:00
dragonmux
832c056e6d
usb: Moved usb_get_state() into the main usb implementation
2022-08-12 22:25:52 -07:00
dragonmux
bf6c146786
cdcacm: Renamed cdcacm_get_config() -> usb_get_config()
2022-08-12 22:25:52 -07:00
dragonmux
983a541cab
cdcacm: More naming fixes for various functions
2022-08-12 22:25:52 -07:00
dragonmux
49d21b0f44
cdcacm: Made gdb_uart_dtr a bool, saving space and memory
2022-08-12 22:25:52 -07:00
dragonmux
109f661e31
gdb_if: Cleanup in the include order
2022-08-12 22:25:52 -07:00
dragonmux
82c83bb77e
usb_gdb_uart: Renamed cdcacm_get_dtr() -> gdb_uart_get_dtr()
2022-08-12 22:25:52 -07:00
dragonmux
2e5143bb5f
common: Moved blackmagic_usb_init() into the main USB header
2022-08-12 22:25:52 -07:00
dragonmux
da320a42f3
cdcacm: Refactored cdcacm_set_modem_state()
2022-08-12 22:25:52 -07:00
dragonmux
adf8ae1ef1
common: Moved the DFU stub out into its own file with seperate handler registration so we don't cross the handler streams
2022-08-12 22:25:52 -07:00
dragonmux
400ee0c76c
serialno: Improved the naming of the serial number reading function
2022-08-12 22:25:52 -07:00
dragonmux
886c790b25
serialno: Refactored the serial number code, cleaning up its API and localising implementation details
2022-08-12 22:25:52 -07:00
dragonmux
259077a87d
common: Moved the USB initialisation code into usb.c
2022-08-12 22:25:52 -07:00
dragonmux
ada59291c2
common: Broke the USB descriptors out to their own header
2022-08-12 22:25:52 -07:00
dragonmux
d6f8a343a2
platform: Fixed the order of operations with the physical UART init vs the USB stack init
2022-08-12 22:25:52 -07:00
dragonmux
82bca86806
platform: Renamed cdcacm_init -> blackmagic_usb_init
2022-08-12 22:25:52 -07:00
dragonmux
105f6a3dce
common: Begun splitting the USB code into more sensibly named implementation files
2022-08-12 22:25:52 -07:00
dragonmux
3606784663
hosted/cmsis_dap: Add a dummy read to the end of dap_mem_write_sized() so we always wait on the write to ensure it's complete before any DP access can occur
2022-08-08 14:45:38 -07:00
dragonmux
4c544bad28
adiv5: Add a dummy read to the end of firmware_mem_write_sized() so we always wait on the write to ensure it's complete before any DP access can occur
2022-08-08 14:45:38 -07:00
dragonmux
7107d14bbc
sfdp: Moved the read debugging into the implementation
2022-08-08 14:43:29 -07:00
dragonmux
1556db88de
rp: Made use of the extra information we pull back from the SFDP data in rp_flash_erase
2022-08-08 14:43:29 -07:00
dragonmux
09b044e351
rp: Cleanup in the Flash write/erase routines
2022-08-08 14:43:29 -07:00
dragonmux
e69a79cecf
rp: Types cleanup for the Flash erase/write routines
2022-08-08 14:43:29 -07:00
dragonmux
4630353be4
rp: Created a Flash container type for the SPI-specific configuration bits
2022-08-08 14:43:29 -07:00
dragonmux
d883fd0cdc
rp: Refactored the SPI Flash parameter and size readout into rp_add_flash()
2022-08-08 14:43:29 -07:00
dragonmux
8e99e8ec4d
rp: Added some debugging to the SFDP read routine to aid with SFDP failures
2022-08-08 14:43:29 -07:00
dragonmux
298299d85b
rp: Cleaned up some variable naming in the ROM function table reader
2022-08-08 14:43:29 -07:00
dragonmux
9681475ab5
rp: Made use of the SFDP routines to extract the necessary Flash parameters
2022-08-08 14:43:29 -07:00
dragonmux
253d0cc1d9
rp: Entirely rewrote the SPI Flash read routine so we can implement SFDP support
2022-08-08 14:43:29 -07:00
dragonmux
6559c46ce9
sfdp: Implemented a structure for the JEDEC ID data
2022-08-08 14:43:29 -07:00
dragonmux
969c7c6c14
rp: Naming cleanup for the memory region base addresses and sizes
2022-08-08 14:43:29 -07:00
dragonmux
ff30b66b3a
rp: Cleaned up the RP register definitions for the SPI Flash and the chip select line control routine
2022-08-08 14:43:29 -07:00
dragonmux
2058725dd8
rp: Cleaned up and rewrote the ROM function table readout code to be more understandable and transparent
...
This saves 20 bytes of Flash
2022-08-08 14:43:29 -07:00
dragonmux
a372cfd787
rp: Fixed the private structure naming and made a typedef for it
2022-08-08 14:43:29 -07:00
dragonmux
11b43a7c66
rp: Refactored the ROM table tags using a helper macro
2022-08-08 14:43:29 -07:00
dragonmux
f2b0d3030c
rp: Fixed the UB _-prefixed naming of the ROM routines
2022-08-08 14:43:29 -07:00
dragonmux
8d772d048b
rp: Cleaned up ROM table function table readout
2022-08-08 14:43:29 -07:00
dragonmux
8382b0aa7d
rp: Magic numbers cleanup using top of file definitions
2022-08-08 14:43:29 -07:00
dragonmux
96259d11c8
sfdp: Implemented the logic needed to read the headers and basic parameter table
2022-08-08 14:43:29 -07:00
dragonmux
d9c7c8bc13
sfdp: Implemented types and helpers for the basic parameter table
2022-08-08 14:43:29 -07:00
dragonmux
c6133a8cae
sfdp: Begun implementing the machinary needed to read and parse out SFDP headers from SPI Flash
2022-08-08 14:43:29 -07:00
dragonmux
64c0b8a298
target_internal: typedef'd the target_flash structure to make use nicer
2022-08-08 14:43:29 -07:00
Rafael Silva
802c5fb87c
hosted/jlink: fix bad line reset cmd building
...
extra memset set bits that were not set before code cleanup
2022-08-08 12:30:34 -04:00
dragonmux
1b8dd3a5d9
target: Made target_flash_for_addr() available as a target internal
2022-08-07 20:16:04 -07:00
Piotr ESden-Tempski
253a12f014
native: Enable uart on HW >=V3 when debugging.
...
We were disabling the UART on all Hardware V1 and newer, as V1 and V2
had the SWD pins connected to the UART pins. Since V3 this is not the
case any more so we can keep the UART enabled when an SWD debugger is
connected to the BMP.
2022-08-07 22:59:23 -04:00