实测有,但是只有C8T6有,F8P6没有,坑不坑爹?意不意外?
GD32F330C8T6的调试信息,注意有FPU present: FPv4-SP,开启FPU指令一切正常。
$ gd32f3x0.sh info
Try unlock Device...
INFO:pyocd.board.board:Target type is gd32f330c8
INFO:pyocd.coresight.dap:DP IDR = 0x2ba01477 (v1 rev2)
INFO:pyocd.coresight.ap:AP#0 IDR = 0x24770011 (AHB-AP var1 rev2)
INFO:pyocd.coresight.rom_table:AP#0 Class 0x1 ROM table #0 @ 0xe00ff000 (designer=751 part=422)
INFO:pyocd.coresight.rom_table:[0]<e000e000:SCS-M4 class=14 designer=43b part=00c>
INFO:pyocd.coresight.rom_table:[1]<e0001000:DWT class=14 designer=43b part=002>
INFO:pyocd.coresight.rom_table:[2]<e0002000:FPB class=14 designer=43b part=003>
INFO:pyocd.coresight.rom_table:[3]<e0000000:ITM class=14 designer=43b part=001>
INFO:pyocd.coresight.rom_table:[4]<e0040000:TPIU-M4 class=9 designer=43b part=9a1 devtype=11 archid=0000 devid=ca0:0:0>
INFO:pyocd.coresight.cortex_m:CPU core #0 is Cortex-M4 r0p1
INFO:pyocd.coresight.cortex_m:FPU present: FPv4-SP
INFO:pyocd.coresight.dwt:4 hardware watchpoints
INFO:pyocd.coresight.fpb:6 hardware breakpoints, 4 literal comparators
No operation performed
但是GD32F330F8P6就没有FPU,实测开启FPU指令,程序会挂。
$ gd32f3x0.sh info
Try unlock Device...
INFO:pyocd.board.board:Target type is gd32f330c8
INFO:pyocd.coresight.dap:DP IDR = 0x2ba01477 (v1 rev2)
INFO:pyocd.coresight.ap:AP#0 IDR = 0x24770011 (AHB-AP var1 rev2)
INFO:pyocd.coresight.rom_table:AP#0 Class 0x1 ROM table #0 @ 0xe00ff000 (designer=751 part=c17)
INFO:pyocd.coresight.rom_table:[0]<e000e000:SCS-M3 class=14 designer=43b part=000>
INFO:pyocd.coresight.rom_table:[1]<e0001000:DWT class=14 designer=43b part=002>
INFO:pyocd.coresight.rom_table:[2]<e0002000:FPB class=14 designer=43b part=003>
INFO:pyocd.coresight.rom_table:[3]<e0000000:ITM class=14 designer=43b part=001>
INFO:pyocd.coresight.rom_table:[4]<e0040000:TPIU-M4 class=9 designer=43b part=9a1 devtype=11 archid=0000 devid=ca0:0:0>
INFO:pyocd.coresight.cortex_m:CPU core #0 is Cortex-M4 r0p1
INFO:pyocd.coresight.dwt:4 hardware watchpoints
INFO:pyocd.coresight.fpb:6 hardware breakpoints, 4 literal comparators
No operation performed
【 在 tom6bj (tom) 的大作中提到: 】
: f330居然有fpu啊,厉害
: 你实测了么?有空试试
--
FROM 36.45.170.*