cancel
Showing results for 
Search instead for 
Did you mean: 

TCP Server LWIP using RAW api - data transfer from ADC dual buffered DMA

PTiha
Senior

Hi!

I want to transmit data synchronously (near real time) from ADC using DMA half- and full transfer interrupts.

I created an example project for NUCLEO-F429ZI using the LWIP RAW API. I don’t want to use any RTOS because I want to learn and understand RAW api as best I can.

The workflow I want to realize:

  • the client PC connects to NUCLEO
  • the NUCLEO sends ADC data to PC controlled by DMA half- and full transfer interrupts

My problem is that I don't know where I safely call tcp_write?

As I know, these function calls only safe in LWIP callback functions.

Because I want to synchronize data transfer to ADC DMA, tcp_poll is not good.

What can I do? It is safe calling tcp_write from DMA IQR handlers?

Thanks!

0 REPLIES 0