Conceptual Question (USB Data Transfer)
Posted: Tue Jun 04, 2024 9:58 am
Hello everybody,
i would like to build an XSFV Player (CPLD Programmer) with ChibiOS. I already have a working Version on: (Github).
The Board is a STM32F401 "BlackPill" Board.
I have a modified communications protocol from an old project which uses a block transfer with checksum. The client on the PC Side is written in python3.
First Question: is this necessary with USB Transfer (ttyACM USB-Serial Implementation)?
For now it works fine because it transfers the whole Data in one swoop (~29kB), but this only works with the XC9572, for different CPLDs the data size is too big for the RAM available (about 32k for the buffer works).
I need a transfer method which can send data to the STM32 over USB and this one can stop or slow down the transfer so i can have a progress bar in python. It would be much easier without the checksum calculation.
Second question: what would be a good way to implement this using chibios "tools"?
Thank you.
Robert.
i would like to build an XSFV Player (CPLD Programmer) with ChibiOS. I already have a working Version on: (Github).
The Board is a STM32F401 "BlackPill" Board.
I have a modified communications protocol from an old project which uses a block transfer with checksum. The client on the PC Side is written in python3.
First Question: is this necessary with USB Transfer (ttyACM USB-Serial Implementation)?
For now it works fine because it transfers the whole Data in one swoop (~29kB), but this only works with the XC9572, for different CPLDs the data size is too big for the RAM available (about 32k for the buffer works).
I need a transfer method which can send data to the STM32 over USB and this one can stop or slow down the transfer so i can have a progress bar in python. It would be much easier without the checksum calculation.
Second question: what would be a good way to implement this using chibios "tools"?
Thank you.
Robert.