STM32F407G-DISC1 | STM32F4 microprocessor via the Embedded.fm

 by   gyaresu C Version: Current License: No License

kandi X-RAY | STM32F407G-DISC1 Summary

kandi X-RAY | STM32F407G-DISC1 Summary

STM32F407G-DISC1 is a C library typically used in Embedded System applications. STM32F407G-DISC1 has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

Learning to programme the STM32F4 microprocessor via the Embedded.fm tutorial series
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              STM32F407G-DISC1 has a low active ecosystem.
              It has 12 star(s) with 8 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              STM32F407G-DISC1 has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of STM32F407G-DISC1 is current.

            kandi-Quality Quality

              STM32F407G-DISC1 has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              STM32F407G-DISC1 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

              STM32F407G-DISC1 releases are not available. You will need to build from source code and install.
              It has 70 lines of code, 0 functions and 7 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 STM32F407G-DISC1
            Get all kandi verified functions for this library.

            STM32F407G-DISC1 Key Features

            No Key Features are available at this moment for STM32F407G-DISC1.

            STM32F407G-DISC1 Examples and Code Snippets

            No Code Snippets are available at this moment for STM32F407G-DISC1.

            Community Discussions

            QUESTION

            Cannot receive interrupt on PE0 STM32
            Asked 2019-Aug-03 at 11:52

            I'm trying to receive simple interrupts on my STM32F407G-DISC1, and I can't seem to configure the EXTI0 interrupt channel to receive from PE0, and instead it only seems to trigger on changes to PA0.

            When I short the 3.3V pin to PA0, it prints "Interrupt Received", but when I short 3.3V to PE0, nothing happens.

            Is there some configuration call I'm missing?

            The build scripts and other configuration files are based off of the cortex-m quickstart, with small modifications. If those are relevant I can post those as well.

            Here's my code:

            ...

            ANSWER

            Answered 2019-May-19 at 19:57

            Apparently, the system configuration controller clock must be enabled to change syscfg registers. Adding rcc.apb2enr.modify(|_, w| w.syscfgen().enabled()); makes it work. Full source:

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

            QUESTION

            Serial communications over stlink with stm32f4discovery, is it possible?
            Asked 2018-Aug-13 at 23:49

            I have the following: STM32F407G-DISC1. My goal is to communicate (sending strings back and forth) between my pc and the mcu over serial and I currently am able to do so using the micro-usb (otg) port, while powering separately using the mini-usb st-link port (so using two cables).

            Is it possible to use the mini-usb port for serial communications? (eliminating one of the cables)

            I have read the user manual and my interpretation is that this is not possible without physical modifications. But I am a beginner and would like to verify I am correct in this interpretation. I have researched thoroughly however most sources seem to not refer to this specific board and it is my understanding with the newer version of st-link it uses this should be achievable.

            ...

            ANSWER

            Answered 2018-Aug-13 at 23:49

            It is possible - just send the messages via the USART2

            You need to solder those two wires as they screw up the design.

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

            QUESTION

            Why am I only getting 0xFF when reading from the LIS3DSH accelerometer on the STM32F407G-Disc1 MCU?
            Asked 2018-Jun-19 at 17:43

            So I'm learning embedded development, and I recently learned the basics of SPI. As a project, I wanted to communicate with the LIS3DSH accelerometer on my STM32F407G-DISC1 board using only the CMSIS headers.

            I pasted the entire code below, but I'll explain it first because no one wants to read all that code.

            As a reference, these are the pins needed (according to the MCU's datasheet) to communicate via SPI:

            • PA5 - SPI1_SCK
            • PA7 - SPI1_MOSI
            • PA6 - SPI1_MISO
            • PE3 - CS_I2C/SPI

            Here's the steps I took in my code:

            1. Enabled the clock for GPIOA and GPIOE using the AHB1ENR register.
            2. For GPIOA, I set the three pins as alternate function, output is push-pull, speed is low, no pull-up/pull-down, and configured the alternate function as SPI.
            3. For GPIOE, set it as GPIO mode, push-pull, low speed, pull-up, and then set it high (as in wrote to the BSSR register).
            4. Enabled the clock for SPI using the APB2ENR register.
            5. Configured SPI1: first disabled it, enabled 2-line unidirectional mode, set baud rate to fPCL/16 since the APB2 peripheral clock is 84MHz and the max clock of the accelerometer is 10MHz. Then set clock phase and polarity to 1. 8-bit data frame, MSB first, enabled software slave management, and also enabled master configuration. Finally, enabled SPI1.
            6. After all this, I transmit 0x63 to the 0x20 register of the accelerometer. This sets the output rate to 100Hz and enables both the x and y axis. I have no idea if this is actually working. I'm assuming it is because the TX buffer is empty when I check the SPI status register.
            7. Then to test whether I can recieve, I attempt to get the data from the WHO_AM_I register of the accelerometer. But I only see garbage data when I debug it (0xFF).

            I've googled around to see why this may be, and a lot of people suggested that the clock polarity and phase may be incorrect. However, I've checked it multiple times, and I'm fairly certain I configured it properly.

            I've tried setting interrupts. During the interrupt, even though RXNE (RX buffer not empty) is true, it still reads only 0xFF. I'm stumped as to why this is happening.

            The code is below. The starting point is accelerometer_init(). The reading of the data from the WHO_AM_I register is in turn_on_accelerometer().

            ...

            ANSWER

            Answered 2018-Jun-19 at 17:43

            You are working with SPI incorrectly.

            This bus works in this way:

            • master (MCU) sends byte in MOSI
            • line at the same (!) time slave (LIS) sends byte in MISO line. In this moment slave dont know, what exactly byte master transfers to it.

            To transfer one byte, you should:

            • write byte in data register
            • wait for completition of transfer
            • read data register

            Thus, to read WHO_AM_I register, we obtain next sequence:

            • init SPI
            • flush data register (just read SPI->DR)
            • send command
            • wait
            • read dummy data (your 0xFF)
            • write second byte (0x00 or 0xFF, it doesn't matter)
            • wait
            • read correct answer from LIS

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install STM32F407G-DISC1

            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/gyaresu/STM32F407G-DISC1.git

          • CLI

            gh repo clone gyaresu/STM32F407G-DISC1

          • sshUrl

            git@github.com:gyaresu/STM32F407G-DISC1.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