-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to upload sketch to STM8S105K4T6 Breakout board With Latest 0.4.0 update #74
Comments
Still no results on this board with Arduino IDE. Please assist in any way so i will be able to work with this board. Please assist. |
I looks like you are using Windows. Did you install the ST-Link-Driver from the ST Website? The driver needs to be installed before you connect the ST-Link. See https://tenbaht.github.io/sduino/hardware/flashtool/ You will need the SWIM connection, SWD is STM32 only. Using ST-Link you don't need to press any buttons, programming mode is activated automatically. Manual reset is only important for the serial bootloader connection using stm8gal. |
I have installed the ST-LINK driver and I have been using the same ST-Link V2 for my Blue Pill that works great. I have tried the SWIM with No Luck. :( any idea how to do that on Windows? |
I am facing the same issue, I have the driver installed and have updated the ST-Link V2 Firmware. Error message:
|
Hi Wilhelm, Tools->upload method should be stlink/v2 if you don't want to use the serial bootloader. For the older versions of the IDE it was important to select a COM port beforehand, even if it is not used. IMHO that got fixed with 1.8.8 but it might be worth a try. The error message sounds more like an USB issue. How about the current consumption? Is there anything connected to the breakout board? If too much current is consumed the USB controller automatically shuts down the port. The limit might be as low as 100mA, depending on the configuration of your programming device. The current includes the ST-Link device, the breakout board and everything connected from there. Maybe try to power the breakout board from a separate power supply and don't connect the Vcc line from the ST-Link. |
Michael (@tenbaht ) thanks for your reply! Curiously the programming output still includes the error message(s) I was getting before.
|
I am glad to hear. So I can close this issue? The problem was just bad wiring? BTW: The USB Vid/Pid refers to a mouse, not the ST-Link adapter: http://www.devicekb.com/usb-vendor/1532/device/011B.php |
In my case the issue is resolved. |
Ok, great. So I declare this a wiring problem and close the issue! |
Hi I too having same problem and cross checked the wiring all perfect. driver is installed too. tried both V2 and V2.1 in programmer. Please advice. below code: void setup() { Serial Monitor output is below: Due to its file extension (or lack thereof), "C:\Users\murug\AppData\Local\Temp\arduino_build_715628/Blink.ino.hex" is considered as INTEL HEX format! |
Hi,
I have just bought two STM8S105K4T6 Broads and I have connected them to my PC using STLink-V2 with the latest Firmware installed on it.
I already installed the sduino boards version 0.4.0. meaning I am up-to-date with both (so I think I am)
Trying to upload a simple "Blinky" Sketch to the board with NO luck at all :(
Boards is: STM8S105K4T6 Breakout Board
Upload Method: STLink\V2
So I think I am OK with the settings, correct? Not much to choose from
Connecting the board with 3V3 and GND to the STLink-V2 board. and RST to RST and SW from the board to the SWDIO (also tried SWIM with no luck). This part I am not sure if I am doing correct - But I am trying almost everything.. No luck!
I press the button on the board to set it to programming mode (So I think that is what I need to do - since it also DOES NOT work when I don't press the Button) eather way - It does NOT work at all - with me pressing the button or not.
I am getting lots of errors trying to upload the simple blink sketch and Nothing is working.
At the end I get:
I have TWO STLink-V2 and Two STM8S105K4T6 borads - and Nothing works on both!
I am sure that I am doing something wrong and I hope that you can assist me.
My main concerns are:
Please assist. I want to make these boards work on my Arduino IDE :)
Thank you!
Aryeduino
The text was updated successfully, but these errors were encountered: