-
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 internal libarys to write and read to the eeprom. It is programmed as discriebed in the the STM Reference Manual and worked fine with EEprom values lower 1Mbit. I added a second adress byte to the adressing and put the value of sending bits in the I2C_TransferHandling to 2. But when im
-
Thread
STM32 Virtual COM Port driver
based on Windows XP. The driver (inf-file) described at: http://www.mikrocontroller.net/articles/STM32_USB-FS-Device_Lib and available at: http://www.mikrocontroller.net/articles/Datei:Stmcdc.inf works fine when the host is based on Windows 2000, but we can not find this inf-file on the ST web-pages
-
Thread
Device drivers and ARM learning
cores are 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,
-
Thread
Atomic write - STM32
Hi, I'm currently working with a STM32F4 and try to implement atomic access to variables (e.g. mutexes). Currently, I disable all interrupts before accessing a mutex, and enable them afterwards. Now there exist the LDREX and STREX commands on the STM32, which seem to be perfect for my application. But how do I use them correctly? In the manual it says that an STREX *must* have the same address as the previous LDREX. So I still need to disable interrupts
-
Thread
Creating blank new C-Project with Yagarto chain for ARM7
tested tool after tool (open source and commercial) to find something to start work with cortexM3 (STM32F10x) immediately. No chance. The reasons: no install package, no documentation, missing scripts for my device, no debug, no linker, no thumb2-compiler, specific debug-tools, expensiv, only 30 days
, and, and. Then I found lots of simple example projects of different users here: http://www.stm32circle.com/projects/index.php I installed Ride7 and within one day my own test board was blinking. Next day I tested debug on the primer2 - OK. Ride supports most ARM7 and cortexM3 from NXP
-
Thread
STM32F0 WITH STPM34
Hi everyone, I am working a project (stm32f0 with stpm34 ic measurement power). Could you help me interface stm32f0 with it. Thanks!
-
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
a 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
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
How to stop breaking at reset
I am developing a number of projects for STM32 processors using Eclipse, gcc, gdb and an Olimex ARM-USB-OCD jTag dongle. All works well, but every time I relaunch the project in debug mode the code stops at address 0x08000000. The debug window
this always happens. Furthermore I suspect it is using up one of the 6 breakpoints provided by the STM32, which restricts debugging. I launch gdb with the following commands: target remote localhost:3333 monitor reset init load monitor reset init break main The first breakpoint it should
-
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
STM32H7 real-time data tracing via SWD not working
oscilloscope (No edges detected) -Reading STLINK Jumpers with oscilloscope (Edges detected) -Other IDEs SW4STM32 (No success) -Serial wire viewer of STLINK (nothing shown) -Tried debugger and builder / optimization settings. (Still no success) See screenshots for detailed description and the configurations
real-time* trace data. But anyway, look there: https://community.st.com/s/question/0D50X00009XkhURSAZ/stm32h7-swo-printf-not-working
-
Thread
Layered OS: DMA Transfer into Filesystem
, of which one is to learn PS: even though this question is more a theoretical one, I use C on an STM32 --- German: Hallo, ich programmiere ein Betriebssystem* für mein aktuelles Projekt und hab jetzt ein kleines Problem. Das OS ist "layered", also mit Schichten aufgebaut. Es gibt ein HAL
lernen möchte. PS: Auch wenn das eher eine theoretische Frage ist: Ich programmiere in C für einen STM32
-
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
Convert YUV(4:2:2) format to BMP file by use of OV9655 image sensor
Hello anyone I working on OV9655 camera module that is connected to stm32f4discover evaluation board. I am able to capture a picture from the OV9655 module where the video output format is based on RGB565 and save as BMP file on SD cart. Now I want to capture a gray scale
sure about that above setting for OV9655 is correct. After the picture is grab by used of DCIM on STM32F407 microcontroller do I want to convert it to BMP file. Right now do I use the same code that is use during conversation of RGB565 to transform YUV(4:2:2) format to BMP file. The code work fine during
-
Thread
Strange SPI-Interrupt behaviour with STM32F107
Hi, I am working on a spi-driver implementation for STM32F107. Things seem to work quite well, but I get sporadic interrupts on SPI with only the BSY-flag set. No other flags like TXE,RXNE, etc. are set. Here is my interrupt handler for spi(it is called
solved the problem that u had. Could u please provide me with the source code of the spi-driver for STM32F107. Thxxx a lot. Cheers, Angela
-
Thread
Relative Jumps Only
impossible. If any questions are left, feel free to ask. Greetings, Lasse PS: Cortex-M3, STM32F103, Codesourcery GCC
-
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
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
Ch55xduino, Arduino development package for ch55x
mentioned, we need an english data sheet. And, considering how clumsy the Arduino implementation of STM blue pill is (delivered without Arduino USB boot loader, must be flashed beforehand by serial method, but who needs Arduino if he already can flash the chip in a much better way including fuses), I
-
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
Yagarto and floating point
general 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/
-
Thread
Question about GDB remote debuging
Hello, I'm new to gnu arm toolchain. I'm trying to learn how to debug with gdb. I have got STM3210E Eval board, Amontec Jtag, OpenOCD. I start gdb session, connect to the target with: target remote localhost:2000. A I can even reset the Eval board with monitor reset. The question is: If I have
> Hello, > I'm new to gnu arm toolchain. I'm trying to learn how to debug with gdb. > I have got STM3210E Eval board, Amontec Jtag, OpenOCD. > I start gdb session, connect to the target with: target remote > localhost:2000. > A I can even reset the Eval board with monitor reset. > The question
-
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
STM32 and SMBus
Hello everyone, I am trying to communicate with a MAX11068 from a STM32F103 over SMBus, but it does not work as expected. Has anybody worked with the SMBus and would be so kind to provide sample code? Michael
-
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
VHDL Useful Templates
New State Machine template : Keyword : stm<SPACE> [vhdl] type StateMachine is (Idle,StateMachine.....State,... ) ; signal StateMachineCurrentState,StateMachineNextState : StateMachine; StateMachineCurrentState_Process: process (
-
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
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
Encoder Timer switches between 0 and highest value.
problem could be. You probably need more information, im happy to give them to you. I work with a STM32H745XIHx. Thank you
So you configured the STM Timer for Encoder-Mode, but only one channel is connected. Thats wrong. If you use only one channel eg. for speed measure you have to configure the Timer in capture mode.
-
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
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
Can't run from a breakpoint
I think a lot has todo with the way you are masking interrupts. With the stm cortex you can enable a global method (cortex_m3 maskisr on|off) or use the DBGMCU_CR register. You are using the gdb hooks and the maskisr cmd. The only issue i see is you seem to have a typo in
-
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
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
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
STM32F4 IMPRECISERR, trouble debugging
First off I did make a Debug Fault Handler, this is what I am getting r0 = 1200 0x000004B0 r1 = 0 0x00000000 r2 = 1200 0x000004B0 r3 = 1 0x00000001 r12 = 0 0x00000000 lr = 134228401 0x080029B1 pc = 134228410 0x080029BA psr = 553648128 0x21000000 OST = 536881104 0x200027D0 HFSR = 1073741824 0x40000000 CFSR = 1024 0x00000400 Showing BUSFAULT IMPRECISERR DFSR = 0 0x00000000 MMFAR = 3758157108 0xE000ED34 BFAR = 3758157112 0xE000ED38 AFSR = 0 0x00000000 PSP = 536881200 0x20002830 SHCSR = 0 0x00000000
-
Thread
Profibus Master
Slave, this is possible. You need one timer and one UART. I did this for testing DP-Slaves on a STM8. I`ll send some documentation and examples when I´m at home. Or maybe you can use a Master-Simulator? There is a cheap one on eBay. It works like a RS232 to DP-Master Gateway. (B&N Elektronik
-
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
startup_lpc17xx.s GNU
for 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
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
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
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
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
STM32-MAT/TARGET
Hi, I am trying to generate sine modulated PWM on STM32F401-Disco board using MATLAB. The desired freq of a sine wave is 50Hz and of the carrier wave is 20kHz. But I am not getting 50Hz freq. Please suggest a solution. I need sine modulated PWM
-
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
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
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
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
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
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