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.

AWR1843BOOST: AWR1843 SBL over CAN

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

Hi all,

AWR1843 SBL over CAN

After I flashed the image "xwr18xx_sbl_demo.bin" using uniflash:

  • Back SOP2 to operation
  • Connect the serial com sniffer to User port as specified
  • Reset the system by pressing SW2
  • I get in the terminal screen:

**********************************************
Debug: Secondary Bootloader Application Start
**********************************************
Press any key to stop auto boot and Update Meta Image...
Loading existing Meta Image from Flash in 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
Debug: Device info: Manufacturer: 0, Device type = 0, Capacity = 0

Debug: Loading application metaImage from Flash address: c0040000
Error: Meta header absent!!!

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
Error: Meta header absent!!!

Error: Could not download the backup factory default image metaimage to RAM. Resetting the board to retry

************************************************

  • According to the reference document I should get:

Debug: Device info: Manufacturer: 1, Device type = 40, Capacity = 16


Cannot go further...

Thanks,

Claudio

  • Hi Claudio,

    The error you see is due to the reason of not hitting any key on the console.

    As mentioned in the console "Press any key to stop auto boot and Update Meta Image..." you need to press the any key and then should be able enter into console to either receive the metaimage over CAN or UART based on the next set of console inputs.

    Please input the required command/key to the console to update the image over CAN using the SBL.

    Let us know if you are able to solve the issue after inputting the required info on console.

    Thanks,

    Raghu

  • Hi Raghu,

    I press any key to start the sbl, then it erases the Flash.

    When ready: I press 'Space Bar' to start dowloading my image from CAN

    I got the following in my terminal program:


    **********************************************
    Debug: Secondary Bootloader Application Start
    **********************************************
    Press any key to stop auto boot and Update Meta Image...
    Loading existing Meta Image from Flash in 20 19
    Debug: Update Meta Image selected

    Debug: Device info: Manufacturer: 0, Device type = 0, Capacity = 0
    flash address: c0000000
    Debug: Loading application metaImage from Flash address: c0040000
    Debug: Erasing SFlash...
    Debug: Flash Erase complete
    Debug: Start the image download using XMODEM over UART Or Hit 'Space Bar' to start Image download ove CAN interface
    CCCDebug: Total data written = 0x39400
    Error: RPRC Parsing Failure!!!

    My image is: 252KBytes = 0x3F00. If I flash this image with uniflash, it works fine. This is my reference.

    Back to sbl: When I send my image over CAN, I see my PCAN adaptor led turned RED while transmitting instead of blinking GREEN as usual.

    I know that CANFD with data rate set to 5MHz is not a standard bit rate. 

    Maybe the PCAN turning RED is signaling this as an error and in some way filtering my data?

    I can change the data rate inside the sbl code to the standard 4MHz that I use in other application. But I cannot do that in the PC-APP because I have only the *.exe file.

    Thanks,

    Claudio

     

     

     

  • Claudio,

    Which PCAN USB-FD are you using? Our solution was based on the PCAN-USBFD . 

    BR,

    Raghu

  • Hi Raghu,

    I am using exactly the same adapter.

    Thanks,

    Claudio

  • Hi Raghu,

    I received the CAN_ID: TERMINATE_MSG_ID, so I can be 'sure' the CANFD transfer is Ok.

    My problem is that I still have an error that the whole image fails to be programmed into qspi

    My image size: 252 KB (258,564 bytes) ~ 0x3F200

    Terminal LOG:
    --------------------------------------------------
    Debug: Total data written = 0x39680 (*)

    Error: RPRC Parsing Failure!!!

    ______________________________

    (*) may vary between runnings, but they are about the same and never reaching the image size.

    I made some tries changing the original QSPIParams.bitRate, up and down, it didn't help...

    Maybe some other parameters for the qspi initialization should be changed?

    Thanks,

    Claudio

  • Hi Claudio,

    Sorry you have to go through these issue. I am not able to check this on my side due to non-availability of the PCAN-USBFD dongle (due to home office). 

    Could you use the attached PCANbasic.dll in your setup and check if this helps?

    PCAN-USBFD.zip

    BR,

    Raghu

  • Hi Raghu,

    The attached DLL didn't make any difference.

    Check please, what I wrote above.

    I added an SBL_printf(....) to the original 'can_sblb18xx_mss' project to catch CAN_FD: TERMINATE_MSG_ID I think it is the closing CANFD packet of the image.

    ============================================================

    transport.c file

    ============================================================

    int32_t SBL_transportDownloadFile(.......) 

    {

    ................................

    case SBL_CAN_RECV:

    {

    uint32_t buffOffset = 0;
    uint32_t totDataLen = 0;
    while (1)
    {
          /* Wait till a new data packet is received. */
         while (gPktsWrt == gRxPkts);
         /* Check if the terminate Message Id is received? */
         if (gLastMsgFlag != 0)
        {
           SBL_printf("Debug: TERMINATE_MSG_ID received, Claudio\n\r");//Claudio
          break;

        }

    .....................................................

    }

    I see the message in my terminal monitor, so I suppose the CAN_FD download of the image is Ok.

    But the SBL fails to complete the image programming into the QSPI chip

    As far as I tried I cannot debug the 'can_sblb18xx_mss' in CCS like any other app (ccdebug flash for the sdk version...). If there is any way to do that I'll be glad to use it...

    Thanks,

    Claudio

  • Claudio,

    Have you built the SBL on the SDK3.1.0.2 ? Please check it on this specific version of the MMWAVE-SDK as it is validated on SDK 3.1.0.2.

    Thanks,

    Raghu

  • Hi Raghu,

    Yes I have it done this.

    Claudio