Configuring Semihosting Console with MCUXpresso for VScode

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Configuring Semihosting Console with MCUXpresso for VScode

ソリューションへジャンプ
4,195件の閲覧回数
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,170件の閲覧回数
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,253件の閲覧回数
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,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 件の賞賛
返信