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.

AWR1843: Download image over CANFD interface issue

Part Number: AWR1843
Other Parts Discussed in Thread: MMWAVE-SDK,

Hi,

I try to download image over CANFD interface. (reference: lab0012_can_sbl)

And the function is implememted.

But recently encountered a problem.

When I download image1 over CANFD, the message "Debug: Parsing completed"  is shown.

But I download image2 over CANFD, the message "Error: Authentication check failed!!!"  is shown.

I had try to debug the problem, but have no idea so far.

Could you help me to resolve the problem?

Thanks

mmwaveSDK 3.3.0.3

Table:

Image1 Image2
download over CANFD OK FAIL
download over UART OK OK

The image1 and image2 files:  download_image.zip

  • Hi Kris,

    Can you please let me know version of the  MMWAVE-SDK you are using to build this code?

    -Raghu

  • Hi Raghu,

    mmwaveSDK 3.3.0.3

  • Hi Raghu,

    Do you have any suggestions so far?

    Thanks.

  • Kris,

    The SBL is validated on an older SDK.

    Can you check this on the 3.1.0.2 SDK?

    -Raghu

  • Hi Raghu,

    I tried to use the SBL on the 3.1.0.2 mmwSDK.

    But the authentication error is still occured if downloading image2 over CANFD.

    I also triedto shorten the CANFD interface between xwr1843 and PCAN-USB FD, but the sutuation has not improved.

    1.Is it possible that the compiled binary file will be wrong?

    2.Can the mechanism of downloading files over CANFD cause errors in some compiled binary files?

    3.Other problem?

    Thanks.

  • Hi Raghu,

    I tried to add SBL_printf() to  SBL_transportDownloadFile() function.

    (C:\ti\mmwave_sdk_03_03_00_03\packages\ti\utils\sbl\src\transport.c)

    After receiving image data over CANFD and writing image data to sflash, the written data will be read back from sflash by using 

    QSPIFlash_singleRead() API.
    The read back image data will be stored to the log file over Tera Term application.
    Repeat 3 times to download image over CANFD.
    Then, I compare these logs with xwr18xx_image2.bin file.
    I found that the read back image data are always different between  address 0x0001AB40 and 0x0001ABBF.
    In view of this, I also record the buffer (candataBuff[]) before writing to sflash. (record address: 0x0001AB40 ~ 0x0001AB7F)
    After comparison, the content of buffer are correct.
    This seems to indicate that after writing data to the sflash , the data are wrong.
    How can I deal with this problem?
    Thanks.
    - Kris
    =====================================================================
    First time:
    Second time:
    Third time:
    image log files:
  • Hello Kris,

    Can you check a simple experiment? 

    Keep the PCAN-View connected to the PCAN-USBFD and then perform the SBL CAN download . 

    I have seen that the CAN download is successful when the PCAN-View is also connected to the PCAN-USBFD. Maybe some of the initialization steps are missing in the "CAN_Metaimage_Flasher.exe"  which is causing this issue. 

    BR,

    Raghu

  • Hello Raghu, Kris,

    I am facing similar problems using the lab0012 for sbl

    If I connect the PCAN adapter before running the pc-app then the pc-app fails to take the CAN bus, even placing the PCAN adapter in listening only mode.

    I added several SBL_printf() in order to get more information about the progress in the terminal interface:

    I suspect SBL fails in the "SBL_metaHeaderParser(uint32_t bufferPtr[])" function in "metaheader_parser.c" file when it tries to read the MEND string that signals the end of the META HEADER

    Pointer to that address is ok, but the readout looks like it starts after the first image information of the multicore, there are 3 and fails.

    I am also analyzing the "SBL_imageDetailParse(uint32_t bufferPtrLcl[])" called from the above one.

    Maybe something is running in the background that is accessing the same resource, I still don't know it.

    I will update you on any progress.

    Be in touch...

    Thank you,

    Claudio

  • Hi Raghu,

    Thanks for reminding.

    The situation you said, I have encountered before, and will avoid this problem.

    This problem will not have any downloading action.

    Thanks.

    - Kris

  • Kris,

    Please change the nominal and data bitrate to 1mbps and perform the same experiment as mentioned above. Attached the flasher for 1mbps configuration.

    CAN_Metaimage_Flasher_Nom_1Mbps_Data_1Mbps.zip

    Screenshot for the PCAN-view + can flasher+ console

    BR,

    Raghu

  • Hi Raghu,

    Thanks for providing a revised version of the downloader.

    I tried to re-compile the new settings for CANFD bit rate (1M data bit rate).

    I also check the communication over PCAN-view, and it can be transmitted normally.

    After downloading the image file over CANFD, there is no message displayed on the tera term.

    But, the "Error: RPRC Parsing Failure!!!" message is displayed on the term term after restart the awr1843.

    Do I miss any other settings ?

    Thanks.

    - Kris