Error flashing: How do I xflash on xCORE Array Microphone XK-USB-MIC-UF216? Topic is solved

Technical discussions related to any XMOS development kit or reference design. Eg XK-1A, sliceKIT, etc.
User avatar
ccrome
Active Member
Posts: 54
Joined: Wed Sep 23, 2015 1:15 am

Error flashing: How do I xflash on xCORE Array Microphone XK-USB-MIC-UF216?

Postby ccrome » Thu Jul 19, 2018 8:18 pm

View Solution
User avatar
mon2
XCore Legend
Posts: 1387
Joined: Thu Jun 10, 2010 11:43 am

Postby mon2 » Fri Jul 20, 2018 4:39 am

Hi Caleb. Nice to see you here again. Not an audio developer but can see from your post that the flash attributes are for standard SPI interface. For your CPU and kit, you need to use QSPI mode and your XN file should reflect the mappings for the QSPI (Quad SPI) mode. Believe this is the issue. You can review the mode pins in the schematic for your kit to confirm the boot mode for this design. That is, pretty sure that the XCORE-200 CPU designs, by default, are all made to boot in QSPI mode as it is faster than standard SPI mode. Respectively, the target flash device must offer QSPI support.

viewtopic.php?t=4603

https://www.xmos.com/support/appnotes/AN00185

this project may help (developed by one of the members of this forum):

https://github.com/eez-open/xmos-eval-board

review the QSPI definition.
User avatar
mon2
XCore Legend
Posts: 1387
Joined: Thu Jun 10, 2010 11:43 am

Postby mon2 » Fri Jul 20, 2018 1:02 pm

Please also review this thread to dump the Flash IDs for your design. Do you see valid IDs being read by xflash or only 0x00 0x00 0x00?

viewtopic.php?f=26&t=6448&start=10
User avatar
ccrome
Active Member
Posts: 54
Joined: Wed Sep 23, 2015 1:15 am

Postby ccrome » Fri Jul 20, 2018 3:58 pm

mon2 wrote:Hi Caleb. Nice to see you here again. Not an audio developer but can see from your post that the flash attributes are for standard SPI interface. For your CPU and kit, you need to use QSPI mode and your XN file should reflect the mappings for the QSPI (Quad SPI) mode. Believe this is the issue. You can review the mode pins in the schematic for your kit to confirm the boot mode for this design. That is, pretty sure that the XCORE-200 CPU designs, by default, are all made to boot in QSPI mode as it is faster than standard SPI mode. Respectively, the target flash device must offer QSPI support.


Thanks so much for the reply!

I think I must be missing something. Isn't there an already configured and ready to build example project for the XK-USB-MIC-UF216 board? Or do I have to manually create everything to get it going?

I'll work on getting the QSPI going -- you're correct about that :-) Thanks,
-Caleb
matthew1
Active Member
Posts: 48
Joined: Mon Oct 19, 2015 2:12 pm

Postby matthew1 » Fri Jul 20, 2018 5:03 pm

Hi Caleb,

the error suggests that the flash isn't accessible for whatever reason. From what you've done it should be fine. Could you let me know the date code and serial number of the board you have and I'll look into the manufacturing history of the batch. If you xrun the apps do they work OK?

Thanks,

Matthew.
XMOS
User avatar
ccrome
Active Member
Posts: 54
Joined: Wed Sep 23, 2015 1:15 am

Postby ccrome » Fri Jul 20, 2018 6:20 pm

matthew1 wrote:Hi Caleb,

the error suggests that the flash isn't accessible for whatever reason. From what you've done it should be fine. Could you let me know the date code and serial number of the board you have and I'll look into the manufacturing history of the batch. If you xrun the apps do they work OK?

Thanks,

Matthew.
XMOS

Hi Matthew,
I hadn't thought to try xrun. Yep, it runs just find with xrun, but xflash still gives the same error "failed to connect to flash device"

I've attached an image of my board. It's code is 1827-00282. MAC address: 00:22:97:80:11:18

Isn't this an XUF device with built-in flash? The top marking doesn't match either XU216 or XUF216 part marking as shown in the data sheets. What part is that?

I don't see any individual marking on the bottom.

Thanks,
-Caleb
You do not have the required permissions to view the files attached to this post.
matthew1
Active Member
Posts: 48
Joined: Mon Oct 19, 2015 2:12 pm

Postby matthew1 » Mon Jul 23, 2018 10:03 am

Hi Caleb,

thanks for the reply. Your photo confirmed what I found over the weekend - a few of the latest batch of these boards have been mistakenly assembled with the wrong XMOS IC (without integrated flash). As you can imagine, this is quite embarrassing and I can only apologise. We're looking into why this has happened and are checking our stock to identify affected kits. We also have a new batch being manufactured at the moment so will be able to get known good stock back into the supply chain soon.

In the meantime, I hope you're able to get by using xrun with this board, and as soon as we've sorted out this issue we can arrange to replace it via the disti you bought it from.

Regards,

Matthew.
XMOS
User avatar
ccrome
Active Member
Posts: 54
Joined: Wed Sep 23, 2015 1:15 am

Postby ccrome » Mon Jul 23, 2018 7:32 pm

matthew1 wrote:Hi Caleb,

thanks for the reply. Your photo confirmed what I found over the weekend - a few of the latest batch of these boards have been mistakenly assembled with the wrong XMOS IC (without integrated flash). As you can imagine, this is quite embarrassing and I can only apologise. We're looking into why this has happened and are checking our stock to identify affected kits. We also have a new batch being manufactured at the moment so will be able to get known good stock back into the supply chain soon.

In the meantime, I hope you're able to get by using xrun with this board, and as soon as we've sorted out this issue we can arrange to replace it via the disti you bought it from.

Regards,

Matthew.
XMOS

Oopsie! Making stuff is hard :-) Thanks for confirming that I'm not crazy (at least in this instance)

As I mentioned in another thread (viewtopic.php?p=33855#p33855) , mic0 seems to be broken (just noise is received). Should I return this to DigiKey and get another board (that probably won't have flash but might have 7 working microphones)? Or can you arrange for a fully functional board to be sent?

Thanks,
-Caleb

Who is online

Users browsing this forum: No registered users and 0 guests