RT1021 semihosting max line length?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RT1021 semihosting max line length?

1,188 Views
rshipman
Contributor V

Hi,
Please see attached project for the RT1021. It is a C++ semihosting project.
It simply prints 50 numbers without a std::endl or \n.
Why does the output become garbled after approx 476 characters? See attached image.
Is this a semihosting max line length buffer issue?
Can the buffer size be obtained or increased?
Many thanks for your help.
Ronnie

MCUXpresso IDE v11.3.0 [Build 5222] [2021-01-11]
SDK_2.9.1_EVK-MIMXRT1020

 

Labels (1)
0 Kudos
6 Replies

1,160 Views
rshipman
Contributor V

Hi Jeremy,

Thank you for your reply.

It turns out that this problem only occurs using the LPC Link2 debugger.

It works fine when using the OpenSDA debugger. So I expect that is what you must have used.

So I was trying to access the LPC Link2 information and perhaps update to the latest firmware, but I get access denied errors:

 

>c:\nxp\LPCScrypt_2.1.2_57\scripts\boot_lpcscrypt.cmd

Cannot open DFU device 1fc9:000c

Booting LPCScrypt target with "LPCScrypt_240.bin.hdr"

Access is denied.

LPCScrypt target booted

 

>c:\nxp\LPCScrypt_2.1.2_57\bin\lpcscrypt targetinfo

No serial ports

 

Any ideas?

Should I even be trying to update the LPC Link2?

Do you know why this line length issue is caused by this debugger?

 

Btw I went to this page first: https://community.nxp.com/t5/LPCware-Archive-Content/LPC-Link-2-Configuration-Tool/ta-p/1111856

It told me to download LPCScrypt v2.1.2 and go to: https://www.segger.com/products/debug-probes/j-link/models/other-j-links/lpc-link-2 for updates.

Is this the right thing to do please?

 

Kind regards,

Ronnie

 

0 Kudos

1,155 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
In my previous reply, I forgot to tell you that my testing board is MIMXRT1020-EVK and I used the on-board debugger tool: OpenSDA.
Maybe you can tell me which board did you use.
To update the firmware of the LPC-link2, please refer to the below link.

https://www.nxp.com/design/microcontrollers-developer-resources/lpc-microcontroller-utilities/lpcscr...
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

1,146 Views
rshipman
Contributor V

Hi Jeremy,

Yes, I was also using the MIMXRT1020-EVK eval board.

Using the on-board debugger (OpenSDA), I do not see this line length problem.

Using the NXP LPC-link2 debugger, I do see this problem.

Thanks for the link.

Kind regards,

Ronnie

0 Kudos

1,141 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
I'll test with the LPC-link2 later.
BTW, did the phenomenon happen independently of the firmware of the LPC-link2?
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

1,135 Views
rshipman
Contributor V

Thanks, Jeremy.

The problem occurs with the LPC-Link2 as it comes from the factory, without any mods. (I haven't yet been able to upgrade its firmware or anything like that.)

Kind regards,

Ronnie

 

0 Kudos

1,171 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
I‘ve not encountered a similar phenomenon you mention actually.
I even create a C++ project to try to replicate this phenomenon (please check the attachment).
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

 

0 Kudos