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

2
votes
3answers
34 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
28 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 ...
-2
votes
0answers
22 views

Microcontroller as a Slave [on hold]

I want to set up an EtherCAT Network, First I have installed IgH EtherCAT Master in my PC (Ubuntu 14.04) and RTAI 4.1 as RTOS Can I use microcontroller such as STM32 as a slave Thanks in advance
0
votes
1answer
29 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
0answers
38 views

STM32 wont 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
197 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
59 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
53 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
144 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
46 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
59 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
32 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
88 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
49 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
70 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
33 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
19 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
30 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
81 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
31 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 ...
3
votes
1answer
133 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
141 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
60 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
50 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
29 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: ...
0
votes
1answer
97 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
53 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
46 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
90 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
175 views

STM32: Timer interrupt works immediately

This is code for timer in my project on STM32F429: ...
2
votes
2answers
218 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 ...
1
vote
1answer
212 views

STM32F205VC: USART framing error?

I'm trying to use USART in my program on STM32F205VC, but instead of sending my data I get some weird chars in PuTTY. I've used a Saleae Logical Analyzer and the result looks like this: This is my ...
0
votes
0answers
27 views

How to use external clock on STM32F205VC?

I'm using VisualGDB for stm32F205VC programming. I have an external clock on my board connected to OSC_IN and OSC_OUT that I have to use. How to switch to it?
0
votes
1answer
50 views

STM32F051R8: PWM timers don't work?

I'm working with MB1034B discovery board and STM32F051R8 microprocessor. I'm trying to output some PWM pulses using hardware timers. I use this tutorial (for STM32F4xx): ...
2
votes
1answer
207 views

STM32F3 Discovery reading values from sensor using I2C

I need to read values from on-board LSM303DLHC (connected via I2C) sensor and send them through UART. UART part is working but PuTTy shows: "S▒▒" every restart... Can anyone tell me what's wrong? I ...
1
vote
0answers
59 views

STM32 F205VCT6: GPIO B Port 6 and 7 do not work?

I'm using the STM32 F205VCT6. I have a simple blinking LED program written in C++ with VisualGDB (and VS 2013 Community). It works fine for pins like A1 and E2, but it doesn't for B6 and B7, where I ...
1
vote
2answers
80 views

STM32 SWD Issue

Greeting, I'm facing an issue while trying to program STM32L151C6 using STM32F4 Discovery board as programmer. What I did are the following: I removed CN3 jumpers from STM32F4 Discovery board page ...
1
vote
0answers
232 views

STM32 with FreeRTOS: using RS485 on USART with interrputs

I've got simple task in my project using usart and interrupts. It's works by receiving anything, and sending back "12345" string (I'm preparing project for something more complex). In task I have ...
2
votes
1answer
212 views

STM32 Virtual COM port baud rate

I'm using the STM32 VCP firmware and I want to transmit data to my PC from STM32F4 discovery board. The configuration of the virtual COM port is fine, the properties are the following in device ...
0
votes
0answers
53 views

STM32 L1 Bootloader: What is needed after a full memory erase?

I am trying to program a STM32 L1(51C8Ux) via the standard bootloader. I have written a hex file to the memory locations the hex file specifies. After reset, the program doesn't execute. Prior to ...
0
votes
1answer
203 views

STM32F4 VCP transmit/receive data

I'm using STM32 VCP firmware on STM32F4 discovery. I generated the code with CubeMX and I could successfully integrate it into my Eclipse project. After calling the initialisation functions, the ...
0
votes
1answer
82 views

STM32 L1 Bootloader: how to set the reset vector

I am trying to program a STM32 L1(51C8Ux) via the standard bootloader and when I do the memory gets written to, but the code doesn't execute (after reset that is). I assume as part of the memory ...
2
votes
1answer
50 views

How to use level-triggered interrupts with STM32F1xx?

I'm getting conflicting info on whether I can use level-triggered (as opposed to edge-triggered) interrupts with the STM32F1xx microcontroller. In ST's CMSIS-compliant Standard Peripheral Libraries, ...
1
vote
1answer
141 views

PWM LED using TIM1 on STM32

I need to PWM my LED on STM32F3 Discovery which is on PE8. I have found code which is using PWM on PA8 and PC8 (one using TIM1) but unfortunately I can't change it to PE8. How to do it? Or maybe you ...
0
votes
0answers
28 views

Clipped sine input for HSE clock input on STM32F303?

I am using a STM32F303 and need a very high stability clock ie around 1ppm over temperature. One of the modules I am looking at outputs what is described as "clipped sine". Can this drive the ...
7
votes
4answers
1k views

My first STM32 code - please criticize me

I have just wrote my first code on STM32 - blinking LED. It combines a fragments from different sources; please criticize me so I can learn how to write proper code and don't learn stupid habits. ...
-1
votes
1answer
57 views

STM32F205 - can i use a timer to generate a low pulse of specified length

I want a pin to be high by default and then generate two 125-250 µs pulses with 0.1 µs resolution using a command. I was thinking about using TIM1 in one-pulse mode but I don't see a way to invert the ...
3
votes
2answers
378 views

STM32 Understanding GPIO Settings

In STM32 Standard Peripheral library, we need to configure the GPIO. But there are 3 functions which I not sure how to configure them; GPIO_InitStructure.GPIO_Speed GPIO_InitStructure.GPIO_OType ...