forked from espressif/esp-idf
docs(lp-core): Added a note about how shared variables are initialized
This commit adds a note to the ULP RISC-V and LP-Core docs regarding how shared variables are initialized.
This commit is contained in:
@@ -97,6 +97,10 @@ To access the ULP LP-Core program variables from the main program, the generated
|
|||||||
ulp_measurement_count = 64;
|
ulp_measurement_count = 64;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
Variables declared in the global scope of the LP-Core program reside in either the ``.bss`` or ``.data`` section of the binary. These sections are initialized when the LP-Core binary is loaded and executed. Accessing these variables from the main program on the HP-Core before the first LP-Core run may result in undefined behavior.
|
||||||
|
|
||||||
|
|
||||||
Starting the ULP LP-Core Program
|
Starting the ULP LP-Core Program
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
@@ -103,6 +103,11 @@ To access the ULP RISC-V program variables from the main program, the generated
|
|||||||
ulp_measurement_count = 64;
|
ulp_measurement_count = 64;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
Variables declared in the global scope of the ULP RISC-V program reside in either the ``.bss`` or ``.data`` section of the binary. These sections are initialized when the ULP RISC-V binary is loaded and executed. Accessing these variables from the main program on the main CPU before the first ULP RISC-V run may result in undefined behavior.
|
||||||
|
|
||||||
|
|
||||||
Mutual Exclusion
|
Mutual Exclusion
|
||||||
^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user