If anyone has any pointers to any downloadable UF2 files which have been built for RISC-V / Hazard3 for the RP235X I would be grateful to receive them - Just one will do to start with.
I've looked but found nothing. All the stuff I thought I had found turns out to be ARM-S when downloaded. MicroPython possibly has a build for RISC-V but I couldn't find it. I would build my own but am struggling to get a RISC-V compiler built and working.
If some kind soul is willing to build this as a RISC-V UF2 and post that, that will be very appreciated and will allow me to get on with what else I'm doing while trying to figure out the compiler issues -
I've looked but found nothing. All the stuff I thought I had found turns out to be ARM-S when downloaded. MicroPython possibly has a build for RISC-V but I couldn't find it. I would build my own but am struggling to get a RISC-V compiler built and working.
If some kind soul is willing to build this as a RISC-V UF2 and post that, that will be very appreciated and will allow me to get on with what else I'm doing while trying to figure out the compiler issues -
Code:
set(PROJECT simplest-usb-riscv)cmake_minimum_required(VERSION 3.12)include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)project(${PROJECT} C CXX ASM)pico_sdk_init()add_executable(${PROJECT} main.c)target_link_libraries(${PROJECT} pico_stdlib)target_compile_options(${PROJECT} PRIVATE -Wall -Werror)pico_add_extra_outputs(${PROJECT})pico_enable_stdio_usb(${PROJECT} 1)pico_enable_stdio_uart(${PROJECT} 0)# -- pico_set_binary_type(${PROJECT} no_flash)
Code:
#include <stdio.h>#include "pico/stdlib.h"int main(void) { stdio_init_all(); while (!stdio_usb_connected()) { sleep_ms(100); } while (true) { printf("simplest-usb\n"); sleep_ms(1000); }}
Code:
mkdir build-rp2350-riscvcd build-rp2350-riscvcmake -DPICO_PLATFORM=rp2350-riscv -DPICO_BOARD=pico2 ..make
Statistics: Posted by hippy — Wed Aug 14, 2024 3:45 pm