mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-19 14:26:01 -04:00
Merge branch 'docs/ulp_shared_variables_note' into 'master'
docs(lp-core): Added a note about how shared variables are initialized See merge request espressif/esp-idf!31655
This commit is contained in:
commit
8d489caed0
@ -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
|
||||||
^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user