I write code and manuals for 36 years and I've learned that those are too often written by a person who fails to put himself in the readers position. A reader who's not familiar with the topic otherwise the material was not required in the first plac...
Hello All,I am trying to send some classic CAN messages via the FDCAN3 module on STM32G474CE device. I have only pins for FDCAN3 free. My FDCAN clock is PCLK1 with a frequency of 64MHz.When I try to transmit a CAN message, firstly there is no transmi...
Hello,my problem is that i can't get access to the ADC12_CCR register. I activated the corresponding Clock in the RCC_AHB2ENR register. In addition I compare the addresses of the register from the library with the data of the reference manual, they a...
MCU: STM32F411CEU6.IDE: STM32CUBE IDE 1.5.1Timer1 config:PWM generation mode, CH1+CH2No prescaler, Period=549, Repetition counter = 8DMA: Circular mode, memory->periph, halfword, mem increase CH1+CH2PWM start code:// Ensure 32-bit alignment just in c...
Hi .I am trying to program STM in boot mode. With controller operating on 3.3v with SPI speed less than 1.25MHz is working fine. While increase in SPI communication speed leads to get NAC not acknowledgment from STM controller in boot mode and i have...
I want to protect my code by writing OB using HALbool SetFlashReadProtection(bool state) { FLASH_OBProgramInitTypeDef OptionsBytesStruct = {0}; HAL_FLASHEx_OBGetConfig(&OptionsBytesStruct); if(state == true) { if(OptionsBytesStruct.RDP...
I am using the code :int read_adc_data(ADC_HandleTypeDef *ptr_hadc, uint32_t channelx){ uint16_t vrefint_cal; float adc_read_value = 0.0, adc_reference_voltage = 0.0; ADC_ChannelConfTypeDef sConfig; sConfig.Channel = ADC_CHANNEL_VREFINT; ...
I send the temperature value on a serial interface.In the live watch of the IAR tool, I can see the same correct value than the one sent on the serial interface.The problem occurs after a power-down/power-up of my board, like if something is not init...