LytsingStudio / LTBL-ESC

Sensorless Brushless Motor ESC firmware
GNU General Public License v3.0
33 stars 5 forks source link

How to compile? #1

Open abrarakram19 opened 4 years ago

abrarakram19 commented 4 years ago

Thanks for this open project. Can you please write some procedures how to compile. Or add some .Bin files to repository. Thanks and keep it up.

LytsingStudio commented 4 years ago

Thanks for your support and recommends.

How to compile ? You can open .uvprojx file with Keil MDK, compile function is provided in this software. You also can use the software to download code and debug.

About binary file :

  1. LTBL V1.3 demo code had been compiled and binary file had been uploaded.
  2. Binary file start at 0x08000000 (STM32F051K6U6)
  3. Download "LTBL Reference Schematic (Controller Part).pdf" for more about pin map.
  4. Refer to the list below for PWM positive pulse width distribution : Width => Throttle 800us - 1150us => -MAX - 0 1150us - 1250us => 0 (dead zone) 1250us - 1700us => 0 - MAX

About project progress : I try to make it more smoothly at startup stage these days. A new version of LTBL is coming soon. It will be work better on electrical skateboard.

If you have more questions, please leave a message.

abrarakram19 commented 4 years ago

Could not find any bin file in any folder, please upload bin file. And also can't compile in Keil uVision5 installed MDK and all necessary packs, but when i open .uvprojx file, not all files and folders open there in IDE for example LTBL folder and all .h files. And if i try to build target it give hundreds of errors and warnings. Actually i am not very expert in coding still learning. But i am very excited about your project and looking forward for your further versions of this project and hope you will guide me with some more explanation or at least regularly upload bin files along with new source codes. Thanks for your open project. Still i am not be able to test it on hardware but wishing to be successful with smoother operation for all bldc motors like in running and out running. With bidirectional and brakes.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/LytsingStudio/LTBL-ESC/issues/1?email_source=notifications&email_token=AMGIMWQZ5I33HAPBJHBQAETQ72HJBA5CNFSM4KLX43FKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ6TAYA#issuecomment-578629728, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMGIMWV6ISCKNPQDPIWQF2DQ72HJBANCNFSM4KLX43FA .

LytsingStudio commented 4 years ago
  1. The binary file is in the root directory.😂
  2. Make sure that your Keil uVision 5 had been activated. Inactivated software limits the size of code.
  3. Make sure that you have install correct packs (not HAL libs). if you are not sure it is correct, you can uninstall them and download https://keilpack.azureedge.net/pack/Keil.STM32F0xx_DFP.1.0.1.pack
  4. If all above fails, you can provide me more details about errors and warnings.
  5. LTBL V1.3 may not work very well at startup stage, I will test LTBL V2.0 and push it as soon as possible. I'm a student in an ordinary university. There are many academic problems that I can't understand, so there may be something irrational even errors in my codes. Your support is very important to me.😉