mTower
mTower copied to clipboard
Impossible to flash M2351 device from Linux PC
Need to make a viable way to flash device from Linux
I just started trying mTower but I stuck while I tried to find a way to flash from a Linux machine. Any progress on this? I'k actually trying the OpenOCD fork from Nuvoton github but without any success still.
I am flashing using Windows, but earlier I did it for the test using a OpenOCD in Linux. There really were some inaccuracies that needed to be corrected (unfortunately I don't remember which ones now). I'm on vacation now, but in a week I can look, maybe I can tell you what I was doing. If you succeed earlier, write please how you did it to share the experience for everyone
Ok, I was just able to flash and configure a development setup in Ubuntu 20.04.2 LTS. This is my setup:
Downloaded OpenOCD fork from Nuvoton repo: https://github.com/OpenNuvoton/OpenOCD-Nuvoton
After testing everything in a command line, I jumped to the front-end IDE that I am using to debug: Eclipse Embedded CDT (C/C++ Development Tools, formerly GNU MCU/ARM Eclipse) v6.1.2
At least for now, I am debugging only the secure part of mTower (mtower_s.bin). So, I create a new OpenOCD Debugging configuration with the following setup (I'll share some screenshots):
Debugger Tab:
Startup Tab:
Until now, everything seems running smoothly.
PS: I'm using the eclipse as a front-end, but you can easily shift for your favorite setup to debug.