Sudden issue programming or flashing

Technical questions regarding the xTIMEcomposer, xSOFTip Explorer and Programming with XMOS.
Machdisk
New User
Posts: 3
Joined: Wed Aug 01, 2018 11:17 am

Sudden issue programming or flashing

Postby Machdisk » Wed Aug 01, 2018 11:25 am

Hello All,

I'm working on a custom board based on the XU224. I have been flashing/running programs happily from xtime composer with the xtag3 programmer what must have been hundreds of times when suddenly (without changing any hardware or code) I can no longer do either and I get this error:

xrun: First stage multi-node boot failed, please check XN file and Xmos link connectivity

And no other feedback. Interestingly the board boots and runs fine on the code which is on the flash chip from before I lost the ability to program the thing.

When I make an attempt, the existing code on the board stops executing, the processor appears to reset and the xtag 3 LEDS will go on (5 blinking or steady green plus one red LED). That continues until something times out in about 20/30 seconds and I get the above error message.

Any ideas?
User avatar
mon2
XCore Legend
Posts: 1166
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Postby mon2 » Wed Aug 01, 2018 12:49 pm

Are you able to upload fresh code using xrun to your custom board?

The issue may be that is xtag3 board has stopped working. Some others have reported similar quirks in the past and may be esd related.
matthew1
Active Member
Posts: 47
Joined: Mon Oct 19, 2015 2:12 pm

Postby matthew1 » Wed Aug 01, 2018 2:17 pm

If you have spares, could you try this XTAG on a different board, and a fresh XTAG on the current board? Would be good to check if the problem follows the board or the debugger.

Thanks,

Matthew.
XMOS
User avatar
mon2
XCore Legend
Posts: 1166
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Postby mon2 » Wed Aug 01, 2018 3:17 pm

With a quick review of the XTAG3 schematic there does not appear to be any ESD protection on the USB lines between the USB connector and the XMOS processor.

Suspecting that ESD has nuked the adapter but confirm with another XTAG3 tool or different target board with this tool.

Sad as ESD protection (high speed) for both USB lines is under $ 0.05 USD from Socay or others.
Machdisk
New User
Posts: 3
Joined: Wed Aug 01, 2018 11:17 am

Postby Machdisk » Wed Aug 01, 2018 4:51 pm

Definitely not the XTAG that is at fault actually, It still works on another board and a second XTAG doesn't work on the first board.
Machdisk
New User
Posts: 3
Joined: Wed Aug 01, 2018 11:17 am

Postby Machdisk » Wed Aug 01, 2018 5:01 pm

As to using XRUN, I assume you mean over USB and this board doesn't have a separate USB port unfortunately. It's the XTAG port or bust and I can't really let it be bust. The Xtime IDE still detects the target via the xtag but then can't do anything except for resetting the board. It's got me a bit baffled as if it can detect the target and reset the board that would imply that the debug port on the xmos chip is at least mostly working (and there isn't exactly much to go wrong there). The fact that the chip will happily boot and run off whats on the flash implies that all the boot, power cycling and tile 2 set up pull ups are working which leaves...?
User avatar
infiniteimprobability
XCore Legend
Posts: 1079
Joined: Thu May 27, 2010 10:08 am

Postby infiniteimprobability » Thu Aug 02, 2018 8:49 am

From the command line, I assume xrun -l completes OK? This queries the JTAG modules on each node.

The loading process is quite complex behind the scene. Yes there is the communication with the JTAG module but If either one of the processors can't run properly (reset, power good, decoupling, clock etc.) then it can prevent loading and give you a message as seen (it first loads a bootloader before the actual binary). Have you made any changes to the HW or even the xn file recently?
User avatar
mon2
XCore Legend
Posts: 1166
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Postby mon2 » Thu Aug 02, 2018 10:12 am

Try the following trick which is to prevent the external flash from loading and then erase it or reload with fresh code:

viewtopic.php?t=2820




Please post your results.
User avatar
infiniteimprobability
XCore Legend
Posts: 1079
Joined: Thu May 27, 2010 10:08 am

Postby infiniteimprobability » Thu Aug 02, 2018 11:25 am

prevent the external flash from loading


Good point..

Who is online

Users browsing this forum: Bogdankjg, Bogdanoip and 25 guests