mastering-stm32 | examples presented in the `` Mastering STM32 | Robotics library

 by   cnoviello C Version: Current License: GPL-3.0

kandi X-RAY | mastering-stm32 Summary

kandi X-RAY | mastering-stm32 Summary

mastering-stm32 is a C library typically used in Automation, Robotics applications. mastering-stm32 has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has low support. You can download it from GitHub.

This repository contains all examples presented in the "Mastering STM32" book, published on the leanpub self-publishing platform.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              mastering-stm32 has a low active ecosystem.
              It has 370 star(s) with 145 fork(s). There are 51 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 5 open issues and 5 have been closed. On average issues are closed in 377 days. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of mastering-stm32 is current.

            kandi-Quality Quality

              mastering-stm32 has no bugs reported.

            kandi-Security Security

              mastering-stm32 has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              mastering-stm32 is licensed under the GPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              mastering-stm32 releases are not available. You will need to build from source code and install.

            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 mastering-stm32
            Get all kandi verified functions for this library.

            mastering-stm32 Key Features

            No Key Features are available at this moment for mastering-stm32.

            mastering-stm32 Examples and Code Snippets

            No Code Snippets are available at this moment for mastering-stm32.

            Community Discussions

            QUESTION

            Really Minimal STM32 Application: linker failure
            Asked 2018-Apr-18 at 17:32

            I'm building a tiny microcontroller with only the bare essentials for self-educational purposes. This way, I can refresh my knowledge about topics like the linkerscript, the startup code, ...

            EDIT:
            I got quite a lot of comments pointing out that the "absolute minimal STM32-application" shown below is no good. You are absolutely right when noticing that the vector table is not complete, the .bss-section is not taken care of, the peripheral addresses are not complete, ... Please allow me to explain why.

            1. It has never been the purpose of the author to write a complete and useful application in this particular chapter. His purpose was to explain step-by-step how a linkerscript works, how startup code works, what the boot procedure of an STM32 looks like, ... purely for educational purposes. I can appreciate this approach, and learned a lot.

            2. The example I have put below is taken from the middle of the chapter in question. The chapter keeps adding more parts to the linkerscript and startup code (for example initialization of .bss-section) as it goes forward.
              The reason I put files here from the middle of his chapter, is because I got stuck at a particular error message. I want to get that fixed before continuing.

            3. The chapter in question is somewhere at the end of his book. It is intended for the more experienced or curious reader who wants to gain deeper knowledge about topics most people don't even consider (most people use the standard linkerscript and startup code given by the manufacturer without ever reading it).

            Keeping this in mind, please let us focus on the technical issue at hand (as described below in the error messages). Please also accept my sincere apologies that I didn't clarify the intentions of the writer earlier. But I've done it now, so we can move on ;-)

             

            1. Absolute minimal STM32-application

            The tutorial I'm following is chapter 20 from this book: "Mastering STM32" (https://leanpub.com/mastering-stm32). The book explains how to make a tiny microcontroller application with two files: main.c and linkerscript.ld. As I'm not using an IDE (like Eclipse), I also added build.bat and clean.bat to generate the compilation commands. So my project folder looks like this:

            Before I continue, I should perhaps give some more details about my system:

            • OS: Windows 10, 64-bit

            • Microcontroller: NUCLEO-F401RE board with STM32F401RE microcontroller.

            • Compiler: arm-none-eabi-gcc version 6.3.1 20170620 (release) [ARM/embedded-6-branch revision 249437].

            The main file looks like this:

            ...

            ANSWER

            Answered 2018-Apr-17 at 18:47

            The book you're reading has led you astray. Discard it and start learning from another source.

            I see at least four major problems with what it has told you to do:

            1. The linker script and _start function you included is missing a number of important sections, and will either malfunction or fail to link many executables. Most notably, it lacks any handling for BSS (zero-filled) sections.

            2. The vector table in main.c is beyond "minimal"; it lacks the required definitions for even the standard ARM interrupt vectors. Without these, debugging hardfaults will become very difficult, as the microcontroller will treat random code following the vector table as an interrupt vector when a fault occurs, which will probably lead to a secondary fault as it fails to load code from that "address".

            3. The startup functions given by your book bypass the libc startup functions. This will cause some portions of the standard C library, as well as any C++ code, to fail to work correctly.

            4. You are defining peripheral addresses yourself in main.c. These addresses are all defined in standard ST header files (e.g. ), so there is no need to define them yourself.

            As a starter, I would recommend that you refer to the startup code provided by ST in any of their examples. These will all include a complete linker script and startup code.

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

            QUESTION

            Building C language STM32 project with existing Makefile under Eclipse
            Asked 2017-Jan-25 at 09:50

            I am a newbie in Eclipse and STM32. So I would like to ask you for an advice with a problem which I have been solving. I have got a software for STM32. This software is written in C language and has an existing Makefile. The software is now placed on the SVN server. I need to build the project in Eclipse Neon 4.6.2 IDE running on Windows 7. I have installed the whole GNU ARM Toolchain according to tutorial Mastering STM32. Please can anybody direct me on any step by step instructions how to do that? Thanks in advance. Sed utility warning message

            ...

            ANSWER

            Answered 2017-Jan-25 at 09:50

            sed is a unix utility. Maybe executed as a part of your makefile.

            The error message is hidden by the second widnow. If it suggests, try to install it on your machine. I use GNU/Linux where it is essential part of the distribution. On Windows you can find a binary after some search.

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install mastering-stm32

            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/cnoviello/mastering-stm32.git

          • CLI

            gh repo clone cnoviello/mastering-stm32

          • sshUrl

            git@github.com:cnoviello/mastering-stm32.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

            Explore Related Topics

            Consider Popular Robotics Libraries

            openpilot

            by commaai

            apollo

            by ApolloAuto

            PythonRobotics

            by AtsushiSakai

            carla

            by carla-simulator

            ardupilot

            by ArduPilot

            Try Top Libraries by cnoviello

            CubeMXImporter

            by cnovielloPython

            stm32-nucleof4

            by cnovielloC

            stm32-nucleo144-f7

            by cnovielloC

            stm32-discof7

            by cnovielloC

            stm32-w5100

            by cnovielloC