No0ne / ps2x2pico

USB keyboard/mouse to PS/2 interface converter using a Raspberry Pi Pico
MIT License
196 stars 35 forks source link

not producing UF2 output #13

Closed TsvetanUsunov closed 11 months ago

TsvetanUsunov commented 11 months ago

Your config do not produce UF2 output

No0ne commented 11 months ago

Did you run https://github.com/No0ne/ps2x2pico#build ? Please post your command line errors.

TsvetanUsunov commented 11 months ago

yes, of course, but there is no UF2 after make finishes:

ceco@ceco-ThinkCentre-M920q:~/pico/ps2x2pico$ cd build
ceco@ceco-ThinkCentre-M920q:~/pico/ps2x2pico/build$ cmake ..
PICO_SDK_PATH is /home/ceco/pico/pico-sdk
PICO platform is rp2040.
Build type is Release
PICO target board is pico.
Using board configuration from /home/ceco/pico/pico-sdk/src/boards/include/boards/pico.h
TinyUSB available at /home/ceco/pico/pico-sdk/lib/tinyusb/src/portable/raspberrypi/rp2040; enabling build support for USB.
BTstack available at /home/ceco/pico/pico-sdk/lib/btstack
cyw43-driver available at /home/ceco/pico/pico-sdk/lib/cyw43-driver
Pico W Bluetooth build support available.
lwIP available at /home/ceco/pico/pico-sdk/lib/lwip
mbedtls available at /home/ceco/pico/pico-sdk/lib/mbedtls
Using PICO_EXAMPLES_PATH from environment ('/home/ceco/rp2040/pico/pico-examples')
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ceco/pico/ps2x2pico/build
ceco@ceco-ThinkCentre-M920q:~/pico/ps2x2pico/build$ make
[  2%] Built target bs2_default
[  5%] Built target bs2_default_padded_checksummed_asm
[  6%] Performing build step for 'ELF2UF2Build'
[100%] Built target elf2uf2
[  7%] No install step for 'ELF2UF2Build'
[  8%] Completed 'ELF2UF2Build'
[ 15%] Built target ELF2UF2Build
[ 89%] Built target ps2x2pico
[ 91%] Performing build step for 'PioasmBuild'
[ 10%] Building CXX object CMakeFiles/pioasm.dir/main.cpp.o
[ 20%] Building CXX object CMakeFiles/pioasm.dir/pio_assembler.cpp.o
[ 30%] Building CXX object CMakeFiles/pioasm.dir/pio_disassembler.cpp.o
[ 40%] Building CXX object CMakeFiles/pioasm.dir/gen/lexer.cpp.o
[ 50%] Building CXX object CMakeFiles/pioasm.dir/gen/parser.cpp.o
[ 60%] Building CXX object CMakeFiles/pioasm.dir/c_sdk_output.cpp.o
[ 70%] Building CXX object CMakeFiles/pioasm.dir/python_output.cpp.o
[ 80%] Building CXX object CMakeFiles/pioasm.dir/hex_output.cpp.o
[ 90%] Building CXX object CMakeFiles/pioasm.dir/ada_output.cpp.o
[100%] Linking CXX executable pioasm
[100%] Built target pioasm
[ 92%] No install step for 'PioasmBuild'
[ 93%] Completed 'PioasmBuild'
[100%] Built target PioasmBuild
No0ne commented 11 months ago

🤔 Please post the output of:

git status
git rev-parse HEAD
grep set\(PICO_SDK_VERSION_ $PICO_SDK_PATH/pico_sdk_version.cmake
pwd
ls -l *.uf2
TsvetanUsunov commented 11 months ago

I deleted .uf2 files in both build and ps2pico directory as I saw that they are not updated when execute make they are never build after this

the output is

ceco@ceco-ThinkCentre-M920q:~/git/ps2x2pico$ git status
git rev-parse HEAD
grep set\(PICO_SDK_VERSION_ $PICO_SDK_PATH/pico_sdk_version.cmake
pwd
ls -l *.uf2
On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
    deleted:    ps2x2pico.uf2

no changes added to commit (use "git add" and/or "git commit -a")
b874f5c6dcdb057d60abf4c91afb27174010161d
set(PICO_SDK_VERSION_MAJOR 1)
set(PICO_SDK_VERSION_MINOR 5)
set(PICO_SDK_VERSION_REVISION 1)
#set(PICO_SDK_VERSION_PRE_RELEASE_ID develop)
set(PICO_SDK_VERSION_STRING "${PICO_SDK_VERSION_MAJOR}.${PICO_SDK_VERSION_MINOR}.${PICO_SDK_VERSION_REVISION}")
    set(PICO_SDK_VERSION_STRING "${PICO_SDK_VERSION_STRING}-${PICO_SDK_VERSION_PRE_RELEASE_ID}")
/home/ceco/git/ps2x2pico
ls: cannot access '*.uf2': No such file or directory
ceco@ceco-ThinkCentre-M920q:~/git/ps2x2pico$ 
No0ne commented 11 months ago

Please try this and post the output:

cd build
elf2uf2/elf2uf2 -v ps2x2pico.elf ps2x2pico.uf2
TsvetanUsunov commented 11 months ago

thanks! this did the job :)

No0ne commented 11 months ago

Cool, hm but I don't know why cmake/make didn't do that 🤷

No0ne commented 11 months ago

I saw you are integrating it into the Neo6502, just ordered one myself! 👍

TsvetanUsunov commented 11 months ago

yes, I was study to add in Neo6502 (where PS2 interface is not necessary) but the USB keyboards/mouse fits great the FabGL PS2 interface for the further revision of AgonLight2 ;) PS2 keyboards and mouses are exotic today

No0ne commented 11 months ago

PS2 keyboards and mouses are exotic today

True! I ran into the same issue using newer keyboards on my NuXTv2