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
1answer
29 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
17 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
31 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
55 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
55 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
41 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
20 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
71 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
63 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
187 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
63 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 ...
-1
votes
0answers
39 views

Is it possible to communicate between stm32f4 discovery and pc without hardware between them?

I want to send data to my pc via usart from my stm32f4 discovery board. As indicated in the title is it possible to establish this communication without any addition hardware between them? Thank you ...
0
votes
1answer
44 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
68 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
29 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
70 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
52 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
49 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
204 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
61 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
100 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
73 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
81 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
91 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
64 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
0answers
50 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
116 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
224 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
71 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
63 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
96 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
71 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
112 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
181 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
177 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
443 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
105 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
199 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
78 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 ...
0
votes
0answers
129 views

ST nucleo and morpho pin

I have this problem, I am studying the ST NUCLEO STM32F401. I use it with Arduino shield and it works very well. Now this board has some morpho pins that I want use, but I don't know how. For ...
4
votes
3answers
263 views

Calculating time spent by a function in Microcontroller Applications

I would like to write a simple profiler for my STM32F100VE microcontroller. I have seen that I can include time.h and based on the c standard functions I can use it, but I was confused about ...
0
votes
2answers
87 views

Low voltage (<3V) signalling on USB DP/DN - will it work?

I'm using a microcontroller (specifically, the STM32L1) that integrates a USB device full-speed interface. I want to supply it with just 2V VDD, which is within spec for that micro. But that means USB ...
8
votes
4answers
668 views

What are the differences between rand() function and RNG (Random number generator) peripheral?

I'm wonder for RNG (Random number generator) peripheral in STM32F4XXXX MCUs. look in this Reference Manual (page 748). On the other hand, we have the rand() function in stdlib library that do the same ...
1
vote
1answer
171 views

STM32 Protection Diodes and Voltage over VDD

I have a 3 color LED that I'm controlling from an STM32. VDD for my mcu is controlled by a switching regulator set to 3.0v . Unfortunately the forward drop on the the green led is 3.2 volts. This ...
1
vote
0answers
99 views

Few SPIs at the same time as a bus?

According to http://www.st.com/web/catalog/mmc/FM141/SC1169/SS1031/LN775/PF216846, All STM32F1xx-series MCUs (and up) "offer standard communication interfaces (up to two I2Cs, three SPIs, one HDMI ...
1
vote
0answers
231 views

STM32 - two errors in turns during programming

I'm trying to program STM32F107VCT6 via SWD and I'm constantly getting two errors in turns (literally): Error: Connect failed, check config and cable connection ...
1
vote
1answer
117 views

STM32F030F4 dev on Linux

I ordered a few STM32F030F4 chips in a TSSOP 20 package, and some dip adapters. I wired one up using a 8Mhz crystal and connected my st-link device to it via SWD. st-link detects it correctly as an ...
0
votes
0answers
367 views

STM32 Pwm Input Mode Problem

I am using Stm32f103 mcu and using TIM4 CH2 Pwm Input mode. My problem is, the data that I want to capture has minimum 0.75 us waweforms its about 250KHz frequency. I see the ccr1 and ccr2 values ...
0
votes
1answer
213 views

STM32F3Discovery & LSM303DLHC magnetic field data not updating

I'm having trouble reading the 6 magnetic field data registers from the LSM303DLHC on my STM32F3Discovery board. (OUT_X_H_M, OUT_X_L_M, etc) I used the STM32F3Discovery demo as an example for how to ...
1
vote
1answer
74 views

JTAG/SWD Data Logging

I would like to automatically poll and log certain memory locations on the STM32 I'm working with through the j-link debugger I am using to debug the system. Is this possible through the JTAG or SWD ...