I try to measure instruction throughput with the following snippet:float bench(int tries, int repeat) { uint32_t t0, t1, d = 0; unsigned A0, A1, A2, A3, A4, A5, A6, A7, B = 1; A0 = A1 = A2 = A3 = A4 = A5 = A6 = A7 = 0; for (int i = 0; i < t...
I'm working with an STM32L031F4 and I'm trying to calibrate the ADC to no avail. I'm wondering what it is that I'm missing here. With the code snippet below, I never get out of the while loop and the CALFACT stays at 0 (if I understand correctly, C...
if someone can tell me how to write a byte to a FMC memory ?Reading a 16bit word looks correct and I can read the status correctlybut using A0 as register select, this is writing one 16bit word, it seems to write 4 times, A0 is jumping up and down, I...
Hi,Someone could help me, please?When I remove battery on my system (NO VDD and NO Vbat on the MCU), and I connect it back, the system do not start!!!!The only way to start the system is a NRST signal.ORSwitch OFF and ON only the VDD power supply (VB...
void sendchar(char c) { USART1->TDR = c; while(!(USART1->ISR & USART_ISR_TC)); }int main(void){ HAL_Init(); SystemClock_Config(); MX_GPIO_Init(); MX_USART1_UART_Init(); while (1) { sendchar('a'); }}// gpio config for pb6 (tx) /*Transmission Pin ...
I'm programming a custom board built around the STM32F401 MCU and I'm having a hard time configuring the system clock.I'm using a 8MHz external crystal and I'm trying to set up the PLL to get the maximum frequency given by the datasheet, i.e. 84MHz. ...
Hello, I have issues with STM32H743 UART. I use Nucleo 144 and I need to get GPS frames on UART7 (at 9600 baud) and display them on UART4 (at 115200 baud). If nothing is sent on UART4, reception of frames on UART7 is good but I want to display some v...
For example, if two pins are set, via the Alternative Function registers, to be the rx and tx for a UART, but that UART is disabled, what state are the pins left in if the various GPIO registers are not changed?Does the rx pin remain an input, and th...
Hello, I am new to the whole stm32 environment. I've always used arduino in the past and I wanted to try something new for this project.I am having a really hard time setting up an i2c connection between a nucleo board (MASTER) and an arduino(SLAVE)....