The STM32 is the third ARM family by STMicroelectronics. It follows their earlier STR9 family based on the ARM9E core, and STR7 family based on the ARM7TDMI core.

learn more… | top users | synonyms

0
votes
0answers
21 views

ST nucleo and morpho pin

I have this problem, I am studying the ST NUCLEO STM32F401. I use it with Arduino shield and it works very well. Now this board has some morpho pins that I want use, but I don't know how. For ...
4
votes
3answers
169 views

Calculating time spent by a function in Microcontroller Applications

I would like to write a simple profiler for my STM32F100VE microcontroller. I have seen that I can include time.h and based on the c standard functions I can use it, but I was confused about ...
0
votes
1answer
23 views

Low voltage (<3V) signalling on USB DP/DN - will it work?

I'm using a microcontroller (specifically, the STM32L1) that integrates a USB device full-speed interface. I want to supply it with just 2V VDD, which is within spec for that micro. But that means USB ...
8
votes
4answers
523 views

What are the differences between rand() function and RNG (Random number generator) peripheral?

I'm wonder for RNG (Random number generator) peripheral in STM32F4XXXX MCUs. look in this Reference Manual (page 748). On the other hand, we have the rand() function in stdlib library that do the same ...
0
votes
0answers
51 views

Writing a framebuffered driver for ILI9230 LCD Controller

I'm using STMF32F103VE to control an ILI9320 LCD Controller, the datasheet is here: http://www.gpegint.com/files/library/files/supportpdf/ILI9320.pdf I have problems of copying the framebuffer ...
0
votes
1answer
63 views

STM32 Protection Diodes and Voltage over VDD

I have a 3 color LED that I'm controlling from an STM32. VDD for my mcu is controlled by a switching regulator set to 3.0v . Unfortunately the forward drop on the the green led is 3.2 volts. This ...
1
vote
0answers
71 views

Few SPIs at the same time as a bus?

According to http://www.st.com/web/catalog/mmc/FM141/SC1169/SS1031/LN775/PF216846, All STM32F1xx-series MCUs (and up) "offer standard communication interfaces (up to two I2Cs, three SPIs, one HDMI ...
1
vote
0answers
76 views

STM32 - two errors in turns during programming

I'm trying to program STM32F107VCT6 via SWD and I'm constantly getting two errors in turns (literally): Error: Connect failed, check config and cable connection ...
1
vote
1answer
68 views

STM32F030F4 dev on Linux

I ordered a few STM32F030F4 chips in a TSSOP 20 package, and some dip adapters. I wired one up using a 8Mhz crystal and connected my st-link device to it via SWD. st-link detects it correctly as an ...
0
votes
0answers
84 views

STM32 Pwm Input Mode Problem

I am using Stm32f103 mcu and using TIM4 CH2 Pwm Input mode. My problem is, the data that I want to capture has minimum 0.75 us waweforms its about 250KHz frequency. I see the ccr1 and ccr2 values ...
0
votes
1answer
74 views

STM32F3Discovery & LSM303DLHC magnetic field data not updating

I'm having trouble reading the 6 magnetic field data registers from the LSM303DLHC on my STM32F3Discovery board. (OUT_X_H_M, OUT_X_L_M, etc) I used the STM32F3Discovery demo as an example for how to ...
1
vote
1answer
46 views

JTAG/SWD Data Logging

I would like to automatically poll and log certain memory locations on the STM32 I'm working with through the j-link debugger I am using to debug the system. Is this possible through the JTAG or SWD ...
1
vote
2answers
145 views

STM32F4 - Digital Signal Processing ( DSP )

At this website, I have read that STM32F4 microcontrollers have DSP instructions. To quote: It also implements a full set of DSP instructions I am beginning to learn embedded C programming with ...
1
vote
1answer
73 views

STM32 Timer to control GPIO

I'm trying to output a slow clock (4kHz) on an I/O from the STM32F0. I'm wondering what the advantage is (if any) of using one of the timer pins to output this clock vs toggling another GPIO on the ...
4
votes
3answers
361 views

STM32F4 - Floating point unit ( FPU )

I would like to know, what is the purpose of the special FPU unit, that is advertised with STM32F4 microcontrollers ? To quote this website : " The Cortex-M4 core features a Floating ...
0
votes
1answer
69 views

UART Modulation Using STM32

I'm trying to generate a modulated UART signal from the standard Tx coming out of my microcontroller. What I'm trying to accomplish is to have a 100us wide pulse generated on every edge ...
1
vote
1answer
508 views

Full duplex slave SPI, DMA and interrupts on STM32F103

I am looking for a bit of help with SPI and DMA on an STM32F103C8 board. I have it working as an SPI slave using interrupts and am have trouble getting DMA to work. I'm aiming to get full duplex 16 ...
1
vote
2answers
85 views

Persisting circular buffer throughout C code

So I have a circular buffer on an embedded device that I need to persist throughout the code. Specifically, I need to have it be able to be used in the main and also in an interrupt handler (these are ...
0
votes
1answer
161 views

Problem with FSMC SRAM interface with STM32F207ZG

I have been struggling for 3 days now to get this interface working and write to SRAM properly , but this is not working still , Here is the code i used. ...
2
votes
3answers
371 views

STM32 USART Rx Interrupts

I'm trying to setup UART communication with the STM32F0 Discovery Board but I am having difficulty adapting the Rx side of things to my needs. The STM32 will be receiving a message (4-6 bytes with no ...
0
votes
0answers
61 views

EMblocks IDE upload to flash

I can only load code to the chip by launching debug for ARM STM32F4 Discovery board and STLink. Is there no way within the IDE to upload hex or .elf file to device without launching the debugger?
2
votes
1answer
408 views

STM32 Rotary Encoder with Hardware Interrupts

I'm trying to get a rotary encoder working on my STM32. I have channel A & B being pulled up to 3V and debounced with 1uF capacitors. The board has channel A & B connected to PA11 & ...
0
votes
0answers
53 views

STM32F207 timer2 output toggle

I am trying to get clock signal out of timer 2 channel 1 on my STM32F207ZGT6. I wnat to use the compare match to toggle the pin, but nothing I programm seems to get any kind of signal on that pin ...
0
votes
0answers
80 views

TXE bit won't clear UART ARM M0

I'm trying to get UART working on a STM32F0 part and can't figure out the interrupts. According to the reference manual ...
0
votes
1answer
43 views

STM32F0 GPIOx_ODR vs GPIOx_BSRR

Apart from the register structure what is the difference between GPIOx_ODR and GPIOx_BSRR? Is GPIOx_BSRR an abstraction layer for GPIOx_ODR? I know that a change in GPIOx_BSRR "will" change the ...
0
votes
0answers
66 views

STM32F207 I2C errors

I am learning embedded development on the STM3220G-EVAL board with the STM32F207 microcontroller. I am testing the I2C interface by interfacing the two I2C2 and I2C3 modules on the same chip and ...
0
votes
1answer
199 views

Storing settings/data on microcontrollers non-volatile memory (STM32F103)

I want to be able to store values in a non-volatile memory so that the microcontroller can load these settings at start up. These settings might change at run-time and it is important for the systems ...
2
votes
1answer
53 views

IAR EWARM gives error on everything in startup_stm32

I'm trying to compile a project for school, which all my fellow classmates have no trouble compiling. This assignment is nothing more than dragging already written source code and compiling an, ...
-1
votes
1answer
185 views

How to wire/interface a 4x3 membrane keypad

I followed this example to wire my keypad to my STM32F4 Discovery board. However any way I read data on the pins I keep getting same data which leads me to believe I wired something wrong. Here is ...
0
votes
1answer
398 views

DMA completion interrupt not working for slave STM32 SPI

I am using stm32f103 to transmit some data over SPI while stm32 acts as slave. I need to use DMA for sending data to the SPI but the corresponding interrupt handler is never called. The ...
0
votes
1answer
128 views

Force Cortex-M3/4 reset from assembly

I would like to force my STM32F4 to reset on fault, I tried to copy NVIC_SystemReset in assembly as : ...
7
votes
2answers
516 views

Endian problem on STM32

I'm using arm gcc (CooCox) to program an STM32F4discovery, and I've been wrestling w/ an endian problem I'm sampling with a 24 bit ADC via SPI. Since three bytes are coming in, MSB first I had the ...
0
votes
1answer
217 views

Why does last data of I2C DMA transfer break?

I used DMA to transfer I2C data, but I always lose the last data. hardware configuration is shown below: ...
2
votes
2answers
412 views

Contacting InvenSense MPU9150 auxiliary magnetometer

I am trying to reach InvenSense MPU9150 magnetometer using master mode disabled and bypass mode enabled. These values are written to and then confirmed from the MPU9150 : ...
0
votes
0answers
95 views

Signal's Acquisition of XPT2046 : Resistive Touch Screen Controller

I have some question about this controller with my LCD, have tried to search around but I didn't find any answer. Did anybody can explain to me how it work please. I'm working with a STM32 F4 ...
0
votes
0answers
98 views

How to design robust and efficient communication system between MCU and peripheral?

guys.I want to design a product not a toy to be sold in future. I am concerning about a better way that MCU uses to communicate with peripherals. It should be robust and efficient. Take my design for ...
0
votes
2answers
191 views

STM32 custom bootloader: how to verify the firmware?

Using a custom SDIO/FAT in the application bootloader for a STM32 chip, is it possible to make the jump from the bootloader to the new firmware fail-safe? I would like to verify the new firmware ...
0
votes
0answers
119 views

ARM SWDIO only works when touching 3V and SWCLK with fingers

I made a new STM32F2 prototype board and SWDIO debugging only works when I connect the Vinputref and SWCLK with my fingers. It was working fine on previous boards: it's the same circuit but different ...
2
votes
2answers
181 views

Move embedded programming from Keil to Linux

I'm currently using Keil to develop for an STM32 discovery board. My project is close to finished, and I'd like to move to a Linux based building environment. I've been using the preconfigured ...
4
votes
1answer
331 views

Choosing a SDRAM pcb layout

I'm working on a project with the quite new STM32F429 in LQFP208 package. I need to solder the first couple of prototype by myself for low budget reason. I choose this package so I could check myself ...
1
vote
1answer
171 views

Exchange serial messages via UART between 3.3V µController and 5V µController concrete (STM32F4 and ATMega 2560)

I would like to send messages from STM32F4Discovery board to Arduino Mega 2560 via UART. How do I connect the Arduino to the STM32F4Discovery? Do I need any extra electronics? If I understand ...
2
votes
0answers
242 views

STM32F4Discovery, an HTTP server and a web page on the SD card

I have an STM32F4Discovery board, and I have implemented an HTTP server on it using the LwIP v1.41 stack. I also have implemented a microSD card reader with SDIO and FatFs, and USB FS as a mass ...
0
votes
1answer
196 views

Inverting interrupt edge (STM32 wake up pin)

A sleeping STM32 can be woken up by a rising edge on its wake up pin. But if the IC on the other end of the line only interrupts as falling edge, is it possible to invert it somehow ?
0
votes
0answers
60 views

Embedded Pi JTAG program cable

I bought an Embedded Pi as an add-on for my Raspi. Seems that I should have also bought the ColinkEx programming cable too. I happen to have a Northmicro Blaster JTAG cable from when I was working on ...
1
vote
1answer
440 views

STM32F4 interfacing with NRF24l01+

Like the title says I want to use a NRF24l01+ with a STM32F4. So far, I realized the communication with two NRF24l01+ and two Arduino but I would like to exchange on Arduino with the STM32. I looked ...
0
votes
2answers
248 views

STM32L-Discovery programming on Linux with Eclipse

my problem is following. How to configure Eclipse + ARM in order to code for this microcontroller? I installed Eclipse and ARM plugin for it but I can't understand what to do after that :(
1
vote
2answers
445 views

Question about STM32F4 DMA

I have been doing some experiments with the STM32F405 and audio and discovered an interesting issue and wonder if anyone else has encountered the following? I have a stereo codec CS4344 running at ...
2
votes
2answers
259 views

The GCC Ride7 STM32 startup script does not jump into SystemInit function

We are a robotics association from ENSEIRB-MATMECA (Bordeaux, France). We are developping some boards and a template project for STM32 devices. One of our boards embed a STM32F103C4 microcontroller. ...
1
vote
1answer
71 views

What is the purpose of CRC_IDR in STM32 processors?

The STM32's CRC calculation unit has a register named CRC_IDR. This 32 bit register allows the user to store 8bits of data. There seems to be no link between this register and rest of the CRC ...
1
vote
1answer
117 views

Parameters to compare microcontrollers for low power consumption?

How do I select a microcontroller with low power consumption? -for MSP430 series we can compare using \$\mu\$A/MHz at active state. Similarly how to compare this with other MCU's like PIC and STM ...