11.. _constrained :
22
3- MicroPython on Microcontrollers
3+ MicroPython on microcontrollers
44===============================
55
66MicroPython is designed to be capable of running on microcontrollers. These
@@ -12,7 +12,7 @@ based on a variety of architectures, the methods presented are generic: in some
1212cases it will be necessary to obtain detailed information from platform specific
1313documentation.
1414
15- Flash Memory
15+ Flash memory
1616------------
1717
1818On the Pyboard the simple way to address the limited capacity is to fit a micro
@@ -58,7 +58,7 @@ heap fragmentation. In general terms it is best to minimise the repeated
5858creation and destruction of objects. The reason for this is covered in the
5959section covering the `heap `_.
6060
61- Compilation Phase
61+ Compilation phase
6262~~~~~~~~~~~~~~~~~
6363
6464When a module is imported, MicroPython compiles the code to bytecode which is
@@ -85,7 +85,7 @@ imported in the usual way. Alternatively some or all modules may be implemented
8585as frozen bytecode: on most platforms this saves even more RAM as the bytecode
8686is run directly from flash rather than being stored in RAM.
8787
88- Execution Phase
88+ Execution phase
8989~~~~~~~~~~~~~~~
9090
9191There are a number of coding techniques for reducing RAM usage.
@@ -292,7 +292,7 @@ The Q(xxx) lines should be gone.
292292
293293.. _heap :
294294
295- The Heap
295+ The heap
296296--------
297297
298298When a running program instantiates an object the necessary RAM is allocated
@@ -391,7 +391,7 @@ Symbol Meaning
391391Each letter represents a single block of memory, a block being 16 bytes. So each
392392line of the heap dump represents 0x400 bytes or 1KiB of RAM.
393393
394- Control of Garbage Collection
394+ Control of garbage collection
395395~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
396396
397397A GC can be demanded at any time by issuing `gc.collect() `. It is advantageous
@@ -420,7 +420,7 @@ initialisation the compiler may be starved of RAM when subsequent modules are
420420imported. If modules do instantiate data on import then `gc.collect() ` issued
421421after the import will ameliorate the problem.
422422
423- String Operations
423+ String operations
424424-----------------
425425
426426MicroPython handles strings in an efficient manner and understanding this can
0 commit comments