Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente |
| projets:tondeuse [2026/05/28 15:52] – [Conception] chef | projets:tondeuse [2026/06/14 15:34] (Version actuelle) – [Modification du Inc/config.h] chef |
|---|
| GND -> GND | GND -> GND |
| | |
| | Pour trouver comment il faut câbler le St-link et le récepteur RC, je vous propose de voir les excellentes explications de tchangly21 sur youtub.\\ |
| | https://www.youtube.com/watch?v=hxwh_wvMX74\\ |
| | |
| | |
| ===== Programmation ===== | ===== Programmation ===== |
| |
| C'est que le firmware est protégé il faut essayer : \\ | C'est que le firmware est protégé il faut essayer : \\ |
| openocd -f interface/stlink-dap.cfg -f target/stm32f1x.cfg -c "transport select swd" -c "adapter speed 10" | openocd -f interface/stlink-dap.cfg -f target/stm32f1x.cfg -c "transport select swd" -c "adapter speed 10" |
| | |
| | Mais ça bug ! \\ |
| | <code> |
| | openocd -f interface/stlink-dap.cfg -f target/stm32f1x.cfg -c “transport select swd” -c “adapter speed 10” |
| | Open On-Chip Debugger 0.12.0+dev-01486-g4e9b167e1 (2026-05-07-06:35) |
| | Licensed under GNU GPL v2 |
| | For bug reports, read |
| | http://openocd.org/doc/doxygen/bugs.html |
| | Unexpected command line argument: select |
| | </code> |
| | |
| | Du coup on lance :\\ |
| | openocd -f interface/stlink-dap.cfg -f target/stm32f1x.cfg |
| | |
| puis | puis |
| reset halt | reset halt |
| reset halt\\ | reset halt\\ |
| program /home/pat/ownCloud_pat/Projets/Divers/Tondeuse/hoverboard-firmware-hack-FOC/build/hover.elf verify reset exit\\ | program /home/pat/ownCloud_pat/Projets/Divers/Tondeuse/hoverboard-firmware-hack-FOC/build/hover.elf verify reset exit\\ |
| | **On remarque qu'il faut mettre le chemin complet ! Sinon il ne trouve pas le fichier.** |
| |
| <code> | <code> |