I need more DMA Buffer in FX3s

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

 Hello.

   

I design a USB system using FX3s chip. I need 32KB DMA buffer for USB control, and need more 32KB DMA buffer for SD card Control. but there are no allocated both memory. CyU3PDmaChannelCreate function returned a Error with number 16 meaned CY_U3P_ERROR_MEMORY_ERROR.  

   

I think system has limit memory 32KB for DMA buffer.

   

according to default application memory map in cyfxtx.c, buffer area size is 224KB. Can I use whole buffer region for DMA buffer??

   

Thank you

   

Regards

0 Likes
1 Solution
Anonymous
Not applicable

 Hi,

   

If you are not going to use the 2nd stage bootloader in your design, you can allocate the 32 KB of 2nd State Bootloader to DMA Buffers.

   

To do this, in the cyfxtx.c file, and change SYS_MEM_TOP from 0x40078000 to 0x40080000.

   

Regards,

   

- Madhu Sudhan

View solution in original post

0 Likes
2 Replies
Anonymous
Not applicable

 Hi,

   

If you are not going to use the 2nd stage bootloader in your design, you can allocate the 32 KB of 2nd State Bootloader to DMA Buffers.

   

To do this, in the cyfxtx.c file, and change SYS_MEM_TOP from 0x40078000 to 0x40080000.

   

Regards,

   

- Madhu Sudhan

0 Likes
Anonymous
Not applicable

 Thank you for your reply.

0 Likes