stm8 | A Collection of examples such as GPIO , UART , I2C

 by   EMBEDONIX C Version: Current License: No License

kandi X-RAY | stm8 Summary

kandi X-RAY | stm8 Summary

stm8 is a C library typically used in Internet of Things (IoT), Arduino applications. stm8 has no vulnerabilities and it has low support. However stm8 has 1101 bugs. You can download it from GitHub.

For compatibility with other STM8X (e.g. L) series of MCU's make sure the registers in the "include/stm8s.h" are compatible with your own MCU. Just make a copy of this file and apply changes according to the datasheet of the chip you have at hand. For tutorial on programming these examples on your MCU, please check the guide to flashing stm8 on linux.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              stm8 has a low active ecosystem.
              It has 22 star(s) with 11 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 1 open issues and 0 have been closed. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of stm8 is current.

            kandi-Quality Quality

              stm8 has 1101 bugs (0 blocker, 0 critical, 454 major, 647 minor) and 1876 code smells.

            kandi-Security Security

              stm8 has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              stm8 code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              stm8 does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              stm8 releases are not available. You will need to build from source code and install.
              It has 16510 lines of code, 0 functions and 178 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of stm8
            Get all kandi verified functions for this library.

            stm8 Key Features

            No Key Features are available at this moment for stm8.

            stm8 Examples and Code Snippets

            No Code Snippets are available at this moment for stm8.

            Community Discussions

            QUESTION

            How to Debug in STMCubeIDE?
            Asked 2022-Feb-15 at 18:57

            I am new to STM32. I have recently installed STM32CUBEIDE. I have written basic code . connected ST-Link v2 (STM8 & STM32) to my laptop and pressed F11 (to debug). I get the following error

            ...

            ANSWER

            Answered 2022-Feb-15 at 18:57

            I hate the same problem a while a go. In my chase the debugger it self (st/linkv2) was broken and I tried to upload it with a other dongle and it worked fine. So it could be just be a broken dongle.

            Source https://stackoverflow.com/questions/71092033

            QUESTION

            STM8 as SPI slave can't send back data
            Asked 2021-Sep-27 at 15:38

            I have build a prototype board with a STM8L, and I want it to be used and configured as a SPI slave. I am testing it with a raspberry pi as master.

            I use the lib provided by ST called "STM8 Standard Peripherals Library" for this, but the documentation is very poor and doesn't expain how to do this...

            I can send data from the Raspberry Pi with no issue and receive it on the STM8 but I can't send back any data to the raspberry from the STM8 on MISO.

            Is anybody known how I can send back some data to the Raspberry Pi master? Where is my mistake?

            Here is the main code:

            ...

            ANSWER

            Answered 2021-Sep-26 at 19:14

            SPI requires the master to provide the clock. If you want the slave to send something - your master has to send some dummuy data to generate the clock for the slave.

            Source https://stackoverflow.com/questions/69337091

            QUESTION

            How to Convert the last digit of a number to a char and display it on LCD?
            Asked 2021-Aug-21 at 07:27

            I recently got a STM8 MCU and it has the built in function LCD_GLASS_DisplayString("STRING")

            The problem with that function is, as you can see below, that I cannot directly display an integer on it:

            ...

            ANSWER

            Answered 2021-Aug-20 at 11:17

            You're not far off with "0" + integer%10 - but you need to treat it as a character - '0' + integer%10 - and you need to pass LCD_GLASS_WriteChar a pointer to this character.

            One way to do this is:

            Source https://stackoverflow.com/questions/68861333

            QUESTION

            SDCC generates unnecessary division by zero
            Asked 2021-May-06 at 00:31

            I'm using SDCC to compile for a STM8 microcontroller. Compiling the following file results in a seemingly unnecessary div instruction - which is very slow on the STM8.

            ...

            ANSWER

            Answered 2021-May-05 at 13:42

            Looks like that's a bug somewhere in the compiler because if b = c >> 0 is changed to b = c << 0, b = c + 0, b = a[0]... then no such thing happens. The behavior is observed on both optimized and unoptimized code. But if you optimize for size (--opt-code-size) then only the div is there, the clr instruction isn't emitted. You might want to report that to the developers

            Demo on Compiler Explorer

            Source https://stackoverflow.com/questions/67328583

            QUESTION

            STM8: local declared pointer on global variable
            Asked 2020-Oct-27 at 14:18

            on my STM8 Disco Board with Cosmic Compiler I tried follwoing code and expected 'ptr_a' and 'ptr_aLocal' to be the same:

            ...

            ANSWER

            Answered 2020-Oct-27 at 14:12

            Various older versions of misc embedded compilers tended to optimize code somewhat even when optimizations were supposedly disabled. Particularly Cosmic and Codewarrior had such quirks in older versions. Since the local variable isn't used, it is optimized away.

            You can see this for yourself by viewing the generated assembler - any half-decent debugger will support assembly step debugging. If there is no stack push or index register store instruction there, then it was optimized away.

            You can force the variable to get used with volatile int *ptr_aLocal.

            Unrelated to your question, you should use uint8_t as far as possible nad not int, when programming 8 bit microcontrollers.

            Source https://stackoverflow.com/questions/64554859

            QUESTION

            stm8flash .bin file for EEPROM write
            Asked 2020-Apr-09 at 22:17

            I am attempting to write values directly to the eeprom space on a stm8 micro controller. I don't want to write a program that does this that I flash onto the chip. But i want to write directly to it. The command to do this is in unix is such:

            ...

            ANSWER

            Answered 2020-Apr-09 at 22:17

            The easiest thing to do was to first read the file like so:

            Source https://stackoverflow.com/questions/61112947

            QUESTION

            c# API or SDK for st-link v2 or SEGGER J-Link flash downloader
            Asked 2020-Jan-17 at 14:35

            I am wondering if anyone have worked with a custom .net C# GUI that are able to do flash download for an STM microcontroller via ST-Link or SEGGER? I know that segger have their SDK, but it is not free. Are there any opensource API that we can use instead?

            Any help will be appreciated, thanks!

            ...

            ANSWER

            Answered 2020-Jan-17 at 14:35

            If you want to program uCs from your C application just use openOCD (free) and send commands to it. Works with almost every popular debug probe.

            Source https://stackoverflow.com/questions/59788575

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install stm8

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/EMBEDONIX/stm8.git

          • CLI

            gh repo clone EMBEDONIX/stm8

          • sshUrl

            git@github.com:EMBEDONIX/stm8.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link