cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Compiling SPL library files in STVD

RRaje.1
Associate II

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

8 REPLIES 8
DJosh.0
Associate II

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

WilkoL
Senior

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

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 

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.

WilkoL
Senior

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

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

Hi Djosh,

Please help me, what i can tryout to solve this

Best Regards,

Raj

WilkoL
Senior

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