I want to upgrade the firmware of RAK4270 Breakout Board from v220.127.116.11 to the latest version. I downloaded the latest firmware file, RAK4270_Latest_Firmware.zip and it’s version is v18.104.22.168.
As Quick Quick Start Guide of RAKDAP1, I installed pyOCD and stm32l071kb package for RAK4270. (OS: Ubuntu 20.04, pyocd: 0.32.1)
And then I executed command as following to upgrade firmware;
pyocd flash -t stm32l071kb RAK4270_v22.214.171.124_App_20210525.bin
0000520:CRITICAL:main:Target type stm32l071kb not recognized. Use ‘pyocd list --targets’ to see currently available target types. See …
Traceback (most recent call last):
File “/usr/local/lib/python3.8/dist-packages/pyocd/board/board.py”, line 75, in init
self.target = TARGETself._target_type
When I executed pyocd list --targets, there was no stm32l071kb. However, I found that there were stm32l071kbtx and stm32l071kbux packages. So I tried stm32l071kbtx/stm32l071kbux instead of stm32l071kb as followings;
pyocd flash -t stm32l071kbtx RAK4270_v126.96.36.199_App_20210525.bin
The result of execution:
0000500:WARNING:cmsis_pack:Page size (1024) is larger than sector size (128) for flash region IROM1; reducing page size to 128
0035672:INFO:loader:Erased 100736 bytes (787 sectors), programmed 100736 bytes (787 pages), skipped 0 bytes (0 pages) at 2.81 kB/s
After that, RAK4270 Breakout Board does not respond. I guess the reason is a mismatch between pyosd package and the firmware.
My questions are
- Is it possible to recover RAK4270 Breakout Board which does not respond?
- How to upgrade RAK4270 Breakout Board using RAKDAP1?