Am I able to use SEMIHOSTING on MCU-LINK?

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

Am I able to use SEMIHOSTING on MCU-LINK?

跳至解决方案
1,524 次查看
daisukefukuda_n
Contributor III

Hi there!

This is Daisuke FUKUDA with NEXTY Electronics Japan. Thank you for support.

 

I'm trying to use SEMIHOSTING with MCU-LINK and LPC11U68JBD100. However I still cannot see  SEMIHOSTING works successfully. What I did is below.

1. I build the software for LPC11U68JBD100 with DEBUG mode and SEMIHOSTING based on LPCOpen.

2. I connect Cortex Debug Connector in MCU-LINK to LPC11U68JBD100 in my board. After that, I turn the board on.

3. I press Debug ... (Green insect) in MCUxpresso.

After 3, It looks like the target and MCUxpresso is frozen.

However I disable SEMIHOSTING as the define and connect UART cable in MCU-LINK to LPC11U68JBD100. And then, I press Debug. Finally I see it works so well and the result of printf redirects to UART. So I can see the result via TeraTerm.

In addition to that, SEMIHOSTING works so well when I connect LPC-Link2 to my LPC11U68JBD100. 

Am I able to use SEMIHOSTING on MCU-LINK? Now I think SEMIHOSTING doesn't work in MCU-LINK. If I wanna use SEMIHOSTING, I have to use LPC-LINK2, right?

 

Best regards,

FUKUDA

 

 

标签 (1)
0 项奖励
回复
1 解答
1,433 次查看
daisukefukuda_n
Contributor III

Hi Alice,

This is Daisuke FUKUDA with NEXTY Electronics Japan. I'm sorry for being late to reply.

I could connect MCU-Link to my board at last based on your advice. Now I'm migrate to it from LPC-Link2 in my software.

Your answer is what I was looking for. Thanks!

 

Best regards,

FUKUDA

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,511 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello FUKUDA,

I use MCU-LINK debug LPC11u68, the Semihost can work well. Pay attention, when print to Console view,

need debug your project, click the "Debug" button as below picture.

Enable :

#define DEBUG_SEMIHOSTING

Alice_Yang_0-1619511630409.png

 

I also attached my test project, you can test on you side, it based on LPCopen.

 

BR

Alice

0 项奖励
回复
1,500 次查看
daisukefukuda_n
Contributor III

Hi Alice,

 

Thank you for your quick reply and a useful hint.

Once I check based on your answer, get back to you.

 

Can you keep this issue?

 

Best regards,

FUKUDA

0 项奖励
回复
1,493 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello FUKUDA,

OK, you can comment here with any question.

 

BR

Alice

0 项奖励
回复
1,434 次查看
daisukefukuda_n
Contributor III

Hi Alice,

This is Daisuke FUKUDA with NEXTY Electronics Japan. I'm sorry for being late to reply.

I could connect MCU-Link to my board at last based on your advice. Now I'm migrate to it from LPC-Link2 in my software.

Your answer is what I was looking for. Thanks!

 

Best regards,

FUKUDA

0 项奖励
回复