Cannot load Firmware to VL53L5CX
With the following code the VL53L5CX should get it's firmware uploaded.
" /* Download FW into VL53L5 */
status |= WrByte(&(p_dev->platform), 0x7fff, 0x09);
status |= WrMulti(&(p_dev->platform),0,
(uint8_t*)&VL53L5CX_FIRMWARE[0],0x8000);
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);
"
(code is from https://github.com/simondlevy/VL53L5 for arduino)
I get an Error saying failed to write 0x8000 bytes to 0x00. (see line 3)
So not even the first byte of the firmware gets transmitted, why is that so?
Thanks for any answers or pointers
Lucordes
PS the firmware is 86020 bytes why would it only write 0x8000(32768 decimal) bytes?
