Hello,
I connected a camera module with DSP to the J21 connector of Jetson Orin Nano and ran some reliability tests. I found that when operating at a high temperature environment (60~70°C), Jetson Orin Nano would pull CAM1_PWDN to low, which lead to DSP crash.
I wonder under what condition will the system pull CAM1_PWDN to low? I suspect it maybe related to temp. or power loading.
Let me know if any additional information is required.
Thank you!
Since CAM1_PWDN is a static GPIO, power loading should not be related in this case. As you can see in the Jetson Orin Nano Developer Kit Carrier Board Reference Design Files, there is a SN74LV1T125 level shifter (U58) to 3.3V between J21 and the original 1.8V GPIO from Orin. Are you able to probe the input pin of the level shifter to see if the GPIO from Orin on U58 pin 2 is still high (1.8V) when this problem occurs? Trying to isolate if it is an Orin or level shifter problem. Per the TI website, the middle pin is pin 2. The assembly drawing PDF (P3768_A04_PCB_assembly_drawing.pdf) in the Design Files package can help you find U58 on the carrier board.
Thank you for your reply.
I probed the input (CAM1_PWDN) and output (CAM1_PWDN_LS) when the crash occurred. Both signals were pulled down for about 1us and then back to high. I also tried other Jetson Orin Nano and different sensor, but the crash still occurred.
Is this pulled-low signal a command from the Jetson Orin Nano? If so, I would like to know the underlying mechanism.
How did you configure CAM1_PWDN in the pinmux spreadsheet (row 189)?
Does the same setup (same hardware and software) not have this problem if running at ambient room temperature (20-25°C)?
We don’t have this problem at room temperature with the identical setup.
The related coding is described below:
static int imx415_power_on(struct camera_common_data *s_data)
{
int err = 0;
struct camera_common_power_rail *pw = s_data->power;
struct camera_common_pdata *pdata = s_data->pdata;
struct device *dev = s_data->dev;
dev_dbg(dev, "%s: power on\n", func);
if (pdata && pdata->power_on) {
err = pdata->power_on(pw);
if (err)
dev_err(dev, "%s failed.\n", func);
else
pw->state = SWITCH_ON;
return err;
}
if (pw->reset_gpio) {
if (gpio_cansleep(pw->reset_gpio))
gpio_set_value_cansleep(pw->reset_gpio, 0);
else
gpio_set_value(pw->reset_gpio, 0);
}
if (unlikely(!(pw->avdd || pw->iovdd || pw->dvdd)))
goto skip_power_seqn;
usleep_range(10, 20);
if (pw->avdd) {
err = regulator_enable(pw->avdd);
if (err)
goto imx415_avdd_fail;
}
if (pw->iovdd) {
err = regulator_enable(pw->iovdd);
if (err)
goto imx415_iovdd_fail;
}
if (pw->dvdd) {
err = regulator_enable(pw->dvdd);
if (err)
goto imx415_dvdd_fail;
}
usleep_range(10, 20);
skip_power_seqn:
if (pw->reset_gpio) {
if (gpio_cansleep(pw->reset_gpio))
gpio_set_value_cansleep(pw->reset_gpio, 1);
else
gpio_set_value(pw->reset_gpio, 1);
}
/* Need to wait for t4 + t5 + t9 + t10 time as per the data sheet /
/ t4 - 200us, t5 - 21.2ms, t9 - 1.2ms t10 - 270 ms */
usleep_range(300000, 300100);
pw->state = SWITCH_ON;
return 0;
imx415_dvdd_fail:
regulator_disable(pw->iovdd);
imx415_iovdd_fail:
regulator_disable(pw->avdd);
imx415_avdd_fail:
dev_err(dev, "%s failed.\n", func);
return -ENODEV;
}
static int imx415_power_off(struct camera_common_data *s_data)
{
int err = 0;
struct camera_common_power_rail *pw = s_data->power;
struct camera_common_pdata *pdata = s_data->pdata;
struct device *dev = s_data->dev;
dev_dbg(dev, "%s: power off\n", func);
if (pdata && pdata->power_off) {
err = pdata->power_off(pw);
if (err) {
dev_err(dev, "%s failed.\n", func);
return err;
}
} else {
if (pw->reset_gpio) {
if (gpio_cansleep(pw->reset_gpio))
gpio_set_value_cansleep(pw->reset_gpio, 0);
else
gpio_set_value(pw->reset_gpio, 0);
}
usleep_range(10, 10);
if (pw->dvdd)
regulator_disable(pw->dvdd);
if (pw->iovdd)
regulator_disable(pw->iovdd);
if (pw->avdd)
regulator_disable(pw->avdd);
}
pw->state = SWITCH_OFF;
return 0;
}
That code appears to only control reset_gpio, not the CAM1_PWDN. Have you ruled out any other code setting the GPIO?
Does the signal go all the way down to 0V or is it an intermediate voltage level?
This doesn’t seem to be directly related to a hardware fault since it reproduced on other Orin Nano modules. There may be other code unexpectedly controlling this GPIO. If you can repro consistently, would it be possible to stop other seemingly-unrelated processes to see if the issue stops?