sifive / freedom-tools

Tools for SiFive's Freedom Platform
217 stars 52 forks source link

Openocd for Win32 #42

Closed seanwang520 closed 4 years ago

seanwang520 commented 4 years ago

Hi,

I try to build openocd for win32 in ubuntu16.

Within the master branch, the bin/openocd is elf format. Which is not execuable in Win32 environment.

And within 201905 branch ?? When set breakpoint in gdb, the openocd failed.

"Accertion failed! Program: C:\CCore_IDE_suite_RV\tool-chain\OpenOCD\openocd.exe File: src/target/riscv/riscv-013.c, Line 2382

Expression: receive_addr < address + size * count "

Thanks for your help.

Sean

cgsfv commented 4 years ago

Hi,

We are not really supporting the 32-bit environments, and I do not have a 32-bit environment to test it out. So if you want to try and build OpenOCD for 32-bit, I suggest you go to https://github.com/riscv/riscv-openocd

seanwang520 commented 4 years ago

OK, thank you.