cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a 2D array of size array[10000][10000]

manoritesameer
Associate II
Posted on April 03, 2014 at 19:42

hello,   

      How to create a 2D array of size array[10000][10000]. I am getting the following error

          unable to allocate space for sections/blocks with a total estimated minimum size of 0x66d14 bytes in <[0x20000000-0x20020000]> (total uncommitted space  .

Thanks

#stm32f
6 REPLIES 6
Posted on April 03, 2014 at 19:50

No kidding, the part you're using doesn't have 100MB of space to give you.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
manoritesameer
Associate II
Posted on April 03, 2014 at 22:38

Thanks Clive for the prompt reply. 

One more Question how would I update the .DMA_BufferSize resistor as I update the PWM value by modifying the TIMx->CCRx resistor.

Thanks Again.

Posted on April 03, 2014 at 22:54

One more Question how would I update the .DMA_BufferSize resistor as I update the PWM value by modifying the TIMx->CCRx resistor.

I don't really understand the question, you can DMA_DeInit()/DMA_Init() to reconfigure a DMA transfer.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Andrew Neil
Chief III
Posted on April 03, 2014 at 23:34

''how would I update the .DMA_BufferSize resistor (sic) as I update the PWM value by modifying the TIMx->CCRx resistor (sic)''

I think you mean re

g

ist

e

r?

These are resistors: 

http://electronicsclub.info/resistors.htm

manoritesameer
Associate II
Posted on April 03, 2014 at 23:37

Sorry for the trouble, I figured that out. 

Also one more thing I want to communicate to the terminal through USB, Do u have a sample code. I am using the STM32F4 discovery board.

Thanks again...

Posted on April 04, 2014 at 00:39

I did port the VCP example to the STM32F4-DISCO

https://drive.google.com/file/d/0B7OY5pub_GfIcTJvY0RLaUViVnM/edit?usp=sharing

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..