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...

КОМЕНТАРІ • 30

  • @OmkarKhade-m3f
    @OmkarKhade-m3f Місяць тому

    Thanks a lot for this tutorial. Great video with great explanation.

  • @todorovjr
    @todorovjr Рік тому +1

    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?

    • @badmek3782
      @badmek3782  Рік тому

      Do you have any pop up blocker enabled in your browser.

    • @todorovjr
      @todorovjr Рік тому +1

      @@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!

  • @samanttejasr
    @samanttejasr 2 дні тому

    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?

    • @badmek3782
      @badmek3782  2 дні тому

      I will check and revert, meanwhile you can verify if this pin has any internal pull up enabled.

    • @samanttejasr
      @samanttejasr 2 дні тому

      @@badmek3782 GPIO_Init(OUTPUT_PORT, LED_FOR_HIRE, GPIO_MODE_OUT_PP_LOW_FAST);
      GPIOC->CR1 |= (1

  • @andrewandrosow4797
    @andrewandrosow4797 Місяць тому

    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?

    • @19mitch54
      @19mitch54 11 днів тому

      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.

  • @shamansusu
    @shamansusu 8 місяців тому

    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.

    • @badmek3782
      @badmek3782  8 місяців тому +1

      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.

    • @shamansusu
      @shamansusu 8 місяців тому

      @@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.

    • @badmek3782
      @badmek3782  8 місяців тому

      @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.

  • @rameshwargadekar7626
    @rameshwargadekar7626 Рік тому

    Helpful to me❤

  • @Hhtfvhrcbgrejkkjhffvbhb
    @Hhtfvhrcbgrejkkjhffvbhb 4 місяці тому

    Sir, Stm32f103rbt6 ic read and copy ke liye simply ho ga
    Programber stmv2 use kar na he
    Please guide sir

    • @badmek3782
      @badmek3782  4 місяці тому

      Your question is not clear, could you please explain a little more. You can type in hindi also.

  • @vp6598
    @vp6598 8 місяців тому

    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?

    • @badmek3782
      @badmek3782  8 місяців тому

      Are you able to compile the code

    • @vp6598
      @vp6598 7 місяців тому

      Yes, compile the code

  • @dabhipruthvi5185
    @dabhipruthvi5185 2 роки тому +1

    Connection error (usb://usb): swim error [30006]: comm init error: chip does not answer
    can anyone help to ?? i got this type of error

    • @badmek3782
      @badmek3782  2 роки тому

      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

  • @Sanaullahalam95
    @Sanaullahalam95 9 місяців тому

    no licence mail recieve try many but not giving me

    • @badmek3782
      @badmek3782  9 місяців тому

      Did you check in the spam box

    • @Sanaullahalam95
      @Sanaullahalam95 9 місяців тому

      yes i have check in spam no any mail dear sir please help@@badmek3782

    • @Sanaullahalam95
      @Sanaullahalam95 9 місяців тому

      any more option

    • @badmek3782
      @badmek3782  9 місяців тому

      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

    • @Sanaullahalam95
      @Sanaullahalam95 9 місяців тому

      Ok