servo/controller/fw/embed
2025-06-03 13:02:57 +03:00
..
include remove simple_foc commander and monitor 2025-05-30 17:15:34 +03:00
knowledges Removed unnecessary fillets, surfaces, and construction elements from each part; Eliminated duplicate parts; Restructured file and folder organization. 2025-01-13 15:09:31 +00:00
lib Removed unnecessary fillets, surfaces, and construction elements from each part; Eliminated duplicate parts; Restructured file and folder organization. 2025-01-13 15:09:31 +00:00
src Fix test and work with bootloader 2025-06-03 13:02:57 +03:00
test Fix test and work with bootloader 2025-06-03 13:02:57 +03:00
.clang-tidy Configure clang tools and update build settings 2025-01-18 18:27:28 +03:00
.clangd Configure clang tools and update build settings 2025-01-18 18:27:28 +03:00
.gitignore Test for angle 2025-05-13 14:43:45 +03:00
check_gcc_version.py Configure clang tools and update build settings 2025-01-18 18:27:28 +03:00
cubemx_config.ioc Removed unnecessary fillets, surfaces, and construction elements from each part; Eliminated duplicate parts; Restructured file and folder organization. 2025-01-13 15:09:31 +00:00
custom_script.ld Add offset for firmware 2025-05-29 18:57:25 +03:00
gen_compile_commands.py Add bootloader 2025-05-22 18:03:43 +03:00
hex_compile.py Add bootloader 2025-05-22 18:03:43 +03:00
platformio.ini Fix boot 2025-05-30 15:53:15 +03:00
README.md Fix test and work with bootloader 2025-06-03 13:02:57 +03:00

Встроенное ПО для сервипривода на STM32F446RE

Для разработки

pip install -U platformio
platformio run --environment robotroller_reborn
platformio run --target upload --environment robotroller_reborn 
platformio device monitor

Для прошивки

  • [Установить python3]
sudo apt install python3
  • [Устаноивть st-link]
sudo apt install st-link

Выбор интерфейса прошивки

CAN

  • Если уже есть какя-то основная прошивка, то чтобы перепрошить другую прошивку, добавляем флаг для бутлоадера
python3 firmw_update_flag.py [адрес устройства]
  • Передача прошивки по CAN
python3 firmware_can.py firmware.hex [адрес устройства]
python3 st-link.py firmware.hex

Работа по CAN

  • Установка адреса(если до этого не был установлен адрес, то адрес устройства = 0)
python3 set_id.py [адрес устройства]
  • Установка PID коэффициентов для угла
python3 writePID_angle_parametrs.py [адрес устройства]

-Чтение PID коэффициентов для угла

python3 readPID_angle_parametrs.py [адрес устройства]