So I am confused what is going on, I am using a stm nucleo g070rb and a w25q128fv eeprom from Winbond.
I can communicate alright through the stm32.
I have double checked the wiring for the analog discovery 2.
I am getting what appears to be the clock on the chip select line, and other weirdness.
If I disconnect the purple wire(D2) which is the CS from the analog discovery 2, the value does not change, I still see the clock on the select in the view.
Question
jiw
So I am confused what is going on, I am using a stm nucleo g070rb and a w25q128fv eeprom from Winbond.
I can communicate alright through the stm32.
I have double checked the wiring for the analog discovery 2.
I am getting what appears to be the clock on the chip select line, and other weirdness.
If I disconnect the purple wire(D2) which is the CS from the analog discovery 2, the value does not change, I still see the clock on the select in the view.
For the program I am just doing:
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_8, GPIO_PIN_SET); HAL_Delay(10); HAL_GPIO_WritePin(GPIOA, GPIO_PIN_8, GPIO_PIN_RESET); HAL_SPI_Transmit(&hspi1, (uint8_t *)&EEPROM_RJEDEC, 1, 100); HAL_SPI_Receive(&hspi1, (uint8_t *)uart_buf, 3, 100); HAL_GPIO_WritePin(GPIOA, GPIO_PIN_8, GPIO_PIN_SET);
I am reading the JEDEC Manufacture
I sent 1 byte from the STM32 (master), and get 3 bytes from the Winbond (slave)
This works, I get 0xEF, 0x40, 0x18 from the Winbond chip and I can print it out from the stm32.
So why is the waveforms view not showing this and why is the CS line going up and down instead of the clock? MISO is also not showing the data.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.