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
1
vote
1answer
6k views

STM32F4 interfacing with NRF24l01+

Like the title says I want to use a NRF24l01+ with a STM32F4. So far, I realized the communication with two NRF24l01+ and two Arduino but I would like to exchange on Arduino with the STM32. I looked ...
0
votes
2answers
2k views

STM32L-Discovery programming on Linux with Eclipse

my problem is following. How to configure Eclipse + ARM in order to code for this microcontroller? I installed Eclipse and ARM plugin for it but I can't understand what to do after that :(
2
votes
2answers
2k views

Question about STM32F4 DMA

I have been doing some experiments with the STM32F405 and audio and discovered an interesting issue and wonder if anyone else has encountered the following? I have a stereo codec CS4344 running at ...
2
votes
2answers
1k views

The GCC Ride7 STM32 startup script does not jump into SystemInit function

We are a robotics association from ENSEIRB-MATMECA (Bordeaux, France). We are developping some boards and a template project for STM32 devices. One of our boards embed a STM32F103C4 microcontroller. ...
1
vote
1answer
731 views

What is the purpose of CRC_IDR in STM32 processors?

The STM32's CRC calculation unit has a register named CRC_IDR. This 32 bit register allows the user to store 8bits of data. There seems to be no link between this register and rest of the CRC ...
1
vote
1answer
497 views

Parameters to compare microcontrollers for low power consumption?

How do I select a microcontroller with low power consumption? -for MSP430 series we can compare using \$\mu\$A/MHz at active state. Similarly how to compare this with other MCU's like PIC and STM ...
2
votes
3answers
989 views

Remote-debugging stm32f4

I'm rather unexperienced on the field of microcontrollers, I come from a Java background so the question might seem a bit noob but I didn't find much information on this. So is it possible to debug ...
2
votes
2answers
15k views

STM32F4 (Discovery board) universal delay (milisecs) function

On the net, I have found following function for delay in miliseconds for STM32F4 (Discovery board MCU: ...
1
vote
2answers
437 views

What book or website should i refer for stm32f0 development from scratch (Ihave worked on AVR microcontrollers ) [closed]

What book or website should I refer to for STM32F0 development from scratch (I have worked on AVR microcontrollers)? I am searching on net for good resources but unable to do either they are very ...
10
votes
3answers
6k views

What happens on the STM32 when two pins are configured to have the same alternate function?

Reading through the STM32F051 manual, it looks like it's possible to configure the same alternate function on two pins; for example, you could have multiple USART1_TX pins at the same time. Or for ...
2
votes
1answer
5k views

Making a high speed USB communication from STM32F4 and Java on Linux PC

I have a STM32F4Discovery board and I try to communicate between a c program(with no OS)on the board and a Java program on ubuntu pc. I have found many tutorials like this about USB but they all try ...
0
votes
2answers
2k views

STM32F4 pulse generator

With STM32-H407 (STM32F407ZG), I am trying to make rectangular waveform output like; ---_ _ ---_ _ _ _ _ --- _ _ ---_ _ _ _ _ --- _ _ ---_ _ _ _ _ _ With numbers ---_ _ ---_ _ _ _ _ _ is 125us (0....
2
votes
0answers
807 views

LIS302DL Accelerometer WHO_AM_I command

I've setup the behaviour of LIS302DL accelerometer IC using following code: ...
5
votes
2answers
1k views

Why did the datasheet mention this interface?

I have a ST32F103RET6 MCU. I got the datasheet (and refrence manual). When I read the datasheet (and refrence manual), I found this section: Now I have several questions about it: Why does the ...
1
vote
2answers
2k views

Is it normal to brick the STM32F0 with certain software pin configurations?

I've flashed the following code to my shiny new STM32F0DISCOVERY board. The comments explain what I thought it would do. ...
1
vote
0answers
188 views

STM32F407 and ST-LINK not compatible?

Without knowing how I should approach to STM32 development board, I purchased Olimex STM32-H407 which would work with OpenOCD. and I purchased ST-LINK/V2 hoping that any JTAG cable would work. My PC ...
1
vote
1answer
3k views

How to reduce the data rate?(OV7670 + AL422B(FIFO) Camera Module)

I bought this module: OV7670 + AL422B(FIFO) Camera Module and I want to send the live video of the camera by this NRF24L01 but I have several questions. Is the RF module suitable(NRF24L01) for this ...
0
votes
3answers
773 views

STM32-H407 write program with USB mini cable (USB-OTG)

I have Olimex STM32-H407. Manual says you require JTAG/SWD cable. Until I get JTAG/SWD cable, I am trying to write program on the board with USB mini cable. Is it possible? My PC or IDE (...
2
votes
1answer
1k views

What is the purpose of STM32's noise-wave generation function?

if you see in ST32f103ret6 unser manual or datasheet, you can to see a feature of DAC unit with this name: noise-wave generation. now i have several question about this feature: What's the usage of ...
18
votes
2answers
16k views

What is the difference between an injected and regular STM32 ADC channel?

The STM32F1's reference manual describes "regular" and "injected" ADC channels but is not clear on the difference. What is the difference between the two types and when might you use one or the other?
-1
votes
1answer
2k views

ADC with STM32F3

I want to convert 4 analog input in the same time, I chose the stm32f3 discovery because it contains 4 ADCs. The problems is that I don't know how to get them working together. I have read that only ...
10
votes
1answer
9k views

What's the usage of the three boot mode of STM32f103?

If you see in refrence manual of STM32f103, you can see three boot mode for it. well, What's the usage of the three boot mode? please say to me by example for each mode.
2
votes
1answer
1k views

Help for find Camera Datasheet or interface to st32f103

I want to use of S302's Camera(the S302 is a mobile phone with a good camera) and interface it st32f103 but, unfortunately I can't find any datasheet for it. Also, I can find the schematic of Phone ...
8
votes
1answer
967 views

What's mean these microcontroller pin input/output modes?

I bought an stm32f103ret6. When I saw the reference manual, I saw that it has several I/O modes. For input: floating, pull-up, pull-down For output: analog, open-drain, push-pull I have already ...
4
votes
1answer
18k views

STM32 GPIO Configuration

I am trying to figure out some online resource to figure out how to configure the GPIO Registers on an STM32F4 Cortex M4 board. I only have examples for the Cortex M4 ...
2
votes
1answer
6k views

How to overwrite flash memory on STM32L series

I am trying to write a known pattern (ie 0xFFFFFFFF or 0x00000000) on top of already written flash memory, to invalidate portions of it for a primitive file system. But it doesn't work for me on the ...
0
votes
2answers
8k views

STM32 crashing to Default_Handler

My STM32F4 Discovery is crashing when I try to run the sin or sinf function with the FPU enabled and with the FPU disabled. ...
5
votes
1answer
16k views

STM32F103 low power mode (stop)

I've got a project where I'm trying to get the power consumption down as low as possible (on an STM32F103RCT6). I looked at ST's document on getting the STM32F2 power consumption down as low as ...
1
vote
1answer
6k views

STM32 F4 - ADC in Dual Mode Simultaneously

I am stuying the example from STM32 libraries (ADC_DualModeRegulSimu). I understand how the whole program works but I need some information and I have few questions about this code confronting to my ...
6
votes
1answer
18k views

STM32 Interrupt Priority (preemption) Problems

I have another problem (High resolution system timer in STM32) which I have tracked down (mostly) to this issue, and have created a test case here for the simplest STM32 processor I could find (on the ...
3
votes
3answers
13k views

High resolution system timer in STM32

I have some software running on an STM32F103 (I'd also like to be able to use the F4) where I'd like to be able to 'timestamp' events (such as interrupts on external pins) to the nearest microsecond (...
0
votes
3answers
916 views

Problem with pointer on ARM Cortex M4

I am working on a STM32f4 board and I have a problem with passing pointer as input in a function. I have my main : float32_t var; function(&var); And ...
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: ...
3
votes
1answer
4k views

Run IAR Program without Debugging

I'm having a simple problem with IAR Embedded Workbench, programming an STM32 using an ST-LINK/V2 programmer. I'm trying to run a program that temporarily switches off the JTAG pins, so I can't run it ...
7
votes
3answers
23k 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
1answer
1k views

How to handle conflicts between reference manual and reference design about ADC of STM32?

On page 207 of stm32 reference manual, it says that VSSA(power supply of ADC, negative) must be tied to VREF-(analog reference, negative). But when I refer to reference design of STM32(Evaluation ...
1
vote
0answers
697 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, ...
2
votes
2answers
3k views

STM32 I2S Interupt Usage

I was trying out a sound experiment, starting off with sample code which sent data to the Discovery F4's audio codec using I2S. The sample code used polling in the main loop and sent data when the ...
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: ...
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 ...
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
2answers
2k views

Still struggling with the STM32F051C8T6 bootloader

I've been reading the information available in ST.com about creating a bootloader for a STM32F0xxx microcontroller, and it says the following: "The bootloader is automatically activated by ...
1
vote
0answers
484 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
433 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 ...
5
votes
3answers
4k views

How to cut interrupt code to minimum?

I have some interrupt let's say from UART to make a real example: ...
1
vote
2answers
4k views

Sending ADC measurements with UART

I want to measure signal with ADC and send measurements to PC to generate plots. My code: ...
1
vote
1answer
615 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:...
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: ...