Rank amateur toying with TDK RoboKit1-DK

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


Howdy all. Some background: I'm an engineering student who's interning at an autonomous robotics firm. My background is HEAVILY biased towards mechanical stuff. My microcontroller experience boils down to "fiddling with an arduino and raspberry pi for about a month". 

 

I've been asked to get TDK's RobotKit up-and-running for the purpose of testing an ultrasonic sensor. I'm using Microchip Studio and running into some issues. I found some possibly related posts from '16-'17 but no solutions. If this is in the wrong spot then, by all means, move it.

 

I'm trying to load the project files from TDK into Studio. Initially, the file Robokit-Core file would fail to load and give the following error messages:

I rebooted my PC and tried reloading all again. Started getting:

It did that once or twice then went back to the original error message. It did give a couple of a “object reference not set to an instance of an object" errors early on but I don't remember when in the process that happened and I can't get it to repeat that error. 

I tried moving the root file to both Microchip Studio's root and Visual Studio 2015's root. The only thing that changed is now another project file, Robokit-App-Host, is failing to load and giving the same url error.

 

If anyone could hold my hand and help me out, I'd be in your debt. 

This topic has a solution.
Last Edited: Thu. Jun 16, 2022 - 07:47 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
My microcontroller experience boils down to "fiddling with an arduino and raspberry pi for about a month". 

    One of the best ways to get started with MCUs ;)

    The way you keep getting different errors is strange, especially since rebooting caused them to change - it might suggest some sort of directory error (files/folders being in the wrong places).  All those parameter errors and definition errors almost imply some syntax problems.  Do you think C code is being run in C++ or vice versa?

 

Quote:
I tried moving the root file to both Microchip Studio's root and Visual Studio 2015's root. The only thing that changed is now another project file, Robokit-App-Host, is failing to load and giving the same url error. 

    Did it at least fix the Robokit-Core file's error?  Maybe some files are not being loaded (resulting in the definition errors).  Would you be able to post the complete output from your console along with the error?

 

    Good luck!

    Jarrod

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

wanna_be_enginseer wrote:

Howdy all. Some background: I'm an engineering student who's interning at an autonomous robotics firm. My background is HEAVILY biased towards mechanical stuff. My microcontroller experience boils down to "fiddling with an arduino and raspberry pi for about a month". 

 

I've been asked to get TDK's RobotKit up-and-running for the purpose of testing an ultrasonic sensor. I'm using Microchip Studio and running into some issues. I found some possibly related posts from '16-'17 but no solutions. If this is in the wrong spot then, by all means, move it.

 

I'm trying to load the project files from TDK into Studio. Initially, the file Robokit-Core file would fail to load and give the following error messages:

I rebooted my PC and tried reloading all again. Started getting:

It did that once or twice then went back to the original error message. It did give a couple of a “object reference not set to an instance of an object" errors early on but I don't remember when in the process that happened and I can't get it to repeat that error. 

I tried moving the root file to both Microchip Studio's root and Visual Studio 2015's root. The only thing that changed is now another project file, Robokit-App-Host, is failing to load and giving the same url error.

 

If anyone could hold my hand and help me out, I'd be in your debt. 

 

Actually the solution is pretty simple: you have to remove the Microchip Studio folder from the C:\Users\clk\AppData\Local\Microchip\ and C:\Users\clk\AppData\Roaming\Microchip\ and restart the Studio. That should do the trick

 

Ilya

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So, Microchip files were not at the end of that filepath. Not sure if they should have been. AtmelStudio, Atmel, and VirtualAssistAtmel were.   

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

So, here's the Solution Explorer and screen when I try to load the RoboKit project. Here's the output from General immediately afterwards:

 

09:02:59: [INFO] Initializing help package Atmel.VsIde.AvrStudio.Branding.HelpAbout.HelpAboutPackage
09:03:04: [INFO] Added ToolInfo: Atmel-ICE
09:03:05: [INFO] Added ToolInfo: AVR Dragon
09:03:05: [INFO] Added ToolInfo: AVRISP mkII
09:03:05: [INFO] Added ToolInfo: AVR ONE!
09:03:05: [INFO] Added ToolInfo: EDBG
09:03:05: [INFO] Added ToolInfo: EDBG MSD
09:03:05: [INFO] Added ToolInfo: EDBG
09:03:05: [INFO] Added ToolInfo: Atmel FLIP
09:03:05: [INFO] Added ToolInfo: J-Link
09:03:05: [INFO] Added ToolInfo: J-Link over IP
09:03:05: [INFO] Added ToolInfo: J-Link ARM-Pro
09:03:06: [INFO] Added ToolInfo: J-Link Ultra
09:03:06: [INFO] Added ToolInfo: JTAGICE3
09:03:06: [INFO] Added ToolInfo: JTAGICE3
09:03:06: [INFO] Added ToolInfo: JTAGICE mkII
09:03:06: [INFO] Added ToolInfo: mEDBG
09:03:06: [INFO] Added ToolInfo: Atmel Mega DFU
09:03:06: [INFO] Added ToolInfo: nEDBG
09:03:06: [INFO] Added ToolInfo: MPLAB® PICkit 4
09:03:06: [INFO] Added ToolInfo: Power Debugger
09:03:06: [INFO] Added ToolInfo: QT600
09:03:06: [INFO] Added ToolInfo: SAM-ICE
09:03:06: [INFO] Added ToolInfo: Simulator
09:03:06: [INFO] Added ToolInfo: MPLAB® Snap
09:03:06: [INFO] Added ToolInfo: STK500
09:03:06: [INFO] Added ToolInfo: STK600
The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
09:03:16: [INFO] Found Toolchain Factory Atmel.VsIde.AvrStudio.Extensions.AvrAssembler.Toolchain.AssemblerToolchainsProvider: 
09:03:16: [INFO] Found Creatable Toolchain Name com.Atmel.AVRAssembler from Factory Atmel.VsIde.AvrStudio.Extensions.AvrAssembler.Toolchain.AssemblerToolchainsProvider
09:03:16: [INFO] Found Toolchain Factory Atmel.VsIde.AvrStudio.Extensions.AVRGCC.AVRGCCToolchainFactory: 
09:03:16: [INFO] Found Creatable Toolchain Name com.Atmel.AVRGCC32.C from Factory Atmel.VsIde.AvrStudio.Extensions.AVRGCC.AVRGCCToolchainFactory
09:03:16: [INFO] Found Creatable Toolchain Name com.Atmel.AVRGCC32.CPP from Factory Atmel.VsIde.AvrStudio.Extensions.AVRGCC.AVRGCCToolchainFactory
09:03:16: [INFO] Found Creatable Toolchain Name com.Atmel.AVRGCC8.C from Factory Atmel.VsIde.AvrStudio.Extensions.AVRGCC.AVRGCCToolchainFactory
09:03:16: [INFO] Found Creatable Toolchain Name com.Atmel.AVRGCC8.CPP from Factory Atmel.VsIde.AvrStudio.Extensions.AVRGCC.AVRGCCToolchainFactory
09:03:16: [INFO] Found Toolchain Factory Toolchain.XC8ToolchainProvider.XC8ToolchainFactory: 
09:03:16: [INFO] Found Creatable Toolchain Name com.microchip.xc8 from Factory Toolchain.XC8ToolchainProvider.XC8ToolchainFactory
09:03:16: [INFO] Found Toolchain Factory Atmel.VsIde.AtmelStudio.Extensions.ARMGCC.ArmGcc32BitToolchainProvider: 
09:03:16: [INFO] Found Creatable Toolchain Name com.Atmel.ARMGCC.C from Factory Atmel.VsIde.AtmelStudio.Extensions.ARMGCC.ArmGcc32BitToolchainProvider
09:03:16: [INFO] Found Creatable Toolchain Name com.Atmel.ARMGCC.CPP from Factory Atmel.VsIde.AtmelStudio.Extensions.ARMGCC.ArmGcc32BitToolchainProvider
09:03:17: [INFO] QueryAttribute: [CapiVersion, ];[CBundle, ];[Cclass, CMSIS];[Cgroup, CORE];[Csub, ];[Cvariant, ];[Cvendor, ARM];[compiler, GCC];[Dname, ATSAME70Q21B];[Output, exe]
09:03:17: [INFO] QueryAttribute: [CapiVersion, ];[CBundle, ];[Cclass, Device];[Cgroup, Startup];[Csub, ];[Cvariant, ];[Cvendor, Atmel];[compiler, GCC];[Dname, ATSAME70Q21B];[Output, exe]
09:03:18: [INFO] QueryAttribute: [CapiVersion, ];[CBundle, ];[Cclass, CMSIS];[Cgroup, CORE];[Csub, ];[Cvariant, ];[Cvendor, ARM];[compiler, GCC];[Dname, ATSAME70Q21B];[Output, exe]
09:03:18: [INFO] QueryAttribute: [CapiVersion, ];[CBundle, ];[Cclass, CMSIS];[Cgroup, CORE];[Csub, ];[Cvariant, ];[Cvendor, ARM];[compiler, GCC];[Dname, ATSAME70Q21B];[Output, exe];[Cversion, 5.1.2]
09:03:18: [INFO] PackContextList: Count 1
09:03:18: [INFO] QueryAttribute: [CapiVersion, ];[CBundle, ];[Cclass, Device];[Cgroup, Startup];[Csub, ];[Cvariant, ];[Cvendor, Atmel];[compiler, GCC];[Dname, ATSAME70Q21B];[Output, exe]
09:03:18: [INFO] QueryAttribute: [CapiVersion, ];[CBundle, ];[Cclass, Device];[Cgroup, Startup];[Csub, ];[Cvariant, ];[Cvendor, Atmel];[compiler, GCC];[Dname, ATSAME70Q21B];[Output, exe];[Cversion, 2.4.0]
09:03:18: [INFO] PackContextList: Count 1
09:03:19: [INFO] QueryAttribute: [CapiVersion, ];[CBundle, ];[Cclass, CMSIS];[Cgroup, CORE];[Csub, ];[Cvariant, ];[Cvendor, ARM];[compiler, GCC];[Dname, ATSAME70Q21B];[Output, exe]
09:03:19: [INFO] QueryAttribute: [CapiVersion, ];[CBundle, ];[Cclass, Device];[Cgroup, Startup];[Csub, ];[Cvariant, ];[Cvendor, Atmel];[compiler, GCC];[Dname, ATSAME70Q21B];[Output, exe]
09:03:20: [INFO] QueryAttribute: [CapiVersion, ];[CBundle, ];[Cclass, CMSIS];[Cgroup, CORE];[Csub, ];[Cvariant, ];[Cvendor, ARM];[compiler, GCC];[Dname, ATSAME70Q21B];[Output, exe]
09:03:20: [INFO] QueryAttribute: [CapiVersion, ];[CBundle, ];[Cclass, CMSIS];[Cgroup, CORE];[Csub, ];[Cvariant, ];[Cvendor, ARM];[compiler, GCC];[Dname, ATSAME70Q21B];[Output, exe];[Cversion, 5.1.2]
09:03:20: [INFO] PackContextList: Count 1
09:03:20: [INFO] QueryAttribute: [CapiVersion, ];[CBundle, ];[Cclass, Device];[Cgroup, Startup];[Csub, ];[Cvariant, ];[Cvendor, Atmel];[compiler, GCC];[Dname, ATSAME70Q21B];[Output, exe]
09:03:20: [INFO] QueryAttribute: [CapiVersion, ];[CBundle, ];[Cclass, Device];[Cgroup, Startup];[Csub, ];[Cvariant, ];[Cvendor, Atmel];[compiler, GCC];[Dname, ATSAME70Q21B];[Output, exe];[Cversion, 2.4.0]
09:03:20: [INFO] PackContextList: Count 1
09:03:21: [WARNING] Error updating project settings:Object reference not set to an instance of an object.
09:03:21: [INFO] QueryAttribute: [Cclass, CMSIS];[Cgroup, CORE];[Cvendor, ARM];[compiler, GCC];[Dname, ATSAME70Q21B];[Output, exe];[Dsecure, ]
09:03:21: [INFO] QueryAttribute: [Cclass, CMSIS];[Cgroup, CORE];[Cvendor, ARM];[compiler, GCC];[Dname, ATSAME70Q21B];[Output, exe];[Dsecure, ]
 

 On a lark, I ran 'Begin Debug and Break'. Here's the Output from Build:

 

------ Build started: Project: Robokit-App-Host-Interface, Configuration: Debug ARM ------
Build started.
Project "Robokit-App-Host-Interface.cproj" (default targets):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreBuild" in file "C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Compiler.targets" from project "C:\Users\clk\Documents\Robokit_Full_Rel_v1.1\Robokit_Full_Rel_v1.1\firmware\Robokit_FW_Rel_1.0.0.20220330.2787\Robokit_FW_Rel_1.0.0.20220330.2787\RoboKit_source\Robokit-Apps\Robokit-App-Host-Interface\Robokit-App-Host-Interface.cproj" (target "Build" depends on it):
    Task "RunCompilerTask"
        Shell Utils Path C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils
        C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils\make.exe all --jobs 12 --output-sync 
        Building file: ../../Apps-Common/rk_app_common_redswallow_if.c
        Invoking: ARM/GNU C Compiler : 6.3.1
C:\Users\clk\Documents\Robokit_Full_Rel_v1.1\Robokit_Full_Rel_v1.1\firmware\Robokit_FW_Rel_1.0.0.20220330.2787\Robokit_FW_Rel_1.0.0.20220330.2787\RoboKit_source\Robokit-Apps\Apps-Common\rk_app_common_redswallow_if.c(129,33): error: redswallow_commands.h: No such file or directory
         #include "redswallow_commands.h"
                                         ^
        compilation terminated.
        make: *** [App_Common/rk_app_common_redswallow_if.o] Error 1
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-gcc.exe"  -x c -mthumb -D__SAME70Q21B__ -DDEBUG  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\CMSIS\5.4.0\CMSIS\Core\Include" -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\SAME70_DFP\2.4.166\same70b\include" -I"../../../Robokit-Core/ext_if_inc" -I"../../../Robokit-Core/board/ASF/thirdparty/RTOS/freertos/FreeRTOSV10.0.0/Source/include" -I"..\..\..\Robokit-Core\board\ASF\thirdparty\RTOS\freertos\FreeRTOSV10.0.0\Source\portable\GCC\ARM_CM7" -I"../../../Robokit-Core/utils/inc" -I"../../Apps-Common" -I"../../../Robokit-Core/core/platform/inc" -I"../../../Robokit-Core/libs/algo_finder/inc" -I"../../../Robokit-Core/libs/robovac/inc" -I"../../../Robokit-Core/board/config"  -O2 -ffunction-sections -mlong-calls -g3 -Wall -mcpu=cortex-m7 -c -std=gnu99 -mfloat-abi=hard -mfpu=fpv5-d16 -MD -MP -MF "App_Common/rk_app_common_redswallow_if.d" -MT"App_Common/rk_app_common_redswallow_if.d" -MT"App_Common/rk_app_common_redswallow_if.o"   -o "App_Common/rk_app_common_redswallow_if.o" "../../Apps-Common/rk_app_common_redswallow_if.c" 
C:\Users\clk\Documents\Robokit_Full_Rel_v1.1\Robokit_Full_Rel_v1.1\firmware\Robokit_FW_Rel_1.0.0.20220330.2787\Robokit_FW_Rel_1.0.0.20220330.2787\RoboKit_source\Robokit-Apps\Robokit-App-Host-Interface\Debug\Makefile(105,1): error: recipe for target 'App_Common/rk_app_common_redswallow_if.o' failed
        make: *** Waiting for unfinished jobs....
        Building file: .././main.c
        Invoking: ARM/GNU C Compiler : 6.3.1
C:\Users\clk\Documents\Robokit_Full_Rel_v1.1\Robokit_Full_Rel_v1.1\firmware\Robokit_FW_Rel_1.0.0.20220330.2787\Robokit_FW_Rel_1.0.0.20220330.2787\RoboKit_source\Robokit-Apps\Robokit-App-Host-Interface\main.c(129,34): error: rk_core_ics43434_api.h: No such file or directory
         #include "rk_core_ics43434_api.h"
                                          ^
        compilation terminated.
        make: *** [main.o] Error 1
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-gcc.exe"  -x c -mthumb -D__SAME70Q21B__ -DDEBUG  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\CMSIS\5.4.0\CMSIS\Core\Include" -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\SAME70_DFP\2.4.166\same70b\include" -I"../../../Robokit-Core/ext_if_inc" -I"../../../Robokit-Core/board/ASF/thirdparty/RTOS/freertos/FreeRTOSV10.0.0/Source/include" -I"..\..\..\Robokit-Core\board\ASF\thirdparty\RTOS\freertos\FreeRTOSV10.0.0\Source\portable\GCC\ARM_CM7" -I"../../../Robokit-Core/utils/inc" -I"../../Apps-Common" -I"../../../Robokit-Core/core/platform/inc" -I"../../../Robokit-Core/libs/algo_finder/inc" -I"../../../Robokit-Core/libs/robovac/inc" -I"../../../Robokit-Core/board/config"  -O2 -ffunction-sections -mlong-calls -g3 -Wall -mcpu=cortex-m7 -c -std=gnu99 -mfloat-abi=hard -mfpu=fpv5-d16 -MD -MP -MF "main.d" -MT"main.d" -MT"main.o"   -o "main.o" ".././main.c" 
C:\Users\clk\Documents\Robokit_Full_Rel_v1.1\Robokit_Full_Rel_v1.1\firmware\Robokit_FW_Rel_1.0.0.20220330.2787\Robokit_FW_Rel_1.0.0.20220330.2787\RoboKit_source\Robokit-Apps\Robokit-App-Host-Interface\Debug\Makefile(126,1): error: recipe for target 'main.o' failed
        Building file: .././robokit_app_host_if_task.c
        Invoking: ARM/GNU C Compiler : 6.3.1
C:\Users\clk\Documents\Robokit_Full_Rel_v1.1\Robokit_Full_Rel_v1.1\firmware\Robokit_FW_Rel_1.0.0.20220330.2787\Robokit_FW_Rel_1.0.0.20220330.2787\RoboKit_source\Robokit-Apps\Robokit-App-Host-Interface\robokit_app_host_if_task.c(127,22): error: FreeRTOS.h: No such file or directory
         #include <FreeRTOS.h>
                              ^
        compilation terminated.
        make: *** [robokit_app_host_if_task.o] Error 1
        "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\arm\arm-gnu-toolchain\bin\arm-none-eabi-gcc.exe"  -x c -mthumb -D__SAME70Q21B__ -DDEBUG  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\arm\CMSIS\5.4.0\CMSIS\Core\Include" -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\SAME70_DFP\2.4.166\same70b\include" -I"../../../Robokit-Core/ext_if_inc" -I"../../../Robokit-Core/board/ASF/thirdparty/RTOS/freertos/FreeRTOSV10.0.0/Source/include" -I"..\..\..\Robokit-Core\board\ASF\thirdparty\RTOS\freertos\FreeRTOSV10.0.0\Source\portable\GCC\ARM_CM7" -I"../../../Robokit-Core/utils/inc" -I"../../Apps-Common" -I"../../../Robokit-Core/core/platform/inc" -I"../../../Robokit-Core/libs/algo_finder/inc" -I"../../../Robokit-Core/libs/robovac/inc" -I"../../../Robokit-Core/board/config"  -O2 -ffunction-sections -mlong-calls -g3 -Wall -mcpu=cortex-m7 -c -std=gnu99 -mfloat-abi=hard -mfpu=fpv5-d16 -MD -MP -MF "robokit_app_host_if_task.d" -MT"robokit_app_host_if_task.d" -MT"robokit_app_host_if_task.o"   -o "robokit_app_host_if_task.o" ".././robokit_app_host_if_task.c" 
C:\Users\clk\Documents\Robokit_Full_Rel_v1.1\Robokit_Full_Rel_v1.1\firmware\Robokit_FW_Rel_1.0.0.20220330.2787\Robokit_FW_Rel_1.0.0.20220330.2787\RoboKit_source\Robokit-Apps\Robokit-App-Host-Interface\Debug\Makefile(133,1): error: recipe for target 'robokit_app_host_if_task.o' failed
    Done executing task "RunCompilerTask" -- FAILED.
Done building target "CoreBuild" in project "Robokit-App-Host-Interface.cproj" -- FAILED.
Done building project "Robokit-App-Host-Interface.cproj" -- FAILED.

Build FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

 

I'm beginning to wonder if our company's malware protection is running interference. It stopped me from running debug until I asked IT to allow it. 

 

I also toyed with the idea of testing the I2C sensor I'm going to run on this board with a Pi. After digging around in voltage translators and soldering transistors onto a board, I decided to make that a hail Mary attempt I may use later. A friend who's got way more experience suggested using PlatformIO with a vscode plug-in instead of Studio but it doesn't look like PlatformIO supports this particular board.  

 

Also, moving files didn't resolve RoboKit-Core not loading. That just made it and RoboKit-App-Smart not load. 

 

Last Edited: Thu. Jun 16, 2022 - 02:28 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Moving the RobotKit_Source file out of it's root location did the trick!