I would like to change the frequency of the RPI, how can I do that, I'm using low level programming. Also how can I get the used memory and free memory?
-
You mentioned you are using low level programming. What is it? Do you want to dynamically change the clock with your software? Or you just want to change it once and for all?– Morgan CourbetCommented Dec 5, 2012 at 14:37
-
I just one to change once, on the startup– MokusCommented Dec 5, 2012 at 14:43
-
What frequency?– Piotr KulaCommented Dec 7, 2012 at 9:37
2 Answers
If you are using a raspbian based distribution you can use "raspi-config" to change the memory-split, overclock your raspi and many more.
To get the memory usage, try the following command, this will give you usage in MB.
free -m
Are you referring to the SOC frequency? It currently cannot be set dynamically (while the RPi is on). But there should be a firmware update sometime soon, that enables this. Keep an eye out for it. If your speaking not dynamically, then the overclock values can be changed in the /boot/config.txt file. Refer to this link