SimpleLink Starter Pro 和CC3220SF板子建立连接后,如何在手机APP上获得想从板子上获取的信息?

求大神解答:

SimpleLink Starter Pro 和CC3220SF板子建立连接后,如何在手机APP上获得想从板子上获取的信息?如何与板子进行信息交互?APP中好像默认只有板子的LED灯和加速度计的信息。如何获取CC3220SF上的如SPI传输的数据等信息?要自己更新手机APP吗?  万分感谢!

  • 可以参考这边的acadamy: SimpleLink Wi-Fi Provisioning SimpleLink Academy
  • 回复 Viki Shi:

    好的!非常感谢!

    我现在有了一个新的问题,CCS导入一个例程cloud_ota_CC3220SF_LAUNCHXL_tirtos_ccs之后,自动导入了一个tirtos_builds_CC3220SF_LAUNCHXL_release_ccs的工程,我按照教程修改设置之后需要rebuild project,但是rebuild之后就会报错,信息如下:

    **** Build of configuration Debug for project tirtos_builds_CC3220SF_LAUNCHXL_release_ccs ****

    "E:\\CCS\\ccsv8\\utils\\bin\\gmake" -k -j 4 all -O

    Building file: "../release.cfg"
    Invoking: XDCtools
    "E:/CCS/xdctools_3_50_08_24_core/xs" --xdcpath="E:/CC3220SF SDK/simplelink_cc32xx_sdk_2_30_00_05/source;E:/CC3220SF SDK/simplelink_cc32xx_sdk_2_30_00_05/kernel/tirtos/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4 -p ti.platforms.simplelink:CC3220SF -r release -c "E:/CCS/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS" "../release.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring release.xem4 from package/cfg/release_pem4.cfg ...
    generating custom ti.sysbios library makefile ...
    Starting build of library sources ...
    making E:/CCS/workplace/tirtos_builds_CC3220SF_LAUNCHXL_release_ccs/src/sysbios/sysbios.aem4 ...
    gmake[1]: Entering directory `E:/CCS/workplace/tirtos_builds_CC3220SF_LAUNCHXL_release_ccs/src/sysbios'
    gmake[1]: Leaving directory `E:/CCS/workplace/tirtos_builds_CC3220SF_LAUNCHXL_release_ccs/src/sysbios'
    Build of libraries failed.
    subdir_rules.mk:12: recipe for target 'build-1948194527-inproc' failed
    gmake[1]: *** No rule to make target `BIOS.c', needed by `BIOS.obj'. Stop.
    gmake: *** [E:/CCS/workplace/tirtos_builds_CC3220SF_LAUNCHXL_release_ccs/src/sysbios/sysbios.aem4] Error 2
    error: xdc.cfg.SourceDir: "E:/CCS/xdctools_3_50_08_24_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:

    js: "E:/CCS/xdctools_3_50_08_24_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
    gmake.exe: *** [package/cfg/release_pem4.xdl] Error 1
    gmake.exe: *** Deleting file `package/cfg/release_pem4.xdl'
    gmake.exe: *** [package/cfg/release_pem4.xdl] Deleting file `package/cfg/release_pem4.h'
    gmake.exe: *** [package/cfg/release_pem4.xdl] Deleting file `package/cfg/release_pem4.c'
    js: "E:/CCS/xdctools_3_50_08_24_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake[1]: *** [build-1948194527-inproc] Error 1
    Building file: "../release.cfg"
    Invoking: XDCtools
    "E:/CCS/xdctools_3_50_08_24_core/xs" --xdcpath="E:/CC3220SF SDK/simplelink_cc32xx_sdk_2_30_00_05/source;E:/CC3220SF SDK/simplelink_cc32xx_sdk_2_30_00_05/kernel/tirtos/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4 -p ti.platforms.simplelink:CC3220SF -r release -c "E:/CCS/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS" "../release.cfg"
    configuring release.xem4 from package/cfg/release_pem4.cfg ...
    generating custom ti.sysbios library makefile ...
    Starting build of library sources ...
    making E:/CCS/workplace/tirtos_builds_CC3220SF_LAUNCHXL_release_ccs/src/sysbios/sysbios.aem4 ...
    gmake[1]: Entering directory `E:/CCS/workplace/tirtos_builds_CC3220SF_LAUNCHXL_release_ccs/src/sysbios'
    gmake[1]: Leaving directory `E:/CCS/workplace/tirtos_builds_CC3220SF_LAUNCHXL_release_ccs/src/sysbios'
    Build of libraries failed.
    subdir_rules.mk:12: recipe for target 'build-1948194527-inproc' failed
    gmake[1]: *** No rule to make target `BIOS.c', needed by `BIOS.obj'. Stop.
    gmake: *** [E:/CCS/workplace/tirtos_builds_CC3220SF_LAUNCHXL_release_ccs/src/sysbios/sysbios.aem4] Error 2
    error: xdc.cfg.SourceDir: "E:/CCS/xdctools_3_50_08_24_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:

    js: "E:/CCS/xdctools_3_50_08_24_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
    xdctools_3_50_08_24_core\gmake.exe: *** [package/cfg/release_pem4.xdl] Error 1
    xdctools_3_50_08_24_core\gmake.exe: *** Deleting file `package/cfg/release_pem4.xdl'
    xdctools_3_50_08_24_core\gmake.exe: *** [package/cfg/release_pem4.xdl] Deleting file `package/cfg/release_pem4.h'
    xdctools_3_50_08_24_core\gmake.exe: *** [package/cfg/release_pem4.xdl] Deleting file `package/cfg/release_pem4.c'
    js: "E:/CCS/xdctools_3_50_08_24_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    gmake[2]: *** [build-1948194527-inproc] Error 1
    subdir_rules.mk:9: recipe for target 'build-1948194527' failed
    gmake[1]: *** [build-1948194527] Error 2
    gmake[1]: Target 'configPkg/linker.cmd' not remade because of errors.
    makefile:127: recipe for target 'all' failed
    gmake: *** [all] Error 2

    **** Build Finished ****

    请问是什么问题?怎么解决呢?非常感谢!