I have been trying to figure out how to add a custom app to VESC-Tool. I tried to follow http://vedder.se/2015/08/vesc-writing-custom-applications/ but I found that the version of VESC-Tool I have (https://github.com/vedderb/vesc_tool) doesn't have the same file names as those referenced in the tutorial. I then tried to reverse engineer the steps recommended in https://vesc-project.com/node/618 to add a custom app, but I ran into the same problem of not having files with the right name. I skimmed through all the forum topics and I didn't find anything else that I thought would help with my problem.
Am I cloning the correct stuff?
Have the file names changed? If so what do I need to change where?
I am guessing I am just making a really stupid mistake. (I am not good or experienced with coding. I am a hardware person.) Any help or suggestions would be appreciated.
Thanks
Hi,
you want to add a page in vesc-tool to configure your custom app ?
or do you want to add a custom app to the vesc firmware ?
Georg
I want to add a custom app to the VESC Firmware.
Having a page on VESC Tool to configure my custom app would be nice, but I don't need that and will be happy if I can just add my custom app to the VESC Firmware.
okay,
have a look here https://www.vesc-project.com/node/310
first, try to compile and run a "standard" firmware. Just have a look at conf_general.h and configure your hardware. try to upload it via vesc-tool. maybe you have to flash a bootloader first, maybe you need a SWD programmer ... it depends on your hardware and your skills :)
inside the application subfolder you can place your custom app. have a look at app_custom_template.c as a starting point and "activate" your custom app c-file in conf_general.h, there is a section preconfigured for that.
I got to the point where I am able to make the BLDC Firmware, but I can not make the Vesc_Tool Firmware.
When I "make" the VESC_Tool Firmware I get the following error: "make: ** No targets specified and no makerfile found. Stop."
I cloned vesc_tool to the folder vesc_firmware and did "cd vesc_firmware".
I also can not find the conf_general.h file to edit it for VESC 4.12. I did a search within the vesc_firmware file and it isn't there. I also tried searching for conf and seeing if any of those files had a similar section of code as that shown in the tutorial. I didn't see any.
Sorry, if these problems are ID 10 T errors. I am relatively new to Linux and VESC. Thanks for helping me learn.
For future people looking to set it up: a lot of the commands given in the tutorial no longer work. I will link what I found below hopefully it helps.
https://stackoverflow.com/questions/48147356/install-qt-on-ubuntu
https://github.com/bbcmicrobit/micropython/issues/619
https://unix.stackexchange.com/questions/453032/how-to-install-a-functional-arm-cross-gcc-toolchain-on-ubuntu-18-04-bionic-beav
https://github.com/travisgoodspeed/md380tools/issues/103
https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
bldc IS the Firmware. This is what you want.
vesc-Tool is the gui to Control the vesc. There is on need to modifiy
Oh. So I add my custom app to BLDC tool then I upload it with the custom firmware option in VESC-Tool?
What from BLDC tool do I upload? The make file?
Thanks for the help. I feel like I am actually progressing now.
Your custom app gets built as part of the VESC firmware build, which is in a Git repository called "bldc". You do not need to edit & compile VESC Tool or the older BLDC Tool.
Hello Georg,
If I wanted to add a page to VESC-Tool and uses these parameters to customize my VESC, how can I do that?
Thanks,
Ben
Hey Ben,
i don't know :) There is a custom_conf menu entry inside the developer menu, but i did not figure out how to use it
Georg