This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

UNIFLASH: with the same bin code, code works with uniflash downloading, but not work if programmed directly to flash

Part Number: UNIFLASH
Other Parts Discussed in Thread: IWR1843,

Hi there,

I meet an issue with IWR1843 programming. IWR1843 fetch code from an external flash device.  It works if I download the code with uniflash. But if I pre-program the external flash with same bin code at the same address, it does not boot up successfully. anything I need to pay attention to if I pre-program the flash? some extra steps uniflash does? 

Thanks and Best Regards

Dong

  • Hello Dong,

    The key thing to be aware of is any initialization actions done by startup GEL files when using CCS/UniFlash. This would be the "extra steps" UniFlash would do:

    https://software-dl.ti.com/ccs/esd/documents/users_guide/gel/production.html

    Thanks

    ki

  • Thanks. Ki.

    I will check GEL further...one more point: if I am able to download the code with uniflash to external flash device first, Then, I read all the contents out from external flash. Then using some other burning tool to burn these contents to the other external flash devices. Should this work?  Or it will not work, because uniflash will set some 'unique' info inside IWR1843 as well, this part of info is not available in external flash.

    Best Regards

    Dong  

  • This is best answered by the device experts. I will bring this thread to their attention.

    Thanks

    ki

  • Hi Ki

    do you know where can I find more info regarding which gel file uniflash use when it dowload the code?

    Best Regards

    Dong

  • do you know where can I find more info regarding which gel file uniflash use when it dowload the code?

    You can create a similar configuration in CCS and the look in the target configuration editor to see which startup GEL file is used. In any case, the device experts can also provide these details.

  • Hello.

    Can you first check and make sure that your external flash is supported for the IWR1843?  I have included a link to some documentation that will you determine this here.

    Sincerely,

    Santosh

  • Hi Santosh,

    I am using : MX25V1635F. checked in the documentation, it is supported.

    Best Regards

    Dong

  • Hi Santosh,

    I am trying to use XDS110 debuger to check the code step by step... the code it self contains two parts: SLB(second level boot) + Main APP. I find the code fails at image loading inside SLB when it try to load main APP.  It can not read back the correct contents from FLASH. all contents are '0xCCCC'.  It seems QSPI memory map mode does not work properly... 

    The strange point is: with the same code, if it is downloaded with UNIFLASH, SLB can work properly: it can load the main APP and start up main app properly. It is hard to link QSPI issue with loading method...

    Best Regards

    Dong  

  • Hi Ki, Santosh,

    I figured out the issue. It is caused by 'QREAD' support enable in flash device. My SLB code does not enable this bit before enable the QSPI 'QREAD' memory map mode. I think with uniflash downloading, it will enable this bit. That is why it works with uniflash. But not with my burning tool. 

    Thanks both for your kindly help. 

    Best Regards

    Dong