On the Wisduo RAK3172 Evaluation Board, I wish to program and debug via the Arduino IDE. Currently my IDE only provides “J-Link” under “Programmer” in the “Tools” menu. This was the only option even when nRF software was not installed on this system.
How am I really supposed to get the IDE to program and debug?
The QuickStart guide does not seem to explain it anywhere.
The only option I can find through a lot of reading was that you have to use STM32CubeProgrammer or WisToolbox with Python installed system-wide and provide it a .zip archive with a .bin of your program.
Is there no way to debug or integrate this with Arduino IDE?
I am on Windows 11 native and using an evaluation board with the CH340E chip on UART2.
The RAK3172 Evaluation Board comes with a USB connector. You connect the evaluation board with the included USB cable to your computer, it will show up as an USB COM port.
Select this USB COM port in Arduino IDE to flash an application.
The “Programmer” option in Arduino IDE is for flashing a bootloader afaik.
I was hoping we were past the basics hah. But the idea is that the programmer field needs to be left unpopulated (as with the settings when one presses “Reload Board Data”). This in turn utilises the uploader_ymodem.{py,exe} from the BSPs tools directory to perform the transaction. This is because it is declared in boards.txt under WisDuoRAK3172EvaluationBoard.upload.tool=uploader_ymodem.
Unfortunately that information is hidden from the user and it appears as though there is no programmer available when you initially select the evaluation board after downloading its BSP.
The programmer setting is populated with entries from programmers.txt which contains only values pertaining to modules containing nRF SoCs (nRF52s) and therefore contains nrfjprog and nrfutil_boot configurations for boot and program flashing.
I have a lot more questions about the behaviour of YModem though. Why is it trying to do a 1200 baud serial reset? Is this coded it RAK’s firmware like this?