-
Thread
STM32 Timer multiple compare values with DMA
Hello to all STM32 experts out there, is it possible to have multiple compare values for a running timer together with DMA? To be more precise: I am having an array of ten compare values (which do not follow any
-
Thread
how can I get rid of impure_ptr ? Locked
hello dear forum , I am trying to compile a C program for STM32F407 microcontroller with OlimexODS ( Eclipse + yagarto compiler ) I get the error; undefined reference to `_impure_ptr' there is no function "impure_ptr" in my whole project the error pointer
-
Thread
General Questions
into your controller datasheet. E.g. the RM0008 Reference manual explains such things for the STM32. HTH, Registereqw
-
Article
MP3
-Decoder (nur Binary), Filtern, Converter, Equalizer etc, incl. Dokumentation zur Verwendung auf STM32F4 und STM32F7. Für den Download ist eine Registrierung bei ST erforderlich: X-Cube-AUDIO OGG Vorbis-Decoder in Software. Für OGG Vorbis existiert mit Tremor ein u.a. für ARM optimierter Decoder, der
-
Thread
Still missing crt0.o
I had the same problem wit trying to compile for STM32F4xx (Cortex M4). I ditched Yagarto and switched to using GNU Tools ARM Embedded - toolchain (4.8_2014q2): https://launchpad.net/gcc-arm-embedded Seems to work for me.
-
Article
ARM GCC
mitbringen (CodeBench lite und Yagarto werden ohne ausgeliefert, GCC-ARM-Embedded mit). Am Beispiel der STM32F4 mehr dazu in diesem Thread: Floating Pointing Unit STM32F4 Links. Hier finden sich noch ein paar Tipps, für den 1. kann aber mittlerweile der GCC-ARM-Embedded direkt verwendet werden, da er jetzt
-
Thread
[HOW TO] Interface an SD XC 64GB Card Class 10 Locked
FAT32 filesystem you could look into FatFS by Elm Chan, which is available to AVR controllers and the STM32 series of MC. Its probably easy to port to other architectures: http://elm-chan.org/fsw/ff/00index_e.html
-
Thread
_sbrk exists, linker can't find it
Hello, I'm trying to compile a program for a stm32f4-discovery board using code sourcery g++ lite and I'm having a peculiar problem. My program uses the "new operator" and I had to implement the _sbrk function. Here is the linker command: arm-none-eabi-g
-
Article
Datei:Stm32F103xc.png
STM32F103xC-E
-
Article
Datei:Stm32F407 disco.png
STM32F4 Discovery
-
Article
Datei:STM32F103-Bootloader.png
Anschluss ESP8266 an BOOT0
-
Article
Datei:STM32BreakoutBoardBottom.png
Rückseite des STM32 Breakout Board v1.1
-
Article
Datei:STM32BreakoutBoardTop.png
Vorderseite des STM32 Breakout Board v1.1
-
Thread
Troubles hunting down a Hard Fault Exception
Hi, I am having trouble finding the reason for a hard fault exception on my cortex-M3 (STM32F107). I have implemented the exception handler according to the book "The definiteve guide to the ARM Cortex-M3". The assembler part: [code] __asm void HardFault_Handler(void) { IMPORT hard_fault_handler_c
-
Thread
EWARM output file format by IAR
format *.out, which is flashed by the EWARM-application via the J-Link on the ARM-devices (e.g. the STM32F10x). Could anybody help me? Arne
-
Thread
GCC compiles fuctions without return instruction
Hello. I´m using an ARM from OLIMEX, the STM32-P103 with a Cortex-M3. I use eclipse to write my code in C, arm-none-eabi-gcc to compile, arm-none-eabi-gdb to debug and OpenOCD to interface the microcontroller trough an ARM-USB-OCD(based on FT2232L
-
Article
STM32 BLDC Control with HALL Sensor
The code is not a complete project, it's to show you how to use the motor timer to control an BLDC Motor in combination with an HALL Sensor on another timer. Intro. The system needs two timers. One to control PWM for the bridge FETs and another timer to identify the HallSensor singnals. The HallSensor timer triggers the motor timer commutation event. The connection betwenn these two timers is done in the background with events. There is no direct need for interrupt handling to commutate the motor timer. BLDC Bridge FETs: TIM1 HallSensor: TIM4 Recommendation: For your first projects and to learn
-
Thread
AD4001 ADC measurement configuration
Analog Devices. In the later course I want to connect the ADC directly with a microcontroller from ST (STM32F767ZI) via SPI. But for test purposes and to see if the hardware setup is correctly, but for now I am using the SDP-H1 Evaluation Board, which is recommended from Analog Devices for the ADC. My
-
Thread
Problem with stdint.h inclusion
my Mac with this tutorial: http://salvatoremenendez.blogspot.com/2011/08/mac-os-eclipse-openocd-stm32-arm-cortex.html which seems quite nice. Everything went fine, I installed Eclipse 3.7.0, OpenOCD 0.4 and yagarto 4.6 but one thing doesn't work. As the tutorial tells on page 3, i use a project
-
Thread
_sbrk error , how to solve for STM32F4 ?
I am trying to compile a C program for STM32F4 microcontroller with yagarto I have run into following error [c]c:/olimexods/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/lib\libg.a(lib_a-sbrkr.o): In function `_sbrk_r
-
Thread
Debugging cortex-m3 in GDB with J-Link causes SIGTRAPs
I had this same problem when moving from the integrated st-link debugger (on my STM32 G-Eval board) to using the J-Link cable Stuck at "SVC 0" I had the debugger configuration check boxes for "halt" and "reset and delay" checked and also had "monitor reset halt" in the initialzation
-
Thread
Debugging with "Black Magic Probe"
Hello everybody, My situation : - Platform : Linux Ubuntu 20.04.2 LTS - Target hardware : STM32F303xD microcontroller based - Black Magic Probe (firmware 1.7.1, hardware version 3) What did I do : - Compiled a minimal program with GCC/GNU - Start gdb (arm-none-eabi-gdb) - In gdb I entered
-
Thread
HELP..lost datasheet!
I have bougt a stm32 card..yes, China! (the display has on board jtag develop interface), but I have lost data CD..so now I don't know anything about..drivers, schematics etc...there is someone may help me? Many thanks
-
Thread
unknown cpu 'cortex-m0'
Dear all, I have some serious issues with the GCC compiler when using a cortex-M0 (STM32F051) When compiling my code with GCC version 4.6.3, which should support cortex-M0 microcontrollers, I get next messages: Error: unknown cpu `cortex-m0' Error: unrecognized option -mcpu=cortex-m0
-
Thread
Strange GDB behaviour with Cortex-M3
Now I encounter the same problem with STM32F107. I cope with this problem by removing breakpoint after reach these particular breakpoint, but this is not solution.
-
Thread
Error on While loop
Hi there :-) Im building on a project with the STM32. So using the GCC V 4.3.0 (WinARM_20080331_testing) I got into the following problem: the usual while( a <50){ ++a; } works just fine! Then one time I used : { ++a; }while( a<50 ); of course
-
Thread
ARM Integrator/CP and general portability
actual, instead of a virtual, prototype with a lean, cheap and also modern eval board such as the STM32F4 Discovery Board (Cortex-M4F, ARMv7M, ~15€) while encapsulating the hardware accesses into an exchangeable hardware access layer? This allows you to use the modern ARMv7M architecture, gets rid of
-
Thread
STM32 & ADC AD7699: fading SPI MISO level
Hey guys, I'm facing a problem working with an STM32F103RET6 and an ADC AD7699 (datasheet: http://www.analog.com/static/imported-files/data_sheets/AD7699.pdf). I thought maybe some of you might have similar experiences and could give me a hint. As
-
Thread
Device drivers and ARM learning
embedded in micros from various manufacturers, like Atmel (AT91SAM, AT92RM), NXP (LPC2xxx), STM (STR9, STM32) and others. On the smaller, ARM7-based variants a full OS can not be run due to memory restrictions mostly. But they are cheap and easily available if you can live with using a RTOS, which allows
-
Thread
STM32F407 TIM5 external Clock/ ChibiOS
Hello, i want to configure the Timer 5 with an external Clock (Button). This is my code, but it doesn't work correct: GPIOA->MODER |= GPIO_MODER_MODER0_1; // Enable AF mode for A0 GPIOA->AFRL = (GPIOA->AFRL & 0xFFFFFFF0) | 0b0010; // Select AF2 for A0 TIM3/4/5) RCC->APB1ENR |= RCC_APB1ENR_TIM5EN; // Enable TIM5 clock TIM5->CCMR1 |= TIM_CCMR1_CC1S_0; // Input mode, map TI1 to IC1 TIM5->CCER &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP); // CC1P and CC1NP = 0 for rising edge //TIM5->SMCR |= TIM_SMCR_SMS; // External clock mode 1 TIM5->SMCR |= TIM_SMCR_ECE;
-
Thread
Yagarto GCC and Cortex M3
Wno-cast-qual -Wno-missing-prototypes -Wno-strict-prototypes -Wno-missing-declarations L_FLAGS = -T stm32f10x_md.ld \ -nostartfiles -Wl,--gc-sections \ -lc -lm -lgcc \ -mfpu=vfp -msoft-float [/code] As you can see, I tried -mfpu=vfp -msoft-float, but it did not work
-
Thread
Advantages of Hard/Soft FPU Compiler Settings
about the "overhead", maybe somebody else can. As far as I can see (I just made a few tests with STM32F4 Cortex M4 and GNU tools) the main advantage of the soft-abi is the possiblity to "mix" libraries which are only available as object code (archives/"a-files"). As long as the library has been compiled
-
Thread
Linking libspeeex in coocox
I am compiling speex library for arm-cortex-m4. My development board is stm32f407. Toolchain used to compile speex library is gcc-arm-none-eabi-5_2-2015q4.Same toolchain is used to compile my project. I am compiling my project in coocox ide. Project compilation is successful
-
Thread
Program STM32 Board with a GUI in Matlab Simulink
Support Package for STMicroelectronics Nucleo Boards), which allows only the Arduino connectors of the STM32 F401RE board to be used. This means that there is little adjustment for the board with this tool chain. For this reason, I look for another possibility. This should be possible with the toolchain
-
Thread
Cortex-M3 Fault Handlers
is helpful for you I guess: https://my.st.com/public/STe2ecommunities/mcu/Lists/ARM%20CortexM3%20STM32/Hard%20Fault%20and%20stack%20pushing The guy who give the hint there has written a very good book, may be you know it already: The definitive guide to the ARM Cortex-M3 I can suggest this book
-
Thread
Missing startup file crt0.o
crt0 or startup file for your project/hardware. In case of my examples you will find a startup_stm32f4xx.s in the M4 example. Best regards, Michael
-
Thread
gcc embedded cortex soft / hard float
Thanks in advance. I'm using GCC to compile my Code for STM32F7 ARM Cortex. Unfortunately my result always includes floating point emulation Routines 00200664 00000254 T __aeabi_dmul 00200664 00000254 T __muldf3 00200300 00000276 T __adddf3 00200300
-
Thread
newlib behaviour no printf!
malloc_lock(reent_t *reent)". Any suggestion to fix this printf problem? Here is more information: - cpu STM32 - stack lenght 8k - Flags I used for building the newlib: ./configure --target=${TARGET} --prefix=${prefix} --enable-multilib \ --enable-target-optspace --disable-nls --enable-interwork \
-
Thread
Control ARM prologue/epilogue assembly code emission
an other mikrocontroller? Maybe that one is defect... This should definitely work (it does on my STM32F4 which is a Cortex-M4, too - i.e. has exactly the same core). I don't think GCC can be stopped from generating the "PUSH" instruction because it should work.
-
Thread
Migrating from Keil to GCC
Please convert this project to stm32 workbech project
-
Thread
ARM fixed point vs. floating point
Hi, I'm creating application on ARM STM32F103VE. I have to multiply several matrix in very short time. I'm thinking about using Fixed Point, to speed up my calculations. So that I wrote union: typedef union fxpntu{ int full;