Stefan Kerkmann
Stefan Kerkmann
This works with the new `dcd_dwc2` and "old" `dcd_synopsys` driver.
Thank you very much :slightly_smiling_face:! I have openend a draft PR at tinyusb. I have run the tinyuf2 again with `LOG=2` and captured the output of two runs that produced...
@hathach I'll finally open a PR to support tinyuf2 on GD32VF103 in the next days, we could close it afterwards?
@fanghuaqi Thanks for clarification! I share my findings with you or others that maybe have the same question. Some further investigation in the disassembly of the bootloader revealed that it...
Actually I got the numbers for the data section wrong and the vector table was outside the SRAM region... After updating the numbers the bootloader doesn't trap anymore and tries...
@fanghuaqi no problem, as stated above jumping into the bootloader is not an easily accomplished. Therefore I have started to port the [tinyuf2](https://github.com/KarlK90/tinyuf2/tree/gd32vf103-support) userland bootloader for the GD32VF103. There are...
CC: @xyzz adjusted the values to your findings and added a safety margin
@xyzz thanks, I'll give it a try this afternoon.
That is actually fine as `21.11.3` will contain a fix for this issue.
```C #include "quantum.h" #include #include "pico/bootrom.h" volatile uint8_t* flash_start = 0x10000000UL; static THD_WORKING_AREA(waXIPTortureThread, 512); static THD_FUNCTION(XIPTortureThread, arg) { chRegSetThreadName("XIP torture thread"); rom_flash_flush_cache_fn flash_flush_cache = (rom_flash_flush_cache_fn)rom_func_lookup_inline(ROM_FUNC_FLASH_FLUSH_CACHE); while (true) { chSysLock(); flash_flush_cache();...