We are working on a project based on the XCORE.AI multi-channel audio board( using XU316-1024-FB265-C32). We have designed new hardware, keeping the critical XMOS connections the same as they were on the AI Eval board. Using the same flash as on the evaluation board. The Board has successfully been powered up and runs our XMOS firmware. Basic audio operation is functional and we are able to Debug(xgdb/XTAG4) and run software, on our board.
1: Factory Image: We have been able to successfully program Flash with a factory image. We have been able to run and debug the factory image.
-- We program Factory image from XTC tools 15.2.1 command prompt: > xflash --force-jtag xmos_v0.xe
2: Upgrade Image: We have not been able to successfully boot an upgrade image:
-- We create upgrade image: >xflash --factory-version 15.2 --upgrade 1 xmos_v1.xe -o xmos_v1.bin (file created is 135K)
-- We program upgrade image (xmos_v1.bin): using Thesycon DFU tool version 4.82.0(2021): (see screenshot) (indicates success)
-- Boot Upgrade image: We are not able to boot upgrade image, always boots original factory image. (checked via HID get version number command tool. Always version 0 factory image.)
Any thoughts on what might be wrong, Or what to look at next.
Thanks,
Can't get upgrade image to Boot
-
- Active Member
- Posts: 60
- Joined: Fri Mar 25, 2011 12:36 am
Can't get upgrade image to Boot
You do not have the required permissions to view the files attached to this post.
-
Verified
- XCore Legend
- Posts: 1149
- Joined: Thu Dec 10, 2009 9:20 pm
- Location: Bristol, UK
what value are you using for FLASH_MAX_UPGRADE_SIZE?
Technical Director @ XMOS. Opinions expressed are my own
-
Verified
- XCore Legend
- Posts: 1149
- Joined: Thu Dec 10, 2009 9:20 pm
- Location: Bristol, UK
Mod edit: thread moved to USB Audio
Technical Director @ XMOS. Opinions expressed are my own
-
- Active Member
- Posts: 60
- Joined: Fri Mar 25, 2011 12:36 am
FLASH_MAX_UPGRADE_SIZE was set to default value 128. I changed to 256, rebuilt and repeated process. Same result, still boots factory image.
-
Verified
- XCore Legend
- Posts: 1149
- Joined: Thu Dec 10, 2009 9:20 pm
- Location: Bristol, UK
Did you change the flash part?
My initial debug process for this would be
xflash --readall
compare the result with what's in xmos_v1.bin and see a) if its there at all, b) if its truncated.
My initial debug process for this would be
xflash --readall
compare the result with what's in xmos_v1.bin and see a) if its there at all, b) if its truncated.
Technical Director @ XMOS. Opinions expressed are my own
-
- Active Member
- Posts: 60
- Joined: Fri Mar 25, 2011 12:36 am
Same flash part. I will start debug with xflash --readall. I'll update on findings. thanks for the input.
-
Verified
- XCore Legend
- Posts: 1149
- Joined: Thu Dec 10, 2009 9:20 pm
- Location: Bristol, UK
Just to confirm, this has to be in the factory image (as well as the updated image(s))
Technical Director @ XMOS. Opinions expressed are my own
-
- Active Member
- Posts: 60
- Joined: Fri Mar 25, 2011 12:36 am
Thanks, that did it. It now boots upgrade image. Thanks Ross.