Skip to content

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.

Upload code to the board

Materials:

materials

Steps

  1. Connect the SWD to the correct pins on your ST-LINK.
SWD Dev board type C 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)

Upgrading ST-Link/J-Link firmware

Note: You'll probably get "DEV_USB_COMM_ERR" when trying to upload if not done.

  1. Download and open STM32CubeProgrammer
  2. Make sure you have the latest drivers from ST-Link installed
  3. Connect the USB stick
  4. Select ST-Link on the right panel
  5. Click on update firmware
  6. Don't worry if at the end, device connection gets lost. It worked just fine to me :D
  7. You'll now it's ready once you get the same result from connecting the board with a USB cable or through the debugger STM32CubeProgrammer view

Update Board Firmware:

  1. Download the User guide and read it. It's pretty helpful.
  2. Go to RM site
    • Look for your Dev Board's site
    • Click on downloads
    • Download the factory program
  3. 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.
  4. Write the value in memory to write the program.
Screenshot 2024-08-19 at 12 20 45 p m
  • Firmware Package: TODO: research

Clone this wiki locally