-
Datei
main_F4.c.txt
/* * Pinout STM32F4 Discoveryboard * ------------------------------------------------------------------------- * SPI1 * -------------------- * SPI1_NSS NSS PC5 * SPI1_SCK SCK PA5 * SPI1_MISO MISO PA6 * SPI1_MOSI MOSI
in „STM32F4->SPI->STM32F0 TX/RX 1 Line“ · Mikrocontroller und Digitale Elektronik ·
-
Bild
Chatverlauf mit Programmiercode für STM32F411CEU
Einlesen und Ausgeben einer analogen Spannung mit dem STM32F411CEU in STM32CubeIDE: c #include "stm32f4xx_hal.h" ADC_HandleTypeDef hadc1; void SystemClock_Config(void); static void MX_GPIO_Init(void); static void MX_ADC1_Init(void); int main(void) { HAL_Init(); SystemClock_Config(); MX_GPIO_Init();
in „STM32F411CEU + Thermoelement - Erster Versuch eines Datenauslesens -“ · Mikrocontroller und Digitale Elektronik · · Screenshots
-
Datei
Lauflicht.ino
// Lauflicht aller LEDS // STM32F4 Discovery #define GREENLED PD12 #define ORANGELED PD13 #define GREDLED PD14 #define BLUELED PD15 #define REDLEDOTGOVERCURRENT PD5 #define NUMLEDS 5 const uint8_t Led[] = {GREENLED, ORANGELED, GREDLED
in „STM32F4 Discovery Arduino“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
UserButton.ino
// show user button with by cycling leds // STM32F4 Discovery #define USERBUTTON PA0 #define GREENLED PD12 #define ORANGELED PD13 #define GREDLED PD14 #define BLUELED PD15 #define REDLEDOTGOVERCURRENT PD5 #define NUMLEDS 4 const uint8_t Led[] = {GREENLED
in „STM32F4 Discovery Arduino“ · Mikrocontroller und Digitale Elektronik ·
-
Bild
Windows Systeminformationen und ST-Link Debugger Terminal
FPv4_SP HW breakpoints: 6 HW watchpoints: 4 Fault unwind : Active break (level 2) STmicro family : STM32F4x/43x Detected FLASH : 0x20000000 Configured RAM : 0x20000000 GDB listening (0.0.0.0 @ 2331)
in „STM32F103 Bluepill mit 128kb lässt sich nicht flashen“ · Mikrocontroller und Digitale Elektronik · · Screenshots
-
Datei
graphik.h
--- */ #include <stdint.h> /* ------------ Special Include Files --------------- */ #include "tm_stm32f4_rtc.h" /* ------------ Projekt Include Files --------------- */ /* ------------ Typen Deklarationen-------------------- */ /* ------------ Defintionen --------------------------- */ /* -----------
in „Zeigt her eure Kunstwerke (2017-2019)“ · Projekte & Code ·
-
Datei
FlashDriver.h
FLASHDRIVER_H /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx.h" /* Private function prototypes -----------------------------------------------*/ void df_read_open(uint32_t addr); void df_write_open(uint32_t addr); void df_read(uint8_t *buf,uint16_t size);
in „Font in SPI Flash schreiben“ · Mikrocontroller und Digitale Elektronik ·
-
Bild
STM32F429I-DISCO Discovery Board mit Display
ST GND COM PWR USB ST-LINK SWD MB1075B www.st.com/stm32f4-discovery USER RESET STM32F429I-DISCO JP4 TX PA11 PA12 PA13 PA14 PA15 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PB8 PB9 PB10 PB11 PB12 PB13 PB14 PB15 PG0 PG1 PG2 PG3 PG4 PG5 PG6 PG7 PG8 PG9 PG10 PG11 PG12 PG13
in „STM32CubeIDE: bekomme blinky läuft nicht“ · Mikrocontroller und Digitale Elektronik · · Platinenfotos
-
Datei
main.h
#include <stdio.h> #include <stdlib.h> #include "diag/Trace.h" #include <stm32f4xx.h> #define multiplier 4 #define period 125 #define baudrate 921600 #define MOSI_Port GPIOA #define MOSI_Pin GPIO_PIN_7 #define SCK_Port GPIOA #define SCK_Pin GPIO_PIN_5 #define LAT_Port GPIOA #define
in „STM32F4 HAL SPI über DMA“ · Mikrocontroller und Digitale Elektronik ·
-
Bild
OpenOCD Terminalausgabe Fehlermeldung
openocd -f /usr/share/openocd/scripts/interface/stlink-v2.cfg -f /usr/share/openocd/scripts/target/stm32f4x.cfg Open On-Chip Debugger v0.11.0-esp32-20221026-63-g6cd81a66 (2023-05-27-22:05) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html WARNING: interface/stlink-v2
in „Hilfe benötigt - Debugger erkennt STM32F401RE-Mikrocontroller nicht?“ · Mikrocontroller und Digitale Elektronik · · Screenshots
-
Datei
eeprom.c
/ #include <stdbool.h> #include <stdio.h> #include <stdint.h> // StdPeriph Lib + CMSIS #include <stm32f4xx.h> #include <stm32f4xx_i2c.h> #include "eeprom.h" /* ------------- DEFINES ------------------ */ #define E2P_DATA_VALID 0xaf // Kennung für gültige Daten #define E2P_DV_ADR 0xffff // Adresse der
in „GCC Optimierung killt Funktion“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
platformio.ini
= nucleo_f303re build_flags = -D STM32F3 [env:STM32F446] board = nucleo_f446re build_flags = -D STM32F4 [env:STM32G474] board = nucleo_g474re build_flags = -D STM32G4 # Framework stm32cube is not supported #[env:STM32G431] #board = nucleo_g431rb
-
Datei
rtc_user.h
--- */ #include <stdint.h> /* ------------ Special Include Files --------------- */ #include "tm_stm32f4_rtc.h" /* ------------ Projekt Include Files --------------- */ /* ------------ Typen Deklarationen-------------------- */ // Globaler Struct für Sonnenaufgang/Untergangszeiten typedef struct { uint8
in „Organisation der Header und Includes“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
beispiel.c
/* Includes ------------------------------------------------------------------*/ #include "stm32f4xx.h" #include "menu.h" #include <stdlib.h> void show_main_menu(void); #define LEDS_MENU_ENTRIES 5 #define MAIN_MENU_ENTRIES 5 #define COLOR_MENU_ENTRIES 8 menu_entries color_menu[] = { {"Color"},
-
Datei
serial_stm32.h
interface header documentation */ #ifndef INC_SERIAL_STM32_H #define INC_SERIAL_STM32_H #include "stm32f4xx_hal.h" #include <stdint.h> #include <stdbool.h> #include "fifo_buffered.h" typedef size_t serial_size_t; struct serial_ctx_struct_t; /// serial interface context for application struct serial_ctx_struct_t
in „STM32 HAL UART Mysterium oder bin ich dumm?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
TEST */ /******************************************************************************/ #include "stm32f4xx.h" /*---------------------------------------------------------------------------- System init *----------------------------------------------------------------------------*/ void SystemInit(void
in „DMA,ADC bei Stm32f4“ · Mikrocontroller und Digitale Elektronik ·
-
Bild
STM32 MCU und MPU Portfolio Übersicht
CoreMark Up to 550 MHz Cortex-M7 240 MHz Cortex-M4 STM32F2 Up to 398 CoreMark 120 MHz Cortex-M3 STM32F4 Up to 608 CoreMark 180 MHz Cortex-M4 STM32H5 Up to 1023 CoreMark 250 MHz Cortex-M33 Mainstream MCUs STM32C0 114 CoreMark 48 MHz Cortex-M0+ STM32F3 245 CoreMark 72 MHz Cortex-M4 STM32G4 569 CoreMark
in „Super-Kongresstag: STM32-H5-Vorstellung, Google IO, Raspberry Pi-Börsengang geplant“ · Softwareentwicklung · · Diagramme
-
Datei
SST25VF016B.h
SST25VF016B_H /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx.h" /* Private typedef -----------------------------------------------------------*/ typedef enum ERTYPE{Sec1,Sec8,Sec16,Chip} ErType; typedef enum IDTYPE{Manu_ID,Dev_ID,Jedec_ID} idtype; /* Private
in „Font in SPI Flash schreiben“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#include "stm32f4xx.h" TIM_TimeBaseInitTypeDef TIM_TimeBaseStructure; TIM_OCInitTypeDef TIM_OCInitStructure; uint16_t TimerPeriod = 0; void TIM_GPIO_Config(void); int main(void) { TIM_GPIO_Config(); TimerPeriod = (
in „STM32F4 einfache PWM“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
blink.c
#include "stm32f4xx.h" void TIM1_UP_TIM10_IRQHandler () { TIM10->SR = (uint16_t)~TIM_IT_Update; GPIOD->ODR ^= (1 << 14); } int main () { // Init GPIO's for LED's RCC_AHB1PeriphClockCmd(RCC_AHB1ENR_GPIODEN, ENABLE);
in „STM32F4: Timerinterrupts nichtdeterministisch“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LedVuMeter.ino
// LED VU-Meter // turns on the LEDs depending on the sound level detected from the microphon // STM32F4 Discovery #define USERBUTTON PA0 #define GREENLED PD12 #define ORANGELED PD13 #define GREDLED PD14 #define BLUELED PD15 #define REDLEDOTGOVERCURRENT PD5 #define MICROPHON_CLK_INPUT PB10 #define MICROPHON_PDMDATA_OUTPUT
in „STM32F4 Discovery Arduino“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
debug.c
=================================================================== #include "debug.h" #include "stm32f4xx.h" //============================================================================= // Main output routine //============================================================================= void SWV_puts
in „STM32: Drama mit "Hard Fault Error"“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
stm32_ub_rng.c
Version : 1.0 // Autor : UB // EMail : mc-4u(@)t-online.de // Web : www.mikrocontroller-4u.de // CPU : STM32F4 // IDE : CooCox CoIDE 1.7.0 // Module : RNG // Funktion : Zufallszahlen Generator //-------------------------------------------------------------- //-----------------------------------------------
in „Random Number Generator läuft nicht richtig,stm32f429“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
0001-Add_Frre_Text_Support_To_STM32.patch
+ +#include "eeprom-data.h" + +#if defined (STM32F10X) +# include "stm32f10x.h" +#elif defined (STM32F4XX) +# include "stm32f4xx.h" +#endif + +typedef struct +{ + char free_text[EEPROM_DATA_SIZE_FREE_TEXT+1]; +} FREETEXT_GLOBALS; + +extern FREETEXT_GLOBALS gfreetext; + +extern uint_fast8_t freetext_read_config_from_eeprom
-
Datei
Adc.c
#include "Adc.h" #include "stm32f4xx_adc.h" void Adc_Init(void) { ADC_InitTypeDef ADC_InitStructure; ADC_CommonInitTypeDef ADC_CommonInitStructure; GPIO_InitTypeDef GPIO_InitStructure; RCC_APB2PeriphClockCmd(RCC_APB2Periph_ADC1, ENABLE
in „STM32F4 Internal Reference“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.txt
8 nc nc 9 nc nc 10 nc nc 11 D4 PD0 12 D5 PD1 13 D6 PD2 14 D7 PD3 15 nc nc 16 nc nc */ #include "stm32f4xx.h" uint32_t i; void WriteNibble(char data){ GPIOD->BSRRL |= data; GPIOD->BSRRH |= ~data; GPIOD->BSRRL |= (1<<6); //E=1; for (i=0;i<10000;i++){} //delay GPIOD->BSRRH |= (1<<6); //E=0; for (i=0;i<
in „STM32: Ich finde einfach keinen Fehler in meinem Code“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
tim.h
endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ extern TIM_HandleTypeDef htim5; extern TIM_HandleTypeDef htim9; /* USER CODE BEGIN Private defines */ /* USER CODE END Private
in „STM32F4 HAL TIMER Interrupt läuft nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#include "stm32f4xx.h" __attribute__((always_inline)) inline void bitCopy( uint32_t *dest, const uint8_t dstBit, const uint32_t src, const uint8_t srcBit ) { register uint32_t temp; __asm__ __volatile__ ( "UBFX %[tmp
in „STM32F4 Compiler bremst den Code“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
USART.h
UART_NAME_t uart, char *ptr); //-------------------------------------------------------------- #endif // __STM32F4_UB_UART_H
in „STM32F0 Discovery und UART1“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
compiler_options.txt
Add symbol="ARM_MATH_CM4" /> <Add symbol="__FPU_USED" /> <Add symbol="STM32F446ZE" /> <Add symbol="STM32F4XX" /> <Add symbol="USE_STDPERIPH_DRIVER" /> <Add directory=".\inc" /> <Add directory=".\src" /> <Add directory=".\cmsis" /> <Add directory=".\SPL\inc" /> <Add directory=".\SPL\src" /> </Compiler>
in „Böse Falle Boolean“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
t.m
ml_fft_8k.wav'); [st,fs2,nbits2]=wavread('c:\interim\st_fir_8k.wav'); load c:\interim\fir_design_stm32f4\pdmsignal.mat; plot(1:length(st),20*log10(abs(fft(st))),'r.-',1:length(ml),20*log10(abs(fft(ml))),'b.-'); signal=signal-mean(signal); %xx=signal(1:127*fix(length(signal)/127)); %xx=reshape(xx,127,
in „FIR Filter Optimierung eines PDM Signals auf STM32F407 simuliert mit Matlab“ · Digitale Signalverarbeitung / DSP / Machine Learning ·
-
Datei
DebugBuffer.c
DebugBuffer.c * * Created on: 30.09.2015 * Author: uidr4931 */ #include <string.h> #include "Hardware/stm32f4xx.h" #include "DebugBuffer.h" #define DEBUGBUFFER_VALID_PATTERN 0x55AA55AAul #define DEBUGBUFFER_RESET_HEADER \ "================================================================================\r\
-
Datei
stm32_ub_i2c1.c
Version : 1.2 // Autor : UB // EMail : mc-4u(@)t-online.de // Web : www.mikrocontroller-4u.de // CPU : STM32F4 // IDE : CooCox CoIDE 1.7.4 // GCC : 4.7 2012q4 // Module : GPIO, I2C // Funktion : I2C-LoLevel-Funktionen (I2C-1) // // Hinweis : mögliche Pinbelegungen // I2C1 : SCL :[PB6, PB8] // SDA :[PB7, PB9
in „STM32F105 bei I2C Read ein Byte zu viel“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
graphik.c
stdlib.h> #include <math.h> /* ------------ Special Include Files --------------- */ #include "tm_stm32f4_ili9341.h" #include "tm_stm32f4_rtc.h" /* ------------ Projekt Include Files --------------- */ #include "config.h" #include "graphik.h" #include "rtc_user.h" /* ------------ Typen Deklarationen--
in „Zeigt her eure Kunstwerke (2017-2019)“ · Projekte & Code ·
-
Datei
excerpt_main.c
------------------------------------------------------------------*/ #include "main.h" #include "stm32f4xx_hal.h" /* USER CODE BEGIN Includes */ #include <string.h> #include <stdbool.h> #include "leds.h" /* USER CODE END Includes */ /* Private variables -----------------------------------------------
in „STM32F4 DISCOVERY BOARD USART HAL buffer Ausgabeproblem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
eeprom.h
EEPROM_H_INCLUDED #define EEPROM_H_INCLUDED /* ------------ Standard Include Files --------------- */ #include "stm32f4xx.h" #include <stdint.h> #include <stdio.h> /* ------------ Special Include Files --------------- */ /* ------------ Projekt Include Files --------------- */ /* ------------ Typen Deklarationen---
in „Organisation der Header und Includes“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Neues_Textdokument.txt
#include "stm32f4xx_conf.h" static uint32_t messwert=0; static float frequenz=0; void init(void) { GPIO_InitTypeDef GPIO_InitStructure; TIM_ICInitTypeDef TIM_ICInitStructure; NVIC_InitTypeDef NVIC_InitStructure; TIM_TimeBaseInitTypeDef
in „STM32 Frequenz Messung (>10MHz)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#include "stm32f4xx_conf.h" #define MAX_BUFFER_LENGTH 12 //Maximale Receive-Buffer-Länge volatile char received_string[MAX_BUFFER_LENGTH - 1]; //Receive-String-Buffer void Delay(__IO uint32_t nCount) { while(nCount
in „ARM Einstieg - Wie weitermachen?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#include "stm32f4xx_conf.h" #define MAX_BUFFER_LENGTH 12 //Maximale Receive-Buffer-Länge volatile char received_string[MAX_BUFFER_LENGTH - 1]; //Receive-String-Buffer void Delay(__IO uint32_t nCount) { while(nCount
in „ARM Einstieg - Wie weitermachen?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
analogReadSerial.ino
// read analog pin and print it via software serial // STM32F4 Discovery #define ANALOGPIN PA1 #define SOFTSERIAL_BAUDRATE 115200 #define SOFTSERIALPIN_TX PC1 #define USERBUTTON PA0 #define GREENLED PD12 #define ORANGELED PD13 #define GREDLED PD14 #define BLUELED
in „STM32F4 Discovery Arduino“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
stm32_ub_irsnd.c
Version : 1.0 // Autor : UB // EMail : mc-4u(@)t-online.de // Web : www.mikrocontroller-4u.de // CPU : STM32F4 // IDE : CooCox CoIDE 1.7.0 // Module : IRSND, TIM, MISC // Funktion : Infrarot-Fernbedienungs Sender (per IRSND) // Hinweis : Benutzt Timer2+Timer10 // IR-Sende Dioede wird benötigt // // Im File
in „IRSND auf STM32F0“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd_routines.h
#ifndef LCD_ROUTINES_H #define LCD_ROUTINES_H #include "stm32f4xx_gpio.h" #include "time.h" #ifndef F_CPU #define F_CPU 3686400 #endif #define LCD_PORT GPIOD #define LCD_DDR DDRD #define LCD_DB GPIO_Pin_0 #define LCD_RS GPIO_Pin_4 #define LCD_EN GPIO_Pin_5 #define
in „Anag Vision gibt keine Zeichen aus“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#include "stm32f4xx_conf.h" GPIO_InitTypeDef GPIO_InitStructure; TIM_TimeBaseInitTypeDef TIM_TimeBaseStructure; void TIM3_IRQHandler(void) { if (TIM_GetITStatus(TIM3, TIM_IT_Update) != RESET) { TIM_ClearITPendingBit
in „Frage/Problem mit Timer STM32F4Discovery“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
SimpleSoftSerial.ino
// print with manual made software serial the // by the user button selected blinking led // STM32F4 Discovery #define SOFTSERIAL_BAUDRATE 115200 #define SOFTSERIALPIN_TX PC1 #define USERBUTTON PA0 #define GREENLED PD12 #define ORANGELED PD13 #define GREDLED PD14 #define BLUELED PD15 #define REDLEDOTGOVERCURRENT
in „STM32F4 Discovery Arduino“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#include "stm32f4xx.h" #include <stdio.h> #include "string.h" #include "stdlib.h" #include "hardware.h" #include "AvrXSerialIo.h" #include "stm32_ub_usb_cdc.h" #include "math.h" //----------------------------------
in „Controller mit FPU“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
spi1.h
endif /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx.h" #ifndef NULL #define NULL 0 #endif /* SPI1 Interface pins */ #define SPI1_CLK RCC_APB2Periph_SPI1 #define SPI1_CLK_INIT RCC_APB2PeriphClockCmd #define SPI1_SCK_PIN GPIO_Pin_5 #define SPI1_SCK_GPIO_PORT
in „STM32 SPI Init“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LCD.h
------------------------------------------------------------------*/ #include <math.h> #include "stm32f4xx.h" #include "config.h" #include "AsciiLib.h" /* Private define ------------------------------------------------------------*/ #define USE_16BIT_PMP /*********************************************
in „STM32F4 mit TFT Codeverständnis“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LCD.h
------------------------------------------------------------------*/ #include <math.h> #include "stm32f4xx.h" #include "config.h" #include "AsciiLib.h" /* Private define ------------------------------------------------------------*/ #define USE_16BIT_PMP /*********************************************
in „STM32F4 Discovery + TFT + FSMC“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
config.h
#ifndef _CONFIG_H #define _CONFIG_H #include <stdio.h> #include "stm32f4xx.h" /** * @brief Definition for COM port1, connected to USART1 */ #define Open207V_USART USART3 #define Open207V_USART_CLK RCC_APB1Periph_USART3 #define Open207V_USART_TX_PIN GPIO_Pin_10 #define
in „STM32F4 Discovery + TFT + FSMC“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
touch.h
########## //# TOUCHPANEL mit ADC # //################################################ #include <stm32f4xx_adc.h> #define TOU_RIG GPIO_Pin_0 #define TOU_LEF GPIO_Pin_1 #define TOU_BOT GPIO_Pin_2 #define TOU_TOP GPIO_Pin_3 //-----------------------------------------------------------------------------
in „Touch - wie kalibrieren in C?“ · Mikrocontroller und Digitale Elektronik ·