-
Notifications
You must be signed in to change notification settings - Fork 3
Getting ready to upload code
Jorge Pérez edited this page Aug 19, 2024
·
3 revisions
Note: There is a difference in uploading code and updating firmware for the Dev Board. Firmware is more like a a BIOS, it's a bootloader, the actual robot code is an application.

- DevBoard
- ST-LINK/J-LINK debugger:
- It was recommended to use this one: https://www.amazon.com/-/es/gp/product/B07SFGSSG8/ref=ox_sc_act_title_1?smid=A2K5DI8VX12AN1&psc=1
- Or EDU Jtag from Adafruit
- SWD -> 4 pin Dupont cable
- Extention jumpers(Optional)
- Connect the SWD to the correct pins on your ST-LINK.
1. Double check your connections
1. Make sure the ST-Link/J-Link firmware is updated (USB stick or box).
1. Triple check your connections
1. Once you have all of the above, you can follow one of the two versions for uploading code.
> * [Free](../../UpdloadCode_ARMToolChain.md)
> * [uKeil](../../UpdloadCode_ARMToolChain.md)
Note: You'll probably get "DEV_USB_COMM_ERR" when trying to upload if not done.
- Download and open STM32CubeProgrammer
- Make sure you have the latest drivers from ST-Link installed
- Connect the USB stick
- Select ST-Link on the right panel
- Click on update firmware
- Don't worry if at the end, device connection gets lost. It worked just fine to me :D
- You'll now it's ready once you get the same result from connecting the board with a USB cable or through the debugger
- Download the User guide and read it. It's pretty helpful.
- Go to RM site
- Look for your Dev Board's site
- Click on downloads
- Download the factory program
- With the help of a jumper, put the board on DFU mode
- Check remaining instructions at manual.
- DFU will allow you to update the board's firmware. However, we didn't.
- Write the value in memory to write the program.
- Firmware Package: TODO: research
With ❤️ from 🇲🇽