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
55 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
29 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
72 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
40 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
35 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
17 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
10 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
16 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
35 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 ...
8
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
27 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
86 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
58 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
45 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
33 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
26 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
80 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
41 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
37 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
77 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
103 views

STM32: Timer interrupt works immediately

This is code for timer in my project on STM32F429: ...
2
votes
2answers
120 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
199 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
32 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
93 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
51 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
62 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
144 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
124 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
46 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
145 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
65 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
39 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
96 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
23 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
55 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
278 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 ...
0
votes
1answer
61 views

How float to binary conversion works

I was looking for solution how convert float value to binary in STM32 and I found this: float foo = 1.23; uint32_t bar; bar = *((uint32_t *)&foo); My ...
0
votes
1answer
109 views

STM32F411 Nucleo board - what the ferrite bead is used for?

I'm trying to design my own pcb for the stm32f411 and when i saw the datasheet of the stm32f411 ( http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/DM00115249.pdf ) ...
2
votes
1answer
283 views

STM32 SPI Peripheral bug?

I'm using STM32F051R8T6 on STM32F0-Discovery board and M25P80 flash IC as a peripheral. I've got the SPI configured in 3-line (+ 1 software chip select line), full-duplex mode and I'm using polling to ...
1
vote
1answer
75 views

Why is it necessary to halt program execution for the breakpoint to be effective?

When I'm following this procedure, program execution is successfully stopped when the payload program is run: Setting breakpoint to beginning of program which is gets loaded by the bootloader ...
0
votes
1answer
128 views

LWiP Web Server: Running website using html files

Is there any way to run web server site on lwip library without conversion html to hex, but directly using html files?
0
votes
2answers
190 views

STM32F103RB ADC (pics included) strange values for temperature sensor (LM35)

I've connected one battery/2 batteries (GND and A0) and the measuremet displayed on the com26 port is ok. I've connected the LM35 (The LM35 has 1 celsius degree for 10mV measured value) on the VCC and ...
0
votes
0answers
112 views

STM32 J-Link connection

I have this JTAG connection diagram: According to this, I'm connecting only the pins 1, 2, 3, 5, 7, 9, 13 and 15 to the target, with the 10K pull-up resistors shown. Question is, other than these ...
3
votes
1answer
120 views

STM32 Semihosting - SIGTRAP received when printf called

Have followed this guide here (http://www.wolinlabs.com/blog/stm32f4.semihosting.html) to get semihosting on the STM32F103 working. Basically my goal is to get printf working over JTAG (ST-Link/v2). ...
0
votes
1answer
135 views

STM32F4 - DMA with bigger steps

I'm programming an STM32F4 Discovery board to push a sequence of 12 bit values into the DAC data register. This works well using timer interrupts: inside my IRQ handler, I have code that looks like: ...
2
votes
1answer
158 views

Printf style debugging via SWD

Is it possible to send arbitrary messages (as with printf()) via SWD for debugging?