STM32 MCUs Products

Ask questions, find answers, and share insights on STM32 products and their technical features.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

I2C problems - ADDR bit is not set

Posted on May 24, 2014 at 11:45Hi everyone, I'm trying to implement I2C1 on stm32f4-discovery to let the kit contact with a light-to-digital sensor TSL2581CS ..In the following code, the <b>I2C_CheckEvent(I2Cx, I2C_EVENT_MASTER_TRANSMITTER_MODE_SELE...

Why always to stop clock for read by SPI interface ?

Posted on May 19, 2014 at 01:48uint8_t P_LIS302_Read1Adr(uint8_t adr) { uint8_t ret_wert=0; uint8_t spi_wert; // Chip Select to Lo P_LIS302_CS( Bit_RESET);// read an address spi_wert=(adr&0x3F); spi_wert|=0x80; // 0b1000 0000 or // Send address...

gusonela by Associate II
  • 930 Views
  • 5 replies
  • 0 kudos

Frequency Meansure

Posted on May 15, 2014 at 17:06 Hi,  I am using uvision4 with stm32f1xx to meansure frequency counting the time of the falling edge pulse. I need a high precision to meansure frequency from 0Hz to 240Hz. The first thing that I do was to set the pre...

felipe by Associate II
  • 3081 Views
  • 20 replies
  • 0 kudos

dma issue when writing to TIM1->BDTR

Posted on May 23, 2014 at 20:15 whenever i perform the dma transfer, I always get a transfer error on the write to TIM1->BDTR. If I write to a different peripheral register, such as TIM3->ARR, it succeeds. Any thoughts? TIM_TimeBaseIni...

mhage by Associate II
  • 630 Views
  • 2 replies
  • 0 kudos

STM32F2xx FSMC address bus assignment

Posted on May 23, 2014 at 16:07One thing I have not been able to find in the datasheet: if the FSMC is being used to access 16-bit memory, what does A0 do? I'm a bit confused about this. If BCR.MWID is 00 => 8-bit data width, you have to address ind...

fpeelo by Associate II
  • 812 Views
  • 2 replies
  • 0 kudos

Backslashes in F429DISCO BSP

Posted on May 05, 2014 at 22:36Hello Everybody, in the process of compiling some of the Examples for the STM32F429DISCO on a linux machine I noticed that Include paths are specified using backslashes instead of slashes. Obviously, backslashes only w...

lukas2399 by Associate II
  • 1173 Views
  • 7 replies
  • 0 kudos

[STM32F30x.h] Bit mask error for RCC_AHBRSTR_XXXX

Posted on May 22, 2014 at 04:27hi, I found there is a problem with the bit mask for the RCC AHBRSTR Register in the stm32f30x.h.   * @file    stm32f30x.h   * @author  MCD Application Team   * @version V1.0.0   * @date    04-September-2012 #define ...

hohee by Associate
  • 734 Views
  • 4 replies
  • 0 kudos

Sneding STM205RBT6 in sleep mode

Posted on May 21, 2014 at 14:09Is below is right way to send STM32F205RBT6 in sleep mode:I have to do some task, then send MCU in sleep mode for 1 sec & then again execute those tasks.main(){ while(1) { // do some task configure_timer_1_sec();   //c...

STM32Cube FMC config against F439 BSP code

Posted on April 30, 2014 at 22:12I'm trying to setup my project on STM32Cube just like the BSP provided with the STM32F439 in the firmware examples. Looking at stm324x9i_eval_sdram.c I see that SDRAM is configured on Bank1 with 11 address bits and (...

kartik by Associate II
  • 553 Views
  • 2 replies
  • 0 kudos

TIM3 timer period

Posted on May 21, 2014 at 15:46Hi,I use STM32F427 chip. In my application, I am generating a 25.6 kHz signal using an external signal with 9.984 MHz. In order to do so, the calculation for timer period should be as follows; (9.984MHz / 25.6kHz) - 1 ...

asecen89 by Associate II
  • 1536 Views
  • 8 replies
  • 0 kudos