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:
Sudeep Mohanty 2024-06-21 09:15:37 +02:00 committed by BOT
parent 1bab9da223
commit dbde548875
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
^^^^^^^^^^^^^^^^