Hi, Steve
Sorry to reply so late, my deep apology.
Which version of the NDK are you working with?
The NDK version I used is an old one :1.94.01.
Which NDK buffers are you trying to relocate?
The NDK buffer I'm trying to relocate is the TCP transmit buffer and receive buffer whose default size is 8192KB( if I'm right). The buffer sizes are defined as follows in the stack_test() function.
// TCP Transmit buffer size
rc = 128000; // default 8192
CfgAddEntry( hCfg, CFGTAG_IP, CFGITEM_IP_SOCKTCPTXBUF,
CFG_ADDMODE_UNIQUE, sizeof(uint), (UINT8 *)&rc, 0 );
// TCP Receive buffer size (copy mode)
rc = 128000; // default 8192
CfgAddEntry( hCfg, CFGTAG_IP, CFGITEM_IP_SOCKTCPRXBUF,
CFG_ADDMODE_UNIQUE, sizeof(uint), (UINT8 *)&rc, 0 );
Originally, the buffers with default size are located in the IRAM. With the increased size to seek higher speed, it's hard to hold them in the IRAM for my application.
What memory segment do you have configured for .data and .bss?
Both .data and .bss are assigned to IRAM.
Looking forward to your reply.