stlink
stlink copied to clipboard
error / functionality under MacOSX
hello Andreas,
I would like to use your tool to flash a STM8_Discovery Board under MacOS X 10.10.3. However, I ran into a problem for which I need your help. Here's the steps I took:
-
compilation failed with the following error message: libstlink/stlink-cmd.c:22:20: error: unused function 'dump_cdb' --> commenting either "-Wall -Werror" in Makefile or dump_cdb() in stlink-cmd.c fixed that :-) Maybe you want to fix that in the repository
-
I connected the Discovery Board to the Mac and checked that I can program under Windows / VirtualPC. Setup works and can be flashed/debugged --> HW is ok :-)
-
when I called stink-test without arguments I get the following response: sh-3.2# stlink-test Opening ST-Link device... interface 0 Found IN endpoint Found OUT endpoint claiming interface failed: -3 --> what is wrong here? Any idea? Do I need to provide an argument? And, if yes, which?
-
when I checked main.c I realized that main() doesn't evaluate any argument --> is this tool already ready to flash a STM8, or is this still work in progress? Or, maybe even unfinished work no longer in progress...?
Any help is highly appreciated! For your feedback thanks a lot in advance!
Regards, Georg