DMA Transfer from NOR Flash to SRAM in S32G

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DMA Transfer from NOR Flash to SRAM in S32G

Jump to solution
164 Views
Norbane
Contributor II

Hi,

I'm trying to configure dma transfer from NOR flash to SRAM.  Currently, the copy is done with memcpy and its taking considerable amount of time(basically i am in a boot manager application copying some application image to SRAM with memcpy to jump to after to).

I tested first with a simple SRAM to SRAM copy and was able to do so.  When i tried NOR flash to SRAM, i had some bus error issue logged.  My question is, what's supposed to be the value in TCDn_SADDR? is it the NOR flash or should it be quad SPI buffer?  In the DMAMux section of the manual it mentions of using the 'always on' source for memory to memory to transfer and seems to fit my use case.  If using the quadspi buffer, it seems a bit a complicated process of configuring flash read commands, manually triggering flash read, implicitly carrying the dma transfers if my intuition is right.  But if this is the case, then is there some example implementation i can reference? Please advise. Thanks.

0 Kudos
Reply
1 Solution
52 Views
Norbane
Contributor II

Hi,

I've solved it.  It was the GVLD setting of the XRDC which was preconfigured for the project.  It restricted access to the ahb buffer raising the bus error.

Thanks anyhow for the reply, i'll still look into the example.

View solution in original post

0 Kudos
Reply
4 Replies
59 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Norbane 

Thanks for the reply,

For the requirement from you side, a useful example is the bootloader demo, which could be found from GoldVIP package, from the bootloader code, it fetch the images from QSPI to SRAM via DMA.

I hope it will help.

 

BR

Chenyin

0 Kudos
Reply
53 Views
Norbane
Contributor II

Hi,

I've solved it.  It was the GVLD setting of the XRDC which was preconfigured for the project.  It restricted access to the ahb buffer raising the bus error.

Thanks anyhow for the reply, i'll still look into the example.

0 Kudos
Reply
142 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @Norbane 

Thanks for the post.

May I know which version RTD is used in your work? it is tested based on your custom board or RDB/EVB? s32g3 or g2?

 

BR

Chenyin

0 Kudos
Reply
99 Views
Norbane
Contributor II

Version 5.0.0(from what i can gather on available files).  The board uses s32g274a. 

0 Kudos
Reply