Camera lost communication

I get this without an sd card

Code:
---------------------------------------------
    Cortex Boot-Up Success

Cortex freq: 504000000
ARM    freq: 132000000
DDR    freq: 396000000
Core   freq: 216000000
iDSP   freq: 264000000
AXI    freq: 168000000
AHB    freq: 108000000
APB    freq: 54000000
UART   freq: 1846153
SD0    freq: 24000000
SD1    freq: 24000000
---------------------------------------------

Start WDT timer OK.
Magic: 0x4a40d81e 0x484a581e 0x588ad81e
System COLD boot.
Continue to booting up ......


---------------------------------------------
    Cortex Boot-Up Success

Cortex freq: 504000000
ARM    freq: 17600000
DDR    freq: 396000000
Core   freq: 216000000
iDSP   freq: 264000000
AXI    freq: 168000000
AHB    freq: 108000000
APB    freq: 54000000
UART   freq: 1846153
SD0    freq: 24000000
SD1    freq: 24000000
---------------------------------------------

Start WDT timer OK.
Magic: 0x87651234 0x1 0x789aedca
System WARM boot.
Continue to booting up ......


---------------------------------------------
    Cortex Boot-Up Success

Cortex freq: 504000000
ARM    freq: 17600000
DDR    freq: 396000000
Core   freq: 216000000
iDSP   freq: 264000000
AXI    freq: 168000000
AHB    freq: 108000000
APB    freq: 54000000
UART   freq: 1846153
SD0    freq: 24000000
SD1    freq: 24000000
---------------------------------------------

Start WDT timer OK.
Magic: 0x87651234 0x2 0x789aedc9
System WARM boot.
Continue to booting up ......


---------------------------------------------
    Cortex Boot-Up Success

Cortex freq: 504000000
ARM    freq: 17600000
DDR    freq: 396000000
Core   freq: 216000000
iDSP   freq: 264000000
AXI    freq: 168000000
AHB    freq: 108000000
APB    freq: 54000000
UART   freq: 1846153
SD0    freq: 24000000
SD1    freq: 24000000
---------------------------------------------

Start WDT timer OK.
Magic: 0x87651234 0x3 0x789aedc8
System WARM boot.
Continue to booting up ......


---------------------------------------------
    Cortex Boot-Up Success

Cortex freq: 504000000
ARM    freq: 17600000
DDR    freq: 396000000
Core   freq: 216000000
iDSP   freq: 264000000
AXI    freq: 168000000
AHB    freq: 108000000
APB    freq: 54000000
UART   freq: 1846153
SD0    freq: 24000000
SD1    freq: 24000000
---------------------------------------------

Start WDT timer OK.
Magic: 0x87651234 0x4 0x789aedcf
System WARM boot.
Detecting done ......

[00000000][CA9_0] [DJI] Start WDT of 20 seconds for boot up......

[00000000][CA9_0] [Version 1.0.11824], Oct 16 2015, 14:06:46


[00000000][CA9_0] [DJI] SD Updater Version [v01.25.5432] Build Sep 23 2016 17:03                                                                                        :19


[00000328][CA9_0] [DJI] Stop WDT.

[00000328][CA9_0] [DJI] Firmware updating......

[00000328][CA9_0] Card doesn't exist 0!, can't update the firm
---------------------------------------------
    Cortex Boot-Up Success

Cortex freq: 504000000
ARM    freq: 17600000
DDR    freq: 396000000
Core   freq: 216000000
iDSP   freq: 264000000
AXI    freq: 168000000
AHB    freq: 108000000
APB    freq: 54000000
UART   freq: 1846153
SD0    freq: 24000000
SD1    freq: 24000000
---------------------------------------------

Start WDT timer OK.
Magic: 0x87651234 0x5 0x789aedce
System WARM boot.
Detecting done ......

[00000000][CA9_0] [DJI] Start WDT of 20 seconds for boot up......

[00000000][CA9_0] [Version 1.0.11824], Oct 16 2015, 14:06:46


[00000000][CA9_0] [DJI] SD Updater Version [v01.25.5432] Build Sep 23 2016 17:03                                                                                        :19


[00000328][CA9_0] [DJI] Stop WDT.

[00000328][CA9_0] [DJI] Firmware updating......

[00000328][CA9_0] Card doesn't exist 0!, can't update the firmware.
---------------------------------------------
    Cortex Boot-Up Success

Cortex freq: 504000000
ARM    freq: 17600000
DDR    freq: 396000000
Core   freq: 216000000
iDSP   freq: 264000000
AXI    freq: 168000000
AHB    freq: 108000000
APB    freq: 54000000
UART   freq: 1846153
SD0    freq: 24000000
SD1    freq: 24000000
---------------------------------------------

Start WDT timer OK.
Magic: 0x87651234 0x6 0x789aedcd
System WARM boot.
Detecting done ......

[00000000][CA9_0] [DJI] Start WDT of 20 seconds for boot up......

[00000000][CA9_0] [Version 1.0.11824], Oct 16 2015, 14:06:46


[00000000][CA9_0] [DJI] SD Updater Version [v01.25.5432] Build Sep 23 2016 17:03                                                                                        :19


[00000328][CA9_0] [DJI] Stop WDT.

[00000328][CA9_0] [DJI] Firmware updating......

[00000328][CA9_0] Card doesn't exist 0!, can't update the firmware.
---------------------------------------------
    Cortex Boot-Up Success

Cortex freq: 504000000
ARM    freq: 17600000
DDR    freq: 396000000
Core   freq: 216000000
iDSP   freq: 264000000
AXI    freq: 168000000
AHB    freq: 108000000
APB    freq: 54000000
UART   freq: 1846153
SD0    freq: 24000000
SD1    freq: 24000000
---------------------------------------------

Start WDT timer OK.
Magic: 0x87651234 0x7 0x789aedcc
System WARM boot.
Detecting done ......

[00000000][CA9_0] [DJI] Start WDT of 20 seconds for boot up......

[00000000][CA9_0] [Version 1.0.11824], Oct 16 2015, 14:06:46


[00000000][CA9_0] [DJI] SD Updater Version [v01.25.5432] Build Sep 23 2016 17:03                                                                                        :19


[00000328][CA9_0] [DJI] Stop WDT.

[00000328][CA9_0] [DJI] Firmware updating......

[00000328][CA9_0] Card doesn't exist 0!, can't update the firmware.
---------------------------------------------
    Cortex Boot-Up Success

Cortex freq: 504000000
ARM    freq: 17600000
DDR    freq: 396000000
Core   freq: 216000000
iDSP   freq: 264000000
AXI    freq: 168000000
AHB    freq: 108000000
APB    freq: 54000000
UART   freq: 1846153
SD0    freq: 24000000
SD1    freq: 24000000
---------------------------------------------

Start WDT timer OK.
Magic: 0x87651234 0x8 0x789aedc3
System WARM boot.
Detecting done ......

[00000000][CA9_0] [DJI] Start WDT of 20 seconds for boot up......

[00000000][CA9_0] [Version 1.0.11824], Oct 16 2015, 14:06:46


[00000000][CA9_0] [DJI] SD Updater Version [v01.25.5432] Build Sep 23 2016 17:03                                                                                        :19


[00000328][CA9_0] [DJI] Stop WDT.

[00000328][CA9_0] [DJI] Firmware updating......

[00000328][CA9_0] Card doesn't exist 0!, can't update the firmware.
---------------------------------------------
    Cortex Boot-Up Success

Cortex freq: 504000000
ARM    freq: 17600000
DDR    freq: 396000000
Core   freq: 216000000
iDSP   freq: 264000000
AXI    freq: 168000000
AHB    freq: 108000000
APB    freq: 54000000
UART   freq: 1846153
SD0    freq: 24000000
SD1    freq: 24000000
---------------------------------------------

Start WDT timer OK.
Magic: 0x87651234 0x9 0x789aedc2
System WARM boot.
Detecting done ......

[00000000][CA9_0] [DJI] Start WDT of 20 seconds for boot up......

[00000000][CA9_0] [Version 1.0.11824], Oct 16 2015, 14:06:46


[00000000][CA9_0] [DJI] SD Updater Version [v01.25.5432] Build Sep 23 2016 17:03                                                                                        :19


[00000328][CA9_0] [DJI] Stop WDT.

[00000328][CA9_0] [DJI] Firmware updating......

[00000328][CA9_0] Card doesn't exist 0!, can't update the fir
---------------------------------------------
    Cortex Boot-Up Success

Cortex freq: 504000000
ARM    freq: 17600000
DDR    freq: 396000000
Core   freq: 216000000
iDSP   freq: 264000000
AXI    freq: 168000000
AHB    freq: 108000000
APB    freq: 54000000
UART   freq: 1846153
SD0    freq: 24000000
SD1    freq: 24000000
---------------------------------------------

Start WDT timer OK.
Magic: 0x87651234 0xa 0x789aedc1
System WARM boot.
Rolling Back done ......


---------------------------------------------
    Cortex Boot-Up Success

Cortex freq: 504000000
ARM    freq: 17600000
DDR    freq: 396000000
Core   freq: 216000000
iDSP   freq: 264000000
AXI    freq: 168000000
AHB    freq: 108000000
APB    freq: 54000000
UART   freq: 1846153
SD0    freq: 24000000
SD1    freq: 24000000
---------------------------------------------

Start WDT timer OK.
Magic: 0x87651234 0xb 0x789aedc0
System WARM boot.
Rolling Back done ......

I get this with an sd card

Code:
    Cortex Boot-Up Success

Cortex freq: 504000000
ARM    freq: 132000000
DDR    freq: 396000000
Core   freq: 216000000
iDSP   freq: 264000000
AXI    freq: 168000000
AHB    freq: 108000000
APB    freq: 54000000
UART   freq: 1846153
SD0    freq: 24000000
SD1    freq: 24000000
---------------------------------------------

Start WDT timer OK.
Magic: 0x5acad81e 0x584ad81e 0x58cad81e
System COLD boot.
Continue to booting up ......


---------------------------------------------
    Cortex Boot-Up Success

Cortex freq: 504000000
ARM    freq: 17600000
DDR    freq: 396000000
Core   freq: 216000000
iDSP   freq: 264000000
AXI    freq: 168000000
AHB    freq: 108000000
APB    freq: 54000000
UART   freq: 1846153
SD0    freq: 54000000
SD1    freq: 24000000
---------------------------------------------

Start WDT timer OK.
Magic: 0x87651234 0x1 0x789aedca
System WARM boot.
Continue to booting up ......


---------------------------------------------
    Cortex Boot-Up Success

Cortex freq: 504000000
ARM    freq: 17600000
DDR    freq: 396000000
Core   freq: 216000000
iDSP   freq: 264000000
AXI    freq: 168000000
AHB    freq: 108000000
APB    freq: 54000000
UART   freq: 1846153
SD0    freq: 30857142
SD1    freq: 24000000
---------------------------------------------

Start WDT timer OK.
Magic: 0x87651234 0x2 0x789aedc9
System WARM boot.
Continue to booting up ......


---------------------------------------------
    Cortex Boot-Up Success

Cortex freq: 504000000
ARM    freq: 17600000
DDR    freq: 396000000
Core   freq: 216000000
iDSP   freq: 264000000
AXI    freq: 168000000
AHB    freq: 108000000
APB    freq: 54000000
UART   freq: 1846153
SD0    freq: 30857142
SD1    freq: 24000000
---------------------------------------------

Start WDT timer OK.
Magic: 0x87651234 0x3 0x789aedc8
System WARM boot.
Continue to booting up ......


---------------------------------------------
    Cortex Boot-Up Success

Cortex freq: 504000000
ARM    freq: 17600000
DDR    freq: 396000000
Core   freq: 216000000
iDSP   freq: 264000000
AXI    freq: 168000000
AHB    freq: 108000000
APB    freq: 54000000
UART   freq: 1846153
SD0    freq: 30857142
SD1    freq: 24000000
---------------------------------------------

Start WDT timer OK.
Magic: 0x87651234 0x4 0x789aedcf
System WARM boot.
Detecting done ......

[00000000][CA9_0] [DJI] Start WDT of 20 seconds for boot up......

[00000000][CA9_0] [Version 1.0.11824], Oct 16 2015, 14:06:46


[00000000][CA9_0] [DJI] SD Updater Version [v01.25.5432] Build Sep 23 2016 17:03:19


[00000328][CA9_0] [DJI] Stop WDT.

[00000329][CA9_0] [DJI] Firmware updating......

[00000329][CA9_0] Card In Slot.
[00000630][CA9_0] SD clock source, frequency = 216000000
[00000630][CA9_0] SDCalcClk for SD card initiation:: Actual Clk = 140625, pCLK = 128
[00000653][CA9_0] start to check media
[00000657][CA9_0] AmbaSD_InitCard - SD_CARD OK
[00000673][CA9_0] Can't detect firmware.
[00000742][CA9_0] Firmware  program fail.--- ARM DATA ABORT EXCEPTION ---
Oops: CPU Exception!
pc : [<0001134c>]    lr : [<00000000>]
sp : 0006f328  ip : 00000000  fp : 00000000
r10: 0006b400  r9 : 00000000  r8 : 00000000
r7 : 00000000  r6 : 00000000  r5 : 00000000
r4 : 0006f394  r3 : 00000000  r2 : 00000000
r1 : fff90c5b  r0 : ffffffa4
Flags: NzCv
IRQs on  FIQs on  M
---------------------------------------------
    Cortex Boot-Up Success

Cortex freq: 504000000
ARM    freq: 17600000
DDR    freq: 396000000
Core   freq: 216000000
iDSP   freq: 264000000
AXI    freq: 168000000
AHB    freq: 108000000
APB    freq: 54000000
UART   freq: 1846153
SD0    freq: 43200000
SD1    freq: 24000000
---------------------------------------------

Start WDT timer OK.
Magic: 0x87651234 0x0 0x789aedcb
System WARM boot.
Continue to booting up ......


---------------------------------------------
    Cortex Boot-Up Success

Cortex freq: 504000000
ARM    freq: 17600000
DDR    freq: 396000000
Core   freq: 216000000
iDSP   freq: 264000000
AXI    freq: 168000000
AHB    freq: 108000000
APB    freq: 54000000
UART   freq: 1846153
SD0    freq: 30857142
SD1    freq: 24000000
---------------------------------------------

Start WDT timer OK.
Magic: 0x87651234 0x1 0x789aedca
System WARM boot.
Continue to booting up ......
 
Last edited:
[00000673][CA9_0] Can't detect firmware.
From AmbaFwUpdaterTaskEntry() within source code of Ambarella firmware:

C:
  detect_error = DjiUecFirmwareDetect(strbuf, &v15);
  if ( detect_error )
  {
    console_log_msg("Can't detect firmware.");

So DjiUecFirmwareDetect() returned error - there was no matching firmware on the SD-card.
 
I tried to extract Ambarella FW module from DJI firmware package, and place on SD-card. I was hoping it would break the loop. Then I got a log file like this:
Code:
  Cortex Boot-Up Success

Cortex freq: 504000000
ARM    freq: 17600000
DDR    freq: 396000000
Core   freq: 216000000
iDSP   freq: 264000000
AXI    freq: 168000000
AHB    freq: 108000000
APB    freq: 54000000
UART   freq: 1846153
SD0    freq: 30857142
SD1    freq: 24000000
---------------------------------------------

Start WDT timer OK.
Magic: 0x87651234 0x4 0x789aedcf
System WARM boot.
Detecting done ......

[00000000][CA9_0] [DJI] Start WDT of 20 seconds for boot up......

[00000000][CA9_0] [Version 1.0.11824], Oct 16 2015, 14:06:46


[00000000][CA9_0] [DJI] SD Updater Version [v01.25.5432] Build Sep 23 2016 17:03:19


[00000328][CA9_0] [DJI] Stop WDT.

[00000328][CA9_0] [DJI] Firmware updating......

[00000328][CA9_0] Card In Slot.
[00000629][CA9_0] SD clock source, frequency = 216000000
[00000629][CA9_0] SDCalcClk for SD card initiation:: Actual Clk = 140625, pCLK = 128
[00000652][CA9_0] start to check media
[00000656][CA9_0] AmbaSD_InitCard - SD_CARD OK
[00000671][CA9_0] [DJI] Try Ddr Param 0.

[00000671][CA9_0] Back up partion data ......
[00026096][CA9_0] Image "System Software" is found!
[00026096][CA9_0] Image "DSP uCode" is found!
[00026096][CA9_0] Image "System ROM Data" is found!
[00026096][CA9_0] Image "Linux Kernel" is found!
[00026096][CA9_0] Image "Linux Root FS" is found!
[00026096][CA9_0] Start firmware CRC check...

[00026096][CA9_0] Checking System Software
[00030389][CA9_0] Verifying image CRC ... done
[00030389][CA9_0]       length:         9154368
[00030389][CA9_0]       crc32:          0x845822c8
[00030389][CA9_0]       ver_num:        1.0
[00030389][CA9_0]       ver_date:       2016/9/23
[00030389][CA9_0]       img_len:        9154112
[00030389][CA9_0]       mem_addr:       0x0e600000

[00030389][CA9_0] Checking DSP uCode
[00032278][CA9_0] Verifying image CRC ... done
[00032278][CA9_0]       length:         3889408
[00032278][CA9_0]       crc32:          0x4f07273c
[00032278][CA9_0]       ver_num:        1.0
[00032278][CA9_0]       ver_date:       2016/9/23
[00032278][CA9_0]       img_len:        3889152
[00032278][CA9_0]       mem_addr:       0x0ff00000

[00032278][CA9_0] Checking System ROM Data
[00037724][CA9_0] Verifying image CRC ... done
[00037724][CA9_0]       length:         11624704
[00037724][CA9_0]       crc32:          0xc6dfedab
[00037724][CA9_0]       ver_num:        1.0
[00037724][CA9_0]       ver_date:       2016/9/23
[00037724][CA9_0]       img_len:        11624448
[00037724][CA9_0]       mem_addr:       0x03c00000

[00037724][CA9_0] Checking Linux Kernel
[00040031][CA9_0] Verifying image CRC ... done
[00040031][CA9_0]       length:         5038864
[00040031][CA9_0]       crc32:          0xf6a51577
[00040031][CA9_0]       ver_num:        1.0
[00040031][CA9_0]       ver_date:       2016/9/23
[00040031][CA9_0]       img_len:        5038608
[00040031][CA9_0]       mem_addr:       0x00508000

[00040031][CA9_0] Checking Linux Root FS
[00053025][CA9_0] Verifying image CRC ... done
[00053025][CA9_0]       length:         27001088
[00053025][CA9_0]       crc32:          0x65014d0d
[00053025][CA9_0]       ver_num:        1.0
[00053025][CA9_0]       ver_date:       2016/9/23
[00053025][CA9_0]       img_len:        27000832
[00053025][CA9_0]       mem_addr:       0x00001000

[00053501][CA9_0] Program "System Software" to NAND flash ...
[00056703][CA9_0] Initial bad block. <block 209>
[00056733][CA9_0] Done
[00056937][CA9_0] Program "DSP uCode" to NAND flash ...
[00058293][CA9_0] Done
[00058897][CA9_0] Program "System ROM Data" to NAND flash ...
[00062943][CA9_0] Done
[00063202][CA9_0] Program "Linux Kernel" to NAND flash ...
[00064971][CA9_0] Done
[00066373][CA9_0] Program "Linux Root FS" to NAND flash ...
[00075726][CA9_0] Initial bad block. <block 888>
[00075774][CA9_0] Done
[00076335][CA9_0] [DJI] Done!


[00076335][CA9_0] [DJI] Reboot......

---------------------------------------------
    Cortex Boot-Up Success

Cortex freq: 504000000
ARM    freq: 17600000
DDR    freq: 396000000
Core   freq: 216000000
iDSP   freq: 264000000
AXI    freq: 168000000
AHB    freq: 108000000
APB    freq: 54000000
UART   freq: 1846153
SD0    freq: 43200000
SD1    freq: 24000000
---------------------------------------------

Start WDT timer OK.
Magic: 0x87651234 0x0 0x789aedcb
System WARM boot.
Continue to booting up ......


And it won't boot again
 
I tried to extract Ambarella FW module from DJI firmware package, and place on SD-card. I was hoping it would break the loop.
Good thinking!

Did you removed the card after the update? Otherwise it will re-boot and try to update again, and again...

The log you provided is from the update. And the update did succeeded. Do you have a log from after the update?
I mean, log from the current issue?
 
The log you provided is from the update. And the update did succeeded. Do you have a log from after the update?
@quaddamage , I have a board with similar output. Had no bad blocks and it updated successfully to fw 1.1.20 verified by the LOG_AB file. It still has no image transmission or showing of the sd card on DJI go. Still trying to figure out how to flash the Ambarella .
 
In all the cases I see here, the UART interface has not a single line form OS booting. There are bootloader messages only. And there actually should be 2 OSes booting - Linux on one core, and RTOS on the other. Maybe the rest of the boot process is logged somewhere else?

Can you try creating that file on SD-card? Maybe it will show more:
O-Gs Wiki - Enabling Ambarella ThreadX RTOS log write on SD-card

EDIT: Though that probably won't work, as the UART-0 interface is described below on that wiki, and it says that ThreadX messages (from 'sys' partition) should be there. It even shows an example where the OS boot messages are visible.

So maybe the issue is that 'sys' partition needs to be reflashed?

Have you heard about AmbaUSB? I never tried to use that, but some people hinted me that it's a tool which can flash Ambarella partitions.
 
Can you try creating that file on SD-card? Maybe it will show more:
O-Gs Wiki - Enabling Ambarella ThreadX RTOS log write on SD-card
I will give it a go and see what happens.
Have you heard about AmbaUSB? I never tried to use that, but some people hinted me that it's a tool which can flash Ambarella partitions.
I have, and I have it downloaded onto my computer, just haven’t started with it yet.
I’ll let you know what transpires later on today.
Thank you for all your help ?
 
@quaddamage , the file is to long to upload. Is there another way to upload?

The log file? Use any site where you can upload files for others. Like DropBox/DropMeFiles/Mega.co.nz. There's a lot of these (though some of them make it hard to download the files, so not every such service is suitable).
 
The log file? Use any site where you can upload files for others. Like DropBox/DropMeFiles/Mega.co.nz. There's a lot of these (though some of them make it hard to download the files, so not every such service is suitable).
Lol, I’ve got Mega and DropBox. Didn’t even dawn on me to use them.
I’ll get to it in an hour or so.
 
Just after the chip writes the log, it reboots. It doesn't log any error though. So it's hard to tell what's wrong.
The final messages before reboot are:
Code:
[00002641][CA9_0] [DJI_UST] DjiUstPanoModeSet: Setting value(1).
[00002641][CA9_0] [DJI_UST] DjiUstCamReverseSet: Setting value(0).
[00002641][CA9_0] [DJI_UST] DjiUstCamReverseSet: Start setting, id=38.
[00002641][CA9_0] [DjiCamReverseSetCallback]begin to set the Camera reverse as normal.
[00002641][CA9_0] [DjiCamReverseConfig]-[6924]the camera will be set to normal
[00002641][CA9_0] Capture state = 0x0000(0x0001)
[00004616][CA9_0] [DJI_MIS] DjiLog2SdDetectProc: detect log record config file enable sd record log

In the log you sent, the same chunk of startup repeats many times. To be exact:
Code:
# grep -c 'detect log record config file enable sd record log' CameraLogCur.log
14


So:
- Maybe the `sys` partition is damaged in such a way that it constantly reboots without being able to write the cause
- or maybe the issue is in the SD-card? did you tried starting the drone without it?
- or maybe there's just some kind of HW failure

It is strange that the RTOS isn't able to handle the error and show the usual "hard fault" screen. Or maybe it doesn't show that screen because it forces all flash memory to be read-only if hard fault happens?
 

Members online

No members online now.

Forum statistics

Threads
143,066
Messages
1,467,358
Members
104,936
Latest member
hirehackers