Questions tagged [stm32]

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. The STM32 is based on the ARM Cortex-M family of cores.

Filter by
Sorted by
Tagged with
4
votes
1answer
2k views

STM32 UART USB communication with PC

I'm trying to set up my first project on an STM32F4 and I encounter a problem which consists on how to pass the measures I took from the MEMS accelerometer from the STM32F4 to the computer. I'm using ...
6
votes
2answers
2k views

Overwrote STM32F4 ST-Link pins

I overwrote by mistake ST-Link programming pins PA13 and PA14. Now I cannot reprogram my chip. How could I fix the problem? Datasheet
2
votes
1answer
23k views

Understanding Timers, Counters and Prescaler Registers on the STM32

So I'm trying to set up a very simple periodic interrupt on my STM32VL-Discovery board using the libopencm3 libraries on linux. I've looked at the documentation and I just want to verify with ...
1
vote
1answer
922 views

Using touchscreen cellphone lcd module for custom projects

I intend to use the capacitive touch based lcd modules of cellphones in custom embedded projects, I will be using this display with low cost stm32 boards. Has anybody experimented with this approach ?...
6
votes
1answer
17k views

ARM STM32 simulator like proteous and some good book to start with?

I want to get my hand dirty with ARM programming. I have 8051/PIC16F/PIC18F programing experience. I searched about ARM and find STM32 series cheap. But before buying i want to get handy with it via ...
1
vote
2answers
971 views

Error in final launch sequence Failed for OpenOCD (Olimex) for ARM (STM32fxx)

I am using openOCD in eclipse for the arm STM32F10x series. After writing the whole code and building everything without error in the program, I am going to debug it and I am getting an error after ...
2
votes
0answers
4k views

STM32F4 USART USB communication with PC?

I am trying to use STM32 provided example of USART called "HyperLink" which basically runs USART1 on ports PA9 and PA10. The problem is that my computer does not find any new COM ports. Do I need ...
1
vote
1answer
1k views

How to force Keil to compile with software float for STM32?

When I am trying to create a float variable in Keil to program STM32 it just crashes. I had a look online and as far as I read it tries to use hardware floating point unit (which is not enabled and I ...
4
votes
1answer
3k views

Unable to compile STM32F4 code sample with Eclipse

I'm trying to compile a simple STM32F4 sample using Eclipse with the GNU ARM Eclipse plugin from http://gnuarmeclipse.livius.net/blog/. I'm getting the following errors: and the structure is as ...
1
vote
1answer
518 views

AIC1863: How to use this MC to detect the presense of IR transmission?

I have build simple prototype on STM32 ARM Cortex microcontroller trying to understand the usage of AIC1863 IR Preamplifier for Remote Control System (see the handmade PCB on the breadboard). MCU ...
1
vote
1answer
4k views

Turn STM32F4 Discovery into an HID USB device

I'm getting an STM32F4 Discovery board delivered this week, and busy snooping around for ways to turn the device into a USB HID device. I basically want to write a simple application that will allow ...
4
votes
2answers
9k views

STM32F4 Discovery + Mac OS X + GCC + OpenOCD + Eclipse

I'm interested in buying an STM32F4 Discovery from ST Microelectronics. I'm using Mac OS X, 10.8 and would like to use a toolchain including GCC OpenOCD for debugging Eclipse IDE / IntelliJ IDEA ...
2
votes
1answer
3k views

Stm32f discovery internal clock

I have set up the STM32F4 discovery to generate audio with on-board codec using I2S and all is well when using the HSE external 8MHz crystal and ST clock configuration utility Excel tool. The ...
4
votes
5answers
9k views

SysTick accuracy in STM32

I have coded a simple timing check for my STM32F4 Discovery board. ...
2
votes
2answers
2k views

Wifi Module over UART with STM32 mcu

I am trying to integrate an off the shelf wifi module with STM32f2 mcu over UART interface. I need to test the board after laying out the board. Is there a way I can test this UART interface before ...
7
votes
2answers
9k views

Using CCM (Core Coupled Memory) in STM32F4xx

STM32F4xx microcontrollers have 128KB of SRAM + 64KB of CCM SRAM. CMM SRAM is hardwired to data bus so it is impossible to use it with DMA. What is the reason to add additional SRAM as CCM? Does it ...
1
vote
2answers
1k views

STM32F2 build environment

Would like to get an insight on how to build an environment with FreeRTOS +LWIP on eclipse for building a specific application on STM32. What do you recommend?
2
votes
2answers
11k views

funky values out of ADC on STM32

I've got an STM32 with a straightforward voltage divider bringing in a battery level line to an ADC. The problem is that I'm getting a value that doesn't make a ton of sense to me. According to my ...
2
votes
2answers
7k views

Setting RNG (Random Number Generator) boundries

I am learning STM32F4 board. I want to get number between 0-15 using RNG. I can`t set boundaries to get that values. Is there someone who has experienced with RNG or Can help me?
0
votes
2answers
353 views

Why do I have to unplug the STM32F4 discovery card to update program?

I am starting working on embedded programs using the STM32F4 discovery board and the Atollic Lite PC software. Every time I edit, recompile and attempt to download the revised program, it tells me ...
-2
votes
1answer
945 views

How can I understand FPGA?

I am learning Embedded programming. I already have the STM32F407 board. And there are many things to figure out. However, I've heard of FPGAs, and am wondering exactly what they are. Are they a ...
0
votes
3answers
798 views

STM32F407 board [closed]

I started learning embedded programming. But there are many things which is not understandable! There are many things like USART, GPIO, DMA, SPI, I2s, I2c....... and others. I have manual and other ...
6
votes
1answer
4k views

USB CDC-ACM Class Driver on STM32F4 [closed]

Simply my project is to connect a Huawi USB modem to my STM32F407 Discovery board, and start using AT commands to send text SMS. so here is what I've and what I want :) I've OTG USB capability on my ...
1
vote
1answer
3k views

How to connect an Arduino to a STM32F4 evaluation board?

I have a few Arduino and sensors on Arduino shields. I also have a STM32F4 Discovery evaluation board. For a hobby project, I have a feature on an Arduino (Ethernet port on my EtherMega) that I would ...
1
vote
1answer
1k views

PCB design of crystal/oscillator ok in this way?

I'm working on a 4-Layer PCB design for my quadrocopter. I'm using a STM32F407 and I need the 32 khz and 8 Mhz crystal. Is the pcb design of my crystal OK? My layer order: Sig1 VDD VSS Sig2 (...
-8
votes
1answer
8k views

STM32 can use variable 64bit?

I use IAR, how to use 64bit variable for 64 bit integer Arithmetic?
2
votes
4answers
7k views

USB-MIDI Interface with STM32F4 Discovery?

I've got an STM32F4 Discovery Board and I'd like to use/configure it as an USBMIDI device but this standard device class is not (fully) supported by the USB libraries supplied by ST. Any hint? Any ...
3
votes
1answer
6k views

Driving a LED with an open drain digital output

I need to drive an LED from an STM32F217ZG. So I was thinking about a classic circuit with a BJT. But then I saw that GPIO outputs of the microcontroller are configurable as open drain. Would this ...
2
votes
2answers
4k views

Throttling data from USB serial connection on STM32 microcontroller (flow control)

I've just integrated the code from ST's STM32 USB Virtual Com Port example (stm32_usb-fs-device_lib.zip from here) with my project in order to get the STM32 to appear as a Virtual Serial Port. ...
2
votes
1answer
3k views

STM32 NVIC interrupts after a reset / power-on

I have a few active-low signals that I want to interrupt on. During normal operation, the interrupts work just fine. However, on reset / power-on only rising edge is detected. In other words, on ...
6
votes
5answers
24k views

Set STM32 GPIO clock and data pins as fast as possible

I have an STM32 that toggles nine GPIO pins repeatedly (one clock pin and eight data pins to load an FPGA image using SelectMap). I am doing this using the standard library function ...
0
votes
1answer
707 views

Interface Camera: STM32vl Discovery Kit

I have, AA5620 camera , http://electronics123.net/amazon/datasheet/OV5620_CLCC_DS%20%281.3%29.pdf http://electronics123.net/amazon/datasheet/AA5620.pdf STM32VL Discovery board http://www.st.com/...
3
votes
3answers
2k views

SPI Flash: Half the bits are zero

I have an STM32 driving two very similar SPI Flashes, an N25Q and an M25P. Strangely, while my driver copes with the N25Q perfectly well, the M25P is only "half" working. What happens is that when I ...
2
votes
1answer
2k views

image distortion generating VGA signal on STM32 f4 using DMA

I'm trying to build a video generator using the STM32f4 (168MHz, using discovery board) + R ladder DAC to the VGA signal. The idea is not to be based on a framebuffer (this would limit the resolution ...
1
vote
1answer
894 views

Programming STM32-p207 using JTAG

I am a newbie learning to do ARM development. I have the following development hardware Olimex STM32-P207 & Olimex ARM-USB-TINY-H. The STM32-P207 user guide mentions the following: Note: ...
2
votes
1answer
4k views

STM32 SysTick timer - Doesn't run the alarm event

I'm attempting to write an interrupt to keep basic time measured in ticks on an STM32F407VGT (Discovery Board.) My interrupt appears to run once (though I cannot be sure), but it then crashes/locks ...
1
vote
3answers
2k views

Porting an STM32 PSRAM driver

I have an STM32F2 development board that came with a PSRAM (IS61WV10248BLL), and I have a custom board with a different PSRAM (MT45W8MW16BGX). I have managed to get the PSRAM on the development board ...
6
votes
1answer
512 views

EEPROM: Same driver for similar chips, different behaviours

I have two very similar eeproms (M24C01-x and M24C64-x), both driven by the same standard library provided for my STM32F2. For the M24C64-x, all is fine. However, the M24C01-x is interpreting the ...
1
vote
2answers
2k views

EEPROM page size

I have an M24C01-x EEPROM (1 KBit in size) driven by an STM32. The datasheet doesn't make it clear what the page size of that EEPROM is. I require it to properly configure the STM32 EEPROM driver. ...
2
votes
1answer
302 views

Maximum delay generation in STM32F207 [duplicate]

Possible Duplicate: Maximum attainable delay with Micro controller I need to generate delays for one hour, two hours, etc. What is the maximum possible delay that can be generated in the ...
3
votes
1answer
1k views

Composite video and DAC pin protection

My question is regarding the protection needed at the DAC pin generating the video signal. I am doing the generation on a STM32F4Discovery. The STM32F40x has a DAC built in and it can drive the signal ...
26
votes
8answers
31k views

How do I develop for STM32 discovery on Linux? [closed]

I have an STM32 discovery board and would like to be able to program it on Linux. What is the easiest way to do this?
4
votes
2answers
6k views

I2C: Is DMA required?

I'm trying to port some example code from the ST standard library examples. Specifically, there is a file called stm32_eval_i2c_tsensor.c that read and write ...
0
votes
1answer
209 views

STM32 dev kit: Which power pin, APP or EMU?

I need a voltage source for an external peripheral on my STM32 dev kit. (Reference manual available here.) I see from looking at the extension pins that there are two types of power pins: APP and EMU. ...
0
votes
2answers
682 views

STM32: Running many peripherals at the same time

I need to do EMC testing for a board controlled by an STM32F2. Ideally, I want to activate, full-speed, every peripheral on the board. That is, I want to be reading/writing as fast as possible to the ...
2
votes
2answers
4k views

What does the tamper button on my STM3220G-EVAL board do?

Reading through the reference manual of the STM3220G-EVAL development board (an ARM Cortex-M3 dev/eval board) I see that it has a "tamper button", also weirdly referred to as an "anti-tamper button". ...
0
votes
1answer
456 views

Soldering an SPI Flash onto a dev board

I have a development board for an STM32F2 (reference manual for the development board available here). I would like to solder on this SPI Flash chip on it. Can I use any GPIO pin that I'm not ...
9
votes
3answers
51k views

STM32: Performing a software reset

I am trying to perform a software reset of my STM32F2. (Reference manual available here.) The relevant page of the reference manual (page 80) gives little information. Basically, the ...
6
votes
1answer
7k views

Running executable from external SRAM

I have an STM32 dev board with some external SRAM. I would like to execute my code from that external SRAM, but my processor only supports booting from the Flash, internal SRAM or System memory (a ...
2
votes
2answers
2k views

What does 0x0800f298 in ?? () mean?

I'm using GDB to debug a program for a Cortex M3. In the functions where the program crashes, when I execute line by line (using n), I eventually get: ...