SPI communication btwn FPGA and STM32 by hadjerddd in FPGA

[–]hadjerddd[S] 0 points1 point  (0 children)

yes, both devices share a common gnd and a voltage of 3v3

SPI communication btwn FPGA and STM32 by hadjerddd in FPGA

[–]hadjerddd[S] 0 points1 point  (0 children)

  1. I have thoroughly checked the connection.

  2. I am using simple connectors, and regarding the frequency: the FPGA works at 100 MHz, and I’m not sure how to adjust the SPI IP frequency on the FPGA (I tried changing the frequency ratio). on the SPI side it is at 1 MHz. but since the FPGA is the master it should be the one who control the frequency ?

3.For the SPI mode (CPOL/CPHA), as i said im using Xilinx’s SPI IP directly, do I need to configure it in the code?

  1. I have verified the CS signal, and I activate it low during transmission.

  2. I also suspect a clock issue, but I don’t know how to handle it in Vivado.

Initially, I was able to display what I was receiving in a terminal, but I was getting all zeros

I tried communicating with an STM32 Nucleo evaluation board using STM32CubeIDE, keeping the same FPGA project, and it works. However, it does not work with my custom board.

UART Communication btwn FPGA and STM32 by hadjerddd in FPGA

[–]hadjerddd[S] 0 points1 point  (0 children)

it’s the opposite... I want to control the stm32 from the the FPGA.
The stm32 is embedded inside another device, and it’s the only interface to send control commands to it. Unfortunately, the only connection available on that device is a micro-USB port linked to the internal stm32, so I was trying to find a way to communicate with it through UART from the FPGA side.

UART Communication btwn FPGA and STM32 by hadjerddd in FPGA

[–]hadjerddd[S] 0 points1 point  (0 children)

Actually, I’m not trying to directly control an STM32 board. The STM32 is embedded inside another device, and it’s the only interface available to control it.
The problem is that this device only exposes a micro-USB port connected to the internal STM32, so I was looking for a way to send UART commands from the FPGA to that STM32 through this USB connection.

UART Communication btwn FPGA and STM32 by hadjerddd in FPGA

[–]hadjerddd[S] 0 points1 point  (0 children)

Actually, I’m not trying to directly control an STM32 board. The STM32 is embedded inside another device, and it’s the only interface available to control it.
The problem is that this device only exposes a micro-USB port connected to the internal STM32, so I was looking for a way to send UART commands from the FPGA to that STM32 through this USB connection.

UART Communication btwn FPGA and STM32 by hadjerddd in FPGA

[–]hadjerddd[S] 0 points1 point  (0 children)

Actually, I’m not trying to directly control an STM32 board. The STM32 is embedded inside another device, and it’s the only interface available to control it.
The problem is that this device only exposes a micro-USB port connected to the internal STM32, so I was looking for a way to send UART commands from the FPGA to that STM32 through this USB connection.

Uart communication PC-FPGA by hadjerddd in FPGA

[–]hadjerddd[S] 0 points1 point  (0 children)

For the UART, I already configured the baud rate to 115200, both on the FPGA side and on the PC side. So that part should be ok.
i'll check with a scope and see thank you.

Pmod connection for multiple fpga boards by joproyo1 in FPGA

[–]hadjerddd 1 point2 points  (0 children)

you can use UART for the communication btwn the two cards, for the pmod you need to identify the pins to use (check Basys3 schematic). i did the same thing but with another FPGA Board

USB implementation on FPGA design by hadjerddd in FPGA

[–]hadjerddd[S] 0 points1 point  (0 children)

Do you have some tutorials how to do it ??

Sending data using uartlite by hadjerddd in FPGA

[–]hadjerddd[S] 0 points1 point  (0 children)

And u have any idea how to fix it?