HI Seeed Team,
I am attempting to use the GROVE VL53LOX range finder with the Seeeduino LoraWAN, and received the below error message related to the FLASH and what is assume is the WIRE. library ( although it is not called in the code.
Example Grove Code
==================
#include “Seeed_vl53l0x.h”
Seeed_vl53l0x VL53L0X;
void setup()
{
VL53L0X_Error Status = VL53L0X_ERROR_NONE;
Serial.begin(115200);
Status=VL53L0X.VL53L0X_common_init();
if(VL53L0X_ERROR_NONE!=Status)
{
Serial.println(“start vl53l0x mesurement failed!”);
VL53L0X.print_pal_error(Status);
while(1);
}
VL53L0X.VL53L0X_single_ranging_init();
if(VL53L0X_ERROR_NONE!=Status)
{
Serial.println(“start vl53l0x mesurement failed!”);
VL53L0X.print_pal_error(Status);
while(1);
}
}
void loop()
{
VL53L0X_RangingMeasurementData_t RangingMeasurementData;
VL53L0X_Error Status = VL53L0X_ERROR_NONE;
memset(&RangingMeasurementData,0,sizeof(VL53L0X_RangingMeasurementData_t));
Status=VL53L0X.PerformSingleRangingMeasurement(&RangingMeasurementData);
if(VL53L0X_ERROR_NONE==Status)
{
if(RangingMeasurementData.RangeMilliMeter>=2000)
{
Serial.println(“out of range!!”);
}
else
{
Serial.print(“Measured distance:”);
Serial.print(RangingMeasurementData.RangeMilliMeter);
Serial.println(" mm");
}
}
else
{
Serial.print(“mesurement failed !! Status code =”);
Serial.println(Status);
}
delay(300);
}
========ERROR MESSAGE======
WARNING: Category ‘’ in library FlashStorage is not valid. Setting to ‘Uncategorized’
WARNING: library Wire claims to run on (samd) architecture(s) and may be incompatible with your current board which runs on (Seeeduino_SAMD) architecture(s).
Sketch uses 22436 bytes (8%) of program storage space. Maximum is 262144 bytes.
Atmel SMART device 0x10010005 found
Device : ATSAMD21G18A
Chip ID : 10010005
Version : v2.0 [Arduino:XYZ] Oct 20 2016 17:02:59
Address : 8192
Pages : 3968
Page Size : 64 bytes
Total Size : 248KB
Planes : 1
Lock Regions : 16
Locked : none
Security : false
Boot Flash : true
BOD : true
BOR : true
Arduino : FAST_CHIP_ERASE
Arduino : FAST_MULTI_PAGE_WRITE
Arduino : CAN_CHECKSUM_MEMORY_BUFFER
Erase flash
done in 0.812 seconds
Write 23300 bytes to flash (365 pages)
[===== ] 17% (64/365 pages)
[========== ] 35% (128/365 pages)
[=============== ] 52% (192/365 pages)
[===================== ] 70% (256/365 pages)
[========================== ] 87% (320/365 pages)
[==============================] 100% (365/365 pages)
done in 0.143 seconds
Verify 23300 bytes of flash with checksum.
Verify successful
done in 0.018 seconds
CPU reset.
=======
Appreciate any help, Cheers
Hi there,
they are 2 issues.
- please press the rst button 2 times. then you can download the code
- please change the Serial.print to SerialUSB.print in sketch and cpp files. Coz the lorawan uses the SerialUSB for the serial print. thanks.
best rgds
Bill
Thanks Bill