-
Thread
General Questions
into your controller datasheet. E.g. the RM0008 Reference manual explains such things for the STM32. HTH, Registereqw
-
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.
-
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
-
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
-
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;
-
Thread
OpenHR20: Firmware for Honeywell Rondostat HR20E
the communication is working now! I currently implement my own stand-alone master using a STM32 with cortex-m3. I have running a lwIp with udp server and webserver. The plan is to write a android app soon, to replace the webserver interface. But that's future.. Currently I got stuck while
-
Thread
Simple Test of Chans Lib
struggling as i was. It´s a simple Test program to see if the implementation of Chan FAT Lib in a STM32 through SPI using HAL Drivers works. Hope it helps.
-
Thread
Wordclock stopped working
board_led_init... button_init... timer2_init... wpsbutton_init... Version: 2.9.5 Hardware: STM32F103 Display: WC12h LEDs: WS2812 GRB rtc is online eeprom is online ws2812: external pullup detected eeprom is online current eeprom version: 0x00000000 updating EEPROM to version 0x00020900
-
Thread
putting newlibs stub into a static library
When i do that, i get the typical undefined references. My link order is arm-none-eabi-g++ -T"../stm32-128k-20k.ld" {lots of object files} -o"output.elf" -lstm32-md No other librarys are getting linked in.
-
Thread
Audio codec, weird helicopter sound, potential data error. (WM8731)
like this before and point me in the right direction. I have a Wolfsom WM8731 connected to an STM32F405. I am able to start the codec however once I start transferring data over DMA to it there's a weird helicopter sound. I can hear what is meant to be the data very faintly underneath the helicopter
-
Thread
Atmel announces ARM Cortex-M3 based Controllers
different manufacturers have differences, take the frequency for example, nxp lpc1700 is up to 100MHz, ST STM32F103ZE is 72MHz and Atmel AT91SAM3U is 96MHz. Meanwhile, they incorporate various peripherals, although most of them are the same. Before you choose these processors for your project, you shall evaluate
-
Thread
launchpad gcc for ARM: Understanding linker scripts
Greetings to all, I want to run code from a ram-location on a STM32F407 (Cortex-M4) microcontroller, but before I can do this, I want to understand the linker-commands, and this seems to be a real challenge. At first, I want to find out where some code-fragments to
-
Thread
Matrix/vector operations on a Cortex™-M3
Hello everybody! I am using a Cortex™-M3 based MCU (STM32F103VET6) and the gcc arm compiler for some project. As there will a lot of matrix/vector operations come along the way I would like to know if anybody has experience with maybe existing libraries concerning
-
Thread
usbprog as OpenOCD-adapter
Hi, I'm going to buy a STM32-Devboard. But I'm still looking out for an JTAG-Adapter, something cheap that'll work with OpenOCD / GDB. I've got an usbprog already (used for AVR-programming). Can I use that with the firmware
-
Thread
Simulating an ARM code on x86 with qemu
I want to run a simple ARM cortex-M3 program (does nothing, just initializes pins) meant for an STM32F4 on qemu I tried the following srinath@umdLenovoG570:~/qemu-1.4.1/arm-softmmu$ ./qemu-system-arm -cpu cortex-m3 -S -s -singlestep -nographic -m 513 -kernel ~/autoquad/autoquad-read-only/onboardCode
-
Thread
Multiple targets flashing with openocd
Hello, I'm using OpenOCD to flash STM32 with the command window. I want to know how I can flash different target by using the serial port, or the id, or other things that allow multiple flashing by using cmd command. (He needs to be in a
-
Thread
Communicate TRX moduls and sensor
Receiver(another CC1101). SHT31 works with I2C and CC101 works with SPI, my Microcontroller ist STM32F446re . I have got this Error: 1) Failed to execute MI command: -var-create - * spiRX Error message from debugger back end: -var-create: unable to create variable object I hope you can help
-
Thread
Macro for Interrupt Routine
this is also wrong.. Any ideas? Thx Kenan p.s. I'm working with codesourcery and the stm32f103
-
Thread
STM32F429 DMA2D bilinear bitmap resize
Hello everyone, I wrote a simple but powerful DMA2D app to resize a bitmap using bilinear interpolation using very low CPU resource. A demo video is on https://www.youtube.com/watch?v=TgTxBIYUuVM and the source code is available on http://www.mediafire.com/download/w25kovq8umnmou0/DMA2D_bilinear_resize.rar Enjoy !!!
-
Thread
STM32F03x - SPI via DMA -missing CLK on MISO
Hello, I have got a Problem with an STM32F030 Device, using SPI via DMA. I try to set and load Data from HC595 and HC165 chips via SPI. SPI is configure in Full duplex mode and prescaled down to a frequency of 8Khz. MOSI and SLK are
-
Thread
Would appreciate your assistance in improving my PCB rapid prototyping skills
community, exchange ideas, and get assistance with circuit development and writing code for AVR and STM32. I'm also looking for another technical co-founder and some mentors for the DeepTech startup Augmented Reality Head-Up Display Fullface Mask for defense, fire, security and medical applications. I
-
Thread
DHT22 Sensor readings unrealisitc with STM32F407 uC
First of all i want to say hello I have a problem with my DHT22 temperature and humidity sensor. The start signal is fine, the sensor response signal is fine, the bits that the sensor sends me are fine my problem is how can i read out the data that the sensor sends me because my values are 2700 for humidity and between 4500 and 5800 for temperature. As you will see in the attatched file, i hope it works this is my first post, i have tried it using a for loop and after the sensor pulls the data line to 0 for the 50us low voltage that comes before every bit, i will put the datasheet down below,
-
Thread
STM32F4 PWM outputs do not have the same frequency after updated
Hello. I have a problem. I'm using Kit STM32F407VG Discovery to control frequency of FullBridge LLC Converter. I use 50kHz Interrupt TIM2 and CH1,1N,3,3N PWM TIM1. The PWM frequency band is 80-140kHz. When updating new frequency (TIM1->ARR),
-
Thread
STM32F1xx EXTI problem to trigger interrupt by SWIER
Hallo, i have the following problem to solve: an interrupt should be triggered when the frame-signal of a SPI-interface changes from 0 to 1. If, at the time of enabling this interrupt, the frame-signal is already high, the interrupt should be triggered by software instead of the rising edge. I am using int-structures representing the register-bits of EXTI and other peripherals mapped to the according places within the bit-banding-area of the micro. These are name XXXbbbits. I am also using bit-structures which are representing the structures of their according registers to manipulate two