Hi Nordic team,
Hi Nordic Team,
We are trying to configure two SPI masters. It works when I use any single SPI (only one), but when I add the second SPI, I encounter issues.
Do you have any recommendations or suggestions on how to resolve this?
Note: 2.5.0 SDK
When i add my_spi_master_1: &spi1 i get this result:
[173/174] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
[174/174] Linking C executable zephyr\zephyr.elf
FAILED: zephyr/zephyr.elf zephyr/zephyr.map zephyr/zephyr.hex zephyr/zephyr.bin zephyr/zephyr.stat
cmd.exe /C "cd . && C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -gdwarf-4 zephyr/CMakeFiles/zephyr_final.dir/misc/empty_file.c.obj zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj -o zephyr\zephyr.elf -fuse-ld=bfd -T zephyr/linker.cmd -Wl,-Map=C:/Firmware/Generic_Keyfob/Generic_Keyfob_test/FCC_testing/FCC_testing_receiver/build/zephyr/zephyr_final.map -Wl,--whole-archive app/libapp.a zephyr/libzephyr.a zephyr/arch/common/libarch__common.a zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a zephyr/lib/libc/picolibc/liblib__libc__picolibc.a zephyr/lib/libc/common/liblib__libc__common.a zephyr/soc/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a zephyr/soc/soc/arm/nordic_nrf/nrf52/libsoc__arm__nordic_nrf__nrf52.a zephyr/subsys/random/libsubsys__random.a zephyr/drivers/clock_control/libdrivers__clock_control.a zephyr/drivers/entropy/libdrivers__entropy.a zephyr/drivers/gpio/libdrivers__gpio.a zephyr/drivers/i2c/libdrivers__i2c.a zephyr/drivers/pinctrl/libdrivers__pinctrl.a zephyr/drivers/serial/libdrivers__serial.a zephyr/drivers/spi/libdrivers__spi.a zephyr/drivers/timer/libdrivers__timer.a modules/nrf/lib/dk_buttons_and_leds/lib..__nrf__lib__dk_buttons_and_leds.a modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a modules/nrf/drivers/hw_cc310/lib..__nrf__drivers__hw_cc310.a modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a modules/segger/libmodules__segger.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj -L"c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v7e-m+fp/hard" -LC:/Firmware/Generic_Keyfob/Generic_Keyfob_test/FCC_testing/FCC_testing_receiver/build/zephyr -lgcc -Wl,--print-memory-usage zephyr/arch/common/libisr_tables.a -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mfp16-format=ieee -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -Wl,-u,_OffsetAbsSyms -Wl,-u,_ConfigAbsSyms -nostdlib -static -Wl,-X -Wl,-N -Wl,--orphan-handling=warn -Wl,-no-pie -DPICOLIBC_DOUBLE_PRINTF_SCANF C:/ncs/v2.5.0/nrfxlib/crypto/nrf_cc310_platform/lib/cortex-m4/hard-float/no-interrupts/libnrf_cc310_platform_0.9.18.a --specs=picolibc.specs -lc -lgcc && cmd.exe /C "cd /D C:\Firmware\Generic_Keyfob\Generic_Keyfob_test\FCC_testing\FCC_testing_receiver\build\zephyr && C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.exe -E copy zephyr_final.map zephyr.map && C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-objcopy.exe --gap-fill 0xff --output-target=ihex --remove-section=.comment --remove-section=COMMON --remove-section=.eh_frame zephyr.elf zephyr.hex && C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-objcopy.exe --gap-fill 0xff --output-target=binary --remove-section=.comment --remove-section=COMMON --remove-section=.eh_frame zephyr.elf zephyr.bin && C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-readelf.exe -e zephyr.elf > zephyr.stat && C:\ncs\toolchains\c57af46cb7\opt\bin\python.exe C:/ncs/v2.5.0/zephyr/scripts/build/check_init_priorities.py --build-dir C:/Firmware/Generic_Keyfob/Generic_Keyfob_test/FCC_testing/FCC_testing_receiver/build/zephyr/.. --edt-pickle C:/Firmware/Generic_Keyfob/Generic_Keyfob_test/FCC_testing/FCC_testing_receiver/build/zephyr/edt.pickle""
Memory region Used Size Region Size %age Used
FLASH: 102976 B 1 MB 9.82%
RAM: 27724 B 256 KB 10.58%
IDT_LIST: 0 GB 2 KB 0.00%
Traceback (most recent call last):
File "C:/ncs/v2.5.0/zephyr/scripts/build/check_init_priorities.py", line 361, in <module>
sys.exit(main(sys.argv[1:]))
File "C:/ncs/v2.5.0/zephyr/scripts/build/check_init_priorities.py", line 346, in main
validator = Validator(args.build_dir, args.edt_pickle, log)
File "C:/ncs/v2.5.0/zephyr/scripts/build/check_init_priorities.py", line 217, in __init__
raise ValueError(
ValueError: ERROR: device 83 (/soc/crypto@5002a000) already defined
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE' --build 'c:\Firmware\Generic_Keyfob\Generic_Keyfob_test\FCC_testing\FCC_testing_receiver\build'
* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.