zephyr/soc/arm/nordic_nrf
Andrzej Głąbek 49bd19f3f2 soc: nrf5340: Fix busy waiting on nRF5340 application core
This patch adds a temporary workaround for the incorrect initialization
of the SystemCoreClock global variable that is done for the application
core of nRF5340 (see system_nrf5340_application.c) and that results in
k_busy_wait() producing delays of twice the requested time.
The problem is that the call to SystemCoreClockUpdate() that is done
at the end of SystemInit() correctly sets the value of SystemCoreClock
to reflect the hardware state after reset (HFCLK128M divided by 2),
but then the SystemCoreClock variable is initialized (by z_data_copy()
called from z_arm_prep_c()) to the __SYSTEM_CLOCK value that is defined
as 128000000. This in turn results in nrfx_coredep_delay_us() (used by
k_busy_wait() by default for nRF SoCs) delaying for twice the requested
number of microseconds.
The temporary workaround is to call SystemCoreClockUpdate() at a later
stage of the system initialization, in its nRF53 specific part.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2020-01-03 14:19:38 +01:00
..
nrf51 arch: arm: Move ARM code to AArch32 sub-directory 2019-12-20 11:40:59 -05:00
nrf52 arch: arm: Move ARM code to AArch32 sub-directory 2019-12-20 11:40:59 -05:00
nrf53 soc: nrf5340: Fix busy waiting on nRF5340 application core 2020-01-03 14:19:38 +01:00
nrf91 arch: arm: Move ARM code to AArch32 sub-directory 2019-12-20 11:40:59 -05:00
CMakeLists.txt
Kconfig
Kconfig.defconfig
Kconfig.peripherals soc: arm: nrf53: add nRF5340 CPUAPP SoC definition 2019-11-08 19:26:35 +01:00
Kconfig.soc
validate_base_addresses.c soc: nordic_nrf: Update validation of base adresses with new entries 2019-11-08 14:54:12 +01:00