cancel
Showing results for 
Search instead for 
Did you mean: 

AWS IoT Device Tester for FreeRTOS

Kaushendra
Associate II

Hi,

 

I have to accomplish AWS IDT Qualification for FreeRTOS based STM32WB55 Board.

I have followed the provide Porting Guide link and successfully ported Amazon FreeRTOS .

Now as I'm heading towards AWS IDT for FreeRTOS in provided link https://docs.aws.amazon.com/freertos/latest/userguide/device-tester-for-freertos-ug.html

 

Query 1:

 

I would like to know the settings in userdata.json for below mentioned scripts.

Also commands and usage of running the source build.sh and flash.sh scripts for Provided FreeRTOS Code.

  "buildTool": {
    "name": "make",
    "version": "v1",
    "command": [
      "</absolute-path-to/build.sh> {{enableTests}}"
    ]
  },
  "flashTool": {
    "name": "stmflash",
    "version": "v1",
    "command": [
      "</absolute-path-to/flash.sh> {{buildImageName}}"
    ],
    "buildImageInfo" : {
      "testsImageName": "<tests-image-name>",
      "demosImageName": "<demos-image-name>"
    }
  },

2.Any referece Guide which provide referece to build the Source Code and Flash Source Binary using Cmake,Environment Setup and Provide Arguments Requirements Sheet.

 

3.I'm also trying to build the script sepeartely,but due to any lack of reference i'm getting build error. One of example is show below.

 

sudo sh ./projects/st/p_nucleo_wb55/cmake/bootloader/bootloader_build.sh $Project_PATH
RELEASE_BUILD: OFF
-- The C compiler identification is GNU 7.5.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/local/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
  The C compiler
 
    "/usr/bin/cc"
 
  is not able to compile a simple test program.
 
  It fails with the following output:
 
    Change Dir: /home/kaushendra/kaush/ARROW/SEED/IDT/FreeRTOS_IDT/Source_Code/STM32_SSK_AWS_Rel01/projects/st/p_nucleo_wb55/cmake/bootloader/2_Images_SECoreBin/build/CMakeFiles/CMakeTmp
    
    Run Build Command:"/usr/bin/make" "cmTC_a83ff/fast"
    /usr/bin/make -f CMakeFiles/cmTC_a83ff.dir/build.make CMakeFiles/cmTC_a83ff.dir/build
    make[1]: Entering directory '/home/kaushendra/kaush/ARROW/SEED/IDT/FreeRTOS_IDT/Source_Code/STM32_SSK_AWS_Rel01/projects/st/p_nucleo_wb55/cmake/bootloader/2_Images_SECoreBin/build/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_a83ff.dir/testCCompiler.c.obj
    /usr/bin/cc   -mcpu=cortex-m4 -mthumb -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -DSTM32WB55xx -DUSE_STM32WBXX_NUCLEO -DUSE_HAL_DRIVER -DCKS_ENABLED    -o CMakeFiles/cmTC_a83ff.dir/testCCompiler.c.obj   -c /home/kaushendra/kaush/ARROW/SEED/IDT/FreeRTOS_IDT/Source_Code/STM32_SSK_AWS_Rel01/projects/st/p_nucleo_wb55/cmake/bootloader/2_Images_SECoreBin/build/CMakeFiles/CMakeTmp/testCCompiler.c
    cc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead
    cc: error: unrecognized command line option ‘-mthumb’; did you mean ‘-mtbm’?
    cc: error: unrecognized command line option ‘-mfloat-abi=softfp’
    cc: error: unrecognized command line option ‘-mfpu=fpv4-sp-d16’
    CMakeFiles/cmTC_a83ff.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_a83ff.dir/testCCompiler.c.obj' failed
    make[1]: *** [CMakeFiles/cmTC_a83ff.dir/testCCompiler.c.obj] Error 1
    make[1]: Leaving directory '/home/kaushendra/kaush/ARROW/SEED/IDT/FreeRTOS_IDT/Source_Code/STM32_SSK_AWS_Rel01/projects/st/p_nucleo_wb55/cmake/bootloader/2_Images_SECoreBin/build/CMakeFiles/CMakeTmp'
    Makefile:121: recipe for target 'cmTC_a83ff/fast' failed
    make: *** [cmTC_a83ff/fast] Error 2
    
 
  
 
  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:22 (project)
 
 
-- Configuring incomplete, errors occurred!
See also "/home/kaushendra/kaush/ARROW/SEED/IDT/FreeRTOS_IDT/Source_Code/STM32_SSK_AWS_Rel01/projects/st/p_nucleo_wb55/cmake/bootloader/2_Images_SECoreBin/build/CMakeFiles/CMakeOutput.log".
See also "/home/kaushendra/kaush/ARROW/SEED/IDT/FreeRTOS_IDT/Source_Code/STM32_SSK_AWS_Rel01/projects/st/p_nucleo_wb55/cmake/bootloader/2_Images_SECoreBin/build/CMakeFiles/CMakeError.log".
cp: cannot stat 'SeCoreBin.bin': No such file or directory
cp: cannot stat 'SeCoreBin.elf': No such file or directory
RELEASE_BUILD: OFF
-- The C compiler identification is GNU 7.5.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/local/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
  The C compiler
 
    "/usr/bin/cc"
 
  is not able to compile a simple test program.
 
  It fails with the following output:
 
    Change Dir: /home/kaushendra/kaush/ARROW/SEED/IDT/FreeRTOS_IDT/Source_Code/STM32_SSK_AWS_Rel01/projects/st/p_nucleo_wb55/cmake/bootloader/2_Images_SBSFU/build/CMakeFiles/CMakeTmp
    
    Run Build Command:"/usr/bin/make" "cmTC_ee8d4/fast"
    /usr/bin/make -f CMakeFiles/cmTC_ee8d4.dir/build.make CMakeFiles/cmTC_ee8d4.dir/build
    make[1]: Entering directory '/home/kaushendra/kaush/ARROW/SEED/IDT/FreeRTOS_IDT/Source_Code/STM32_SSK_AWS_Rel01/projects/st/p_nucleo_wb55/cmake/bootloader/2_Images_SBSFU/build/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_ee8d4.dir/testCCompiler.c.obj
    /usr/bin/cc   -mcpu=cortex-m4 -mthumb -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -DSTM32WB55xx -DUSE_STM32WBXX_NUCLEO -DUSE_HAL_DRIVER -DCKS_ENABLED    -o CMakeFiles/cmTC_ee8d4.dir/testCCompiler.c.obj   -c /home/kaushendra/kaush/ARROW/SEED/IDT/FreeRTOS_IDT/Source_Code/STM32_SSK_AWS_Rel01/projects/st/p_nucleo_wb55/cmake/bootloader/2_Images_SBSFU/build/CMakeFiles/CMakeTmp/testCCompiler.c
    cc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead
    cc: error: unrecognized command line option ‘-mthumb’; did you mean ‘-mtbm’?
    cc: error: unrecognized command line option ‘-mfloat-abi=softfp’
    cc: error: unrecognized command line option ‘-mfpu=fpv4-sp-d16’
    CMakeFiles/cmTC_ee8d4.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_ee8d4.dir/testCCompiler.c.obj' failed
    make[1]: *** [CMakeFiles/cmTC_ee8d4.dir/testCCompiler.c.obj] Error 1
    make[1]: Leaving directory '/home/kaushendra/kaush/ARROW/SEED/IDT/FreeRTOS_IDT/Source_Code/STM32_SSK_AWS_Rel01/projects/st/p_nucleo_wb55/cmake/bootloader/2_Images_SBSFU/build/CMakeFiles/CMakeTmp'
    Makefile:121: recipe for target 'cmTC_ee8d4/fast' failed
    make: *** [cmTC_ee8d4/fast] Error 2
    
 
  
 
  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:22 (project)
 
 
-- Configuring incomplete, errors occurred!
See also "/home/kaushendra/kaush/ARROW/SEED/IDT/FreeRTOS_IDT/Source_Code/STM32_SSK_AWS_Rel01/projects/st/p_nucleo_wb55/cmake/bootloader/2_Images_SBSFU/build/CMakeFiles/CMakeOutput.log".
See also "/home/kaushendra/kaush/ARROW/SEED/IDT/FreeRTOS_IDT/Source_Code/STM32_SSK_AWS_Rel01/projects/st/p_nucleo_wb55/cmake/bootloader/2_Images_SBSFU/build/CMakeFiles/CMakeError.log".
cp: cannot stat 'SBSFU.bin': No such file or directory
cp: cannot stat 'SBSFU.elf': No such file or directory

Help will be appreciated in guiding how to build and flash the source code using Cmake.

 

Regards,

kaushendra sah

0 REPLIES 0