fix(dap): JTAG speed
This commit is contained in:
parent
126ad0adaa
commit
b2c8a832cc
|
@ -1,4 +1,4 @@
|
|||
<p align="center"><img src="https://user-images.githubusercontent.com/17078589/107881245-7d7d5580-6f1e-11eb-9f66-6ac589e5f95c.png"/></p>
|
||||
<p align="center"><img src="https://user-images.githubusercontent.com/17078589/120061980-49274280-c092-11eb-9916-4965f6c48388.png"/></p>
|
||||
|
||||

|
||||
|
||||
|
@ -51,6 +51,8 @@ You can change `WIFI_SSID` and ` WIFI_PASS` in [wifi_configuration.h](main/wifi_
|
|||
|
||||
You can also specify your IP in the above file (We recommend using the static address binding feature of the router).
|
||||
|
||||

|
||||
|
||||
### Debugger
|
||||
|
||||
|
||||
|
|
|
@ -385,10 +385,13 @@ static uint32_t DAP_SWJ_Clock(const uint8_t *request, uint8_t *response) {
|
|||
|
||||
// clock >= 10MHz -> use 40MHz SPI
|
||||
if (clock >= 10000000) {
|
||||
if (DAP_Data.debug_port != DAP_PORT_JTAG) {
|
||||
DAP_SPI_Init();
|
||||
SWD_TransferSpeed = kTransfer_SPI;
|
||||
}
|
||||
DAP_Data.fast_clock = 1U;
|
||||
DAP_Data.clock_delay = 1U;
|
||||
SWD_TransferSpeed = kTransfer_SPI;
|
||||
|
||||
} else if (clock >= 2000000) {
|
||||
// clock >= 2MHz -> Use GPIO with no program delay
|
||||
DAP_SPI_Deinit();
|
||||
|
|
Loading…
Reference in New Issue