-
Thread
exception handling code in binary from pure C code
Hi, I tried out yagarto to generate code for a cortex-M3 (STM32). I got it working, but I was surprised a whole bunch of exception handling code ends up in my binary (the source code is pure C) This happens both with my (complex) program, and the STM3210ETest small example project (yagarto howto page, STM32), if I add this small function: [c] unsigned long long xyz(unsigned long a, unsigned long long b ) { return a/b; } [/c] If i check the library, there are some .ARM.extab/.ARM.exidx sections
-
Thread
Using C++ Exceptions on Winarm 20080331 STM32 Target
HI All, I have recently installed WinARM 20080331 and created a test build for the STM32F103ZE target device. I am able to compile, link, and execute all 'C' code and some 'C++' code correctly. The problem appears when I attempt to use the C++ exception handling mechanism. I have
thinks terminate is called recursively? Here is the code for the library functions: #include <stm32f10x_lib.h> #include <sys/stat.h> //--------------------------------------------------------------------------// char * _sbrk_r (void * reent , unsigned incr) { static char heap_mem [
-
Thread
i want to map in0 to out0
#include "stm32f0xx.h" #include "stm32f0308_Discovery.h" #define in0 GPIO_Pin_0 #define in1 GPIO_Pin_1 #define in2 GPIO_Pin_2 #define in3 GPIO_Pin_3 #define in4 GPIO_Pin_4 #define in5 GPIO_Pin_5 #define
-
Thread
Filesystem for NOR flash
implementation: https://github.com/ivanovp/pifs There is an emulator for PC and few demos for STM32 MCUs: Nucleo-F413ZH, Maple Mini, STM32F4_VE (cheap Chinese dev.board). It supports directories, dynamic/static wear leveling. Best regards, Peter
-
Thread
STM32F303 Discovery: SPI basics
Hi, I try my first programming on an STM32 Discovery Board (STM32F303). I was using avrs before for years :-) First step should be to get the SPI to work. My IDE is Eclipse with gnu arm eclipse-plugin. All I want to see for now is the
-
Thread
STM32F130 and Timer 8
STM32F130 contains two adwanced timers - 1 and 8. But Keil's STM32_Init.c and its Configuration Wizard knows Timer 1 only. After "manual" programming it works but I cannot find its interrupts. How can I
-
Thread
undefined reference to `memcpy'
For what it's worth, I had the same issue the other day. I was working on an ARM project with the STM32 Cortex-M3 MCU. The quick fix I tried was to use gcc.exe instead of ld.exe for linking. It removed the problem with undefined references, but after debugging the project I discovered that the toolchain
problem which I have myself spent some hours battling. At the same time, present a solution to a STM32-specific problem with invalid BLX instruction being generated. // MS
-
Thread
STM32F407 SPI reads wrong data
Hey, I'm encountering a strange problem with the hardware SPI of the STM32F407 [2] (discovery board). I'm trying to communicate with an UM7 IMU [1] over its SPI interface. When I try to read its firmware revision, I receive ASCII 'T71E' instead of the expected 'U71D'.
Regards, Mirko [1] Datasheet UM7: https://www.chrobotics.com/docs/UM7_Datasheet.pdf [2] Datasheet STM32F407: http://www2.st.com/content/ccc/resource/technical/document/reference_manual/3d/6d/5a/66/b4/99/40/d4/DM00031020.pdf/files/DM00031020.pdf/jcr:content/translations/en.DM00031020.pdf Code, in case
-
Thread
Problem with reset vector (Yagarto + STM32F107)
to understand how to use the yagarto tools (yagarto + eclipse + openocd + TinyUSB) with a Olimex's STM32F107 board. So far, using Olimex and yagarto examples, I have been able to compile the code. But the reset vector doesn't point to the correct part of the code. I have defined the vectors :
Hello, take a look at the STM32 examples here: http://www.yagarto.de/examples/index.html Perhaps this will help you. Regards, mifi
-
Thread
Problems with Helix MP3 Decoder
for "xmp3_UnpackFrameHeader" [referenced from C:\IAR Systems\Embedded Workbench 5.4\arm\examples\ST\STM32F10x\ IAR-STM32F103ZE-SK\ARMP3\Flash Debug\Obj\mp3dec.o] Can someone give me help and tell me where can be the problem? Thank's everybody. Excuse me for my english, it's very bad.
-
Thread
Current value Measured differs form the data sheet value in Low Power Sleep Mode for STM32L433Rc-p
LPSleep mode) differ from the current value written in the datasheet? Hallo Everyone, I am using STM32L433RC -p microcontroller for current measurement. The current in the microcontroller was measured using STM32L496VGT6 module. I was doing current measurement for Low Power Mode(Low Power Sleep Mode
-
Thread
trouble with printf on Cortex-M3 (STM32)
Hi, I am trying to use yagarto (arm-elf-gcc 4.3.3) for STM32. Everything works ok if I don't use printf. But I need to use printf, so #included <stdio.h>. It produced error: [pre] In file included from main.c:31: C:\SCARM\GNUARM\arm-elf\include/stdio.h
without errors, but linker produced many errors of this type: [pre] ../arm-elf/bin/ld.exe: ERROR: stm32f10x_gpio.o uses FPA instructions, whereas Hello.elf does not [/pre] Does it mean that the newlib that came with yagarto is compiled using FPA? Does it mean it can not be used for Cortex-M3? Is
-
Thread
STM32F1xx: Injected simultanous ADC doesn't work
callback, it works. here are two screenshots of the relevant registers at runtime. http://www.stm32duino.com/download/file.php?id=3190&sid=68aec5aeb5f8c2092a3f0dfd85a63b81 http://www.stm32duino.com/download/file.php?id=3190&sid=68aec5aeb5f8c2092a3f0dfd85a63b81 Any idea what's going wrong?
-
Thread
Weact Blue Pill + GD32F303
the flash as spi, not as quad spi. - The GD32F303 devices have some small differences wrt to the STM32, that mean you cannot just compile micropython for STM32F4 and hope it will work on GD32F303. Gigadevice provides CMSIS and HAL, but what is missing is software that is known to run on this processor
-
Thread
Get Binary-Data from Wav-File Locked
they acquired this business-section from Sharp). Check Microchip's AppNotes, ST Microelectronics STM32, STR7, STR9 AppNotes...
-
Thread
STM32F0 and 1Mbit EEprom
Dear Madams and Sirs, im trying to programming / and reading an 1Mbit EEprom with STM32F030x. There are some issues i am working on and make me some headache. Im using the STM32f0xx_i2c files for working and a Keil Compiler (V5.17). My first problem is: Im using one of our
-
Thread
GNU Toolchain: Program working in simulation, but not on target
target, the entry address (PC after reset) and the stackpointer are completely wrong. I am using a STM32F107VC (Cortex-M3). Here is the output of readelf: [code] $ arm-none-eabi-readelf.exe -S project.elf There are 18 section headers, starting at offset 0x3884c: Section Headers: [Nr] Name
Try do transfer the code with the STM32 bootloader, for example with the flash loader demonstrator available from st.com. If it works there is a problem with the programming-settings in the IDE (model, flash-programming-algorithm, memory-regions
-
Thread
malloc, strncpy on STM32F4 not working
Hi, I am trying to get strncpy working. At the moment I know that it has something to do with the newlib. I am using coocox with https://launchpad.net/gcc-arm-embedded/ How do I include the newlib into my toolchain? Or am I wrong with newlib an the problem lies somewhere else? I included the syscalls from the repository: "The component implement the minimal functionality required to allow libc to link." I also included libc in the "linked libraries section". But it seems as if behind strncpy is only a declaration: "char *_EXFUN(strncpy,(char *, const char *, size_t));" I do not have
-
Thread
Yagarto and floating point
hint: check if, during the link process, the correct libraries are used. For example: I use the STM32 which got a cortex-m3 core and accedentially linked the libs for a other arm core. resulting in perfekt working code, up to the point on which I tried to use floatingpoint. that is, because the STM32 got no fpu and than the wrong lib was linked and used unsupported commands to emulate the fpu. You should check the main.map file, it includes the linked libs. then check if they are supported/compiled
-
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
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
Relative Jumps Only
impossible. If any questions are left, feel free to ask. Greetings, Lasse PS: Cortex-M3, STM32F103, Codesourcery GCC
-
Thread
"undefined reference to memcpy" error - please help!
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 memcpy" error as you can see in the attached picture ---------------------- makefile
-
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
ST sensor LIS3LV02DL
same type of modification has to be applied in the read function. I'm using this method with a STM32 and it works fine (I have a SPI clock around 200KHz). Regards, Arnaud.
-
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
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
STM32F4 Discovery Board: Functions calling in Atollic TrueStudio
some explanations about few things. I hope somebody could give me some. So! I'm working with the STM32F4 Discovery Board and using the IDE Atollic TrueStudio. I wrote a code for calculating the distance with the distance sensor HC-SR04. My code is working fine when I'm writting it in successively
-
Thread
Microcontroller for game controller
I have seen "simple" controllers with Chinese 8051 e.g. STC and complex ones usually ARM e.g. STM32: https://de.ifixit.com/Teardown/PlayStation+Move+Controller+Teardown/3596
-
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
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
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
what is difference between arm-elf and arm-eabi?
Codesourcery package has been the only one which offered Cortex-M3 support and AFAIK Ride supports STM32 too. Just speculation, I have never used the Ride tools. I don't know "Sarm" so I can not comment on it at all. > All others would fail in different > ways. You did not write the error-messages
Codesourcery package has been the only one which > offered Cortex-M3 support and AFAIK Ride supports STM32 too. Just > speculation, I have never used the Ride tools. I don't know "Sarm" so I > can not comment on it at all. > I can tell you ride use the codesoucery toolchain as delivered. sarm is
-
Thread
startup_lpc17xx.s GNU
you: http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/arm_memcards/index.html#chanfat_stm32 It's for another controller also with Cortex-M3 core and it should be rather easy to port the linker-script and startup-code to LPC17xx. Decide yourself if it's "simple" enough Maybe someone else
-
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
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
Image sensor. high data rate
, 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 handle
-
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
-
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