CLEV663B examples - semi hosting bug

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

CLEV663B examples - semi hosting bug

911 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by robertpalmerjr on Fri Jul 11 09:04:24 MST 2014
I have recently loaded the CLEV663B examples (RC663-Classic, RC663-Polling) into LPCXpresso v7.1.1 and am seeing a bug in the semi hosting (__write() / __sys_write() ).

BUG - if the address of the string being sent to __write() / __sys_write() is ODD, it prints the string starting at the next EVEN address.

These examples, are older, and do not use the built in printf, instead they buffer the strings into a circular buffer and then call __write() / __sys_write() to actually print the data to the semi-hosting console.

If you load the RC663-Classic example and run it, the hex output will be garbled and a number of the other print strings will be missing the first character.

0 Kudos
Reply
3 Replies

847 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Mon Jul 14 06:48:22 MST 2014
As you say, these examples appeared to have been updated (back in April/May) - http://www.nxp.com/demoboard/CLEV663B.html#documentation

Please let us know if you continue to see problems with the new examples and I'll follow up with the appropriate division within NXP (I don't have access to an appropriate board, so can't test here in any sensible manner).

And if you can post a code snippet showing the semihosting problem you were seeing, that might be quite helpful in allowing us to investigate your original report. AFAIK it shouldn't matter what alignment the buffer is on for semihosting to work correctly.

Regards,
LPCXpresso Support.

0 Kudos
Reply

847 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by robertpalmerjr on Fri Jul 11 20:55:22 MST 2014
It appears that the version I have is no longer available on the NXP Web site, it has been replaced with the latest V3.0 of NXP NFC Reader Library.  The project I'm using is from the file: CLEV663B_MIFARE_Classic_Project_234010.zip  Going to try the new examples next.

I'm using the LPCXpresso LPC1114 Rev A board with the RC663 Blueboard V3.0
I'm using the LPC-Link connection, I do have a RedProbe+ but didn't want to hack up the board to use the RedProbe
I'm running IDE 7.1.1 on OS X 10.9
0 Kudos
Reply

847 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Fri Jul 11 10:51:05 MST 2014
I'm not familiar with this codebase - can you post a pointer?

Also what board and debug probe on you using, on which host OS and version?

Regards
LPCXpresso Support
0 Kudos
Reply