mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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:
parent
1bab9da223
commit
dbde548875
@ -97,6 +97,10 @@ To access the ULP LP-Core program variables from the main program, the generated
|
||||
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
|
||||
--------------------------------
|
||||
|
@ -103,6 +103,11 @@ To access the ULP RISC-V program variables from the main program, the generated
|
||||
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
|
||||
^^^^^^^^^^^^^^^^
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user