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.

IWR6843: iwr6843 crach during debug and realtime running

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

setup

Code Composer Studio Version: 10.2.0.00009

python file : contains passenger_number_68xx_ODS.cfg

example from C:\ti\mmwave_industrial_toolbox_4_6_0\labs\area_scanner Area Scanner for Zone Occupancy Detection

sequence

enter debug mode ( following instructions in Execute the Compiled Lab in resource explorer )

failure running see below CCS report

Cortex_R4_0] **********************************************
Debug: Launching the MMW Demo on MSS
**********************************************
Debug: Launched the Initialization Task
Debug: mmWave Control Initialization was successful
Debug: mmWave Control Synchronization was successful
[C674X_0] Debug: DPM Module Sync is done
[Cortex_R4_0] Debug: CLI is operational
Debug: Sending rlRfSetLdoBypassConfig with 0 0 0
============ Heap Memory Stats ============
Size Used Free DPCUsed
System Heap(TCMB) 110592 30968 79624 2048
L3 786176 131072 655104
localRam(TCMB) 4096 512 3584
============ Heap Memory Stats ============
Size Used Free DPCUsed
System Heap(L2) 32768 16032 16736 0
L3 786176 8192 777984
localRam(L2) 60928 15016 45912
localRam(L1) 16384 5632 10752
Starting Sensor (issuing MMWave_start)
Exception occurred in ThreadType_Task.
Task handle: 0x8003f38.
Task stack base: 0x8003f98.
Task stack size: 0x2000.
R0 = 0x00000000 R8 = 0x0801ea14
R1 = 0x21080058 R9 = 0x00000000
R2 = 0x00000090 R10 = 0x00000006
R3 = 0x00000008 R11 = 0x0801ec54
R4 = 0x00000034 R12 = 0x00000000
R5 = 0x52080000 SP(R13) = 0x08005968
R6 = 0x0801ea25 LR(R14) = 0x00018883
R7 = 0x00000006 PC(R15) = 0x00005eea
PSR = 0x200c019f
DFSR = 0x0000000d IFSR = 0x00000000
DFAR = 0x2108005c IFAR = 0x00000000
{module#43}: line 205: error {id:0x1a0000, args:[0x5eea, 0x18883]}
xdc.runtime.Error.raise: terminating execution

what is the meaning of the error ?

there is a list to this error and description of this error ?

what is the meaning [module#43] ?

  • Zachar:

    Can you please confirm that you have flashed the device with the xwr68xx_ccsdebug.bin binary before trying to debug is CCS?

    Best,

    Connor Desmond

  • Zachar:

    Have you been able to run the Out of Box demo succesfully in debug mode with your IWR6843 device?

    Best regards,

    Connor Desmond

  • I need MATLAB liecence in order send configuration via serial interface

  • Zachar:

    You do not need a MATLAB license to run the OOB for IWR6843.

    Please can you verify the following:

    1. What kind of IWR6843 device are you using? e.g. AOP,ISK, orODS.

    2. Do you have MMWAVEICBOOST? This is needed to debug the device in CCS.

    Note: The serial interface for the OOB is UART.

    Based on your provided .cfg file I am assuming that you have an IWR6843-ODS; if not please got to the correct demo user's guide. Please go through the OOB guide located here:

    <INDUSTRIAL_TOOLBOX_INSTALL_PATH>/labs/out_of_box_demo/68xx_ods_point_cloud_demo/docs/ods_point_cloud_demo_68xx_hwa_user_guide.html

    Best,

    Connor Desmond

  • 1. IWR6843ISK-ODS
    2 yes   see attached  photo 

    3 i want load configuration file  via serial interface ( UART )  from python  application   and set breakpoint  MmwDemo_transmitProcessedOutput   line 1386  begging  of the function   

    when i trying to import project that you suggested   this error happens
    image.png

  • Zachar:

    Please make sure that you have the most recent version of the mmWave Industrial Toolbox installed on your machine e.g. C:/ti This will have the user's guide that I referenced above at the path I specified. I would first go through the Quick Start Guide to make sure that everything is running before jumping into CCS. Once you have completed that successfully then in that guide there are instructions to run the demo in CCS aka Debug mode. Once you have completed that then you can reference the following point cloud parser demo implemented in python as a baseline for your project.

    <MMWAVE_SDK_INTSALL_DIR>\packages\ti\demo\parser_scripts

    Note: To debug any application level code make sure that you compile that code with no compiler optimizations. This will allow you to step through the code as you go through the debug process.

    Best regards,

    Connor Desmond

  • Hi  first of all thanks for the information   ,

     NOTE :   i understand  the HW and mmwave_sdk_03_05_00_04   structure  in CCS10.2 

     our demo   base on Area Scanner for Zone Occupancy Detection example 

    1. we have made changes  in alg part 

    2. we have python script which we sending to cli i put breakpoint( hw )  in mss_main.c  in the begging  function MmwDemo_transmitProcessedOutput    which i expectged  to stop when i send all configuration via  CLI  with python script 

    but   we never stop  at this function 

    Q1:  there is significant  which run first dss or mss  ?

    Console output 

    [Cortex_R4_0] **********************************************
    Debug: Launching the MMW Demo on MSS
    **********************************************
    Debug: Launched the Initialization Task
    Debug: mmWave Control Initialization was successful
    Debug: mmWave Control Synchronization was successful
    [C674X_0] Debug: DPM Module Sync is done
    [Cortex_R4_0] Debug: CLI is operational

    please advice     we could do session via WebEx ?   or any remote  we application  

    regard the changes in dss i will elaborate tomorrow 

  • Zachar:

    I did not catch this in your original post, but please make sure that you are using CCS 8.3.1 not version 10.2.0.

    Best regards,

    Connor Desmond

  • I don't  understand  why we cant use new version of CCS  ?   

  • Zachar:

    If you read the software required for the Developer's Guide section of the Users Guide then you will see that the required version of CCS is 8.3.1.

    Best regards,

    Connor Desmond

  • I understand it but this old IDE?  Why all IWR6843 and IWR1642 is not support new ide version of CCS?  For which examples in radar family is supported? 

  • Zachar:

    All of the user guides for each of our industrial devices require CCS version 8.3. This information can be found at the following link:

    https://dev.ti.com/tirex/explore/node?node=AHggQGbWR1hnlpFCdTprgg__VLyFKFf__LATEST

    Best regards,

    Connor Desmond

  • hI  I INSTALL ccS 8.3.1    and  run Lab with bin file   

  • Hi   i instal CCs 8.3.1  and run Lab   with bin file

  • Zachar:

    Were you able to use CCS 8.3.1 to create your own .bin file for the OOB and drive the Demo Visualizer according to the Deployment section of the User Guide for the OOB Demo?

    Best regards,

    Connor Desmond

  • am struggling with  Execute the Compiled Lab   Debug mode   i followed 

    Using CCS Debug for Development  

    Hardware Setup for Flashing in MMWAVEICBOOST Mode

    attached screenshot   

    Flash the EVM using UniFlashselection device in uniflashfailed flash device my setup

    the uniflash  does not open uart 

    please advice 

  • Zachar:

    Can you please verify if the NERROR LED is illuminated on the EVM. This would be located in the lower left of the board aligned with the image that you sent me.

    Best regards,

    Connor Desmond.

  • 5v on

    nerror off

    3v 0n 

    sop2_FT green  on 

    sop1_FT off

    sop0_FT green on 

    NRST_FT on red 

  • Zachar:

    It is good that nerror is not illuminated.

    1. Can you please provide the specs for your power supply to the board. I don't think that is the issue but lets make sure that you have the correct specs.

    2. Also are you plugging your USB cable directly into your PC or are you using a USB hub or something similar?

    Best regards,

    Connor Desmond

  • Hi,  one time I sucsses enter with debug (scan area example) mode CCS 8.3.1 since then failed every time

    All the times I trying to connect indebug mode was with hub

    I never sucsses flash boost+isk board the debug file as recommended in tutorial only when iwr6843 is stand alone also in this setup thrush cable was connect via hub 

    I could check tommrow without  hub and let you know
    Attached power supply screenshot
  • Zachar:

    Power supply appears to be in line with the user's guide so lets assume that it working as expected. Now how you tried using a different USB cable?

    Best regards,

    Connor Desmond

  • USB cable connect to directly or via hub to laptop

    1) flash with uniflash iwr6834 debugfile -pass
    2) flash boost+iwr6843 - failed


  • USB cable connect to directly or via hub to laptop


    1) flash with uniflash iwr6834 debugfile -pass
    2) flash boost+iwr6843 - failed
    The debug session.work.once when.flash debug file iwr6843 stabalone
  • Zachar:

    Can you please be more clear on your results:

    1. Did you try a new USB cable?

    2. Did you connect directly to your PC with multiple USB cables? This means no HUB.

    3. Please can you place the ISK on ICBOOST and try to flash that way. What is the result?

    Best regards,

    Connor Desmond

  • attached  link which include report   in docx format  please review it   

    the SOP  configuration  in func mode  and in flash mode the MMWAVEICBOOST  board  it seems in reliable boot-up state.

    if i jumpers sop2 or not  it always in reliable boot-up state

    https://1drv.ms/u/s!AmcSOF0lQ0NEliGKCbn5qMs7r0Z-?e=V7Nkuc

  • Zachar:

    From the document that you shared it appears that you are doing area scanner demo. Can you please do the OOB and verify if you have the same behavior. Try with both pre-built binary and ccs debug.

    Best regards,

    Connor Desmond

  • Hi Connor ,

    sorry i don't  know what is OOB ?  out of the box ?   

    if not please write down exact project which you would like run in CCS in debug mode  ? 

    could you elaborate  the steps regard :  pre-built binary and ccs debug    what file to use ?  

     I want run scan area  example in debug mode  it is possible ?   

    I  prepared   elaborate report on your system  it is take  a lot of effort  in order  to run lab  and yet   i didn't get wanted results  

    TI  provide guide   how  to  run lab in debug mode ( CCS )   i saw many technical tickets   with the same issue    did TI FAE  saw this tickets?  any conclusion  how  to improve or additional guide  to workaround ? 

    1)  Hardware Setup for Flashing in MMWAVEICBOOST Mode I preform all steps in this section 

    2) Hardware Setup for Functional SOP in MMWAVEICBOOST Mode

    it is possible  setup meeting via WebEx  in order  to help me  accomplish my first task   i already  behind my schedule  i didn't expected  to struggle to run example from resource explorer 

    could you provide   info how  work in debug mode in CCS  refereing  my doc report   mybe i miss some step  ?

    could you provide screenshot  of MMWAVEICBOOST   board   with correct  all jumpers configuration  in flash and functional mode beside the guide ?

     

  • Zachar:

    The OOB is the Out of Box demo lab. Every lab for the most part is based off of this lab. The user guide can be found at the following path:

    <MMWAVE_INDUSTRIAL_TOOLBOX_INSTAL_PATH>\labs\out_of_box_demo\68xx_mmwave_sdk_dsp\docs

    I am getting in touch with a HW expert to look into your issue. In the mean time please try out the Out of Box demo, so that we can get more information about the problem you are experiencing.

    Best regards,

    Connor Desmond

  • No problem ibwill try run lab which you refer above could I do it in debug mode?  This OOB has mss and DSS project?  Is this project use cfg files send via serial.?

    This example use GUI tool like in area scan? 

  • Zachar:

    All of the needed instructions are in the folder that I linked above. It is very straight forward to go through if you have been going through the Area Scanner demo collateral. Let me know how it goes.

    Best regards,

    Connor Desmond

  • Zachar,

    If you have a spare MMWAVEICBOOST, can you try that to confirm if the issue tracks the MMWAVEICBOOST or the IWR6843ISK?

    Regards,

    Charles O 

  • in  

    Hardware Setup for Flashing in MMWAVEICBOOST Mode

    when flash  foloowing bin : C:\ti\mmwave_sdk_<ver>\packages\ti\utils\ccsdebug\xwr68xx_ccsdebug.bin

    in uniflash  which device i shuld choose   attached screenshot 

    when i press start  it never finish the operation 

    or  when trying to flash it does not open port ?

    it is not clear what need to choose in uniflash  please elaborate

    i don't have additional board

    it is possiblr flash  C:\ti\mmwave_sdk_<ver>\packages\ti\utils\ccsdebug\xwr68xx_ccsdebug.bin   with folloing method

    Hardware Setup of IWR6843ISK/ODS for Flashing Mode

    and then mout to 

    MMWAVEICBOOST  board

    could you please send me screenshot  of 

    MMWAVEICBOOST   with correct jumpers configuration  sach as 

    j27 ,j28, j13 ..........etc  

  • Zachar:

    You need to choose the IWR6843 device when flashing with Uniflash.

    Best regards,

    Connor Desmond

  • attached  video with process 

    1. Hardware Setup for Flashing in MMWAVEICBOOST Mode I preform all steps in this section
    2. attached MMWAVEICBOOST + iwr6843ISK board 

    over one moth  i trying to programming 

    ng  MMWAVEICBOOST + iwr6843ISK board  xwr68xx_ccsdebug.bin   in order  working in debug mode in CCS  i tried  scan area also  68xx_mmwave_sdk_dsp

    i have big project and presentation i left with one month instead two  to implement my demo   

     dont understand  why your demo your explanation your support  could not help your demo   

    i need help   to run only demo   not custom application 

    it is possible  to do conference  with anyone HW team Embedded team to show  this setup working under debug under CCS ?

  • Hi watched video file  which describe the process 

  • Hi watched video file  which describe the process 

    1drv.ms/.../s!AmcSOF0lQ0NEliYaOt4cGXqzS2bg

  • Hello

    Seems like you started with custom code + run time error, but the last few steps for debug seem related to Flashing step.

    Can you please help us understand  where you need help and which steps are known to be working from below:

    1.   Able to flash OOB (or Areas scanner) image provide by TI and run the image + GUI
    2.  Able to compile OOB  (or Area scanner)  code as provided  by TI and  confirm it runs on the device.
    3.  Load the image in step #2 via flash method  and confirm working.
    4.  Make code changes  -> compile/create image -> user the new image to run

    Based on this we will guide you, please note that  custom code changes would be hard to debug.

    We will only be able to guide you  in the right direction for going

    Thank you,

    Vaibhav

  • 1. able flash  with uniflash 68xx_mmwave_sdk_dsp.bin or Area scanner.bin   in setup   iwr6843ISK board  standalone  and run Labs with TI tools  

    2 Able to compile OOB  (or Area scanner)  code as provided  by TI and  and flash confirm it runs on the device. iwr6843ISK board  standalone  and run Labs with TI tools 

    3. falied flash  68xx_mmwave_sdk_dsp.bin or Area scanner.bin  MMWAVEICBOOST + iwr6843ISK board   - not important but   the same behavior applay when i want flash xwr68xx_ccsdebug.bin   in order   run CCS debug   68xx_mmwave_sdk_dsp or Area scanner  project 

    my request  is  :   i want run developer  setup CCS debug project ( 68xx_mmwave_sdk_dsp or Area scanner)   original code  not custom code 

    MMWAVEICBOOST + iwr6843ISK 

    i follow  all instruction ( TI Resource  in CCS 8.3.1 )  but   i could not preform flash xwr68xx_ccsdebug.bin   with uniflash  there for  i could not continue the setup 

    my opinion  is that MMWAVEICBOOST    board  always in boot  stage  whatever SOP2  in  short  or not 

    i want run project OOB or Area scanner   in CCS debug mode   and run Lab   that  is my request my custom code is next step .........

  • Hello

    THank you for explaining.  So at this stage you are looking to get the  CCS debug + compile image + run flow working.

    Is that correct?

    Thank you,

    Vaibhav

  • Hello

    THank you for explaining.  So at this stage you are looking to get the  CCS debug + compile image + run flow working.

    Is that correct?

    Thank you,

    Vaibhav

  • yes CCS debug +compile  and run Lab  (  OOB or Area scanner)  in order learn DSP and MSS   behavior  

    1) how to flash ccsdebug file in MMWAVEICBOOST + iwr6843ISK    setup

    and run debug  load mss and dss files   

  • Just like you flash OOB demo.

    Can you please confirm you can flash the CCSdebug bin on the device.

    Thank you,

    Vaibhav

  • yes   i enable programming IWR6843  standalone  without boost board  after this i was enable enter debug mode in ccs 8.3.1

    the option  MMWAVEICBOOST + iwr6843ISK    does not  work 

    i want customize DSP demo   in several ways    i want add param  which  will be send via ctg file  which creating via TI tools 

    i want count frames in dsp processes     in send to  cortex4r    and return to  uart interfce to PC   is there  any guide  or white paper to costomize DSP  SDK example ?

  • Zachar:

    So to summarize what you have told me: You can flash the device in stand alone mode, but you can not flash the device when you have it mounted onto the MMWAVEICBOOST. You have made sure that the SOP2 jumper was connected when flashing and not connected when not flashing. You have also verified that you are using the correct power supply and have provided pictures of your MMWAVEICBOOST showing that the switches on the MMWAVEICBOOST are in the correct state per the user guide.

    Please note if any of these statements are incorrect or if there is any other additional information that should contextualize your problem.

    Best,

    Connor Desmond

  • Hello

    I clicked on Suggest answer by mistake so please ignore that.

    Can you please confirm if you can :

    1. Flash the image in standalone mode

    2. Connect to CCS via  mmwave iceboost mode

    THank you,

    Vaibhav

  • Hi,

    You mentioned a python application earlier, can you confirm that the UART ports are not connected to this application while you try to connect to the MMWAVEICBOOST for flashing using UNIFLASH.  Can you try this on a different PC to be sure?

    Also were you able to consistently and successfully flash with MMWAVEICBOOST initially or did this issue start right after unboxing?

    Regards,

    Charles O

  • what is the definition of  mmwave iceboost mode      where i could find explanation ?  could you send link ? 

  • i was able successfully  flash MMWAVEICBOOST+ ISK   after this  time it always failed 

    the UARTS port are free  hen i am trying to flash  MMWAVEICBOOST+ISK