Hi Michael,
thanx for your reply...registers are indeed already volatile...no problem about that....
The user guide states that writing the reset bit twice reset sgdma...no indication about values to be written... :confused:
I found that (in my case) the reset bit must be set to 1 to activate sgdma reset....
Therefore the right command is (or-ing):
rx_sgdma->control |= ALT_SGDMA_CONTROL_SOFTWARERESET_MSK;
rx_sgdma->control |= ALT_SGDMA_CONTROL_SOFTWARERESET_MSK;
And-ing the bit doesn't reset....now tftp also works without any problem...;)
Carlo