Skip to main content
manoritesameer
Associate III
April 3, 2014
Question

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

  • April 3, 2014
  • 6 replies
  • 1045 views
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
    This topic has been closed for replies.

    6 replies

    Tesla DeLorean
    Guru
    April 3, 2014
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    manoritesameer
    Associate III
    April 3, 2014
    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.

    Tesla DeLorean
    Guru
    April 3, 2014
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Andrew Neil
    Super User
    April 3, 2014
    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

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    manoritesameer
    Associate III
    April 3, 2014
    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...

    Tesla DeLorean
    Guru
    April 3, 2014
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..