I'm using the AES key option on xburn for secure booting. Out of 20 boards I've got, 19 have programmed and booted with no problems, but this last board just will not program the aes key. I'm using the command :
xburn --id 0 --lock aes.key --target-file board.xn --enable-jtag --disable-master-lock --no-version-check
but all I get back is "xburn: locking device failed". No other clues at all. I can run code from the debugger with no problems at all, so I think power etc is all good on the board.
I'm a bit stuck on this, has anybody got any ideas how to work out what's wrong with this board?
xburn: locking device failed
-
- XCore Addict
- Posts: 131
- Joined: Wed Aug 03, 2011 9:13 am
-
- Respected Member
- Posts: 367
- Joined: Wed May 31, 2017 6:55 pm
Can you try dropping the jtag speed? It may be a marginal timing/signal integrity problem. For example:
Code: Select all
--jtag-speed 2
-
- XCore Addict
- Posts: 131
- Joined: Wed Aug 03, 2011 9:13 am
Good idea, but same result "locking device failed". It would help if there was a clue in the error message, but even adding --verbose doesnt give any more information.CousinItt wrote: ↑Sat Feb 20, 2021 2:59 pm Can you try dropping the jtag speed? It may be a marginal timing/signal integrity problem. For example:Code: Select all
--jtag-speed 2
-
- Respected Member
- Posts: 367
- Joined: Wed May 31, 2017 6:55 pm
Does xburn -l give a reliable response?
How about xburn --read?
How about xburn --read?
-
- XCore Addict
- Posts: 131
- Joined: Wed Aug 03, 2011 9:13 am
Yes, xburn -l works reliably every time.
xburn --read works fine as well, but I've got no idea how to interpret the output.
xburn --read works fine as well, but I've got no idea how to interpret the output.
-
- Respected Member
- Posts: 367
- Joined: Wed May 31, 2017 6:55 pm
Could it be failing because it partially succeeded the first time, and now won't let you do any more? I'm not sure how to tell if that's the case, or to force it to continue.
Also is there more than one xmos device per board?
Also is there more than one xmos device per board?
-
- XCore Addict
- Posts: 131
- Joined: Wed Aug 03, 2011 9:13 am
Yes, possible. Though it's not a great piece of design if it can fail in a way that bricks the board.
Yes, it's a 3 x XL216 design.
I'm fairly resigned to having to replace the XL216 that's booting, as I believe that's the only one that gets it's OTP programmed with the AES key - can anyone confirm this for me?
Yes, it's a 3 x XL216 design.
I'm fairly resigned to having to replace the XL216 that's booting, as I believe that's the only one that gets it's OTP programmed with the AES key - can anyone confirm this for me?
-
- Respected Member
- Posts: 367
- Joined: Wed May 31, 2017 6:55 pm
I can't confirm that. Is there any possibility it's a problem with the XN file spec? E.g. a clock value that's just about OK for most boards? Clutching at straws a bit.
-
- XCore Addict
- Posts: 131
- Joined: Wed Aug 03, 2011 9:13 am
No, I'm pretty confident the XN file is fine. We've built several hundred of these boards and had only a couple like this.
Looks like replacing the XL216 devices, which is fiddly...
Looks like replacing the XL216 devices, which is fiddly...