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

1
vote
1answer
52 views

STM32F1 troubles with a timer

I'm having some troubles with setting up a 1 second timer on STM32F103 mcu. I have set Timer 2 to have a prescaler of 1099 and a period of 65514, so I'm expecting to have a 1 second interrupt rate: ...
0
votes
0answers
22 views

PDM to PCM conversion workload on 32-bit micro (such as STM32)

Can anyone provide a rough estimate of the processing power required to do PDM (e.g. audio from MEMS microphone) to PCM conversion on a 32-bit microcontroller ? Specifically - I see ST provides a PDM ...
1
vote
0answers
26 views

SPI TX Error on STM32F4xx

I have tried posting this question on the ST forums but have not seen any traffic on it so I figured I would try here. Background STM32F407IGT processors SPI2 peripheral being serviced by DMA ...
1
vote
1answer
34 views

What's the concept of these three options for configuring the memory of STM32?

I have read the STM32F10x Reference manual but a section about "Reading the Flash memory" is not clear to me, yet. I mean this part(page 59): I have several question: What's the Latency? in fact ...
0
votes
1answer
72 views

How to convert 16 bit binary number to an Integer programatically [closed]

I would like to convert a 16bit Binary to an integer programatically. Below is the code that I am using. When I compile it I get an error: invalid conversion from 'int' to 'const char*'. Could ...
1
vote
3answers
68 views

What is SPI Interrupt (SPIE) in SPI control register?

I have been trying to understand SPI Interrupt i.e. what does it do and why is it used ? Reading about it on the web has not helped me. Can some one please explain it in a simple terms ?
2
votes
1answer
52 views

Unable to read file greater than 2K in FatFS

I am reading a file from the SPI Flash with FATFS file system, on STM32F103 platform running FreeRTOS. I can successfully read File of size less the 2048, but if read a file file of size greater than ...
0
votes
0answers
49 views

STM32 ADC sampling problem

I'm using the STM32F2 microcontroller, and have a weird problem with the ADC. Seems like the ADC sampling circuit needs a reset to take a sample, as the ADC value quickly drops after the reset. For ...
1
vote
1answer
61 views

USB interface with STM32

I'm experimenting with native USB in STM32. I've not found any "step by step", or a little more well structured tutorial, how to implement CDC or mass storage for example. I've found some examples, ...
0
votes
0answers
63 views

STM32F2 code execution problem -solved

I just got into using STM32F2 microcontrollers. However, I am unable to get the micro work. I have a board designed by my own, with only the microcontroller, power supply capacitors, 2 leds and a UART ...
0
votes
1answer
54 views

STM32F103 simple countdown timer (with no interrupts)

I'm trying to create a simple countdown timer (without using interrupts) - to use to check for timeout while waiting for an external event to occur. Ideally, I'd like to preload a timer counter with ...
0
votes
1answer
53 views

STM32F4xx input pin reads wrong state on first run but not subsequent

I am working on a program which reads the state of a pin at startup to determine an operational mode. When I run the code on first power up, it reads incorrectly, but subsequent resets without power ...
1
vote
1answer
43 views

STM32F102 USB Programming

I am currently designing a board for a STM32F102 chip which needs to be able to use the USB bus to transfer data while the chip is running. However I also want to be able to program the chip through ...
0
votes
0answers
24 views

Eclipse Template for STM32L

Where can I find additional templates for the ARM-GDB debugger for eclipse? Otherwise, how do I create a template and which variables would change from the STM32F series and the L series? Thanks
1
vote
1answer
55 views

STM32F103 Systick Interrupt stopped working when debugging in ram - (Coocox IDE)

I tried debugging my code in ram in order to increase the flash's life (only rated at 10k writes minimum) Anyways, I have tied the boot0 and boot1 pins to 3.3v and set the compiler to debug from ram ...
0
votes
2answers
84 views

Independent watchdog (IWDG) or Window watchdog (WWDG)?

I'm still searching to find an answer for this question: Why while the stm32 MCUs have a perfect watchdog (I mean Window watchdog (WWDG)), there is a simple watchdog (Independent watchdog (IWDG)) ? ...
0
votes
1answer
64 views

STM32F103 strange behavior

I'm working with an STM32F103 device and am experiencing some strange behavior that I'm not so sure about where start with when it comes to debugging it. I previously asked a question regarding DMA ...
1
vote
1answer
44 views

The same flag for an interrupt

I think I'm mixed up a bit in NVIC of stm32 MCUs. I took a look in the SPI.h of the STM32F10x standard peripheral library. I don't know that why while there is ...
0
votes
0answers
31 views

USB in Nucleo F302R8

I'm using the Nucleo F302R8 to build the firmware for a new board I'll develop using the same MCU. I'm trying to use USB CDC to have a VCP. I've started with CubeMX with the Nucleo F302R8 template, ...
1
vote
1answer
80 views

STM32F1 Can't I use the internal voltage reference as the ADC reference?

There seems to be a badgap voltage reference built-in in the STM32F1 microcontrollers (on ADCx_IN17). Coming from AVRs it seems to me very strange that it's not possible to use this reference as the ...
1
vote
1answer
86 views

What USB class should I implement?

I'm playing around with STM32F4 Discovery board and libopencm3. I want to send data acquired from ADC channels over usb and display some charts on the computer. After doing some research on USB class ...
3
votes
2answers
223 views

SPI1 doesn't work

I'm working on a simple project. I want to send a string. the string is "Rohalamin". the second board after recieve the string should turn on the LED. the program for first board is (the MCU for ...
1
vote
1answer
85 views

jpeg images in STM32 internal flash

I'm using both STM32F103 and STM32F407 with a SEPS525 SPI driven OLED display (160x128). I want to store images to display in internal flash, but BMP uncompressed images with 16bit colors are huge ...
0
votes
1answer
60 views

GPIO control of alternate function pin

I have an STM32F4discovery and using a pin as SPI CLK. But I also want to be able to control the pin as GPIO to generate ANY frequency I want (STM32 only lets you prescale APB clock). How can I ...
1
vote
1answer
101 views

Is it possible to program an STM32 with an Arduino?

I have one of these: http://www.ebay.com/itm/111297094334?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649 I know an USB-TLL dongle is usually used to program it, but I don't have one and I ...
0
votes
0answers
34 views

Parallel Write On External Clock on STM32

I am using 8 GPIO pins on an STM32F407 for a parallel write to an external device (FT232H). The parallel write is synchronous, ie. I have to synchronize my data to a clock provided. According to the ...
0
votes
2answers
75 views

STM32F3 Discovery 5V output

I want to use a STM32F3 GPIO (3.6V) to drive another device using 5V input. Which is the correct way to do so? I know that is possible to use the open drain mode on the GPIO, but I'm not sure if I ...
0
votes
0answers
89 views

STM32 RTC alarm not configuring for the second time

I am using STM32l151vbt6 MCU and I am trying to configure RTC Alarm for every 15th minute. (That is 0, 15, 30 and 45th minute of the every hour.) I can configure the alarm and it will work for the ...
0
votes
1answer
69 views

Why does `RCC_GetClocksFreq` return different results than I expect?

I have a STM32F427 MCU with a 8MHz HSE crystal. I am setting up the clock as follows: ...
2
votes
5answers
217 views

How is time of supplied real time clock module maintained without battery?

I am thinking about purchasing this RTC ( real time clock ) module. Since this particular item comes supplied without a battery, I wonder how the time is being kept running in the chip since it's ...
0
votes
1answer
63 views

STM32 not booting without J-link

I've got a device with STM32F439 microcontroller on it. I flashed the firmware using the J-Flash utitilty (flashed and read back data is same). Then started the application from J-flash: everyting ...
0
votes
1answer
138 views

stm32f10x: how to redirect timer output to a given GPIO pin

I would like to programmably send pwm signal to one of the 16 output pins. One way to do this is to trigger interrupt on timer reload and on output comare event, and then to update the corresponding ...
1
vote
0answers
76 views

STM32 FSMC Timing Computation

I'm working on FSMC protocol of STM32 micro controller The formula for calculate FSMC timing is below, but I have a hard time understanding it. From ST Application Note Can someone walk be ...
0
votes
0answers
112 views

STM32 Timer Outputting Clock on GPIO without using PWM or Interrupts

I'm trying to output a fast clock, 90kHz on an I/O using the 32F0308DISCOVERY board by using the OC_Toggle mode for TIM3, ...
0
votes
2answers
117 views

STM32 SPI w/ DMA “BUSY” flag set

My software appears to be working as expected, but the BSY flag is not clearing in the SPI register. Background: I am trying to get SPI working with DMA on the STM32. After figuring out that the DMA ...
0
votes
0answers
78 views

STM32 Timer Internal Clock Source

As I understand, the internal timer clock source on the STM32(F4) microcontrollers can be either APB1 or APB2. However, I can't find which timers get which clock. I already found ST AN4013, which ...
1
vote
1answer
70 views

Simulate STM32F4 brownout reset using STM32F100

The STM32F4 MCU has a brownout reset feature. According to the manual, section 5.2.2, when the supply voltage VDD drops below the selected VBOR threshould, a device reset is generated. After reset, I ...
4
votes
1answer
121 views

Look up tables, Flash or SRAM?

A STM32F4 platform is used, which has 192kBytes SRAM, which is sufficient for me. I am trying to build a look up table. The LUT will be used in calculation several times. And I want to put it in SRAM ...
2
votes
1answer
286 views

Stm32 Event and interrupts

I started studying interrupts on stm32 specifically the stm32f4 discovery board. i found this example in which you have to press the button to start the interrupt and push it again to stop it. In ...
0
votes
1answer
80 views

How does a stm32f chip set its GPIO speed? (hardware, not register setting)

The speed of GPIO of a stm32 chip is set by register of OSPEEDR. It shows: 00: Low speed 01: Medium speed 10: Fast speed (50MHz in library) 11: High speed (100MHz in library) My guess is ...
1
vote
1answer
71 views

Using an internal pull-down resistor on a microcontroller

I am using an STM32 microcontroller. If I configure a pin as input with a pull-down resistor for use with a button, do I also need to put a resistor between the input pin and VDD?
0
votes
1answer
107 views

How to get a .bin program on the STM32F4 discovery board?

Simple question. I want to program this board: http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF252419 On my computer I've generated a .bin file using this library: ...
0
votes
1answer
75 views

How do I tackle phone-microcontroller BlueTooth communication?

I have this bluetooth module I bought on RS a while back, and I was pretty keen to set it up with an STM32L152 development board I have handy. The only thing is, I'm not really sure what steps I have ...
0
votes
0answers
131 views

RS485 with ST Nucleo, not sending any data

I'm trying to communicate with an energy meter (MODBUS protocol) using ST Nuceleo F401RE via MAXIM MAX485 chip. I'm unable to receive any data from the energy meter. I can confirm that all my hardware ...
0
votes
0answers
223 views

STM32L1 SPI to nRF24L01 Not Working

I am currently trying to get spi communication up and running between a stm32l-discovery board (uses STM32L152RCT6 mcu) and a nRF24L01 module. I have the module connected to the discovery board via ...
1
vote
1answer
224 views

Is there any tool to read/write EEPROM of STM32L from the host?

I'm using STM32L152RTC6 (link to similar MCU line) with a built-in EEPROM (8k). I wonder if there's any tool that allows me to read/write the EEPROM from the host side, other than programming the MCU ...
0
votes
0answers
550 views

STM32F4 USB Device Not Recognized

I'm trying to get a very basic USB project running on the STM32F429I-Disco Board with Keil uVision 5. I used the STM32Cube application to configure and generate the code / uVision project. Everything ...
0
votes
1answer
121 views

Writing to FSMC is extremely slow

I have an ARM Cortex M3 STMF32F103VE http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/CD00191185.pdf, and I'm using an LCD with ILI9320 controller ...
1
vote
1answer
233 views

STM32L1 USART interrupt problem

I am trying to use stm32l152 discovery kit to communicate by using usart. Although I can send data on tx (I check this via pc), I couldn't get in interrupt function when data come (I send via pc and ...
2
votes
1answer
80 views

What are these components in block diagram of STM32?

Today, when I was seeing in STM32F103RET6 datasheet I saw some odd things(also, they are odd for me, probably you have enough information about these). if look in 12P of datasheet, you will see this ...