I have started writing an i2c driver for the stm32f051c8 and have stumbled upon an issue.The code i use to test a very basic version is: RCC->AHBENR|= 1<<18; // gpio clock enable gpiob
RCC->APB1ENR|= 1<<21; // enable i2c1 clock
GPIOB->MODER|= 2<<1...
I am using a stm32f407 and i use this code inside a loop:/* Mount SD Card */
if(f_mount(&fs, "", 0) != FR_OK)
_Error_Handler(__FILE__, __LINE__);
/* Open file to write */
if(f_open(&fil, "first.txt", FA_OPEN_ALWAYS | FA_READ | FA_WRITE) ...
I'm trying to communicate between the nucleoh743 (master mode) and a TDC GP22 slave chip but came across this issue:I am expecting to read 0x27 but i always get 0x26. All the other bits from this 1 byte are correct so i was wondering if there somethi...
I am trying to code the stm32h743 for spi communication and i can't seem to transmit. I am using PA5 as SCK and PD7 as MOSI. I read the procedure required that is in the reference manual (49.4.9 https://www.st.com/resource/en/reference_manual/dm00314...
Yes i know a NAK is present as the correct device address is 0x50. When i transmit 0x59 i expect to get a NAK as it's the wrong address. What i am having an issue with is that when i try to send 0x50, the SCK and SDA lines don't show anything (they s...
I thought that just by adding "f_puts("\n", &fil);" it would change line and next data would be written after that. But now i realized it doesn't. I used your code for writing to the card and it works great.thanks a lot
Ok, although the timings weren't configured properly i figured i would send the received byte to a terminal via uart to double check. When the logic analyzer is connected to the SPI pins the terminal shows 0x26 and when i disconnect it it shows the c...