2021-03-15 12:16 PM
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
2021-03-16 03:47 AM
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
2021-03-16 06:34 AM
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
2021-03-16 12:43 PM
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.
2021-03-16 12:50 PM
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.
2021-03-17 01:44 AM
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
2021-03-17 12:19 PM
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
2021-03-17 12:20 PM
Hi Djosh,
Please help me, what i can tryout to solve this
Best Regards,
Raj
2021-03-18 01:35 AM
A few questions.
Because when I follow those steps I have a working setup....