Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Impossible to flash M2351 device from Linux PC #31

Open
tdrozdovsky opened this issue Dec 26, 2019 · 3 comments
Open

Impossible to flash M2351 device from Linux PC #31

tdrozdovsky opened this issue Dec 26, 2019 · 3 comments

Comments

@tdrozdovsky
Copy link
Contributor

Need to make a viable way to flash device from Linux

@tdrozdovsky tdrozdovsky added this to the v0.4 milestone Dec 26, 2019
@tdrozdovsky tdrozdovsky removed this from the v0.4 milestone Jan 3, 2020
@danielRep
Copy link

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.

@tdrozdovsky
Copy link
Contributor Author

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

@danielRep
Copy link

danielRep commented Apr 30, 2021

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:
image
Startup Tab:
image

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants