-
Thread
clear the receive buffer
I'm using the HAL_UART_Receive_IT function on stm32f303re to recieve data. After each use I want to delete the content of the receive buffer so that the next data that will arrive will start at the first index of the array. Is there a function to delete
-
Thread
Long longs with Yagarto
Hi, I am trying to use 64 bit maths on the STM32 compiled with Yagarto but get the link errors "undefined reference to `__exidx_start'" and "undefined reference to `__exidx_end'". I am using the linker script written by Martin Thomas for the
-
Thread
Hard Fault Error
Hello There, I'm currently trying to program an P-Nucleo-WB55MB1355C with the IDE STm32Cube. Now I've ran a few examples and they all worked fine but when I try to create my own projekt and debug it. The program immediately jumps into the Hard Fault Handler, it doesn't even get to the
-
Thread
Do we still need to write "efficient" C-code targeting ARM? Or does compilers do the job?
experience practical issues with certain compilers (I prefer to switch of optimisatons on IAR for the STM-ARMS). And furthermore I found that many (partly very experienced programmers like Karl Heinz, which you may meet quite often here) who state, that a program must function as well with and without optmizations
-
Thread
Micros that ship with boot loaders and flash serially
Many STM32 devices can be programmed via CAN. All of them can be programmed via UART (as far as I know).
-
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
-
Thread
STM32L1xxx µC displaying memory contents
first of all would like to greet everyone from my side. I am working as an intern and working with STM32L152 EVAL board. I am supposed to take the digital values from the ADC converter from an analog input and save them for the first run. In the second run I have to save the second values and compare
-
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
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
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
-
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
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
Arm STM32F0 Discovery PORT C Problem
Hallo Gurus, Ich versuche mein Glueck mit dem STM32F0 Discovery board. Fuer ein project brauche ich den Port C die unteren 8 bits. Aus irgendwelchen Gruenden kann ich die bits PC1 and PC2 nicht zum gehen bekommen. Alle anderen Bits arbeiten so wie
-
Thread
General Questions
into your controller datasheet. E.g. the RM0008 Reference manual explains such things for the STM32. HTH, Registereqw
-
Thread
Port U-Boot to STM3210E-LK together
I want to port uboot to my STM3210E-LK board. and i looking for some one who wants to do it together. :) toolchain: arm-...-gcc host: Linux
-
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
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
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
Migrating from Keil to GCC
Please convert this project to stm32 workbech project
-
Thread
ARM linking problem
Hi, I am using a M3 cpu (STM32103) and a gcc toolchain selfmade. Everything work fine if I compile my code for using the internal Flash (for the code) and the internal RAM (for the data). For reason of place I have to use the external
-
Thread
STM32F107 USART Init --> Rubbish Output
Hi, While configuring my STM32F107's USART, there is a random byte outputted on the tx-pin. A modem that is connected to the serial port gets confused by this random byte and refuses to work. Here's the initialization code:
-
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
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
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 `_
-
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
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
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
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
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
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
STM32F051 I2C slave problem
Hi, I have in a STM32F051k project a problem with the I2C as Slave. I send from an AVR: Start/address Wr/command/repStart/address RD/ ... read information / Stop) The read information is command/count/data. Exact
-
Thread
STM32 and Programming via Boundary Scan
Hello, im currently writing on my B.thesis about boundary scan and its implementation. I`ve found enough informations about the principle of boundary scan and how to test with BS. However, i didnt find a lot informations about using BS to program a µC. Can anyone provide my informations about programming with BS? How efficient is it? Another question that has to be answer is if BS is useful for our products. We have quite a lot analogue devices such as analogue control stages or other complex analogue components. In some cases, we only have 1-2 digital devices (µC,..) on the PCB. Is it useful
-
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
Missing startup file crt0.o
own 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
Getting PWM counter value STM8S003K3
hello, MCU: STM8S003K3 In my application I using 16MHz of system clock and l create a PWM (in this case PWM_D) of 200Hz generated by 4MHz clock. Therefor my timer's counter value is (4M/200=) 20,000. Also, l have
-
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
STM32 UCOS/II GCC port
Hi All, We have use UCOS/II for different CPU, but now our customer are using an STM32 CPU on their new design. I would like to know if the GCC port has been done be someone else that Micrium ? The only port that I have seen on micrium is the IAR one. Regards Jonathan
-
Thread
STM32F401RE GPIO
Hi I'm asking for an assembly code for GPIO that have three LED with four switches .. each switch opens each LED.. I tried my code but only make s all the LED light up without the toggle..
-
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
STM32F429 Discovery Sega Master System emulator
Hi all, To test the new ST discovery kit I made a minimal SMS emulator running on it. The code is released as Open Source and it is avaliable on http://www.codeforge.com/article/218395 A small demo video is on http://www.youtube.com/watch?v=qtNLctyoxU8 The project is developed using Keil MDK (evaluation version) so everyone can test and enhance it.
-
Thread
Timing constraint problem while using altera ipcore
file: set_false_path -from [get_registers{F*:\FF*F*|fmFsm_cur.*}] -to [get_registers {STMSRVTOP:STM|sFM_DIR_q}] set_multicycle_path 2 -setup -from {*P:0:PRC|*VLGCLUT:LUT|reg_cur[*]} -to {*P:0:PRC|*VLGCLUT:LUT|DIVU:DIV|reg_cur[*]} -end
-
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
Audio codec, weird helicopter sound, potential data error. (WM8731)
something 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