Raspberry Pi Pico development platform for PlatformIO

Related tags

Hardware wizio-pico
Overview

Raspberry Pi Pico development platform for PlatformIO

A few words in the beginning

  • Before experimental please Reinstall the platform
  • Version: 1.0.0 The project is a work in progress and is very beta version - there may be bugs...
  • This project not an official platform and is based on pico-sdk
  • Frameworks:
    • Baremetal ( pico-sdk as is )
    • Arduino ( basic ... in progress )
  • READ WIKI
  • Systems
    • windows, windows_x8, windows_amd64
    • linux_x86_64, linux_armv6l, linux_armv7l, linux_armv8l
    • darwin_x86_64, darwin_i386
  • Framework code
  • Baremetal Examples
  • Arduino Examples
  • Note: I am in Home-Office, it's hard for me to test any hardware

pico

Install Platform

Note: be sure git is installed

PIO Home > Platforms > Advanced Installation

paste https://github.com/Wiz-IO/wizio-pico

Fast Uninstal ... Reinstal ( do this and Install again )

  • goto C:\Users\USER_NAME.platformio\platforms
  • delete folder wizio-pico ( builders )
  • delete folder framework-wizio-pico ( sources )
  • delete folder toolchain-gccarmnoneeabi (compiler, may not be deleted )

Baremetal - New Project

PlatformIO -> Home -> New

  • Enter Project Name - Board search 'WizIO-PICO' boards - Select Baremetal
  • Click BUILD and you will have basic template project
  • For CPP project, rename main.c to main.cpp ( if you delete main file, builder will create new main.c as template )
  • Connect Pico as Mass Storage Device
  • Open 'platformio.ini' and edit your settings
  • BUILD / UPLOAD
  • READ WIKI - BAREMETAL

Arduino - New Project

PlatformIO -> Home -> New

  • Enter Project Name - Board search 'WizIO-PICO' boards - Select Arduino
  • Connect Pico as Mass Storage Device
  • Open 'platformio.ini' and edit your settings
  • BUILD / UPLOAD
  • READ WIKI - ARDUINO

TODO

  • Arduino
    • Libraries ... etc
  • PIOASM

Thanks to

If you want to help / support:
paypal

Comments
  • baremetal linking error on Mac

    baremetal linking error on Mac

    when building I get this error

    Processing raspberry-pi-pico (platform: wizio-pico; board: raspberry-pi-pico; framework: baremetal)
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Verbose mode can be enabled via `-v, --verbose` option
    <<<<<<<<<<<< WIZIO - RASPBERRY PI PICO 2021 Georgi Angelov >>>>>>>>>>>>
    CONFIGURATION: https://docs.platformio.org/page/boards/wizio-pico/raspberry-pi-pico.html
    PLATFORM: WizIO - Raspberry Pi Pico (1.0.1+sha.e00cf3a) > WizIO - Raspberry Pi Pico
    HARDWARE: RP2040 48MHz, 256KB RAM, 2MB Flash
    DEBUG: Current (UF2-MSD) On-board (UF2-MSD, picoprobe-OpenOCD)
    PACKAGES: 
     - framework-wizio-pico 1.0.1+sha.337aea4 
     - tool-wizio-pico 1.0.0+sha.83425b1 
     - toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
    
    SDK RASPBERRYPI PI PICO RP2040 ( PICO - SDK110 )
      - OPTIMIZATION : -Os
      - HEAP         : 2048
      - STACK        : 2048
      - BOOT         : w25q080
      - BINARY TYPE  : default [ memmap_default.ld   0x10000000 ]
    
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 5 compatible libraries
    Scanning dependencies...
    No dependencies
    Building in release mode
    Linking .pio/build/raspberry-pi-pico/APPLICATION.elf
    .pio/build/raspberry-pi-pico/sdk/wizio/libpico.a(crt0.o): In function `hold_non_core0_in_bootrom':
    (.reset+0x7c): undefined reference to `rom_func_lookup'
    collect2: error: ld returned 1 exit status
    *** [.pio/build/raspberry-pi-pico/APPLICATION.elf] Error 1
    
    [env:raspberry-pi-pico]
    platform = wizio-pico
    board = raspberry-pi-pico
    framework = baremetal
    
    upload_port  = PicoDrive:\
    monitor_port  = COM1
    monitor_speed = 115200
    
    opened by deladriere 46
  • baremetal serial monitor not working

    baremetal serial monitor not working

    Hello, thanks for making this library. I was using VisialMicro with Arduino and it offers Serial, Serial1 so I can enable Serial1 and get a serial monitor over that. However, I have tried everything I can find and I am unable to get any serial data to transfer in Wizio-pico under VSC.

    I can get Com3 which is Interface 0 to connect on the Serial Monitor plugin under Visual Studio Code but I can't get anything to print there or any other screen. without serial monitor there is not much testing I can do. I have tried many things over some hours and no luck. Can you help?

    I have Windows 10.

    ` [env:raspberry-pi-pico] platform = wizio-pico board = raspberry-pi-pico framework = baremetal

    monitor_speed = 115200 debug_tool = picoprobe ` that is the basic I have for Platformio.ini.

    is there a monitor upload port or speed or something else needed. According to your youtube videos and documentation and other posts this should work. You do not know show your platformio.ini file so I cannot compare it.

    I have tried some other options but nothing helps. I have tried WinUSB libusb-win, libusbK and same for all. I tried PUtty on Com3 but that not work and seems to lock up VSC.

    if I use the built in Serial monitor I get: "Error: could not open port 'COM3': PermissionError(13, 'Access is denied.', None, 5)"

    Nothing else is using the port so I assume something in library changed? Odd that in Arduino I have Serial and Serial1 which allows me to target which one to use. Apparently this is not possible in the Pico-Sdk?

    Thanks for anyone's thoughts. Maybe something needs to be enabled I am not aware of.

    image

    image

    image

    image

    opened by shablam 30
  • Cannot import name 'dev_pioasm' from 'pioasm'

    Cannot import name 'dev_pioasm' from 'pioasm'

    I installed your platform, downloaded some examples, but I keep getting these errors, any clues what might be causing it?

    > Executing task: C:\Users\Radek\.platformio\penv\Scripts\platformio.exe run <
    
    Processing raspberry-pi-pico (platform: wizio-pico; board: raspberry-pi-pico; framework: baremetal)
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Verbose mode can be enabled via `-v, --verbose` option
    ImportError: cannot import name 'dev_pioasm' from 'pioasm' (C:\Users\Radek\.platformio\penv\lib\site-packages\platformio\builder\tools\pioasm.py):
      File "C:\Users\Radek\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 184:
        env.SConscript("$BUILD_SCRIPT")
      File "C:\Users\Radek\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\SConscript.py", line 597:
        return _SConscript(self.fs, *files, **subst_kw)
      File "C:\Users\Radek\.platformio\packages\tool-scons\scons-local-4.3.0\SCons\Script\SConscript.py", line 285:
        exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
      File "C:\Users\Radek\.platformio\platforms\wizio-pico\builder\main.py", line 9:
        from pioasm import dev_pioasm
    ===================================================================================== [FAILED] Took 0.61 seconds =====================================================================================
    The terminal process "C:\Users\Radek\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
    
    Terminal will be reused by tasks, press any key to close it.
    
    opened by oomek 18
  • Examples not building

    Examples not building

    I'm trying to build the examples after the major updates (Thanks!), but with new errors. This is with unmodified examples and a clean build using PlatformIO Core, version 5.1.0 on macOS via the command line.

    The bare metal example is failing with:

    dean@lucky13 pico-hello % pio run -v
    Processing raspberry-pi-pico (platform: wizio-pico; board: raspberry-pi-pico; framework: baremetal; upload_port: E:/; monitor_port: COM34; monitor_speed: 115200; lib_deps: ; build_flags: -D PICO_STDIO_UART)
    --------------------------------------------------------------------------------------------------------------------------------------------------------------
    <<<<<<<<<<<< WIZIO - RASPBERRY PI PICO 2021 Georgi Angelov >>>>>>>>>>>>
    CONFIGURATION: https://docs.platformio.org/page/boards/wizio-pico/raspberry-pi-pico.html
    PLATFORM: WizIO - Raspberry Pi Pico (1.0.0+sha.15d6dbd) (git+https://github.com/Wiz-IO/wizio-pico) > WizIO - Raspberry Pi Pico
    HARDWARE: RP2040 48MHz, 256KB RAM, 2MB Flash
    DEBUG: Current (UF2-MSD) On-board (UF2-MSD, picoprobe-OpenOCD)
    PACKAGES:
     - framework-wizio-pico 1.0.0+sha.bdd143f (git+https://github.com/Wiz-IO/framework-wizio-pico.git)
     - toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
    RASPBERRYPI PI PICO RP2040 PICO-SDK
    FileNotFoundError: [Errno 2] No such file or directory: '/Users/dean/.platformio/packages/framework-wizio-pico/templates/config_autogen.h':
      File "/Users/dean/.platformio/penv/lib/python3.9/site-packages/platformio/builder/main.py", line 177:
        env.SConscript("$BUILD_SCRIPT")
      File "/Users/dean/.platformio/packages/tool-scons/scons-local-4.1.0/SCons/Script/SConscript.py", line 591:
        return _SConscript(self.fs, *files, **subst_kw)
      File "/Users/dean/.platformio/packages/tool-scons/scons-local-4.1.0/SCons/Script/SConscript.py", line 280:
        exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
      File "/Users/dean/.platformio/platforms/wizio-pico/builder/main.py", line 16:
        elf = env.BuildProgram()
      File "/Users/dean/.platformio/packages/tool-scons/scons-local-4.1.0/SCons/Util.py", line 658:
        return self.method(*nargs, **kwargs)
      File "/Users/dean/.platformio/penv/lib/python3.9/site-packages/platformio/builder/tools/platformio.py", line 61:
        env.ProcessProgramDeps()
      File "/Users/dean/.platformio/packages/tool-scons/scons-local-4.1.0/SCons/Util.py", line 658:
        return self.method(*nargs, **kwargs)
      File "/Users/dean/.platformio/penv/lib/python3.9/site-packages/platformio/builder/tools/platformio.py", line 127:
        env.BuildFrameworks(env.get("PIOFRAMEWORK"))
      File "/Users/dean/.platformio/packages/tool-scons/scons-local-4.1.0/SCons/Util.py", line 658:
        return self.method(*nargs, **kwargs)
      File "/Users/dean/.platformio/penv/lib/python3.9/site-packages/platformio/builder/tools/platformio.py", line 342:
        SConscript(env.GetFrameworkScript(f), exports="env")
      File "/Users/dean/.platformio/packages/tool-scons/scons-local-4.1.0/SCons/Script/SConscript.py", line 654:
        return method(*args, **kw)
      File "/Users/dean/.platformio/packages/tool-scons/scons-local-4.1.0/SCons/Script/SConscript.py", line 591:
        return _SConscript(self.fs, *files, **subst_kw)
      File "/Users/dean/.platformio/packages/tool-scons/scons-local-4.1.0/SCons/Script/SConscript.py", line 280:
        exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
      File "/Users/dean/.platformio/platforms/wizio-pico/builder/frameworks/sdk.py", line 13:
        m.dev_init(env, platform)
      File "/Users/dean/.platformio/platforms/wizio-pico/builder/frameworks/sdk-RP2040.py", line 16:
        dev_create_template(env)
      File "/Users/dean/.platformio/platforms/wizio-pico/builder/frameworks/common.py", line 44:
        do_copy(src, dst, "config_autogen.h" )
      File "/Users/dean/.platformio/platforms/wizio-pico/builder/frameworks/common.py", line 20:
        copyfile( join(src, name), join(dst, name) )
      File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/shutil.py", line 264:
        with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
    ================================================================= [FAILED] Took 0.35 seconds =================================================================
    dean@lucky13 pico-hello %
    

    and the Arduino version fails with this:

    dean@lucky13 pico-hello % pio run
    Processing raspberry-pi-pico (platform: wizio-pico; board: raspberry-pi-pico; framework: arduino)
    --------------------------------------------------------------------------------------------------------------------------------------------------------------
    Verbose mode can be enabled via `-v, --verbose` option
    <<<<<<<<<<<< WIZIO - RASPBERRY PI PICO 2021 Georgi Angelov >>>>>>>>>>>>
    CONFIGURATION: https://docs.platformio.org/page/boards/wizio-pico/raspberry-pi-pico.html
    PLATFORM: WizIO - Raspberry Pi Pico (1.0.0+sha.15d6dbd) > WizIO - Raspberry Pi Pico
    HARDWARE: RP2040 48MHz, 256KB RAM, 2MB Flash
    DEBUG: Current (UF2-MSD) On-board (UF2-MSD, picoprobe-OpenOCD)
    PACKAGES:
     - framework-wizio-pico 1.0.0+sha.bdd143f
     - toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
    RASPBERRYPI PI PICO RP2040 ARDUINO
      OPTIMIZATION: -Os
      HEAP: 65536
      BOOT: w25q080
      BINARY TYPE: default
      LINKER: memmap_default.ld
      ADDRESS: 0x10000000
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 0 compatible libraries
    Scanning dependencies...
    No dependencies
    Building in release mode
    Compiling .pio/build/raspberry-pi-pico/src/main.cpp.o
    Compiling .pio/build/raspberry-pi-pico/arduino/arduino/IPAddress.cpp.o
    Compiling .pio/build/raspberry-pi-pico/arduino/arduino/Print.cpp.o
    In file included from src/main.cpp:1:0:
    /Users/dean/.platformio/packages/framework-wizio-pico/arduino/arduino/Arduino.h:25:10: fatal error: interface.h: No such file or directory
    
    *******************************************************************
    * Looking for interface.h dependency? Check our library registry!
    *
    * CLI  > platformio lib search "header:interface.h"
    * Web  > https://platformio.org/lib/search?query=header:interface.h
    *
    *******************************************************************
    
     #include <interface.h>
              ^~~~~~~~~~~~~
    compilation terminated.
    Compiling .pio/build/raspberry-pi-pico/arduino/arduino/Stream.cpp.o
    In file included from /Users/dean/.platformio/packages/framework-wizio-pico/arduino/arduino/IPAddress.cpp:20:0:
    /Users/dean/.platformio/packages/framework-wizio-pico/arduino/arduino/Arduino.h:25:10: fatal error: interface.h: No such file or directory
    
    *******************************************************************
    * Looking for interface.h dependency? Check our library registry!
    *
    * CLI  > platformio lib search "header:interface.h"
    * Web  > https://platformio.org/lib/search?query=header:interface.h
    *
    *******************************************************************
    
     #include <interface.h>
              ^~~~~~~~~~~~~
    compilation terminated.
    Compiling .pio/build/raspberry-pi-pico/arduino/arduino/WMath.cpp.o
    Compiling .pio/build/raspberry-pi-pico/arduino/arduino/WString.cpp.o
    In file included from /Users/dean/.platformio/packages/framework-wizio-pico/arduino/arduino/Stream.cpp:25:0:
    /Users/dean/.platformio/packages/framework-wizio-pico/arduino/arduino/Arduino.h:25:10: fatal error: interface.h: No such file or directory
    
    *******************************************************************
    * Looking for interface.h dependency? Check our library registry!
    *
    * CLI  > platformio lib search "header:interface.h"
    * Web  > https://platformio.org/lib/search?query=header:interface.h
    *
    *******************************************************************
    
     #include <interface.h>
              ^~~~~~~~~~~~~
    compilation terminated.
    Compiling .pio/build/raspberry-pi-pico/arduino/arduino/cbuf.cpp.o
    /Users/dean/.platformio/packages/framework-wizio-pico/arduino/arduino/WMath.cpp:1:10: fatal error: interface.h: No such file or directory
    
    *******************************************************************
    * Looking for interface.h dependency? Check our library registry!
    *
    * CLI  > platformio lib search "header:interface.h"
    * Web  > https://platformio.org/lib/search?query=header:interface.h
    *
    *******************************************************************
    
     #include <interface.h>
              ^~~~~~~~~~~~~
    compilation terminated.
    *** [.pio/build/raspberry-pi-pico/src/main.cpp.o] Error 1
    *** [.pio/build/raspberry-pi-pico/arduino/arduino/IPAddress.cpp.o] Error 1
    *** [.pio/build/raspberry-pi-pico/arduino/arduino/Stream.cpp.o] Error 1
    Compiling .pio/build/raspberry-pi-pico/arduino/arduino/dtostrf.c.o
    *** [.pio/build/raspberry-pi-pico/arduino/arduino/WMath.cpp.o] Error 1
    In file included from /Users/dean/.platformio/packages/framework-wizio-pico/arduino/arduino/Print.cpp:27:0:
    /Users/dean/.platformio/packages/framework-wizio-pico/arduino/arduino/Arduino.h:25:10: fatal error: interface.h: No such file or directory
    
    *******************************************************************
    * Looking for interface.h dependency? Check our library registry!
    *
    * CLI  > platformio lib search "header:interface.h"
    * Web  > https://platformio.org/lib/search?query=header:interface.h
    *
    *******************************************************************
    
     #include <interface.h>
              ^~~~~~~~~~~~~
    compilation terminated.
    *** [.pio/build/raspberry-pi-pico/arduino/arduino/Print.cpp.o] Error 1
    /Users/dean/.platformio/packages/framework-wizio-pico/arduino/arduino/WString.cpp:23:10: fatal error: interface.h: No such file or directory
    
    *******************************************************************
    * Looking for interface.h dependency? Check our library registry!
    *
    * CLI  > platformio lib search "header:interface.h"
    * Web  > https://platformio.org/lib/search?query=header:interface.h
    *
    *******************************************************************
    
     #include "interface.h"
              ^~~~~~~~~~~~~
    compilation terminated.
    *** [.pio/build/raspberry-pi-pico/arduino/arduino/WString.cpp.o] Error 1
    ================================================================= [FAILED] Took 0.55 seconds =================================================================
    dean@lucky13 pico-hello %
    
    opened by blackketter 15
  • Upload error

    Upload error

    Upload error, even with path specified On Manjaro 21.1.5

    pio run --target upload --upload-port=/run/media/[USER]/RPI-RP2 --verbose
    Processing raspberry-pi-pico (platform: wizio-pico; board: pico-dap; framework: baremetal; upload_port: /run/media/[USER]/RPI-RP2; board_build.heap: 4096; board_build.stack: 4096; board_build.boot: w25q080; board_build.bynary_type: copy_to_ram; build_flags: -D LIB_PICO_STDIO_USB; build_unflags: -D LIB_PICO_STDIO_UART)
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------
    <<<<<<<<<<<< WIZIO - RASPBERRY PI PICO ( CMSIS-DAP ) 2021 Georgi Angelov >>>>>>>>>>>>
    CONFIGURATION: https://docs.platformio.org/page/boards/wizio-pico/pico-dap.html
    PLATFORM: WizIO - Raspberry Pi Pico (1.0.9+sha.abeb4e1) (git+https://github.com/Wiz-IO/wizio-pico) > WizIO - Raspberry Pi Pico ( CMSIS-DAP )
    HARDWARE: RP2040 125MHz, 256KB RAM, 2MB Flash
    DEBUG: Current (cmsis-dap) External (cmsis-dap, picoprobe)
    PACKAGES: 
     - framework-wizio-pico 1.0.9+sha.6205459 (git+https://github.com/Wiz-IO/framework-wizio-pico.git) 
     - tool-wizio-pico 1.0.0+sha.3a504e1 (git+https://github.com/Wiz-IO/tool-wizio-pico.git) 
     - toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
    
    SDK RASPBERRYPI PI PICO RP2040 ( PICO - SDK )
      * OPTIMIZATION : -Os
      * STACK        : 4096
      * HEAP         : 4096
      * SPECS        : nano.specs
      * BINARY TYPE  : copy_to_ram ['w25q080', 'memmap_copy_to_ram.ld', '0x10000000']
      * * STDIO USB
      * TINYUSB
    
    LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 9 compatible libraries
    Scanning dependencies...
    No dependencies
    Building in release mode
    MethodWrapper(["checkprogsize"], [".pio/build/raspberry-pi-pico/APPLICATION.elf"])
    Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
    RAM:   [          ]   2.5% (used 6556 bytes from 262144 bytes)
    Flash: [          ]   2.0% (used 42788 bytes from 2097152 bytes)
    .pio/build/raspberry-pi-pico/APPLICATION.elf  :
    section                              size        addr
    .boot2                                256   268435456
    .flashtext                            476   268435712
    .rodata                                 0   268436188
    .ARM.exidx                              8   268436188
    .binary_info                           24   268436196
    .ram_vector_table                     192   536870912
    .text                               39696   536871104
    .data                                2836   536910800
    .uninitialized_ram.magic_location      12   536913636
    .uninitialized_data                     0   536913648
    .scratch_x                              0   537133056
    .scratch_y                              0   537137152
    .bss                                 3528   536913648
    .heap                                4096   536917176
    .stack_dummy                         4096   537137152
    .comment                              126           0
    .ARM.attributes                        48           0
    .debug_frame                         4680           0
    Total                               60074
    <lambda>(["upload"], ["buildprog"])
    AVAILABLE: cmsis-dap, picoprobe, uf2
    CURRENT: upload_protocol = uf2
    dev_uploader(["upload"], ["buildprog"])
      Converting to UF2 ( 0x10000000 )
      Wrote 87040 bytes to /home/[USER]/Documents/PlatformIO/Projects/Pico/blink/.pio/build/raspberry-pi-pico/APPLICATION.uf2
    *** [upload] /media: No such file or directory
    
    opened by MisterSandman7 13
  • Upload function treats the monitor_port glob expression as an exact value

    Upload function treats the monitor_port glob expression as an exact value

    The value of the platformio monitor_port flag is a globexpression but the Pic uploader treats it as a specific port name and thus fails to upload when the value is a glob.

    https://docs.platformio.org/en/latest/projectconf/section_env_monitor.html#monitor-port

    To reproduce:

    • Let's say your port is COM3.
    • Define in platformio.ini monitor_port=COM[234]
    • Try to build and upload
    • Open the platformio serial monitor.

    Expected behavior: Both upload and serial monitor work. Actual behavior: Upload fails (does not find the port) but serial monitor does find it.

    opened by zapta 12
  • Automatic preprocessing of Arduino .ino to .cpp files fail

    Automatic preprocessing of Arduino .ino to .cpp files fail

    Building a simple blink.ino sketch gives this error:

    Processing raspberry-pi-pico (platform: wizio-pico; board: raspberry-pi-pico; framework: arduino)
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Verbose mode can be enabled via `-v, --verbose` option
    <<<<<<<<<<<< WIZIO - RASPBERRY PI PICO 2021 Georgi Angelov >>>>>>>>>>>>
    CONFIGURATION: https://docs.platformio.org/page/boards/wizio-pico/raspberry-pi-pico.html
    PLATFORM: WizIO - Raspberry Pi Pico (1.0.1+sha.7bcf455) > WizIO - Raspberry Pi Pico
    HARDWARE: RP2040 48MHz, 256KB RAM, 2MB Flash
    DEBUG: Current (UF2-MSD) On-board (UF2-MSD, picoprobe-OpenOCD)
    PACKAGES:
     - framework-wizio-pico 1.0.1+sha.b761da1
     - toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
    Converting Blink.ino
    clang: error: unknown argument: '-fpreprocessed'
    *** Error 1
    

    It seems that the default CC (Clang on macOS) is being used.

    CXX needs to be specified for the pico, probably arm-none-eabi-g++

    File compiles fine if renamed to .cpp (and adding necessary Arduino.h include).

    opened by blackketter 11
  • I don't understand how to access to tinyusb functionality

    I don't understand how to access to tinyusb functionality

    I'm trying to get this project to work with platformio pico_usb_kdb_mouse but I can't import tusb.h nor board.h. I've read the baremetal wiki up and down and I couldn't find anything referring to tinyusb lib setup.

    opened by Waaflee 10
  • requestFrom in Wire have a bug.

    requestFrom in Wire have a bug.

    The method requestFrom of Wire Class always return 0, because available() return _numElems of RingBuffer. int res = i2c_read_timeout_us(ctx, _slave_address, rx._aucBuffer, size, 0, _timeout_us); if(res < 0) size = 0; res variable get de correct size but the Ring buffer not yet, I recommend this change: rx._numElems =i2c_read_timeout_us(ctx, _slave_address, rx._aucBuffer, size, 0, _timeout_us); if (rx._numElems < 0) size = 0;

    opened by Andres1012 7
  • Please allow to browse the SDK source code.

    Please allow to browse the SDK source code.

    TL;DR, Make the Go To Definition link working for Pico C++ SDK source files.

    Let's say that I have a statement like this

    gpio_set_function(PICO_DEFAULT_I2C_SDA_PIN, GPIO_FUNC_I2C);

    Following its definition in vscode/platformio using the popup menu

    image

    brings the function declaration but not it's implementation:

    image

    Please allow to also jump to definitions of SDK functions. The SDK source files seems to be available since I can step into them in the debugger but they are not show up in the Go To Definitions links.

    Motivation: looking at the source code of the SDK is very important to understand what certain functions are doing, beyond what is described in the external documentation. I am coming from STM32 and platformio does allow to browse into the HAL and other SDK files.

    opened by zapta 7
  • [Suggestion] EEPROM Read Write

    [Suggestion] EEPROM Read Write

    I'm not sure when/if it will become part of the official arduino sdk since this seems to be a fork, but this could be quite useful to integrate https://github.com/earlephilhower/arduino-pico/tree/a1c9dfe84d3c5070a2a7828618ebf856f84e6b9f/libraries/EEPROM

    https://arduino-pico.readthedocs.io/en/latest/eeprom.html

    opened by fluffymadness 6
  • UnicodeDecodeError:

    UnicodeDecodeError:

    Hi. Framework generates APPLICATION.uf2 after build normally, but after press upload button get error.

    Configuring upload protocol... AVAILABLE: cmsis-dap, picoprobe, uf2 CURRENT: upload_protocol = picoprobe Uploading... Converting to UF2 ( 0x10000000 ) Wrote 69632 bytes to C:/Users/Raketa/Documents/PlatformIO/Projects/BmRP2040/.pio/build/raspberry-pi-pico\APPLICATION.uf2 *** [upload] UnicodeDecodeError : 'utf-8' codec can't decode byte 0x8d in position 198: invalid start byte Traceback (most recent call last): File "C:\Users\Raketa\.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Action.py", line 1318, in execute result = self.execfunction(target=target, source=rsources, env=env) File "C:\Users\Raketa\.platformio\platforms\wizio-pico\builder\frameworks\uf2conv.py", line 342, in dev_uploader drives = get_drives() File "C:\Users\Raketa\.platformio\platforms\wizio-pico\builder\frameworks\uf2conv.py", line 206, in get_drives for line in to_str(r).split('\n'): File "C:\Users\Raketa\.platformio\platforms\wizio-pico\builder\frameworks\uf2conv.py", line 200, in to_str return b.decode("utf-8") UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8d in position 198: invalid start byte =================================================================== [FAILED] Took 8.09 seconds =================================================================== error

    opened by tcomlab 1
Owner
Georgi Angelov
Georgi Angelov
a library for using WS2812b leds (aka neopixels) with Raspberry Pi Pico

pico_ws2812b a library for using WS2812b leds (aka neopixels) with Raspberry Pi Pico You'll first need to save the ws2812b.py file to your device (for

null 76 Nov 25, 2022
A Python class for controlling the Pimoroni RGB Keypad for Raspberry Pi Pico

rgbkeypad A Python class for controlling the Pimoroni RGB Keypad for the Raspberry Pi Pico. Compatible with MicroPython and CircuitPython. keypad = RG

Martin O'Hanlon 43 Nov 11, 2022
Raspberry Pi Pico support for VS Code

Pico-Go VS Code Extension Pico-Go provides code auto-completion and allows you to communicate with your Raspberry Pi Pico board using the built-in REP

Chris Wood 114 Dec 28, 2022
A Raspberry Pi Pico powered Macro board, like a Streamdeck but cheaper and simpler.

Env-MCRO A Raspberry Pi Pico powered Macro board, like a Streamdeck but cheaper and simpler. (btw this image is a bit outdated, some of the silkscreen

EnviousData 68 Oct 14, 2022
A Macropad using the Raspberry Pi Pico, programmed with CircuitPython.

A Macropad using the Raspberry Pi Pico, programmed with CircuitPython.

null 15 Oct 14, 2022
Raspberry Pi Pico and LoRaWAN from CircuitPython

Raspberry Pi Pico and LoRaWAN from CircuitPython Enable LoRaWAN communications on your Raspberry Pi Pico or any RP2040-based board using CircuitPython

Alasdair Allan 15 Oct 8, 2022
A Raspberry Pi Pico plant sensor hub coded in Micropython

plantsensor A Raspberry Pi Pico plant sensor hub coded in Micropython I used: 1x Raspberry Pi Pico - microcontroller 1x Waveshare Pico OLED 1.3 - scre

null 78 Sep 20, 2022
Raspberry Pi Pico Escape Room game.

Pico Escape Room Raspberry Pi Pico Escape Room game. Parts Raspberry Pi Pico Set of 2 x 20-pin Headers for Raspberry Pi Pico 4PCS Breadboards Kit Incl

Kevin Thomas 5 Feb 2, 2022
An open source operating system designed primarily for the Raspberry Pi Pico, written entirely in MicroPython

PycOS An open source operating system designed primarily for the Raspberry Pi Pico, written entirely in MicroPython. "PycOS" is an combination of the

null 8 Oct 6, 2022
New armachat based on Raspberry Pi PICO an Circuitpython code

Armachat-circuitpython New Armachat based on Raspberry Pi PICO an Circuitpython code Software working features: send message with header and store to

Peter Misenko 44 Dec 24, 2022
Turn your Raspberry Pi Pico into a USB Rubber Ducky

pico-ducky Turn your Raspberry Pi Pico into a USB Rubber Ducky Install Requirements CircuitPython for the Raspberry Pi Pico adafruit-circuitpython-bun

Konstantinos 5 Nov 8, 2022
Play music on Raspberry Pi Pico Without CPU involvement

MicroPython_PIO_Music_DMA Play music on Raspberry Pi Pico Without CPU involvement This is based on PIOBeep (https://github.com/benevpi/pico_pio_buzz)

null 3 Nov 27, 2022
A simple portable USB MIDI controller based on Raspberry-PI Pico and a 16-button keypad, written in Circuit Python

RPI-Pico-16-BTn-MIDI-Controller-using-CircuitPython A simple portable USB MIDI controller based on Raspberry-PI Pico, written in Circuit Python. Link

Rounak Dutta 3 Dec 4, 2022
Raspberry Pi Pico as a Rubber Ducky

Raspberry-Pi-Pico-as-a-Rubber-Ducky Kurulum Raspberry Pi Pico cihazınız için CircuitPython'u indirin. Boot düğmesine basılı tutarken cihazı bir USB ba

Furkan Enes POLATOĞLU 6 Dec 13, 2022
A rubiks cube timer using a distance sensor and a raspberry pi 4, and possibly the pi pico to reduce size and cost.

distance sensor cube timer A rubiks cube timer using a distance sensor and a raspberry pi 4, and possibly the pi pico to reduce size and cost. How to

null 3 Feb 21, 2022
USB Rubber Ducky with the Rasberry Pi pico microcontroller

pico-ducky Install Install and have your USB Rubber Ducky working in less than 5 minutes. Download CircuitPython for the Raspberry Pi Pico. Plug the d

AnOnYmOus001100 3 Oct 8, 2022
Hourglass on the pi pico using circuitpython

hourglass-on-pico "Hourglass" on the raspberry pi pico using circuitpython circuitpython version 7.0.0 Components used: Raspberry Pi Pico ADXL345 acce

null 4 Jul 18, 2022
A modular sequencer based on Pi Pico & EuroPi

PicoSequencer A modular sequencer based on Pi Pico & EuroPi by Zeno Van Moerkerke / Keurslager Kurt For now it is 'only' a trigger sequencer, but I si

null 5 Oct 27, 2022
Micro Displays for Raspberry Pi

micro-displays Micro Displays for Raspberry Pi Why? I'm super bored in lockdown. Add a Raspberry Pi 400 and a few tiny displays... The top half of the

ig 291 Jul 6, 2022