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.

IWR6843ISK: SBL: SBL_imageLoader() Fail to Downloads the Application Metaimage from FLASH to respective RAMs

Part Number: IWR6843ISK
Other Parts Discussed in Thread: IWR6843, UNIFLASH, MMWAVEICBOOST,

Hi TI Expert,

We want to use SBL to control image update, but meet a issue when test SBL: Fail to Downloads the Application Metaimage from FLASH to respective RAMs

fail log as below,

-------------------------------------------------------------------

Debug: Loading backup factory default image from Flash address: c0180000
SBL_imageLoader(), Line=198: begin
SBL_imageLoader(), Line=252: gSblMCB.metaHdrAbsent = 0
SBL_imageLoader(), Line=260: gSblMCB.bufferParserState = 3
SBL_imageLoader(), Line=271: numBlocks = 242, totalLength = 496128

SBL_imageLoader(), Line=292: loopCnt = 2
SBL_imageLoader(), Line=298: Switch the buffer
SBL_imageLoader(), Line=303
SBL_imageLoader(), Line=305
SBL_imageLoader(), Line=307
SBL_imageLoader(), Line=310: Switch the buffer
SBL_imageLoader(), Line=292: loopCnt = 3
SBL_imageLoader(), Line=303
SBL_imageLoader(), Line=305
SBL_imageLoader(), Line=307

....

SBL_imageLoader(), Line=292: loopCnt = 64
SBL_imageLoader(), Line=303
SBL_imageLoader(), Line=305
SBL_imageLoader(), Line=307
SBL_imageLoader(), Line=310: Switch the buffer
SBL_imageLoader(), Line=292: loopCnt = 65
SBL_imageLoader(), Line=303
SBL_imageLoader(), Line=305                            // block at here

The related code as as below, (just add log in code)

-------------------------------------------------------------------

  • Hi,

    Whats the SDK version you are using.

    Thanks

    Yogesh

  • Hi TI Expert,

    SDK version is 03_02_00_04, and IWR6843 is ES1.0

    BRs

  • Hi TI Expert,

    Is there any comment for us?

    BRs

  • Hi,

    We are not able to reproduce the issue. Is there any changes that you have made to the SBL code.

    Thanks

    Yogesh

  • Hi TI Expert,

    We just to add log for checking the fail reason, and does not change any other code.

    BRs

  • Hello,

    Could you please format the SFlash using Uniflash first then flash the SBL and application metaimage again and see if you get this error?

    Thanks

    -Nitin 

  • Hi TI Expert,

    > Could you please format the SFlash using Uniflash first then flash the SBL and application metaimage again and see if you get this error?

    ==> Yes, I still meet this error.

    Could you please tell which version SDK and SBL could work at IMR6843 ES1.0?

    BRs

  • Hello,

    Please use mmWave SDK 3.2.1.2 which is the latest version that supports IWR6843 ES1.0

    Here's the direct link: http://software-dl.ti.com/ra-processors/esd/MMWAVE-SDK/03_02_01_02/index_FDS.html

    Thanks

    -Nitin

  • Hi,

    Is this resolved or are are you still facing any issue.

    Thanks

    Yogesh

  • Hi TI Expert,

    After using SDK 3.2.1.2, we test still fail.

    We use domo image of SDK 3.2.1.2 and SBL of sdk_03_03_00_03: SBL update image success, but IWR6843 could not work(mmWave_Demo_Visualizer could detects IWR6843's port, but could not connect IWR6843)

    could you please tell how to check IWR6843's status. and is there any way to flash IWR6843 back to demo image without SBL.

    BRs

  • Hi,

    Please use SBL and MMWAVE Demo both from SDK 3.2.1.2 for ES1.0. 

    Could you please share the UART log if possible.

    Thanks

    Yogesh

  • Hi TI Expert,

    I flase SBL(just add log) and Demo(as factory default backup image) both from SDK 3.2.1.2. test fail, and log as below,

    ----------------------------------------------------- fail log begin -------------------------------------------

    autoboot: 90
    autoboot: 89
    autoboot: 88
    autoboot: 87
    ...
    autoboot: 5
    autoboot: 4
    autoboot: 3
    autoboot: 2
    autoboot: 1
    Debug: Device info: Manufacturer: 0, Device type = 0, Capacity = 0
    Debug: Loading application metaImage from Flash address: c0040000
    SBL_imageLoader(), Line=199: begin
    Error: Meta header absent!!!
    SBL_imageLoader(), Line=254: gSblMCB.metaHdrAbsent = 1
    SBL_imageLoader(), Line=359: retVal = -1
    SBL_imageLoader end retVal is -1]
    Error: Could not download the metaimage to RAM. Trying to boot the backup factory default image.
    Debug: Loading backup factory default image from Flash address: c0180000
    SBL_imageLoader(), Line=199: begin
    SBL_imageLoader(), Line=254: gSblMCB.metaHdrAbsent = 0
    SBL_imageLoader(), Line=263: gSblMCB.bufferParserState = 3
    SBL_imageLoader(), Line=273: numBlocks = 242, totalLength = 496896
    SBL_imageLoader(), Line=293: loopCnt = 2
    SBL_imageLoader(), Line=293: loopCnt = 3
    SBL_imageLoader(), Line=293: loopCnt = 4
    SBL_imageLoader(), Line=293: loopCnt = 5
    SBL_imageLoader(), Line=293: loopCnt = 6
    SBL_imageLoader(), Line=293: loopCnt = 7
    SBL_imageLoader(), Line=293: loopCnt = 8
    SBL_imageLoader(), Line=293: loopCnt = 9
    SBL_imageLoader(), Line=293: loopCnt = 10
    SBL_imageLoader(), Line=293: loopCnt = 11
    SBL_imageLoader(), Line=293: loopCnt = 12
    SBL_imageLoader(), Line=293: loopCnt = 13
    SBL_imageLoader(), Line=293: loopCnt = 14
    SBL_imageLoader(), Line=293: loopCnt = 15
    SBL_imageLoader(), Line=293: loopCnt = 16
    SBL_imageLoader(), Line=293: loopCnt = 17
    SBL_imageLoader(), Line=293: loopCnt = 18
    SBL_imageLoader(), Line=293: loopCnt = 19
    SBL_imageLoader(), Line=293: loopCnt = 20
    SBL_imageLoader(), Line=293: loopCnt = 21
    SBL_imageLoader(), Line=293: loopCnt = 22
    SBL_imageLoader(), Line=293: loopCnt = 23
    SBL_imageLoader(), Line=293: loopCnt = 24
    SBL_imageLoader(), Line=293: loopCnt = 25
    SBL_imageLoader(), Line=293: loopCnt = 26
    SBL_imageLoader(), Line=293: loopCnt = 27
    SBL_imageLoader(), Line=293: loopCnt = 28
    SBL_imageLoader(), Line=293: loopCnt = 29
    SBL_imageLoader(), Line=293: loopCnt = 30
    SBL_imageLoader(), Line=293: loopCnt = 31
    SBL_imageLoader(), Line=293: loopCnt = 32
    SBL_imageLoader(), Line=293: loopCnt = 33
    SBL_imageLoader(), Line=293: loopCnt = 34
    SBL_imageLoader(), Line=293: loopCnt = 35
    SBL_imageLoader(), Line=293: loopCnt = 36
    SBL_imageLoader(), Line=293: loopCnt = 37
    SBL_imageLoader(), Line=293: loopCnt = 38
    SBL_imageLoader(), Line=293: loopCnt = 39
    SBL_imageLoader(), Line=293: loopCnt = 40
    SBL_imageLoader(), Line=293: loopCnt = 41
    SBL_imageLoader(), Line=293: loopCnt = 42
    SBL_imageLoader(), Line=293: loopCnt = 43
    SBL_imageLoader(), Line=293: loopCnt = 44
    SBL_imageLoader(), Line=293: loopCnt = 45
    SBL_imageLoader(), Line=293: loopCnt = 46
    SBL_imageLoader(), Line=293: loopCnt = 47
    SBL_imageLoader(), Line=293: loopCnt = 48
    SBL_imageLoader(), Line=293: loopCnt = 49
    SBL_imageLoader(), Line=293: loopCnt = 50
    SBL_imageLoader(), Line=293: loopCnt = 51
    SBL_imageLoader(), Line=293: loopCnt = 52
    SBL_imageLoader(), Line=293: loopCnt = 53
    SBL_imageLoader(), Line=293: loopCnt = 54
    SBL_imageLoader(), Line=293: loopCnt = 55
    SBL_imageLoader(), Line=293: loopCnt = 56
    SBL_imageLoader(), Line=293: loopCnt = 57
    SBL_imageLoader(), Line=293: loopCnt = 58
    SBL_imageLoader(), Line=293: loopCnt = 59
    SBL_imageLoader(), Line=293: loopCnt = 60
    SBL_imageLoader(), Line=293: loopCnt = 61
    SBL_imageLoader(), Line=293: loopCnt = 62
    SBL_imageLoader(), Line=293: loopCnt = 63
    SBL_imageLoader(), Line=293: loopCnt = 64
    SBL_imageLoader(), Line=293: loopCnt = 65          // then log end, test fail here.
    ----------------------------------------------------- fail log end --------------------------------------------
    ----------------------------------------------------- sbl code begin --------------------------------------------
    ----------------------------------------------------- sbl code end --------------------------------------------
  • Hi,

    Could you please answer couple of question to narrow down the issue:

    1) Are you using TI MMWAVEICBOOST + IWR6843ISK or is this your own custom board.

    2) If this is TI MMWAVEICBOOST + IWR6843ISK:

        Did you try to send the same file using xmodem protocol to see if you are able to update.

    3) Did you try to connect to CCS once the log stopped. If yes, where was the Program Counter, could you please share some details.

    Thanks

    Yogesh

  • HI TI Expert,

    > 1) Are you using TI MMWAVEICBOOST + IWR6843ISK or is this your own custom board.

    ==> I use TI MMWAVEICBOOST + IWR6843ISK ES1.0

    > 2) If this is TI MMWAVEICBOOST + IWR6843ISK:

    >    Did you try to send the same file using xmodem protocol to see if you are able to update.

    ==> Yes, I have try to send the same demo image file using xmodem protocol, it send to device success but fail to download the image to RAM.

    > 3) Did you try to connect to CCS once the log stopped. If yes, where was the Program Counter, could you please share some details.

    ==> Yes, I try to connnect CCS with IWR6843ISK device, and debug soming. Is this will cause SBL issue?  This IWR6843ISK has been flash with new SBL image and demo image using UniFlash. Seems "connect to CCS once once" could not cause this SBL issue. 

    BRs

  • Hi BRs,

    Sorry, I could not understand the answer to the item 3.  Are you saying that after connecting to CCS. you are no longer able to re-produce the SBL issue?

    Thanks

    Yogesh

  • Hi TI Expert,

    I have connect IWR6843ISK with CCS and test for CANFD function.

    For SBL function, I use Tera Term(not CCS) to test. and the log come from Tera Term.

    BRs

  • Hi BRs,

    Just connect the CCS after the SBL fails. And pause the r4 processor. Once you have paused the processor  "Load Symbols"  and select file:

    ~\packages\ti\utils\sbl\xwr68xx_sbl_mss.xer4f

    Refer Image:

    Thanks

    Yogesh

  • Hi TI Expert,

    How to pause the r4 processor after connect the CCS?

    And "Load Symbols" is inactive state, so I could not click "Load Symbols".

    BRs

  • Hi BRs,

    Could you please share your CCS screen shot.

    Thanks

    Yogesh

  • Hi TI Expert,

    Connect to CCS after SBL fail, CCS fail to connect IWR6843 because of "Halt On Reset"

    CCS screen shot as below,

  • Hi BRs,

    Was CCS open when you were doing SBL test. If yes, could you please try and close the CCS and run the SBL. Also connect CCS only after SBL has failed.

    Thanks

    Yogesh

  • Hi TI Expert,

    > Was CCS open when you were doing SBL test.

    ==> NO. CCS be closed when test SBL.   I test as the following steps

    1. Use Tera Term to test SBL, SBL fails.

    2. close Tera Term

    3. Open CCS 

  • Hi BRs,

    Seems something has gone wrong with the IWR6843 device. Do you have another device to try?

    I guess you are able to run demo image w/o SBL.

    Thanks

    Yogesh

  • Hi TI Expert,

    > I guess you are able to run demo image w/o SBL.

    ==> No. I flash demo image without SBL into this device, the device still does not works.

    > Do you have another device to try?

    ==> I have anoter device, but can't do SBL test on it before fix this SBL issue.

    BRs

  • Hi BRs,

    If the mmw demo image is not working by flashing directly, it will not work with SBL. 

    Am I missing anything?

    Thanks

    Yogesh

  • Hi TI Expert,

    The demo image works ok on this device before test SBL. But the demo image does not work on this device after test SBL. I'm no idea if there any issue. 

    Do you have ever test SBL OK on IWR6843 ES1.0?

    BRs

  • Hi Brs,

    Yes, we have tested SBL on ES1.0 and it works. Try Formatting the flash from "Settings and Utilities" in UniFlash.

    Thanks

    Yogesh

  • Hi TI Expert,

    > Try Formatting the flash from "Settings and Utilities" in UniFlash.

    ==> 1) Formatting the flash of IWR6843 es1.0;  2) Flash demo image of SDK3204 into IWR6843 es1.0, IWR6843 es1.0 could not work; 3) Flash demo image of SDK3212 into IWR6843 es1.0, IWR6843 es1.0 could not work too.

    But this device works ok before testing SBL. 

    BRs

  • Hi,

    Not sure how SBL failure will cause issue with subsequent flashing of the OOB demo. Seems something odd with this device.

    Thanks

    Yogesh

  • HI TI Expert,

    Thank you for your support.

    We test SBL OK on ES2.0 with demo image and SBL (both from SDK 3.3). then we will close this case.