Flashing the bootloader using the RACDAP1 with RAK2270

@carlrowan

Here is an update. On Linux Ubuntu I got past the above libusb issue and also discovered a naming issue by running pyocd list --targets



 stm32wle5c8ux             STMicroelectronics       STM32WLE5C8Ux                STM32WL Series, STM32WLE5   pack
  stm32wle5cbux             STMicroelectronics       STM32WLE5CBUx                STM32WL Series, STM32WLE5   pack
  stm32wle5ccux             STMicroelectronics       STM32WLE5CCUx                STM32WL Series, STM32WLE5   pack
  stm32wle5j8ix             STMicroelectronics       STM32WLE5J8Ix                STM32WL Series, STM32WLE5   pack
  stm32wle5jbix             STMicroelectronics       STM32WLE5JBIx                STM32WL Series, STM32WLE5   pack
  stm32wle5jcix             STMicroelectronics       STM32WLE5JCIx                STM32WL Series, STM32WLE5   pack

So my actual install command should be one of the above boards. Any idea which one is correct for the RAK2270?

pyocd flash -t stm32wle5c8ux RAK2270.v1.0.0.RC6.ForStandard.hex

on windows I still get the libusb error

0001331 W STLink, CMSIS-DAPv2 and PicoProbe probes are not supported because no libusb library was found. [common]
0002050 C No ACK received [__main__]

but on Ubuntu I only get the 0002050 C No ACK received [__main__] error

which looks like things are still not communicating.

I think we should start a new thread about the RAK2270 with the STM32CubeProgrammer (I would make a video about it if I can get it working) I am installing it now, and have used it before. I can’t remember if I am supposed to pull BOOT0 low or high I think it is LOW (High would be easiest to short the two pins that are VCC and BOOT0).

About the RAKDAP1 as a drag and drop we probably have to flash specific code to the board and I don’t really want to brick it. If anyone can get that working it is so much fun to install .hex files using drag and drop, makes the other methods seem ridiculously difficult.

Not really sure why my board says 0 ARM CMSIS-DAP-v1-MuseLab 0700000100340076340000184e543352a5a5a5a597969908 ✖︎ stm32f103rb NUCLEO-F103RB after pyocd list I don’t own any nucleo boards. What should it say if libusb was installed properly.

Speaking of “libusb” is that something I have to use zadag.exe? I don’t really like zadag and some online things about it not working with newer windows. Does anyone have any tutorials about using it and what is the official download site etc.