2014-04-21 03:13 PM
I have to store 50000 samples. The information would be stored in an Array. Unfortunately the maximum size my program allows me to allocate the array space is 10000 because it complains could not allocate block. how do I get this information.
How do I do this.thanks #!rocketscience #basic-arithmetic #systems-analysis #filling-a-leaky-bucket #stm32-array #pigs-might-fly2014-04-21 04:05 PM
How do I do this.
Pick a part that has adequate memory provisions for the size and type of data array you're attempting to use.2014-04-22 01:28 PM
2014-04-22 02:48 PM
Think about it:
How much memory do you require to store one single sample?Knowing how much one sample takes, how much will 50000 take?You will need at least that much memory - won't you?2014-04-22 03:16 PM
I have no idea how to do that . Can u please give me an idea how to do that.
My ability to help you is seriously impaired by your inability to explain your problem and context in a meaningful way. I'd throw you a life jacket, but I have no idea where to throw it.''If you have questions please try to formulate them into a coherent thought, assuming I know nothing about you, your board, your development environment, your project or the tests you may have already done.''2014-04-23 08:57 AM
2014-04-23 09:15 AM
The ADC does not capture floats, it captures 12-bit values stored in 16-bit words, ie 100000 bytes, floats take 32-bits (4 bytes) each, so 200000
Why can' the PC do the conversion? The STM32 is resource limited. You'll have to think about things differently with embedded. The STM32F407 has 64KB of CCM (No DMA support), 128 KB of SRAM, so a total of 192KB, 196608 bytes if you could use it all, do you see a problem here? Why can't you do the 12-bit integer to 32-bit float conversion AFTER you have captured all the raw data, as you transmit it via the USART?2014-04-23 12:39 PM
''I need to store more than 50000 samples of data by using the ADC. Once I get 50000 samples, I transmit that information over the UART to my PC''
Why collect them all first, and then send them all?
Why not send them as you get them - ''streaming'', if you like...2014-04-23 01:09 PM
Why collect them all first, and then send them all? Why not send them as you get them - ''streaming'', if you like...
Presumably because there is a significant disparity of the in-flow and out-flow rates.2014-04-23 04:10 PM
Maybe; maybe not.
Even if there is, the buffer requirement would still be reduced if it is constantly being ''drained''...