My usb serial j-link (the one connected to PRINTF) on this board works fine when I first power it on. Then if you even look at it funny it all scrambles (the output looks like what you'd get if you changed the baud rate for example)
It does this with the default firmware.
It does this with every example project I've flashed.
It does this when debugging.
Unplugging the device, and plugging it back in usually fixes it temporarily.
Here's an example running one of the SPI example projects:
LPSPI board to board edma example.
This example use one board as master and another as slave.
Master and slave uses EDMA way. Slave should start first.
Please make sure you make the correct line connection. Basically, the connection is:
LPSPI_master -- LPSPI_slave
CLK -- CLK
PCS -- PCS
SOUT -- SIN
SIN -- SOUT
GND -- GND
Master transmit:
1 2 3 4 5 6 7 8 9 A B C D E F 10
11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20
21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30
31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40
This is LPSPI master edma transfer completed callback.
This is LPSPI master edma transfer completed callback.
Error occurred in LPSPI transfer !
Press any key to run again
*here i pressed a enter*
š¿[19]d´[0B]2È![19]ì™f›[lÄ!Yl°ý[ÛdÛð[Ûdí0[1B]i²[1A]eðp
3È
2Èa[1B]´È)[1B]l[19]²Ê`[[6Ù[07][ÛdÛ1-[1A]™[1B]Ûšo
2È1[19]¤È!™Ye[d€[19]m[1B]YÿÚÛ6Ù[07][6Ù[07][1B]6™[1B]
¶YeÈ2[19][19]ml3™YlÈ1Ye°[0B]3[ÛdÛñ
Û4Ù[07][1B]iÞp›Û
šoÐ [18][19]$Èa[1B]d™²Ø`YdËa[1B][19][ÛdÙ[07]ÚÛ6Ù[07][1B]i™»Û[1A]¶Yl°1[19]Yl[3Äh[dÌ/[19]l’[19]ù[Ûdëð[ÛdÛa±[[0C]³Ø
›Yl[¤Ìh[d™b‹YdY²È2Ù[ÛdÛñ[Ûdë0[1B]i²[1A]e°šoô"[18]¶È[10],2YdÛa[19]d[,Ì0ù[‹6Ù[07][ÛdÛ1+[1A]™[1B]Û
šo°[1B]³[19]dˆ`L3™bÙ!Ye‰[ 3ÿ[1B]Û$Ù[07][Û6Ù[07][1B])™«›[1A]¶[1B]l)³Ì`[dÌ[00][d-3Ø$Y ø[Ûdíð[1B]ÛdÙ[07][1B]iÒp[1B]Ûš¯[d)3Ø YdÈa[19]d[0F]6É%Yû[ÛdÛñ[Ûdï0[1B]i²[1A]e°pK³[19]d[0F]6È Y,Ø!Ye€[YYÛ[‹6Ù[07][ÛdÛ1/[1A]™[1B]Ûšo°i³YlÚ!Ye°[dÌ!›[19][19]3Èþ
Û4Ù[07][‹6Ù[07][1B]7™[1B]
I've tried it with multiple terminal programs. I use Termite primarily because it's robust and simple, and doesn't cook the text.
I suppose I could use tera term but I am confident that based on the other two monitors I used it will be the same.
The problem sorts itself out if I power the device off and unplug it.
Hi @honey_the_codewitch ,
Thanks for contacting NXP tech support!
This is a bit of a strange problem, so we suggest that you can troubleshoot the serial port tool first. We recommend you to use Tera Term. also, if you are using MCUXpresso IDE, you can try to print the output message using semihost debug method.
Best regards,
Gavin