Thank you for a quick response rew.I use hw_410.h, since i'm a beginner in programing i have searched where i can modify the current offset and gain but without luck... Could you please be more specific, which parameters should i change in order to get it work.

The code more or less assumes that you have a resistor and a voltage amplifier (GAIN). So the default setup, a 1 mOhm shunt resistor results in a sensitivty of 1mV per A. (V/A is otherwise known as Ohm). Next there is a GAIN of 10x so we get: 10mV/A. That is what hte current line 84 and 87 are saying.

Suppose you have an ACS7xx chip with 20mV/A sensitivty, you simply specify a 20x gain or (but not both) a 2 mOhm shunt.

Sorry Rew but I'm afraid it does not help.I know it is for sure really obvious but I just need the starting point. you modified the hw_410.h file after having downloaded it. Then what did you do with that files? You compile it with what ? how can the board be aware of that changed files ? how do you "flash the board" ?

On Ubuntu, you have to install the arm compiler. I do not remember the commands. It was years ago that I installed it and when I upgrade, it automatically installs the same packages that I had.

Then in the directory above the hwconf files you type "make". Then make will inspect the files and determine which ones need to be recompiled. (if you change a hwconf file, or if it's your first time, usually all of them.)

Then you end up with a file build/BLDC<something>.elf This can be flashed into the processor. I use "st-util" to manage my STLINK programmer and then flash it using gdb (arm-none-eabi-gdb to be precise). Most others, I'm told, use "openocd", but I had some trouble using that and st-util worked for me.

If you have a real VESC there should be a bootloader in your VESC so that you can upload the new firmware using BLDC-tool. However I have never used that.