robertrostohar / nxp_sensor_sdk Goto Github PK
View Code? Open in Web Editor NEWNXP Sensor SDK
License: Apache License 2.0
NXP Sensor SDK
License: Apache License 2.0
I am working through steps to add additional boards. I added branch
The LPC55S69 is currently supported in the ISSDK. So files required exist in other SDK releases.
I have worked through the immediate updates. I am able to get the csolution and cbuild to initiate.
Now there are several missing elements that I am working through.
Here is what I found when working through process:
Still getting Error: L6218E: Undefined symbol Driver_I2C4 (referred from fxls8974cf_interrupt.o).
When I build the LPC55S69 cprj
Working to identify differences.
First question from initial review. How will the ISSDK be delivered in a pack.
pdsc file would capture the middleware files and example cSolutions/cProjects. Then IDE tool loads MSP and sees middleware and Examples.
Current version is good for CLI and VS Code "folder" approach but interested in eventual Pack delivery.
Amit and I discussed using this solution for the same sensors that are on an evk board.
The evk should show existence of sensor. (ss_* is Shield board; bb_* is base board)
This actually shows the 3rd scenario that was presented with customer board Layer file.
It would have unique Int and interface outside of Arduino.
This will be a good example to provide in the pack. Showing how sensor is captured in layer file on Shield vs. Board.
Board Layer YAML could provide #Arduino interface. However, it could also have "provides FXLS8974_I2C and FXLS8974_INT1".
cbuild doesnt work due to limitation of CMAKE_OBJECT_PATH_MAX. This happened twice, first i tried FXLS8974CF interrupt example from my downloads folder and i got same issue. I created folder on desktop and ran from there, the build worked fine. But now motion_wakeup example build doesn't work due to same limitation. Please see build log for motion_wakeup example.
C:\Users\nxa11926\Desktop\NXP_Sensor_SDK-main\examples\issdk\sensors\fxls8974cf\motion_wakeup> cbuild.exe .\fxls8974cf_motion_wakeup.debug+frdmk22f_a8974.cprj
info cbuild: Build Invocation 1.4.0 (C) 2022 Arm Ltd. and Contributors
M650: Command completed successfully.
M652: Generated file for project build: 'C:/Users/nxa11926/Desktop/NXP_Sensor_SDK-main/examples/issdk/sensors/fxls8974cf/motion_wakeup/tmp/fxls8974cf_motion_wakeup/frdmk22f_a8974/debug/CMakeLists.txt'
-- The ASM compiler identification is ARMClang
-- Found assembler: C:/Keil_v5/ARM/ARMCLANG/bin/armclang.exe
-- Configuring done
CMake Warning in CMakeLists.txt:
The object file directory
C:/Users/nxa11926/Desktop/NXP_Sensor_SDK-main/examples/issdk/sensors/fxls8974cf/motion_wakeup/tmp/fxls8974cf_motion_wakeup/frdmk22f_a8974/debug/CMakeFiles/fxls8974cf_motion_wakeup.debug+frdmk22f_a8974.dir/./
has 207 characters. **The maximum full path to an object file is 250
characters (see CMAKE_OBJECT_PATH_MAX). Object file
82a379cee12235e3e7c393925cefc520/fsl_adc16.o
cannot be safely placed under this directory. The build may not work
correctly.**
-- Generating done
-- Build files have been written to: C:/Users/nxa11926/Desktop/NXP_Sensor_SDK-main/examples/issdk/sensors/fxls8974cf/motion_wakeup/tmp/fxls8974cf_motion_wakeup/frdmk22f_a8974/debug
[48/48] Linking C executable C:\Users\nxa11926\Desktop\NXP_Sensor_SDK-main\ex...wakeup\frdmk22f_a8974\debug\fxls8974cf_motion_wakeup.debug+frdmk22f_a8974.axf
FAILED: C:/Users/nxa11926/Desktop/NXP_Sensor_SDK-main/examples/issdk/sensors/fxls8974cf/motion_wakeup/out/fxls8974cf_motion_wakeup/frdmk22f_a8974/debug/fxls8974cf_motion_wakeup.debug+frdmk22f_a8974.axf
cmd.exe /C "cd . && C:\Keil_v5\ARM\ARMCLANG\bin\armlink.exe --cpu=Cortex-M4 --scatter="C:/Users/nxa11926/Desktop/NXP_Sensor_SDK-main/boards/frdmk22f/RTE/Device/MK22FN512VLH12/MK22FN512xxx12_flash.scf" --entry=Reset_Handler --strict --info summarysizes --remove --keep=(.crp) --keep=(.FlashConfig) --diag_suppress 6314,6319 --debug --via=CMakeFiles\fxls8974cf_motion_wakeup.debug+frdmk22f_a8974.rsp -o C:\Users\nxa11926\Desktop\NXP_Sensor_SDK-main\examples\issdk\sensors\fxls8974cf\motion_wakeup\out\fxls8974cf_motion_wakeup\frdmk22f_a8974\debug\fxls8974cf_motion_wakeup.debug+frdmk22f_a8974.axf --list=C:\Users\nxa11926\Desktop\NXP_Sensor_SDK-main\examples\issdk\sensors\fxls8974cf\motion_wakeup\out\fxls8974cf_motion_wakeup\frdmk22f_a8974\debug\fxls8974cf_motion_wakeup.debug+frdmk22f_a8974.axf.map && cmd.exe /C "cd /D C:\Users\nxa11926\Desktop\NXP_Sensor_SDK-main\examples\issdk\sensors\fxls8974cf\motion_wakeup\tmp\fxls8974cf_motion_wakeup\frdmk22f_a8974\debug && C:\Keil_v5\ARM\ARMCLANG\bin\fromelf.exe --i32combined --output C:/Users/nxa11926/Desktop/NXP_Sensor_SDK-main/examples/issdk/sensors/fxls8974cf/motion_wakeup/out/fxls8974cf_motion_wakeup/frdmk22f_a8974/debug/fxls8974cf_motion_wakeup.debug+frdmk22f_a8974.hex C:/Users/nxa11926/Desktop/NXP_Sensor_SDK-main/examples/issdk/sensors/fxls8974cf/motion_wakeup/out/fxls8974cf_motion_wakeup/frdmk22f_a8974/debug/fxls8974cf_motion_wakeup.debug+frdmk22f_a8974.axf && cd /D C:\Users\nxa11926\Desktop\NXP_Sensor_SDK-main\examples\issdk\sensors\fxls8974cf\motion_wakeup\tmp\fxls8974cf_motion_wakeup\frdmk22f_a8974\debug && C:\Keil_v5\ARM\ARMCLANG\bin\fromelf.exe --bin --output C:/Users/nxa11926/Desktop/NXP_Sensor_SDK-main/examples/issdk/sensors/fxls8974cf/motion_wakeup/out/fxls8974cf_motion_wakeup/frdmk22f_a8974/debug/fxls8974cf_motion_wakeup.debug+frdmk22f_a8974.bin C:/Users/nxa11926/Desktop/NXP_Sensor_SDK-main/examples/issdk/sensors/fxls8974cf/motion_wakeup/out/fxls8974cf_motion_wakeup/frdmk22f_a8974/debug/fxls8974cf_motion_wakeup.debug+frdmk22f_a8974.axf""
Fatal error: L6002U: Could not open file CMakeFiles/fxls8974cf_motion_wakeup.debug+frdmk22f_a8974.dir/48a65af2d07af921aa89cbca7c12f3e6/fsl_component_generic_list.o: No such file or directory
Finished: 0 information, 0 warning, 0 error and 1 fatal error messages.
ninja: build stopped: subcommand failed.
error cbuild: error executing 'cmake' build
PS C:\Users\nxa11926\Desktop\NXP_Sensor_SDK-main\examples\issdk\sensors\fxls8974cf\motion_wakeup>
cbuild has a dependency on Ninja package. The README.md should highlight this software prerequisite to install Ninja and set up into environment.
I have been able to run "layer list" and "convert" commands for the example projects.
I am focused on the frdmk22f_a8974 builds. I have that board plugged in.
I get following error when I build any of the cprj files.
Any suggestions on what step I am missing?
I look up and Driver_I2C0 is defined in frdm_k22f.h as "extern ARM_DRIVER_I2C Driver_I2C0;"
I run the following: cbuild fxls8974cf_interrupt.debug+frdmk22f_a8974.cprj
Succesfully links. Then fails with following:
FAILED: C:/GIT/NXP_Sensor_SDK/examples/issdk/sensors/fxls8974cf/interrupt/out/fxls8974cf_interrupt/frdmk22f_a8974/debug/fxls8974cf_interrupt.debug+frdmk22f_a8974.axf
cmd.exe /C "cd . && C:\Keil_v5\ARM\ARMCLANG\bin\armlink.exe --cpu=Cortex-M4 --scatter="C:/GIT/NXP_Sensor_SDK/boards/frdmk22f/RTE/Device/MK22FN512VLH12/MK22FN512xxx12_flash.scf" --entry=Reset_Handler --strict --info summarysizes --remove --keep=(.crp) --keep=(.FlashConfig) --diag_suppress 6314,6319 --via=CMakeFiles\fxls8974cf_interrupt.debug+frdmk22f_a8974.rsp -o C:\GIT\NXP_Sensor_SDK\examples\issdk\sensors\fxls8974cf\interrupt\out\fxls8974cf_interrupt\frdmk22f_a8974\debug\fxls8974cf_interrupt.debug+frdmk22f_a8974.axf --list=C:\GIT\NXP_Sensor_SDK\examples\issdk\sensors\fxls8974cf\interrupt\out\fxls8974cf_interrupt\frdmk22f_a8974\debug\fxls8974cf_interrupt.debug+frdmk22f_a8974.axf.map && cmd.exe /C "cd /D C:\GIT\NXP_Sensor_SDK\examples\issdk\sensors\fxls8974cf\interrupt\tmp\fxls8974cf_interrupt\frdmk22f_a8974\debug && c:\Keil_v5\ARM\ARMCLANG\bin\fromelf.exe --i32combined --output C:/GIT/NXP_Sensor_SDK/examples/issdk/sensors/fxls8974cf/interrupt/out/fxls8974cf_interrupt/frdmk22f_a8974/debug/fxls8974cf_interrupt.debug+frdmk22f_a8974.hex C:/GIT/NXP_Sensor_SDK/examples/issdk/sensors/fxls8974cf/interrupt/out/fxls8974cf_interrupt/frdmk22f_a8974/debug/fxls8974cf_interrupt.debug+frdmk22f_a8974.axf && cd /D C:\GIT\NXP_Sensor_SDK\examples\issdk\sensors\fxls8974cf\interrupt\tmp\fxls8974cf_interrupt\frdmk22f_a8974\debug && c:\Keil_v5\ARM\ARMCLANG\bin\fromelf.exe --bin --output C:/GIT/NXP_Sensor_SDK/examples/issdk/sensors/fxls8974cf/interrupt/out/fxls8974cf_interrupt/frdmk22f_a8974/debug/fxls8974cf_interrupt.debug+frdmk22f_a8974.bin C:/GIT/NXP_Sensor_SDK/examples/issdk/sensors/fxls8974cf/interrupt/out/fxls8974cf_interrupt/frdmk22f_a8974/debug/fxls8974cf_interrupt.debug+frdmk22f_a8974.axf""
Warning: L9931W: Your license for feature mdk_pro_compiler5 will expire in 29 days
Error: L6218E: Undefined symbol Driver_I2C0 (referred from fxls8974cf_interrupt.o).
Is it possible to add one example of sensor (FXLS8974CF) pack for STM32 EVB. That way we demonstrate real benefit of having sensors interfaces and open-CMSIS pack defined that can work with MCUs (NXP and non-NXP) having Arduino UNO support. It would be a real good demonstration showcasing actual benefit of this effort.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.