Page 1 of 2

Component VL53L0X download problem

Posted: Wed Nov 15, 2023 11:50 am
by lucibel
hi,
When I'm trying to download the VL53L0X , I'm getting this below and the file is now downloaded
VL53L0x.jpg
VL53L0x.jpg (111.65 KiB) Viewed 5945 times
I tried with another component and it work well
SHT31.jpg
SHT31.jpg (6.83 KiB) Viewed 5945 times
thanks for a prompt reply

Re: Component VL53L0X download problem

Posted: Wed Nov 15, 2023 1:31 pm
by Steve-Matrix
Thanks for letting us know. This should get fixed soon.

In the meantime, you should be able to download the file by right-clicking and selecting "save link as...". This will currently only work if you visit the wiki in a browser rather than from within Flowcode itself.

Re: Component VL53L0X download problem

Posted: Wed Nov 15, 2023 4:04 pm
by lucibel
Thx, it work's

Now I'm trying to use the XC16 PRO compiler from microchip like I'm using in FC9 but there is a error . "COFF format is not supported, please use ELF"

Code: Select all

Target folder: C:\Users\seb\Documents\AAA Microchip
Source name:   C:\Users\seb\Documents\AAA Microchip\Flowcode1.fcfx
Title:         
Description:   
Device:        PIC16.24F.24FJ256GA705
Generated by:  Flowcode v10.0.4.33
Date:          Wednesday, November 15, 2023 16:56:47
Users:         1
Registered to: ---------
Licence key: ---------
https://www.flowcode.co.uk
Using <PICKit4 IPE Seb> user settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC16\batchfiles\pic16_C30_comp.bat  "C:\Program Files (x86)\Flowcode\Compilers\xc16\v2.10\" "Flowcode1" "C:\Users\seb\Documents\AAA Microchip\" "24FJ256GA705"

C:\Users\seb\Documents\AAA Microchip>REM CRC: 54CD51B8F484283E91B3AD9DE6F4F50C418D34178E0D3D0BD2659E1DA9D69F58D3529BB9468CFC85641793EB31F94A5F16CBA8333F125C7188ED8742865A1BBCF23BFF3064C25A11BAFA61B701B8D0469A0D46BD3B6AACB92DE4D84759EBB5079CA9DA2D2BBCDAE2A4D1C56CD1580BF59733FFBBAA9F3C7B5EDF8CE67A1404D62B8878703E3665631EAF018A0B6018ACC8FF364DB19D83FB389861B26F27604A1F36255EB2E4245255911F067119BEF7D5F89C133B93261A29D848A5DAD12E38FF9E5CFBC45304482C3050DA273BE4EE70C46F1DEBB5CE90D191F7CB01DEE82F091CE1AC860B44C66CFC63B583D3C0065E5746CE888A1719 

C:\Users\seb\Documents\AAA Microchip>REM REVISION: 1.0 

C:\Users\seb\Documents\AAA Microchip>REM GUID: 7821ABE5-9E21-4744-81B7-3FF600B75DB7 

C:\Users\seb\Documents\AAA Microchip>REM DATE: 08\08\2022 

C:\Users\seb\Documents\AAA Microchip>REM DIR: FCD\PIC16\batchfiles\pic16_C30_comp.bat 

C:\Users\seb\Documents\AAA Microchip>xc16-gcc -c -mcpu="24FJ256GA705" -omf=coff -funsigned-char -fno-short-double -Os -I"C:\Program Files (x86)\Flowcode\Compilers\xc16\v2.10\support\h" -I"C:\Program Files (x86)\Flowcode\Compilers\xc16\v2.10\" -std=gnu99 "Flowcode1".c -o "Flowcode1".o 
COFF format is not supported, please use ELF

Error returned from [xc16-gcc.exe]

C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\PIC16\batchfiles\pic16_C30_comp.bat reported error code 0x1

Autoclose turned off


FINISHED
thx for your help

Re: Component VL53L0X download problem

Posted: Wed Nov 15, 2023 4:34 pm
by Steve-Matrix
I think you need to use the updated batch files that I posted in the v9 thread:

viewtopic.php?p=12824#p12824

Re: Component VL53L0X download problem

Posted: Wed Nov 15, 2023 5:15 pm
by lucibel
It' work's , sorry I didn't know that need to do the same in FC10
why you didn't update FC10 with these batch files ?

Re: Component VL53L0X download problem

Posted: Wed Nov 15, 2023 5:25 pm
by Steve-Matrix
The work is planned I believe.

Re: Component VL53L0X download problem

Posted: Wed Nov 15, 2023 5:26 pm
by lucibel
thx

Re: Component VL53L0X download problem

Posted: Sat Nov 18, 2023 8:25 am
by lucibel
hello
I was looking the code of the VL53L0X sensor.
Could you explain me why Macro "SetVcselPulsePeriod" is never used during initialize.
Range value is always 0
range.jpg
range.jpg (68.57 KiB) Viewed 5897 times
thx

Re: Component VL53L0X download problem

Posted: Mon Nov 20, 2023 9:56 am
by Steve-Matrix
As far as I can tell, this relates to a "long range / short range" option which is currently unimplemented in the component. If this is a feature you require then please let us know and we can look at implementing it.

Re: Component VL53L0X download problem

Posted: Mon Nov 20, 2023 10:27 am
by medelec35
Hello.
Thanks Steve/Seb
I have not got a VL53L0X sensor to test with, but the long range / short range" option has now been implemented.
Can you please let me know how you get on with the change.

If you are happy with the change, the component modification will be pushed onto the update system next week.
Browse to this location using File Explorer, it's hidden by default so just paste the link into your address bar.

Code: Select all

C:\ProgramData\MatrixTSL\FlowcodeV10\Components
Replace the existing file with the attached file.
If Flowcode is already open, then you will need to reload your project for the new components to work
If you run any component updates, then the components you added will be overwritten.