STM8S programming using ST-LINK V2 | STVD IDE and COSMIC compiler set-up | STM8S103F LED Blink
Вставка
- Опубліковано 8 жов 2024
- This tutorial guides you through the process of setting up STVD IDE and COSMIC compiler for programming the STM8S103F3P6 Development Board. Essential links and important file paths are provided below for your convenience.
ST Visual Develop (STVD):
www.st.com/en/...
Cosmic C Compiler:
www.cosmicsoft...
Cosmic C Compiler License Path:
C:\Program Files (x86)\COSMIC\FSE_Compilers\CXSTM8\License
Standard Peripheral Library:
github.com/Cir...
Thanks a lot for this tutorial. Great video with great explanation.
Hello,
Great tutorial, but I am having problems with the license. I get the same error message that I've seen other people comment about "FlexLM Invalid (inconsistent) license key"
I got the license from the Cosmic email address, after I registered online after finding the registration page manually as LmregFSE didn't open any webpage. I correctly placed the license file in the folder.
Can you help me out?
Do you have any pop up blocker enabled in your browser.
@@badmek3782 I do, maybe that is why LmregFSE didn’t open a separate window to send the email to cosmic. I resolved my problem by directly messaging Cosmic support with a txt file of my userid and details for the license. Everything else worked flawlessly after that!
I have programmed stm8s003f3p6 microcontroller... where 2 input (pb4 and pb5) and 3 output pins (pc3, pc4 and pc5) where pc4 and pc5 is getting voltage of 2.8 volts but pc3 is giving only 1.3 volt... i need this to be 2.8 too..what is the mistake i have made? Logic is perfect in my program ..as small LED's are working as per logic.
Can u help here?
I will check and revert, meanwhile you can verify if this pin has any internal pull up enabled.
@@badmek3782 GPIO_Init(OUTPUT_PORT, LED_FOR_HIRE, GPIO_MODE_OUT_PP_LOW_FAST);
GPIOC->CR1 |= (1
Cosmic isn`t a free software.I installed it three yars ago. When I found out that my license had been ellapsed - I tried to re-install Cosmic. But I have not receive a letter with a license key.Nowadays I tried it one more time. I have not had any success. What do we have free ? We have SDCC.The STVD does not suport it. But how to debug a program? By the UART portand LED? Maybe Arduino IDE helps?
COSMIC has been great about sending me my free license every year. The readme file in the “C:\Program Files (x86)\COSMIC\FSE_Compilers\CXSTM8" folder gives instructions. Since I do not have a mail program installed on my computer, the installer could not automatically request a license through email. I had to use option #4, "Write to file" and manually email it to COSMIC and they sent my free license quickly. COSMIC C is a terrific compiler because it is well integrated into the ST-Visual Develop program to use every feature of STMicroelectronics microcontrollers.
Dear brother, what is the purpose of STM8S103F3P6? I accidentally burned out the microcontroller due to overloading the RCD3015M module. I want to replace the chip. So will the module work if I just replace it with a new one or do I need to program it. Or will the RCD3015M module work without the STM8S103F3P6 chip? Please help me understand, thank you.
Hello Shanasusu, I'm uncertain about the RCD3015 module. However, if it utilizes the STM8S103F3 as the host microcontroller, programming would be necessary when replacing it.
@@badmek3782 thank you so much for your response bro.
RCD3015 is a signal converter bro.
Imagine I have a fresh RCD3015, can I copy the code to a new microcontroller.
@shamansusu If the microcontroller memory is not protected you can do that. But in most cases it will be protected. Still give it a try.
Helpful to me❤
Glad to hear that
Sir, Stm32f103rbt6 ic read and copy ke liye simply ho ga
Programber stmv2 use kar na he
Please guide sir
Your question is not clear, could you please explain a little more. You can type in hindi also.
When I open "ST Visual Develop" window and try to close it, getting massage as "C:\Program Files (x86)\STMicroelectronics\st_tooset\stvd\default.wed was denied". What to do?
Are you able to compile the code
Yes, compile the code
Connection error (usb://usb): swim error [30006]: comm init error: chip does not answer
can anyone help to ?? i got this type of error
Hi Pruthvi, Please open "Debug Instrument Settings" on STVD IDE and Uncheck "Restart the application with Swim off". Reset Microcontroller and try debugging after this, check if the issue is resolved. Please see below video for more information
ua-cam.com/video/gExRr68CsKs/v-deo.html
no licence mail recieve try many but not giving me
Did you check in the spam box
yes i have check in spam no any mail dear sir please help@@badmek3782
any more option
If you have any pop up blocker enabled in your browser disable them. If it is not working after that, you have to contact for cosmic support
Ok