STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

STM32F103ZE Problem in use ADC Initial.

Posted on March 21, 2017 at 05:53Hello!STM32F103ZE Problem in use ADC Init.While (ADC_GetFlagStatus (ADC1, ADC_FLAG_ADONS) == RESET); An infinite loop occurs.Why does the 'ADC_FLAG_ADONS' Flag fail to initialize?What is the solution for infinite loo...

stm32f103 adc cause triangular wave on input

Posted on March 21, 2017 at 04:48Hi,I am doing a work with stm32f103 adc.The adc is triggered by tim8,and it works,but it cause a triangular wave on input.what's wrong ?The input pin is PA1,code is as below:/* ADC1 init function */void MX_ADC1_Init(...

Dan S by Associate
  • 303 Views
  • 0 replies
  • 0 kudos

stm32F0 discovery and printf on usart

Posted on December 13, 2016 at 06:46Hi all. I'm net to STM micros , so excuse the stupid question.I've set up USART1 on the stm32F0 discovery board, using the SPL , NOT cube.If I send data out the usart using the 'USART_SendData' function provided b...

Rob1 by Associate II
  • 1427 Views
  • 6 replies
  • 0 kudos

Resolved! Unwanted interrupts from unused tmr channels

Posted on March 20, 2017 at 21:44Thanks to Clive and JW my timer is starting tick but I am getting interrupts from channels 2-4 and I am only using channel 1. I use the following command sequence so I don't know why CC2-4 are set in the SR.  TIM_ITC...

John Hite by Associate III
  • 669 Views
  • 4 replies
  • 0 kudos

Resolved! No interrupt on tmr overflow

Posted on March 20, 2017 at 20:10STM32F437I am using TIM4 for input capture and an interrupt occurs when external events occur. However I stopped the external event and no interrupt occurs on overflow although the UIF bit is set in SR. Code snippet ...

John Hite by Associate III
  • 444 Views
  • 2 replies
  • 0 kudos

Resolved! Timer counting too fast in input capture

Posted on March 17, 2017 at 22:20Device: STM32F437My timer seems to count twice as fast as I think it should. My peripheral clock is running @ 42MHz and I have scaled it down to 1 KHz. I got things started and interrupts going thanks to help from JW...

John Hite by Associate III
  • 629 Views
  • 4 replies
  • 0 kudos

I2C slave transmitter HAL code

Posted on March 20, 2017 at 18:24Going through HAL code, I see thisstatic HAL_StatusTypeDef I2C_SlaveTransmit_TXE(I2C_HandleTypeDef *hi2c){ /* Declaration of temporary variables to prevent undefined behavior of volatile usage */ uint32_t CurrentStat...

achin by Associate II
  • 371 Views
  • 0 replies
  • 0 kudos

How to work with Code in QSPI-Flash via XIP?

Posted on March 20, 2017 at 13:58I have a QSPI-Flash with XIP, Driver is working fine. Flashing is possible with ST Link Utility. I'm using the System Workbench. I already defined the Memory Section for QSPI in the LD-File of the Project.Now I have ...

Nor Sch by Associate III
  • 783 Views
  • 3 replies
  • 0 kudos

HAL GPIO only pin related functions?

Posted on March 20, 2017 at 11:57In my new projects, i'd like to use HAL instead of stdperiph drivers to become more flexible for future hardware changes.Is there any reason, why HAL only supports functions for manipulating single pins but not a com...

knut2 by Associate II
  • 400 Views
  • 1 replies
  • 0 kudos

Pull up resistor ?

Posted on March 20, 2017 at 11:11Everyone,Do I need pull up resistor for SPI and GPIO port ? thanks#gpio #pull-up-resistor #spi