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
2
votes
1answer
1k views

STM32f2xx could not work with maximum frequency

I'm using default configuration (according to UM1061, RCC section) to configure an SMT32F215RG to work with 120MHZ CPU clock. here is my configurations: ...
1
vote
2answers
973 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 ...
7
votes
3answers
22k views

How to stock variables in FLASH memory

I am working with a STM32 eval-board from STMicro which includes a ARM Cortex-M4 processor. I need a LUT for cosinus and sinus (read-only variables). I need to manage my RAM memory therefore I want to ...
1
vote
0answers
693 views

How start running STM32 firmware from IROM2 in Keil Microvision?

I'm developing an embedded application using Keil MicroVision 4 & STM32F103RE I've splited Flash memory of device into two areas (IROM1 & IROM2) using IDE target options panel (Target tab, ...
1
vote
0answers
1k views

stm32f2xx HSI configuration does not work correctly

I'm using below settings (in SystemInit function) to configure a STM32F215RG MCU to work at maximum speed (120MHZ) with USB support: ...
0
votes
1answer
599 views

STM32 and GDB - Watchpoint

I'm reading the book http://www.cs.indiana.edu/~geobrown/book.pdf and I have a question regarding the Exercise 3.1.2 on page 50. It ask to set a watchpoint on i. I set a watchpoint but it never break ...
2
votes
0answers
1k views

IAR EWARM project doesn't run with STM32 startup file

I'm attempting to test out some basic programs on an STM32L151RD (Cortex-M3) using IAR's Embedded Workbench. I'm using an ST-LINK/V2 programmer. I've downloaded the Standard Peripherals Library and ...
0
votes
1answer
2k views

How to properly connect to a RN-171 Roving Network's WiFly module?

I have this WiFly device and I can't seem to make it work correctly. I've connected both available interfaces (UART and SPI) to my microcontroller (STM32F107). For now, just the UART interface would ...
2
votes
1answer
3k views

How to realise bidirectional ports in FSMC function of STM32?

I am using FSMC(Flexible static memory controller) function of STM32:reference manual.On page 494 of referencec manual, the data bus should be bidirectional. It is reasonable but i have no idea how to ...
1
vote
0answers
481 views

Burst mode data errors on I2C

I'm using burst mode to read 14 bytes from a sensor via I2C running at 400KHz. The problem is that there are periodic errors on the last byte of the packet, that come in roughly every 8 reads. The ...
0
votes
1answer
431 views

Creating a bootloader for STM32F051C8

I need to design the hardware to load my custom programs into a STM32F051C8T6 microcontroller and I'm not sure of which pins should be connected to what and I wouldn't like to do things wrong. I've ...
1
vote
1answer
609 views

To get rid of useless redundancy--do I realy need a voltage supervisor?

I am using a voltage supervisor from MAXIAM(MAX7634A). It monitors VCC_3V3 and VCC_-3V3(I use LM358 to make it a positive one).Power supply distribution is shown below: VCC_3V3: stm32f103 EMP570T144 ...
2
votes
1answer
1k views

what is logic contention when using a voltage supervisor?

I am using a voltage supervisor from MAXIAM (MAX6734A).I am confused about design notes in page 11. so,what is logic contention? the uP that I want to monitor is STM32F103ZET6.I read its datasheet:...
2
votes
1answer
4k views

Clearing lockup after double fault

I'm debugging an STM32 with gdb. For some reason my program crashes, and gdb gives the following. Note: automatically using hardware breakpoints for read-only addresses. stm32f2xxx.cpu -- ...
5
votes
1answer
10k views

Problems with UART on STMF4 Discovery Board

I have some problems with UART comunication. My platform is STM32f4 Discovery Board with STM32f407VG. First my system setup: ...
0
votes
1answer
988 views

IAR errors about extern and global vriables

I want to get values of a global array in a c file. the print screen of code is shown below: 'data' is the global array and 'slave_buffer_rx' is another global array defined in this file to get ...
-4
votes
3answers
4k views

Using array as global variables in IAR (STM32) [closed]

I have defined a global array in main.c: __IO uint8_t data[3]={0,0,0}; then, I extern and assign vlues to this array in another c file: ...
1
vote
0answers
538 views

JLNINK(SWD)+IAR can not debug stm32: communication error

guys. I am using J-link with SWD interface to debug my STM32F103VCT6 in IAR. I can enter download and debug mode but I can not use "step over" or "stop" function. Once I use one of them I will get ...
2
votes
1answer
10k views

TLP280-4 Optocoupler on 12/24V inputs

There is a STM32 device which has to detect several signals from other devices. The voltage of these signals can be 12V or 24V. Also these signals can be positive (i.e. 12/24V) or negative (connected ...
3
votes
2answers
5k views

how can a GPIO of stm32 have many alternative functions?

I am working on the assignments of pins of STM32F103ZET1. On page 31 of datasheet, it says that PA0 has many alternative functions: ...
4
votes
1answer
2k views

Problem with I2C EEPROM communication

I have a STM32L MCU connected to M24LR64E, an I2C EEPROM. Previously i had this setup working but then i changed some things (layout, firmware) and somehow i screwed the I2C and it is not working now. ...
11
votes
7answers
14k views

I2C slave address not acknowledged (sometimes)

I'm trying to communicate with a remotely connected FRAM (FM24C04 from Ramtron) by using I2C. This memory is embedded on a board that can be inserted and removed at any time to/from the system (...
1
vote
1answer
519 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 ...
0
votes
2answers
7k views

Frequency measurement with STM32

This question is mainly a query for an advice. I am trying to implement a frequency meter on STM32F4. Up to this point I have a working ADC converter with DMA and a timer which checks for the current ...
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 ...
0
votes
4answers
2k views

Do you know how to use USART on STM32?

I've been doing USART on STM32 and got this at putty: Actually I want to display : printf("* Thank you for using the board"); Do you have idea why ?
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 ...
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 ...
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 (...
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?
13
votes
3answers
9k views

Recommendation for default settings for unused pins on an STM32 (ARM Cortex M3) - pull up/pull down?

We are currently using various variants of the STM32 microcontroller family. I would like to know the following: 1) What are the recommended default settings for pins of the microcontrollers in ...
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 ...
4
votes
4answers
30k views

How to enable serial emulation through USB in a STM32F4 Discovery board?

I've been searching for this and still haven't found anything about it. This board connects directly to the host PC with a USB bus. Is it possible to emulate a serial port in this case?
-2
votes
1answer
946 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
801 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 ...
-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
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 ...
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 ...
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 ...
8
votes
4answers
9k views

STM32 ADC Noise 2

I have just tested my second design with STM32F2, now it is STM32F207ZFT6, the ADC behaviour is the same as in my first application - strong noise in ADC. Noise of current input without any ...
0
votes
1answer
708 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 ...
1
vote
1answer
897 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: ...
6
votes
1answer
513 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. ...
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 ...
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. ...