HayWo / hoverboard-firmware-hack

Hoverboard Firmware Hack for V5.1 boards
GNU General Public License v3.0
1 stars 1 forks source link

Help needed for YST-DXT-J20 V5.7 with AT32F413 #2

Open fraro opened 2 years ago

fraro commented 2 years ago

Hi all, I've received a new mainboard YST-DXT-J20 V5.7 with an AT32F413RCT7 I have applied the patch to openocd like describe in https://github.com/thanek/hoverboard-firmware-hack#flashing including Use 0x240 instead of 0x242and Use "max_flash_size_in_kb = 256;" instead of "max_flash_size_in_kb = 512;"

But the chip is not recognized, I get

Info : clock speed 1000 kHz
Info : STLINK V2J29S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.164560
Warn : UNEXPECTED idcode: 0x0bb11477
Error: expected 1 of 1: 0x1ba01477

I followed the recommendatio to add -c "set CPUTAPID 0x0bb11477"

but still no success:

Info : Target voltage: 3.164560
Info : stm32f1x.cpu: hardware has 4 breakpoints, 2 watchpoints
Info : starting gdb server for stm32f1x.cpu on 3333
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread 
xPSR: 0xc1000000 pc: 0x0800013c msp: 0x20000aa8
Info : device id = 0x00000000
Warn : Cannot identify target as a STM32 family.
Error: auto_probe failed

Full command line is src/openocd --search tcl -f interface/stlink.cfg -c "transport select hla_swd" -c "set CPUTAPID 0x0bb11477" -f target/stm32f1x.cfg -c init -c "reset halt" -c "stm32f1x unlock 0"

Any help appreciated!

Has anyone tried to use the AT32-Link Windows tool?

zuingo commented 1 year ago

I have the same problem see https://github.com/cloidnerux/hoverboard-firmware-hack/issues/4#issuecomment-1293806444...i'm becameing crazy!