Ask questions, find answers, and share insights on STM32 products and their technical features.
here is the code I am using to scanint ScanConfig(__const char * format, va_list args) { unsigned i=0; char ch = 0; char buffer[256]; int ret = 0; while((i<sizeof(buffer))&&(ch!='\n')&&(ch!='\r')){ HAL_StatusTypeDef status...
Dear ST folks,I'm trying to configure the HSE clock output over PA8 on stm32F103 from scratch.Here is my code.#include <stdint.h>#include "stm32f10x.h" // Device header int main (void){ RCC_TypeDef *pRCC; GPIO_TypeDef *pGPIOA; pGP...
Anyone has implemented their own HART stack? I need a very simple HART implementation, burst mode, just keep on sending out Universal Command 3. No need for HART input. Anyone can help me with this?
static void MX_ADC1_Init(void) { ADC_MultiModeTypeDef multimode; ADC_ChannelConfTypeDef sConfig; /**Configure the global features of the ADC (Clock, Resolution, Data Alignment and number of conversion) */ hadc1.Instance = ADC1; h...
would like to read ADC value for vbat consecutively.First read VbatSecond read VREFINT.implementation is like below. hadc1.Instance = ADC1; hadc1.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV4; hadc1.Init.Resolution = ADC_RESOLUTION_12B; hadc1.Init.Data...
I am trying to communicate with an adc chip acting as a spi slave to my stm32f3 spi master. So far I am unable to make it work.After attaching an oscillscope I found out that if i send only 8 bits of data to the slave , I get exactly 16 clock pulses ...
Hello everyone, I have an application that synchronizes the RTC with the current time using a 3G module. Once it is synchronized, the system gets the date and time every 5 minutes in order to store sensor samples with a real timestamp. Everything is ...
I am busy with the muRata module and sixfox on the discovery kit STM32L072. When i want to copy a bin file to the the board as external drive it gives a not enough space error. The total size of the disk is only 32 kb, while the documentation says th...
I tried two methods - my first code is as follows:FLASH_OBProgramInitTypeDef flashUserConfig = {0};flashUserConfig.OptionType = OPTIONBYTE_USER;flashUserConfig.USERType = OB_USER_IWDG_STOP;flashUserConfig.USERConfig = OB_IWDG_STOP_FREEZE;HAL_FLASHEx_...