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:
Sudeep Mohanty 2024-06-24 17:57:05 +08:00
commit 8d489caed0
2 changed files with 9 additions and 0 deletions

View File

@ -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
--------------------------------

View File

@ -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
^^^^^^^^^^^^^^^^