toolchain PI pico

For general Flowcode discussion that does not belong in the other sections.
Post Reply
max.tisc
Posts: 113
http://meble-kuchenne.info.pl
Joined: Thu Dec 10, 2020 5:40 pm
Been thanked: 10 times

toolchain PI pico

Post by max.tisc »

Good morning
I am starting to try the PI pico board and I have problems with the installation of the toolchain, following the PDF on the wiki I see that the current versions of the required software have changed, I ask you if I have to install suggested versions or can I install latest ones, if you indicate the old ones versions any update requests are to be done? you will have to install the toolchain on a desktop with Win10 and a laptop with Win11
thank you

medelec35
Matrix Staff
Posts: 1921
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 623 times
Been thanked: 645 times

Re: toolchain PI pico

Post by medelec35 »

Hello.
I created a post about that here.
I hope that helps?
Martin

max.tisc
Posts: 113
Joined: Thu Dec 10, 2020 5:40 pm
Been thanked: 10 times

Re: toolchain PI pico

Post by max.tisc »

Hi Medelec35
I had already read that post yesterday, now I have uninstalled everything and I try to download exactly the versions indicated
I'll let you know thanks

max.tisc
Posts: 113
Joined: Thu Dec 10, 2020 5:40 pm
Been thanked: 10 times

Re: toolchain PI pico

Post by max.tisc »

Hello
in these days I have uninstalled and reinstalled with the versions indicated many and many times (also FC9) following the guide and the various posts, but FC9 does not compile, both on laptop with W11 and desktop with W10, I am attaching the files created in the hope that find the problem.
Is this the only way to compile with FC9?

help help help

thank you
Attachments
picoled.zip
(328.9 KiB) Downloaded 415 times

medelec35
Matrix Staff
Posts: 1921
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 623 times
Been thanked: 645 times

Re: toolchain PI pico

Post by medelec35 »

Hello.
Can you check that Visual Studio Developer Tools is correctly installed?
To do that select the Start menu and type develop
If it's installed you should see:
Developer Tools.png
Developer Tools.png (44.4 KiB) Viewed 4949 times
That is on my Win10 PC.
I have just checked on my windows 11 PC and I also get the Developer command prompt for VS 2019 appear on it as well.
Open the Developer Command Prompt for VS 2019 and you should see:
Developer Com Prom.png
Developer Com Prom.png (10.27 KiB) Viewed 4949 times
Is that what you see?
If not, then you have an issue with VS BuildTools 2019
This is what I get when I compile your flowchart for the first time.

Code: Select all

https://www.flowcode.co.uk
Using FCD settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\PICO\Batch\pico_build.bat  "D:\Pico-sdk\" "picoled" "D:\Flowcode Testing\"  

D:\Flowcode Testing>REM CRC: 11E85D0BF540A03612B9D5AB8A950728A3654FDC084B783F85B503651504FC6E8DA967745A187CF8FECF9115B25085A2774D1D3D69D8A99EE7320EAE740A5DB66BD212DE98DE91D9E3564078A19D1616A5C2ACA5856A86664D00059D79589982019B1EBDA9F75E245824CF181DE22D23B9DE25CDF0E36405D9066202E94705CBBDB038842E43FA4AAC72934211FD4B5DCC661788BEC7C91A063848616D51551DB978AC1A4BAF29AD4517DCDD22FC70DE135D32748FB3D1732C3050DA273BE4EE39DD52E8224900600B1F9528E97AB0BA001B0922CEB719397C7C0C9FABE651313F9A05C84301D1C0 

D:\Flowcode Testing>REM REVISION: 2.0 

D:\Flowcode Testing>REM GUID: 9EF5601F-D979-495F-89EB-F1C4F35D9212 

D:\Flowcode Testing>REM DATE: 30\07\2021 

D:\Flowcode Testing>REM DIR: FCD\PICO\batch\pico_build.bat 
Building picoled ...
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.11.10
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
. . . . .

Using PICO_SDK_PATH from environment ('D:\Pico-sdk\')
PICO_SDK_PATH is D:/Pico-sdk
Defaulting PICO_PLATFORM to rp2040 since not specified.
Defaulting PICO platform compiler to pico_arm_gcc since not specified.
-- Defaulting build type to 'Release' since not specified.
PICO compiler is pico_arm_gcc
CMake Warning at D:/Pico-sdk/pico_sdk_init.cmake:53 (message):
  pico_sdk_init() should be called after the project is created (and
  languages added)
Call Stack (most recent call first):
  CMakeLists.txt:10 (pico_sdk_init)
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2020-q4-major/bin/arm-none-eabi-gcc.exe
Defaulting PICO target board to pico since not specified.
Using board configuration from D:/Pico-sdk/src/boards/include/boards/pico.h
. . . . . .

-- Found Python3: C:/Users/medel/AppData/Local/Programs/Python/Python37/python.exe (found version "3.7.3") found components: Interpreter 
TinyUSB available at D:/Pico-sdk/lib/tinyusb/src/portable/raspberrypi/rp2040; enabling build support for USB.
-- Configuring done
-- Generating done
-- Build files have been written to: D:/Flowcode_Testing/picoled

Microsoft (R) Program Maintenance Utility Version 14.29.30140.0
Copyright (C) Microsoft Corporation.  All rights reserved.

[  1%] Creating directories for 'ELF2UF2Build'
[  3%] No download step for 'ELF2UF2Build'
[  4%] No update step for 'ELF2UF2Build'
.

[  6%] No patch step for 'ELF2UF2Build'
[  8%] Performing configure step for 'ELF2UF2Build'
-- The C compiler identification is MSVC 19.29.30140.0
-- The CXX compiler identification is MSVC 19.29.30140.0
-- Detecting C compiler ABI info
.

-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x86/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x86/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: D:/Flowcode_Testing/picoled/elf2uf2
[  9%] Performing build step for 'ELF2UF2Build'

Microsoft (R) Program Maintenance Utility Version 14.29.30140.0
Copyright (C) Microsoft Corporation.  All rights reserved.

[ 50%] Building CXX object CMakeFiles/elf2uf2.dir/main.cpp.obj
main.cpp
D:\Pico-sdk\tools\elf2uf2\main.cpp(331): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
D:\Pico-sdk\tools\elf2uf2\main.cpp(337): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
[100%] Linking CXX executable elf2uf2.exe
.

[100%] Built target elf2uf2
[ 11%] No install step for 'ELF2UF2Build'
[ 12%] Completed 'ELF2UF2Build'
[ 12%] Built target ELF2UF2Build
Scanning dependencies of target bs2_default
[ 14%] Building ASM object pico-sdk/src/rp2_common/boot_stage2/CMakeFiles/bs2_default.dir/compile_time_choice.S.obj
[ 16%] Linking ASM executable bs2_default.elf
[ 16%] Built target bs2_default
[ 17%] Generating bs2_default.bin
[ 19%] Generating bs2_default_padded_checksummed.S
[ 19%] Built target bs2_default_padded_checksummed_asm
.

Scanning dependencies of target flowcode
[ 20%] Building C object CMakeFiles/flowcode.dir/flowcode.c.obj
[ 22%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_stdlib/stdlib.c.obj
[ 24%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/hardware_gpio/gpio.c.obj
[ 25%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/hardware_claim/claim.c.obj
[ 27%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_platform/platform.c.obj
[ 29%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/hardware_sync/sync.c.obj
[ 30%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/hardware_uart/uart.c.obj
[ 32%] Building ASM object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/hardware_divider/divider.S.obj
[ 33%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/common/pico_time/time.c.obj
.

[ 35%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/common/pico_time/timeout_helper.c.obj
[ 37%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/hardware_timer/timer.c.obj
[ 38%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/common/pico_sync/sem.c.obj
[ 40%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/common/pico_sync/lock_core.c.obj
[ 41%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/common/pico_sync/mutex.c.obj
[ 43%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/common/pico_sync/critical_section.c.obj
[ 45%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/common/pico_util/datetime.c.obj
[ 46%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/common/pico_util/pheap.c.obj
[ 48%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/common/pico_util/queue.c.obj
[ 50%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_runtime/runtime.c.obj
.

[ 51%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/hardware_clocks/clocks.c.obj
[ 53%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/hardware_irq/irq.c.obj
[ 54%] Building ASM object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/hardware_irq/irq_handler_chain.S.obj
[ 56%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/hardware_pll/pll.c.obj
[ 58%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/hardware_vreg/vreg.c.obj
[ 59%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/hardware_watchdog/watchdog.c.obj
[ 61%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/hardware_xosc/xosc.c.obj
[ 62%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_printf/printf.c.obj
[ 64%] Building ASM object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_bit_ops/bit_ops_aeabi.S.obj
[ 66%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_bootrom/bootrom.c.obj
[ 67%] Building ASM object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_divider/divider.S.obj
.

[ 69%] Building ASM object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_double/double_aeabi.S.obj
[ 70%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_double/double_init_rom.c.obj
[ 72%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_double/double_math.c.obj
[ 74%] Building ASM object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_double/double_v1_rom_shim.S.obj
[ 75%] Building ASM object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_int64_ops/pico_int64_ops_aeabi.S.obj
[ 77%] Building ASM object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_float/float_aeabi.S.obj
[ 79%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_float/float_init_rom.c.obj
[ 80%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_float/float_math.c.obj
[ 82%] Building ASM object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_float/float_v1_rom_shim.S.obj
[ 83%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_malloc/pico_malloc.c.obj
.

[ 85%] Building ASM object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_mem_ops/mem_ops_aeabi.S.obj
[ 87%] Building ASM object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_standard_link/crt0.S.obj
[ 88%] Building CXX object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_standard_link/new_delete.cpp.obj
[ 90%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_standard_link/binary_info.c.obj
[ 91%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_stdio/stdio.c.obj
[ 93%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/pico_stdio_uart/stdio_uart.c.obj
[ 95%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/hardware_adc/adc.c.obj
[ 96%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/hardware_spi/spi.c.obj
[ 98%] Building C object CMakeFiles/flowcode.dir/D_/Pico-sdk/src/rp2_common/hardware_i2c/i2c.c.obj
[100%] Linking CXX executable flowcode.elf
. .

[100%] Built target flowcode

Build completed successfully 

Using FCD settings for linker
Launching the linker/assembler...
C:\Program Files (x86)\Flowcode v9\data\tools\DoNothing\DoNothing.exe  


FINISHED
Scroll down to just below
D:\Flowcode Testing>REM DIR: FCD\PICO\batch\pico_build.bat
Building picoled ...
Martin

max.tisc
Posts: 113
Joined: Thu Dec 10, 2020 5:40 pm
Been thanked: 10 times

Re: toolchain PI pico

Post by max.tisc »

HI medelec35
thanks for the screenshoots, they allowed me to understand where I was wrong.
Thanks again

medelec35
Matrix Staff
Posts: 1921
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 623 times
Been thanked: 645 times

Re: toolchain PI pico

Post by medelec35 »

No problem, so long as it helped.
What was the issue in the end?
Martin

max.tisc
Posts: 113
Joined: Thu Dec 10, 2020 5:40 pm
Been thanked: 10 times

Re: toolchain PI pico

Post by max.tisc »

hi
the problem was that i was downloading and installing visual studio community not build tools
thanks

Post Reply