You are here

Custom Apps

10 posts / 0 new
Last post
HammerHeadFett
Offline
Last seen: 4 years 4 months ago
Joined: 2020-06-16 22:28
Posts: 4
Custom Apps

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

CTSchorsch
Offline
Last seen: 3 months 2 weeks ago
VESC Free
Joined: 2018-07-13 09:55
Posts: 101

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

HammerHeadFett
Offline
Last seen: 4 years 4 months ago
Joined: 2020-06-16 22:28
Posts: 4

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. 

CTSchorsch
Offline
Last seen: 3 months 2 weeks ago
VESC Free
Joined: 2018-07-13 09:55
Posts: 101

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.

 

HammerHeadFett
Offline
Last seen: 4 years 4 months ago
Joined: 2020-06-16 22:28
Posts: 4

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

CTSchorsch
Offline
Last seen: 3 months 2 weeks ago
VESC Free
Joined: 2018-07-13 09:55
Posts: 101

bldc IS the Firmware. This is what you want. 
 

vesc-Tool is the gui to Control the vesc.  There is on need  to modifiy 

HammerHeadFett
Offline
Last seen: 4 years 4 months ago
Joined: 2020-06-16 22:28
Posts: 4

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.

TheFallen
Offline
Last seen: 2 months 2 weeks ago
VESC Original
Joined: 2017-09-11 11:46
Posts: 222

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.

bayetan
Offline
Last seen: 2 weeks 1 day ago
VESC Free
Joined: 2019-08-30 02:40
Posts: 14

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

CTSchorsch
Offline
Last seen: 3 months 2 weeks ago
VESC Free
Joined: 2018-07-13 09:55
Posts: 101

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