Skip to main content
Visitor II
March 15, 2021
Question

Problem with Compiling SPL library files in STVD

  • March 15, 2021
  • 4 replies
  • 4523 views

Hello Everyone,

actually iam new these STM8 microcontrollers and i have been trying the basic peripherals, in that process i have started with UART and i tried to compile all the Standard SPL library files and having this error please help me

-PFA-

Thanks

Raj

0693W000008wyBbQAI.jpg

    This topic has been closed for replies.

    4 replies

    Visitor II
    March 16, 2021

    Hello ,

    I go the same error. It is resolved by commenting the non handle interrupt in stm8_interrupt_vector.c file .

    just comment the non handle interrupt written in stm8_interrupt_vector.c file .

    You are getting this error because non handle interrupt is also defined in stm8_it.c /.h file

    I am sending you the screenshot too.

    please find the attachment.

    please answer me if my solution resolved your problem.

    thanks

    Deoyani

    RRaje.1Author
    Visitor II
    March 16, 2021

    Hi DJosh,

    Thank you very much for your support,

    i have tried to comment "NonHandledInterrupt" from stm8_interrupt_vector.c file and iam getting this error(PFA), after that i have even tried uncommenting here and commenting the same function from stm8_it.c & stm8_it.h(at same time) then also iam getting the errors(PFA)

    .

    please help me

    Best Regards,

    Raj.

    0693W000008x5XoQAI.jpg0693W000008x5ZVQAY.jpg 

    Visitor II
    March 16, 2021

    With the SPL there are some examples, with these examples there are other (new?) interrupt-vector files. I use these and they work just fine. Also, on Instructables I have written an installation of ST Visual Develop with Cosmic that may be of help.

    https://www.instructables.com/Setup-ST-Visual-Develop-With-the-Cosmic-STM8-Compi/

    The files I use in that Instructable can be found here:

    https://gitlab.com/WilkoL/setup-st-visual-develop-and-cosmic-for-stm8

    Succes.

    Wilko

    RRaje.1Author
    Visitor II
    March 16, 2021

    Hello WilkoL,

    i need the project files and standard libraries for STM8S105C6 but i dont see any uart2 in your git link for the same MCU

    Best Regards,

    Raj.

    Visitor II
    March 17, 2021

    Well, just download the SPL from ST.com and change the ringbuffer for usart1 I wrote to usart2.

    http://www.st.com/en/embedded-software/stsw-stm8069.html

    Good luck,

    Wilko

    RRaje.1Author
    Visitor II
    March 17, 2021

    Hi WilkoL,

    I have downloaded SPL from ST.com only(i tried again now), and your Uart_config.c file will defenately very useful but only after successful compilation of my SPL libraries.

    that means i stuck at the very first step i guess.

    please help we to get out of this......

    Best Regards,

    Raj

    Visitor II
    March 18, 2021

    A few questions.

    • did you follow the article I wrote on Instructables?
    • every step of it?
    • including the registration of the compiler(s) with Cosmic?
    • what was the result of the compilation?

    Because when I follow those steps I have a working setup....