EngineerGuy314 / pico-WSPRer

Minimalist WSPR tracker for pico-balloons utilizing Raspberry Pi Pico (or Rp2040) as the RF generator (aka The Cheapest Tracker In The World™). More info: [WIKI](https://github.com/EngineerGuy314/pico-WSPRer/wiki/pico%E2%80%90WSPRer-(aka-Cheapest-Tracker-in-the-World%E2%84%A2))
MIT License
39 stars 8 forks source link

are the "build it yourself" instructions up to date? #43

Open knormoyle opened 18 hours ago

knormoyle commented 18 hours ago

I was able to install/build the sdk

but when I tried pico-WSPRER build, I got the following (minimally it seems like something understand your directory structuree i.e. /home/rob/pico-WSPERer)

I subsequently removed the CMakeCache.txt in the build dir that the git clone created.

That helped (I guess before the build.sh the instructions should say to remove that, the first time after git clone?) it got further then (still not complete but different error)

Originally results without that

**

kevin@pc8c:~/pico_install$ git clone https://github.com/EngineerGuy314/pico-WSPRer.git Cloning into 'pico-WSPRer'... remote: Enumerating objects: 4762, done. remote: Counting objects: 100% (863/863), done. remote: Compressing objects: 100% (309/309), done. remote: Total 4762 (delta 663), reused 588 (delta 547), pack-reused 3899 (from 1) Receiving objects: 100% (4762/4762), 43.38 MiB | 3.81 MiB/s, done. Resolving deltas: 100% (2775/2775), done.

kevin@pc8c:~/pico_install$ cd pico-WSPer

kevin@pc8c:~/pico_install/pico-WSPRer$ ./build.sh mkdir: cannot create directory ‘build’: File exists fatal: No url found for submodule path 'build/_deps/picotool-src' in .gitmodules fatal: No url found for submodule path 'build/_deps/picotool-src' in .gitmodules

CMake Error: The current CMakeCache.txt directory /home/kevin/pico_install/pico-WSPRer/build/CMakeCache.txt is different than the directory /home/rob/pico-WSPRer/build where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt CMake Error: The source "/home/kevin/pico_install/pico-WSPRer/CMakeLists.txt" does not match the source "/home/rob/pico-WSPRer/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory. CMake Error: The source directory "/home/rob/pico-WSPRer" does not exist. Specify --help for usage, or press the help button on the CMake GUI. make: *** [Makefile:3067: cmake_check_build_system] Error 1

not sure what the fatal about picotool-src is. Maybe it just doesn't know where my sdk is

I did get picotool installed during the sdk build..here's a grep of it from my notes maybe just a side effect of not finding my sdk

After rm build/CMakeCache.txt, and ./build.sh again, I get this Still od it complains about picotool seems to fail on pioasm

kevin@pc8c:~/pico_install/pico-WSPRer$ ./build.sh mkdir: cannot create directory ‘build’: File exists fatal: No url found for submodule path 'build/_deps/picotool-src' in .gitmodules fatal: No url found for submodule path 'build/_deps/picotool-src' in .gitmodules PICO_SDK_PATH is /home/kevin/pico_install/pico-sdk Target board (PICO_BOARD) is 'pico'. Using board configuration from /home/kevin/pico_install/pico-sdk/src/boards/include/boards/pico.h Pico Platform (PICO_PLATFORM) is 'rp2040'. Build type is Release TinyUSB available at /home/kevin/pico_install/pico-sdk/lib/tinyusb/src/portable/raspberrypi/rp2040; enabling build support for USB. BTstack available at /home/kevin/pico_install/pico-sdk/lib/btstack cyw43-driver available at /home/kevin/pico_install/pico-sdk/lib/cyw43-driver lwIP available at /home/kevin/pico_install/pico-sdk/lib/lwip mbedtls available at /home/kevin/pico_install/pico-sdk/lib/mbedtls -- Configuring done (0.2s) -- Generating done (0.0s) -- Build files have been written to: /home/kevin/pico_install/pico-WSPRer/build [ 1%] Built target bs2_default [ 3%] Built target bs2_default_padded_checksummed_asm [ 3%] Generating dco2.pio.h pioasm-install/pioasm/pioasm: 1: cannot open 4: No such file pioasm-install/pioasm/pioasm: 1: ����Q�7��faGNU8: not found pioasm-install/pioasm/pioasm: 1: cannot open : No such file pioasm-install/pioasm/pioasm: 11: y : not found pioasm-install/pioasm/pioasm: 11: �: not found pioasm-install/pioasm/pioasm: 12: Syntax error: ")" unexpected make[2]: [CMakeFiles/pico-WSPRer_dco2_pio_h.dir/build.make:73: dco2.pio.h] Error 2 make[1]: [CMakeFiles/Makefile2:2109: CMakeFiles/pico-WSPRer_dco2_pio_h.dir/all] Error 2 make: *** [Makefile:91: all] Error 2

knormoyle commented 18 hours ago

building on Ubuntu 24.04.1 LTS

knormoyle commented 18 hours ago

Ah, I think I found the issue you have to run ./clean.sh before you do build.sh that may be convention I'm not aware of, but should mention it in build instructions.

going much further now.

and finished the pico-WSPRer.elf build [100%] Built target pico-WSPRer

looks like the pico-WSPRer.uf2 built okay also

kevin@pc8c:~/pico_install/pico-WSPRer/build$ ls -ltr total 3784 -rw-rw-r-- 1 kevin kevin 60 Oct 20 23:31 pico_flash_region.ld drwxrwxr-x 3 kevin kevin 4096 Oct 20 23:31 generated -rw-rw-r-- 1 kevin kevin 28502 Oct 20 23:31 CMakeCache.txt drwxrwxr-x 6 kevin kevin 4096 Oct 20 23:31 pico-sdk drwxrwxr-x 4 kevin kevin 4096 Oct 20 23:31 pico_extras -rw-rw-r-- 1 kevin kevin 190186 Oct 20 23:31 Makefile -rw-rw-r-- 1 kevin kevin 1799 Oct 20 23:31 cmake_install.cmake drwxrwxr-x 6 kevin kevin 4096 Oct 20 23:32 _deps drwxrwxr-x 3 kevin kevin 4096 Oct 20 23:32 pioasm-install drwxrwxr-x 3 kevin kevin 4096 Oct 20 23:32 pioasm -rw-rw-r-- 1 kevin kevin 2913 Oct 20 23:32 dco2.pio.h -rw-rw-r-- 1 kevin kevin 2204 Oct 20 23:32 timer_PIO.pio.h -rw-rw-r-- 1 kevin kevin 3439 Oct 20 23:32 onewire_library.pio.h -rw-rw-r-- 1 kevin kevin 572355 Oct 20 23:32 pico-WSPRer.elf.map -rwxrwxr-x 1 kevin kevin 1223496 Oct 20 23:32 pico-WSPRer.elf -rw-rw-r-- 1 kevin kevin 1524700 Oct 20 23:32 pico-WSPRer.dis -rwxrwxr-x 1 kevin kevin 90736 Oct 20 23:32 pico-WSPRer.bin -rw-rw-r-- 1 kevin kevin 181760 Oct 20 23:32 pico-WSPRer.uf2 drwxrwxr-x 9 kevin kevin 4096 Oct 20 23:32 CMakeFiles

Installed on fake pico (6 pin voltage regulator) putty with serial /dev/ttyACM0

got something else on first connect second connect got the expected

Current values:

Callsign:AB1CDE Suffix:- U4b channel: (Id13:Q0 Start Minute:0 Lane:2) Verbosity:1 custom Pcb IO mappings:0 TELEN config:---- Klock speed:115Mhz (default: 133) Datalog mode:0 Battery (low power) mode:0

VALID commands:

X: eXit configuraiton and reboot C: change Callsign (6 char max) S: change Suffix ( for WSPR3/Zachtek) use '-' to disable WSPR3 U: change U4b channel # (0-599) V: Verbosity level (0 for no messages, 9 for too many) P: custom Pcb mode IO mappings (0,1) T: TELEN config K: Klock speed (default: 133) D: Datalog mode (0,1,(W)ipe memory, (D)ump memory) see wiki B: Battery (low power) mode F: Frequency output (antenna tuning mode)

Enter the command (X,C,S,U,[I,M,L],V,P,T,B,D,K,F):

nice! You have the u4b channel choice code in there now! (for 20M only I guess)