-
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.
the libraries explicitly in the required order should I think fix the problem: -lm -lc -lgcc -lstm32-md You may find that you need grouping: --start-group -lm -lc -lgcc -lstm32-md --end-group or its shorter alternative form: -( -lm -lc -lgcc -lstm32-md -) This causes the libraries in
-
Thread
Which ARM Chip? for Autopilot Hardware
STM32F4
Devkit1270, sounds be based on STSTM32F207IGT6, it is based on ARM-Cortex M3 processor. may be help you.
-
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
work, I got "bootstart = 0x20000804" and "bootend = 0xaf00b580", superfluouses to mention, that the STM doesn't have so much memory. [code] SECTIONS { . = 0x08000000; bootstart = . ; .text : { ... ... [/code] It's amazing, that the code generated with these linker-scripts
-
Thread
Relative Jumps Only
impossible. If any questions are left, feel free to ask. Greetings, Lasse PS: Cortex-M3, STM32F103, Codesourcery GCC
-
Thread
connected DIN MIDI Out cable disturbs encoder
Hey, i am currently working on a MIDI related project utilizing a STM32F103 and a Hex Buffer (74HC365). I have the following problem: reading the encoder works fine (handled via interrupts) until i connect a midi cable to the midi out port, then the readings of the encoder
-
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; struct fxpnts{ int_fast32_t fraction : 31; int_fast32_t integer : 1; } part; } fxpnt_t; My Fixed Point representation is Q1.31. Than, I created multiplying function: /* Return: c = a * b */ fxpnt_t fxmul
-
Thread
Induction-Heating-Circuit not drawing any Current
IGBT´s fast which results in less switching losses for IGBT´s. For my induction heater, i use a STM32 for controlling and a MCP14E10 for gate driving with a GDT. The MCP14E10 can deliver up to 3 A.
-
Thread
SimpleSerialTerminal
during debugging of baud rate difficulties in a timer controlled bitbanging software serial of an STM32F103RBT ARM Cortex M3. If you wish a line feed carriage return in the monitor, your MIC has to send the #13 #10 chars. @Moby: which is the reason for better having a more condensed representation
-
Thread
Geting PC register value
Hello, I use gcc to compile my code for STM32F407VGT6. I am trying to print the value of PC register and in order to do this I use this code: unsigned int pc_value; __asm__("mov %%R15,%0" : "=r" (pc_value)); My application crashes when
-
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
USB to I2S adapter for audio transceiver
Moin, Nothing out-of-the-box, but it somehow looks for me like it might be doable with some STM32 µC e.g. by combining the Application Notes AN5027 and AN4711. Gruss WK
-
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
Faster microcontroller
microcontroller than the ATmega2560 to solve this? I'm embedding it into a 3D printed case. I thought about the STM32H7 (https://www.aliexpress.com/item/4000065515487.html). I'm not into PCB-designing, so it should be an development board, similar to the RobotDyn. I attached an image of my box. More about this
-
Thread
Image sensor. high data rate
sensor, is sending it data on 4 Output with 720Mbps. As far as I know, typical microcontroller, example STM32F334R8, aren't fast enought to receive the data. I have the possibility to save the raw data first and work in a slower speed with the data later. My question is, does anybody have an idea how to
-
Thread
arm-elf-gcc path setting in eclipse
Hey, I am linux user. I am also getting the same error while configuring STM32 with Eclipse Classic /bin/sh: arm-elf-gcc: command not found make: *** [main.o] Error 127 Could you please let me know how to source the arm-elf-gcc compiler in linux -- Harsh
-
Thread
Hardware-independent µC core?
Hi, the problem: my code wants to run on a couple disparate microcontrollers (ESP8266, "small" STM32, AVR AtMega). Besides the usual digital I/O which e.g. Arduino supports cross-platform I need stuff like port interrupts, timer interrupts, and letting the controller sleep until something happens
-
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
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
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
_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
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
openocd target program issue
objcopy OD = $(CROSS_COMPILE)objdump CFLAGS = -I./ -c -fno-common -O0 -g AFLAGS = -ahls -mapcs-32 -o crt.o LFLAGS = -Map main.map -Tdemo_at91sam7_blink_ram.cmd CPFLAGS = --output-target=binary ODFLAGS = -x --syms OBJECTS = crt.o main.o timerisr.o timersetup.o isrsupport.o lowlevelinit.o blinker.o
also watch/modify openOCD commands/responses by "telnet localhost 4444" command. For target chip STM32F103, for me works: target remote localhost:3333 monitor soft_reset_halt monitor soft_reset_halt monitor soft_reset_halt monitor reset halt load monitor soft_reset_halt break main continue
-
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
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
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
Migrating from Keil to GCC
Please convert this project to stm32 workbech project
-
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
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
-
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
-
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