Ask questions, find answers, and share insights on STM32 products and their technical features.
I have a project for H743 with three SPIs.CubeMX creates the following code for initializing SPI pins:void HAL_SPI_MspInit(SPI_HandleTypeDef* hspi) { GPIO_InitTypeDef GPIO_InitStruct = {0}; RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0}; if...
Hi guys!I believe I found a bug with the SPI/I2S peripheral.The initial problem started here: https://electronics.stackexchange.com/questions/571749/function-pointers-causing-unexpected-behaviour-within-stm32h753zi-microcontrolle?noredirect=1#comment...
void delay_ms ( unsigned int i ){ unsigned int temp; SysTick-> LOAD = 9000 * i; // if subtle, the SysTick-> LOAd = 9 * i; SysTick->CTRL = 0x01; SysTick->VAL = 0; do{ temp = SysTick-> CTRL; // read the current countdown value }while ( ( temp & 0...
Hello! I am trying to communicate with ads1118 through spi3 using HAL library and STM32F205. According to datasheet, after sending the configuration data, we must wait for MISO to go low then we'll be able to retrieve data from the chip. But the MISO...
Hey guys.Im using stm32f103rct6 and sdio for sd card.My problem is that when using fatfs functions i get different errors that are random. For example once it gives me disk error but the next time it gives me disk not ready in a same operation.How ca...
Hi, thereI am developing a bootloader to upgrade the firmware through CAN. I have done it successfully with a STM32L431CCUx platform. Everything works when the SCB->VTOR is available. When it comes to this Cortext-M0 core (STM32F072), which has no VT...
I am using STM32F042K6TX. I set UART read data register not empty interrupt, I am sending and receiving data. This is how RXNEIE bit before it is corrupted. In this code when "i" is 2 it clears RXNEIE bit. I tried all numbers 0-255 and only 2 does t...
Hi,I implemented printf on my DISCO-F407VG board according to this tutorial: http://www.emcu.eu/how-to-implement-printf-for-send-message-via-usb-on-stm32-nucleo-boards/however, I found that if I do not include "\n\r" at the end of a print, I do not r...
I configured my spi to have a datasize of 8bits. However, its sending an extra '\0' after every letter and i can't figure out where this is coming from. Am running a Nucleo-F303k8.Here below, am trying to send a Hello World! message but it gets corru...