- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to use SPI1 in master mode on a CYW920706WCDEVAL board to simultaneously send/receive data with another device.
The API documentation describes the wiced_hal_pspi_exchange_data(len, txbuf, rxbuf) function, which is forwarded to spiffyd_ExchangeData() in wiced_hal_pspi.h. However, it appears that function is not included in the SDK. A linker error is attached below.
-*- mode: compilation; default-directory: "~/code/intercreate/cyblu/io-fw/" -*-
Compilation started at Mon Feb 15 14:43:43
gmake -k build
CYW920706WCDEVAL.mk: ../mtb_shared/wiced_btsdk/dev-kit/bsp/TARGET_CYW920706WCDEVAL/release-v2.8.0/CYW920706WCDEVAL.mk
/Users/andy/code/intercreate/cyblu/io-fw/build/CYW920706WCDEVAL/Debug/IO-evm.ld already present, use clean if it needs updating
Prebuild operations complete
Commencing build operations...
CYW920706WCDEVAL.mk: ../mtb_shared/wiced_btsdk/dev-kit/bsp/TARGET_CYW920706WCDEVAL/release-v2.8.0/CYW920706WCDEVAL.mk
Initializing build: IO-evm Debug CYW920706WCDEVAL GCC_ARM
Auto-discovery in progress...
-> Found 20 .c file(s)
-> Found 0 .S file(s)
-> Found 0 .s file(s)
-> Found 0 .cpp file(s)
-> Found 0 .o file(s)
-> Found 15 .a file(s)
-> Found 166 .h file(s)
-> Found 0 .hpp file(s)
-> Found 0 resource file(s)
Applying filters...
Auto-discovery complete
Constructing build rules...
Build rules construction complete
==============================================================================
= Building application =
==============================================================================
Generating compilation database file...
-> ./build/compile_commands.json
Compilation database file generation complete
Generated 1 source file(s)
/Users/andy/code/intercreate/cyblu/io-fw/build/CYW920706WCDEVAL/generated/lib_installer.c already present, use clean if it needs updating
Building 21 file(s)
Compiling ext file spim.c
Linking output file IO-evm.elf
/Applications/ModusToolbox/tools_2.2/gcc/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: /Users/andy/code/intercreate/cyblu/io-fw/build/CYW920706WCDEVAL/Debug/ext/src/intercreate/spim.o: in function `wiced_hal_pspi_exchange_data':
/Users/andy/code/intercreate/cyblu/io-fw/../mtb_shared/wiced_btsdk/dev-kit/baselib/20706A2/release-v2.8.0/include/hal/wiced_hal_pspi.h:280: undefined reference to `spiffyd_exchangeData'
collect2: error: ld returned 1 exit status
gmake[1]: *** [../mtb_shared/core-make/release-v1.5.0/make/core/build.mk:528: /Users/andy/code/intercreate/cyblu/io-fw/build/CYW920706WCDEVAL/Debug/IO-evm.elf] Error 1
gmake[1]: Target 'build' not remade because of errors.
gmake: *** [../mtb_shared/core-make/release-v1.5.0/make/core/main.mk:414: secondstage_build] Error 2
gmake: Target 'build' not remade because of errors.
Compilation exited abnormally with code 2 at Mon Feb 15 14:43:43
Solved! Go to Solution.
- Labels:
-
ispn:38625:1:0
-
l1:314:1:0
-
Wireless
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We could reproduce it our side.
Seems like the linker is not updated as you said. We will check with the dev team and get back to you.
Thanks,
-Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We could reproduce it our side.
Seems like the linker is not updated as you said. We will check with the dev team and get back to you.
Thanks,
-Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The issue has been fixed by four software team and the fix will be available in the upcoming BTSDK (To be released in a month).