When I try to put together a 64-bit write from combining the FDRL register and a 32-bit RAM access to the other part (if it is not corrupted), the successful handling of a single fault is followed by a false signaling of a double fault with one data correct and the othe...
Every STM32 MCU comes pre-programmed with a system memory bootloader stored in the internal boot ROM (system memory). Its main purpose is to download the application program to the internal Flash memory through one of the available serial peripherals on the target device (e.g. U...
1.3 - Install STM32 CoresOpen “Arduino > Preferences”. In the tree view that pops up, go to “Arduino > Third party index url’s” and add the STM32 support package URL:https://raw.githubusercontent.com/stm32duino/BoardManagerFiles/main/package_stmicroelectronics_index.jsonHit “Apply ...
rt_uint8_t *core_uart_readdr; //rt_uint8_t *core_uart_curptr; //DMA current ptr DMA_Channel_TypeDef *s_channel; }; void DMA_usrt_get_buff(struct DMA_uart_publish* du,rt_uint8_t *buff, rt_uint32_t size); struct DMA_uart_publish* DMA_create_publish(DMA_Channel_TypeDef *dc)...
AN4991 Application note How to wake up an STM32 microcontroller from low-power mode with the USART or the LPUART Introduction The universal synchronous/asynchronous receiver transmitter (USART) and the low-power universal asynchronous receive tra...
STM32CubeMX generates code for FMC timing parameters like this, in a unit of clock cycle: /* SdramTiming */ SdramTiming.LoadToActiveDelay = 2; SdramTiming.ExitSelfRefreshDelay = 7; SdramTiming.SelfRefreshTime = 4; SdramTiming.RowCycleDelay = 6; SdramTiming.WriteRecoveryTime = 2; SdramTim...
How to monitor target memory with STM32CubeMonitor List of available flows with STM32CubeMonitor How to start a basic acquisition How to use advanced features How to log data in a .csv file How to record and replay data How to remove an unused probe How to handle errors How...
AN5212 Application note How to use STM32 cache to optimize performance and power efficiency for STM32 MCUs Introduction This application note describes the instruction cache (ICACHE) and the data cache (DCACHE), the first caches developed by STMicroelectronics. The ICAC...
STM32 USB MSC In this tutorial we will cover how to useUSB Mass Storage Class (MSC)in STM32. There will be two parts to this tutorial. In the first part we will allocate the RAM as the storage and read and write the data to this allocated portion. And in the second part, we ...
However, semihosting can be extremely slow. Another good option is to output debug information over the serial port (UART). We can call the STM32 HAL functions (e.g. HAL_UART_Transmit), but sometimes it’s easier to use the standard C library functions printf, scanf, and so on. To do...