Setting up a Nuvoton Nu-Maker-M032SE

nanoController
Posts: 22
Joined: 27 Jun 2022, 11:33

21 Dec 2022, 09:33

Though the helloWorld project does compile on Linux, and does burn to the target, I never saw it print on serial. I had to go to Windows to see that print. (I used putty on Windows.)
This is despite the fact that VCOM pins 1-2 were set to On, on the mini-debugger, and the latter's usb connection was clearly used by openocd to burn to the target.
(N.B. though openocd is supposed to talk to a local gdb -- typically for talking to a remote, gdb server, on a remote target -- its sole route to the eval board is via the mini-debugger's usb port. I've not looked at openocd in a few years, so I don't know/recall its mechanisms.)
.
(BTW, semihosting did not help.)
.
I used
minicom -D /dev/ttyACM0 -b 115200
to watch the printf, as ACM0 was created when I connected the mini-debugger' s usb (which runs at 115200 baud rate, 8n1) to the development host's/PC's usb port. But I saw nothing.
I don't know why this failed. I checked numerous options within eclipse, to no avail.
This is not a huge issue for me, as I should be able to wire directly to the uC's tx/rx pins, but it was annoying that an example project did not print.

nanoController
Posts: 22
Joined: 27 Jun 2022, 11:33

21 Dec 2022, 09:53

Some quick notes on eclipse, which I'd not used in years.
.
Eclipse has an annoying Indexer which insists upon parsing (and, seemingly, compiling) all the files under your project tree! Disabling it has not quite worked. I tried
eclipse > project name > Properties > C/C++ General > Indexer
then enable
Enable Project Specific Settings
whcih then allows you to disable
Enable Indexer
.
.
To compile
eclipse > Project > Build Project
.
To (compile and) burn to the target, as a debug (ie non-release, ie development) build,
eclipse > Run > Debug Configurations > GDB Nuvoton Nu-Link Debugging > helloWorld Debug

then click the 'Debug' button at the bottom right. Or some such a procedure, IIRC. In brief, you need to go into Debug Configurations.
(I've not yet looked much into Launch Configurations. There is also Perspectives, but that has to do with IIRC debugging.)

wclin
Posts: 6
Joined: 21 Apr 2021, 14:34

21 Dec 2022, 13:39

Hi,

We can't reproduce the helloworld can not print issue. It is fine in my testing.

I use IDE and code repository is in github.

(1) NuEclipse_V1.02.021_Linux download hyperlink:
https://www.nuvoton.com/resource-downlo ... 1608014594

(2) M031 BSP repository on github:
https://github.com/OpenNuvoton/M031BSP

I also record my steps in the video clip. https://www.youtube.com/watch?v=qoUF9t4jPYU
Hope it can helpful.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests