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

Comparison between uint8_t and String

I have a very fundamental question regarding string comparison.. I implemented a USART to PC with STM32L0 Nucleo board, and I can type something in terminal and receive it on the micro as follows: ...
2
votes
2answers
67 views

STM32 appears to be irrevocably bricked

I have a custom board with an STM32F103VE MCU. I can connect to it fine using ST-Link Utility, and I even had code downloaded to it a few times (in ST-Link Utility as well as CooCox), but today I ...
0
votes
2answers
82 views

Is it possible to protect smart card from being copied?

I'm currently working on SLE4442 smart card. I'm trying to make a payment system. but the card has to be "copy-protected" what I mean here is that if that data on the card is copied as it's, this data ...
0
votes
1answer
55 views

Which camera module will interface with STM32F7 Disco board?

Which camera module will interface with STM32F7 Disco board? The connector on the board is a 30-pin FPC/FFC 0.5mm. Could the OV2640 be adapted for this?
0
votes
1answer
67 views

Systick in interrupt using FreeRTOS

I need to count how many miliseconds does it take my interrupt to finish its service. Before I started using FreeRTOS, I just did something like this: ...
1
vote
1answer
57 views

Scheduling the transmision of CAN frames in an RTOS

I'm planning to use my STM32 board to send CAN frames. I implemented a simple scheduler that contains 10 tasks; one task will be responsible for sending frames. To do the job I declared a structure ...
0
votes
0answers
44 views

stm32f373vb produces a short circuit after some time

I designed a custom board with stm32f373vb lqfp 100. I made the soldering from the 4-th attempt. It was easy, when you know the technique and have a microscope. Anyway I checked the pins with the ...
0
votes
1answer
51 views

STM32 RS485 connection

I want to interface stm32f0 with rs422 (half duplex and full duplex). What I'm not getting how to connect RE and DE signals to rs 232. From UART I'll be having RX, TX, VCC and GND pins which i need to ...
0
votes
1answer
28 views

LiPo charging module used as backup?

I am running small stm32/gsm module project and would need battery backup in it. Is it possible to use cheap lipo charging module to do exactly that. I would charge my battery through input terminals ...
0
votes
2answers
47 views

stm32F103C8xx big or small endian?

is there a reason for stm32F103C8xx to be big endian and is it possible to change to little endian? I have a 16bit oriented addressing scheme that I need to send over wire and other side expects MSB ...
-1
votes
1answer
46 views

How to Use an External ST-Link/V2 with the STM32F4 Discovery Board

I have a STM32F4 Discovery board and a ST-Link/V2 programmer. I want to use my own ST-Link (not the embedded one) for programming and debugging the board. How should I connect the external ST-Link ...
0
votes
1answer
37 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 ...
2
votes
1answer
140 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
103 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
80 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
20 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 ...
3
votes
2answers
291 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
69 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
42 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
61 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
51 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
70 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 : ...
1
vote
2answers
105 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
44 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
43 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
31 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
95 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
48 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
142 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
269 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
109 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 ...
-1
votes
1answer
103 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
633 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
134 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
142 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
194 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
62 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
64 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
57 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
139 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
86 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
181 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
65 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
83 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
65 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
380 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
40 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
262 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
370 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. ...