Issue With VL53L5cx Sensor

i have developed the VL53L5CX code with BLE nrf52840 and it is working fine but issue i have faced is the USB port Restarted Whenever Firmware Download Process Start below i  Mention portion of code this portion is the part of VL53L5CX sensor INIT process whenever i Comment This Portion then USB not Restart but sensor not working because init process not done so can anyone help me what is the issue???


/* Download FW into VL53L5 */
status |= WrByte(&(p_dev->platform), 0x7fff, 0x09);
status |= WrMulti(&(p_dev->platform),0,
(uint8_t*)&VL53L5CX_FIRMWARE[0],0x8000);
status |= WaitMs(&(p_dev->platform), 1000);
status |= WrByte(&(p_dev->platform), 0x7fff, 0x0a);
status |= WrMulti(&(p_dev->platform),0,
(uint8_t*)&VL53L5CX_FIRMWARE[0x8000],0x8000);
status |= WrByte(&(p_dev->platform), 0x7fff, 0x0b);
status |= WrMulti(&(p_dev->platform),0,
(uint8_t*)&VL53L5CX_FIRMWARE[0x10000],0x5000);
status |= WrByte(&(p_dev->platform), 0x7fff, 0x01);

Parents
  • SDK version 17.1.0 and internally i2c Rx and Tx

    function used

  • OK, Then this forum is the right one to start.

    Mention portion of code this portion is the part of VL53L5CX sensor INIT process whenever i Comment This Portion then USB not Restart but sensor not working because init process not done so can anyone help me what is the issue???

    Not sure if I understand this right, do you mean to say that when you comment or remove the shown code snippet, then the USB does not restart? What does that mean? Why do you want to restart the restart the USB?

    Can you show me bigger parts of the code snippets on what the init process is doing here?

    and also show us what WrByte does?

    Also show us how you have initialized I2C with some code snippets?

    What is the output of the serial log messages?

    Do you see anything in the output pins of the I2C using a logic analyzer (or similar) or a oscilloscope?

Reply
  • OK, Then this forum is the right one to start.

    Mention portion of code this portion is the part of VL53L5CX sensor INIT process whenever i Comment This Portion then USB not Restart but sensor not working because init process not done so can anyone help me what is the issue???

    Not sure if I understand this right, do you mean to say that when you comment or remove the shown code snippet, then the USB does not restart? What does that mean? Why do you want to restart the restart the USB?

    Can you show me bigger parts of the code snippets on what the init process is doing here?

    and also show us what WrByte does?

    Also show us how you have initialized I2C with some code snippets?

    What is the output of the serial log messages?

    Do you see anything in the output pins of the I2C using a logic analyzer (or similar) or a oscilloscope?

Children
No Data
Related