Configuring Semihosting Console with MCUXpresso for VScode

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Configuring Semihosting Console with MCUXpresso for VScode

跳至解决方案
4,196 次查看
CktDesigner
Contributor IV

I converted a MCUXpresso IDE project to MCUXpresso for VScode and got the project to compile.

Now I want to try debugging using a semihost console.    This works in the "IDE" version.

I'm using MCUXpresso SDK 2.14.1

If I compile using ConsoleType->UART, everything compiles, but I don't get any "printf" outputs

Since I'm using the Semihost console in the "IDE" version (and everything works), I attempted to switch to Semihosting in the VScode version:

In VScode, I selected Project->Configure->SetConsoleType->Semihost

                                   Project->Configure->SetLibraryType->Newlib-nano

I then rebuild the system and it fails loading.   There are many error messages indicating that functions (mostly from arm_librdimon_a-syscolls.o) are duplicated.   Some of the functions are:  _swiopen, _open, _unlink, _gettimeofday, _clock, _times, _isatty, _system, _rename, etc.

Again, this project compiles when the console type is "UART" (with not output), but fails with the console type of "Semihosting"...

Thoughts?

 

Also, once this compiles, is there any special arrangement needed to set up a terminal to receive the semihosting output?

Thanks in advance!

 

 

0 项奖励
回复
1 解答
4,171 次查看
CktDesigner
Contributor IV

I found a section on "Semihosting" in the Known Issues Document in the MCUXpresso for VS code Git webpage.

 

Applying the suggested workaround fixed the problem!

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,254 次查看
CktDesigner
Contributor IV

I need to copy this project to another laptop.    MCUXpresso for VS Code has been installed into VS Code, and the project has been ported.

I'm once again getting the duplicate entries when linking the project, so I found this (about a year old) posting (by me!) to see how it was resolved.    Unfortunately, I only stated that I followed the work-around from the known-issues page for MCUXpresso for VS Code.   But when I checked the current version of this github page, the issue and workaround are no longer there.

It also looks like the "Known Issues" page is not versioned, so I can't seem to find the older version.

Does anyone remember this workaround??

Thanks!!

0 项奖励
回复
4,172 次查看
CktDesigner
Contributor IV

I found a section on "Semihosting" in the Known Issues Document in the MCUXpresso for VS code Git webpage.

 

Applying the suggested workaround fixed the problem!

0 项奖励
回复