Fixes macros that broke after changes were merged which started
using the unit address of partition nodes. This also fixes the
test to ensure devices not starting at 0x0 are properly checked
which previously would silently be unknown
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
Fixes an issue introduced recently whereby this would now wrongly
become an absolute address when it should be a relative address for
devices that have flash that does not start from an offset of 0.
A deprecated Kconfig has been added which will be set in devices
that are wrong and need their files updating, to allow users to fix
these issues.
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This reverts commit 8c02dde437.
For some unknown reasons, xt-clang emits two copies of
z_xt_init_pc if xtensa_mmu_init_paging() is in the same file
as xtensa_mmu_init() and xtensa_mmu_reinit(). So had to
revert the change.
Fixes#103055
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
The timer expiry function is executed by the system clock
interrupt handler. k_sleep() should not be called from
interrupt context. This change deferrs execution to system
workqueue.
Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
Apply chnages from dts-linter 0.3.9.
Improve compliance with DTS Coding Style which says that:
4) Hex values in properties, e.g. “reg”, shall use lowercase hex.
The address part can be padded with leading zeros.
Signed-off-by: Kyle Bonnici <kylebonnici@hotmail.com>
Update DTS linter apply lowercase hex values in DTS files
Improve compliance with DTS Coding Style which says that:
4) Hex values in properties, e.g. “reg”, shall use lowercase hex.
The address part can be padded with leading zeros.
This need dts-linter 0.3.9
Signed-off-by: Kyle Bonnici <kylebonnici@hotmail.com>
Due to 35835ed695ad84155dc9e22ce678e48a75a179fa
doing `stat()` on the mount point works now works, as it
should. Change the test to reflect that.
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
clang complains that this variable may be used un-itialized if
neither of the if's below are true. Let's just preset it to 0.
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
After the BOARD_QUALIFIERS alignment between CMake and Kconfig, the
CMake variable no longer has a leading '/'. Add the separator
explicitly when constructing IPM_REMOTE_BOARD.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Using the NET_L2_ETHERNET to enable OTP can create a build error
if we compile the ST Ethernet driver while setting NET_L2_ETHERNET to n.
In fact the MAC node points to the BSEC node that won't be instantiated
by the OTP driver resulting in a build fail.
Checking ETH_STM32_HAL instead of NET_L2_ETHERNET
will ensure that the OTP driver will be built when
the ST Ethernet driver is.
Signed-off-by: Julien Racki <julien.racki-ext@st.com>
Add shutdown script for nRF91 Serial Modem.
Also, set unused timeout values to zero.
Only the reset_ms is used when the switch from
CMUX back to AT mode UART happens.
Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
Add helpers for sending all the data in a buffer. This is
only useful for stream sockets like TCP.
Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
CoAP .well-known/core handling routine assumed that the "user_data"
pointer in struct coap_resource will be set to a valid struct
coap_core_metadata pointer, or left NULL. This approach is error
prone (application cannot use "user_data" field freely) and renders the
"user_data" field useless for other cases.
Therefore, introduce a separate "metadata" pointer within the struct
coap_resource specifically to configure the resource-related metadata,
and leave "user_data" for the applications to use freely.
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
If fs_stat() is done on a mount point treat
it like it is a directory, instead of leaving it to
the implementation of the filesystem.
The fatfs for example will fail.
That is also the reason `fs cd` from the fs shell
fails, when trying it on a mountpoint with fatfs.
This also makes the behavior of fs_stat() similar to the one
of fs_readdir(). Especially as both functions use the
`struct fs_dirent` to return the informations.
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
The sensing subsystem currently calls fetch and get from a timer ISR
context. A TODO had been previously added to move this to the runtime
thread context, which has been done in this fix.
Signed-off-by: Brandon Edmonds <bedmonds91@gmail.com>
When 4-byte addressing is enabled, update the page program LUT entry
to use the appropriate 4-byte page program command (SPI_NOR_CMD_PP_4B).
For octal mode (1S-8S-8S), select the correct page program command
based on address width:
- Use SPI_NOR_CMD_PP_1_8_8_4B for 32-bit addressing
- Use SPI_NOR_CMD_PP_1_8_8 for 24-bit addressing
This ensures the flash controller uses the correct command sequence
for page programming operations in both standard and octal modes with
extended addressing.
Signed-off-by: Albort Xue <yao.xue@nxp.com>