DMA-330 Won't Work on DE1-SoC [Baremetal]
I have the example project for the ADXL345 Accel that is on the Intel FTP site. I copied this and simply disabled the reads of the i2c0 RX Buffer. I set up the watermark level of the dma to 30 entries, I have 36 entries in the RX Buffer, but for some reason it won't transfer the data. I keep getting a status = -1 right at the API call alt_dma_periph_to_memory.
I've replaced the data destination to an internal buffer then to the SDRAM, still won't work. I've rechecked all the settings made sure everything is out of reset, configured properly, the i2c works as intended, the program is correctly setup in on chip memory, data buffers fill up, and I cannot find out why it won't transfer. I know I can do this in Linux no problem, but this is a learning project for myself.
Can anyone shed some light on the problem?