xcore-200 DFU DFLASH_MAX_UPGRADE_SIZE and issues

Technical questions regarding the xTIMEcomposer, xSOFTip Explorer and Programming with XMOS.
Zed1970
Active Member
Posts: 46
Joined: Tue Oct 15, 2019 10:36 am

xcore-200 DFU DFLASH_MAX_UPGRADE_SIZE and issues

Post by Zed1970 »

Hi,

We're having a few issues with flaky DFU operation and would like some information regarding the DFLASH_MAX_UPGRADE_SIZE setting in the Makefile. Other DFU posts mention to check this setting but we're not sure what to set it too. Our part is a IS25LP08D 8 MBit part and the default Makefile settings are DFLASH_MAX_UPGRADE_SIZE=192*1024. Our DFU bin is around 70k. Problem we're actually experiencing is if the image is flashed on to the board without DFU its fine, however if it's DFU'd on then only 20% of the time it works. The odd thing is that a few extra cleans and rebuilds it works again..

Any help would be appreciated.

Cheers.


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

Post by mon2 »

When running the xflash command, apply the --verbose flag and review the output log for possible issues.
Zed1970
Active Member
Posts: 46
Joined: Tue Oct 15, 2019 10:36 am

Post by Zed1970 »

Hi,

Using xflash to load the factory image with DFU capability or the image straight on the board is fine, It's only when using the the host DFU application (module_dfu/host/xmosdfu.cpp) we're having problems. With a flashed factory image at 0x30000 and then adding a DFU bin via the xmosdfu app normally it works fine. I can do a --revert then add another DFU image all day long. However when the issue occurs the DFU app says it's loaded without errors but the bcddevice number doesn't reflect the new DFU version, just the factory one. Once it's in this state I cannot add another (good) DFU bin but end up having to reflash the board.
In xtimecomposer the difference between a DFU bin working and not working can just be simple as commenting or adding a line into the code. Could it a compiler bug or an xflash bug when converting the *.xe to the DFU *.bin?

Thanks.