SAM4S Xplained Pro NAND->DMA->I2S Help needed

Discussion around product based on ARM Cortex M4 core.

Moderators: nferre, ncollot

jonavarque
Posts: 29
Joined: Fri Jul 10, 2015 6:35 pm

SAM4S Xplained Pro NAND->DMA->I2S Help needed

Fri Jul 10, 2015 7:09 pm

I am very new to the ATSAM4 but I've done projects with the Kinetis Kxx ARMS. I am looking for help using PDC (DMA) to read NAND flash (like the 29 on the ATSAM4S Xpl pro Board) out to an I2S port.

Is it possible and if so, where do I start? I am using Atmel Studio 6 to start with.



Any pointers would be appreciated.
blue_z
Location: USA
Posts: 1761
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAM4S Xplained Pro NAND->DMA->I2S Help needed

Sat Jul 11, 2015 1:00 am

jonavarque wrote:I am looking for help using PDC (DMA) to read NAND flash (like the 29 on the ATSAM4S Xpl pro Board) out to an I2S port.
Is it possible and if so, where do I start?
(1) Read the SAM4S datasheet. The PDC cannot transfer peripheral-to-peripheral. You need to use intermediate memory buffers.
(2) Use PIO before trying with DMA.

Regards
jonavarque
Posts: 29
Joined: Fri Jul 10, 2015 6:35 pm

Re: SAM4S Xplained Pro NAND->DMA->I2S Help needed

Sat Jul 11, 2015 5:50 pm

Thank you. I have to look into what the PIO is. Can I use DMA to transfer form flash to RAM and then again from Ram to the I2S?
blue_z
Location: USA
Posts: 1761
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAM4S Xplained Pro NAND->DMA->I2S Help needed

Mon Jul 13, 2015 3:55 am

jonavarque wrote:I have to look into what the PIO is.
Programmed I/O, as in using the CPU with either polling or interrupt.
Not to be confused with Parallel I/O as mentioned in Atmel SAM datasheets.
jonavarque wrote:Can I use DMA to transfer form flash to RAM and then again from Ram to the I2S?
Yes.

Regards
jonavarque
Posts: 29
Joined: Fri Jul 10, 2015 6:35 pm

Re: SAM4S Xplained Pro NAND->DMA->I2S Help needed

Thu Jul 16, 2015 5:21 pm

OH.. Ok. I am new to the SAM (1st Week, I used to use the Kinetis K-Series) so I didn't know if it was an acronym for something else..

Programmed IO won't do me any good at all. I need to move a lot of data out an I2S port while the MPU is busy with other things. The Docs for the SAM are so thin.
blue_z
Location: USA
Posts: 1761
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAM4S Xplained Pro NAND->DMA->I2S Help needed

Thu Jul 16, 2015 8:50 pm

jonavarque wrote:Programmed IO won't do me any good at all. I need to move a lot of data out an I2S port while the MPU is busy with other things.
You're misreading what I wrote. I did not suggest that you not use DMA at all, but as one step in the development of the drivers.
jonavarque wrote:The Docs for the SAM are so thin.
Yet you didn't bother or couldn't find the part that describes DMA capabilities?

Regards
jonavarque
Posts: 29
Joined: Fri Jul 10, 2015 6:35 pm

Re: SAM4S Xplained Pro NAND->DMA->I2S Help needed

Fri Jul 17, 2015 1:01 am

There is more than one 'part'. It's a bit of a stretch to assume I did not look at the doc. Don't take it personally , PIO, or even an exercise in it would just be a waste of time.



Thanks for your answer.

Return to “SAM4 Cortex-M4 MCU”

Who is online

Users browsing this forum: No registered users and 1 guest