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
9 views

Restart Rx USART + DMA in STM32L1

I am using an STM32L1 on a Nucleo-L152RE board. I have to devices I control through serial running at rather high baudrates, so I am trying to enable DMA on the USART. With the code below I can launch ...
0
votes
1answer
63 views

Building a Generic Wireless USB Device [closed]

I'm trying to (re)learn STM32 MCU programming in C/C++ by doing a pet project. My goal is to build a generic framework for making wireless USB devices (e.g. keyboard, joystick, etc.). To a degree, I ...
2
votes
1answer
122 views

Changing flash latency from 0 to 1 even with enabled prefetch slows execution on STM32

I have put all clock configuration to its default state, so an internal oscillator is running at 8 mhz. I have a delay loop using inline assembly as follows: ...
0
votes
1answer
59 views

STM32F3 Circular DMA

I'm having some trouble getting my memory to GPIO DMA circular settings right. The initialization code pasted below has some issues. I'm trying moving data from a uint16_t array to the GPIO->ODR ...
0
votes
1answer
53 views

STM32 external power adapter

I'm working on a project with the STM32F407 discovery board. My question is related to powering the board from external source. In the datasheet, it is specified that power can be provided either by ...
0
votes
0answers
18 views

IAR IDE for Atmel transceiver

I have an STM32F407 discovery board and intend to use IAR EWARM as the IDE for programming the Discovery board. I would like to know whether using the Atmel's AT86RF233 with the Discovery board would ...
0
votes
0answers
43 views

Possible to power STM32 Nucleo boards with USB battery pack?

I have a wireless-transmitter module connected to a Nucleo board. The sensor draws power (~200 mA) from the Nucleo board's 3.3V out pin. Case A (successful): When I connect/power the Nucleo board ...
1
vote
2answers
52 views

Driving WS2812 using DMA on STM32F302

I'm trying to drive some WS2812 LEDs which require a (400ns high + 800ns low) or (800ns high + 400ns low) signal to indicate a 0 or a 1. So essentially I'm trying to take an array of data and output ...
0
votes
1answer
33 views

osdelay function stm32

I still work with stm32f407 and I have a question. When I write osDelay function for 2 seconds , it works 5 seconds. How can I fix this extra delay ? This osDelay function in cmsis_os.h library.
0
votes
0answers
42 views

EEPROM write protection on STM32L1

The code below returns an error every time I try to write to the EEPROM in a STM32L1 (I'm using a Nucleo-L152RE board): ...
0
votes
0answers
29 views

How to utilize the flexible memory controller (FMC) in the STM32F746xx to interface with an LCD and SDRAM?

After reading one too many datasheets and whitepapers, I believe I have confused myself. First, though, let me explain what I want to do. I have a STM32F746BG (ARM Cortex-M7: Datasheet), and I need ...
2
votes
1answer
61 views

understand the the setup of Timer on STM32f10X

I'm trying to understand how to correctly setup the timer on STM32f10x . The board is running with an external crystal of 16MHz , and I'm using the PLL : ...
0
votes
2answers
76 views

setting the frequency of a PWM on a STM32

I'm trying to write a function that takes a desired frequency of PWM and sets the timer based on this value: ...
0
votes
3answers
38 views

How to get values in terms of G in STM32F3 Discovery board

I am working on STM32 F3 Discovery Board. I am accessing accelerometer of the board. While doing so I am getting values for X,Y and Z axes. But these values are some random numbers. I want the output ...
0
votes
1answer
33 views

STM32F030 analogue input pin impedance (does value change during conversion period?)

The analogue input pin impedance for the STM32F030 is listed as around 50K in the datasheet. Does this value apply only during the conversion period, or would it be higher when the pin is configured ...
0
votes
0answers
25 views

SOES Code for STEVAL-IFW001V1 Board Features (STR912FA carry board) slave

I want to use the plateform STEVAL-IFW001V1 Board Features (STR912FA carry board) as a slave in my ethercat network. http://www.ethercat.org/en/products/024C72B1BB68438A90C4C005DA62687D.htm Can I ...
1
vote
1answer
78 views

Using the STM32 Nucleo L152RE with uVision

I've been messing around with the Nucleo with mbed for the last week or so, but I'm keen to get out of that and back into some lower level C to give me more flexbility. I have the problem, however, ...
0
votes
1answer
46 views

LSM303DLHC outputs frozen

I've was trying all afternoon yesterday to get some data out of my LSM303DLHC using an STM32L152 Nucleo board. Finally I got all the I2C stuff down, managed to set some registers, verify their ...
2
votes
3answers
111 views

STM32F4 - CMSIS & Board Specific Libraries

I recently purchased a STM32F4 board to learn the ARM architecture. I am fairly comfortable with embedded programming having worked with AVR series for about a year. I was going through this tutorial ...
0
votes
0answers
184 views

ADC config with DMA and Timer in STM32F103

I want to program STM32F103 in which define an array that is completed with ADC value. I need to trigger the ADC with timer and also use DMA. It means that when the array complete, the DMA_IRQ Handler ...
0
votes
1answer
80 views

Can't seem to get PWM timer to work on STM32F4 Discovery

I've been messing around with going back and forth from datasheet, programming manual, and reference manual trying to better understand how to use the STM32F4 Cortex-M4 micro controller. I don't like ...
0
votes
1answer
79 views

STM32F407VG board won't boot

I have an STM32F407VG on my board. I am able to bring it to the dfu mode. Then I am able to flash it using DfuSe, which also correctly recognizes the dfu device ...
2
votes
1answer
454 views

STM32 VCP - Receive data from PC

I am using STM32 HAL VCP firmware generated by CubeMX on STM32F4 discovery board. The Virtual COM Port works, I can transmit from the microcontroller to the PC as many messages I want. But in the ...
2
votes
2answers
117 views

What use is a pull-up/pull-down with a push-pull output?

For at least some STM32F4 MCUs, push-pull + pull-up/pull-down is a valid GPIO configuration, but what would you ever use it for, and why? I assume there's some saner reason than "I just really felt I ...
0
votes
1answer
113 views

How can STM32 on Maple Mini (leafLabs) be programmed using Keil?

First of all I am not unfamiliar with embedded systems. Moreover, shame on me, I am an electronics engineer specialized in embedded systems. The question I am asking is actually a little bit ...
-1
votes
2answers
179 views

Most carefull way to concatenate strings in C

My firmware in one cycle per 10 second is moving string to the output (csv file on SD card). The problem is that string sometimes in non-deterministic way is changing adding values that shouldn't be ...
1
vote
2answers
58 views

How to use characters in strings outside of the printable ASCII range?

I am trying to create a string with characters outside the ASCII printable range. I am using an STM32 microcontroller using the µVision IDE with the Keil compiler. The documentation allows various ...
0
votes
0answers
63 views

Any way out of this Catch 22 on reset?

The problem is simple. I uploaded a buggy program using ST-Link to a stm32f303 prototype board. The bug was that the routine that kicks the watchdog in the power supervisor does not work. Therefore it ...
0
votes
1answer
45 views

Cannot get code to run on prototype board STM32F303x

... but it runs on Discovery F3 board (exact same MCU). BOOT0=Lo, NRST=Hi The logfile generated when I try to upload code is as follows: Thu Apr 23, 2015 09:56:23: Loaded macro file: C:\Program ...
1
vote
1answer
119 views

Sram in the ARM cortex m3

I load a project into the chip STM32f103ZC whose internal sram is 48kBytes , there are also 2MBytes external sram on the board. But when I download and debug the project,the map file tells that ...
1
vote
1answer
75 views

Can I dynamically change STM32 voltage during runtime

I'm using an STM32L151 MCU for a battery powered wireless sensor node. I came across the TPS6274x series switching regulator, who's voltage can be reconfigured at runtime by flipping it's inputs. The ...
1
vote
1answer
150 views

Determine if button press triggered wakeup from STOP mode with STM32F0

I'm using an external interrupt triggered by a button press to wake up an STM32F030K6 from STOP mode. I was wondering if there's any way of distinguishing, within the interrupt handler, a button press ...
0
votes
0answers
52 views

Eclipse and OpenOCD works only, if I program the mcu on discovery board

(sorry for my English I am not native English) I'd like to program and debug an STM32F030 MCU with Eclipse, OpenOCD and ST-link. I have an STM32F4 Discovery board that includes an ST-link debugger. ...
0
votes
0answers
63 views

MDK-ARM uVision 5 stack RAM size for STM32

In my project I want store 150kB of bitmap in internal RAM of MCU. So, I've choosen STM32F407VET6 which has 192kB+4kB RAM. However, we must change some values in startup files to extend memory size ...
0
votes
1answer
58 views

STM32L1 - How do the Cat.1 vs Cat.2 (etc.) lables relate to the part numbers?

I am looking at the data sheet for the STM32L1 and I keep seeing references to Cat.1, Cat.2, ... etc. devices. How do those categories relate to the part numbers?
1
vote
1answer
293 views

STM32F407 FSMC interface with TFT LCD

I've written some code to make a FSMC connection between my STM32F407VET6 and a TFT LCD 240x320 pixels. I was checking this several times, however I can't recognize what's wrong. I'm using 16-bit data ...
9
votes
3answers
1k views

Software interrupt vs function

After about 3 years of working with MCUs still I don't know what's the use of Software interrupts? I have done several jobs with STM32 and I have never used the software interrupts. Indeed this is a ...
0
votes
1answer
36 views

STM32 program ATMega

Is it possible to program HEX file from STM32 to ATMega 328 ? I can think of some Serial communication, but I don't know whether is it possible to do on tiny STM32F0 series or it needs more powerful ...
4
votes
2answers
238 views

Low-end DSP vs High-end MCU

I'm currently working on a Guitar DSP project, based on STM32F407VGT6 but as I progress I come to conclusion that I'm gonna need a bigger unit (with SDRAM). The question that is ringing in my head is ...
0
votes
1answer
323 views

STM32 USB CDC: How to stop device transmitting via USB when not connected

After over 3 weeks of testing and debugging, I have finally got my STM32 transmitting data reliably over USB. The problem is it NEEDS an application on the other side of the USB to consume the data. ...
0
votes
1answer
103 views

STM32 and SDCard: space management

My task is to gather measurement from peripheries of STM32F4 on SDCard and I started reading about this. Could you double check if I'm correct: Single block memory on my SDCard is 512 bytes, so ...
0
votes
0answers
101 views

STM32F401RE-Nucleo LED and BUTTON's problem

I am trying to run a simple program on my new Nucleo board, I made this program in order to turn on and off the green led when i press the user's button (the blue one), ...
0
votes
0answers
38 views

STM32F205VC - What causes this short impulse in one-pulse mode of TIM1?

Hi! Why am I seeing this short impulse? This is my code: ...
1
vote
1answer
152 views

High Level Language on an STM32

Are languages like eLua and Micro Python feasible for production level use on an embedded micro like an STM32? There doesn't seem too be much information outside of their sites. Not looking to do ...
1
vote
0answers
101 views

How to know the memory occupied by the various memory segments in a microcontroller

I'm using STM32 based microcontroller, IAR embedded workbench and STlink v2 debugger. I just want to know how to check the memory utilized/used by the program/system in various memory segments like: ...
0
votes
0answers
66 views

STM32L1 RTC dosn't operate after power cycle

I am using the internal RTC module on an STM32L1. When I load the code normally through Keil the RTC will update and everything is good. But when I do a full power cycle the RTC never gets clocked. ...
1
vote
2answers
111 views

SPI to USB converter Question (for STM32F105)

I have a question regarding which SPI to USB connector to choose and what the main difference is between them. All i want to to is monitor the SPI activity going on which is possible through an SPI ...
2
votes
1answer
431 views

STM32: Timer interrupt works immediately

This is code for timer in my project on STM32F429: ...
2
votes
2answers
429 views

STM32 USB VCP bug

I have been working on a project for the past two weeks now and debugging this one issue has taken up this entire week. Wondering if anyone can help, I will try to be as explicit and clear as ...