mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-08-18 21:53:59 +00:00
39424632bb
* Initial commit and pr for HackRF Pro (praline) arch-port to mayhem-firmware. Please see https://github.com/portapack-mayhem/mayhem-firmware/issues/2957. Added flash specifics for -DBOARD=PRALINE. This firmware only builds with toolchain v9.2.1 if hackrf codebase has -B arm in firmware/hackrf_usb/CMakeLists.txt. * Updated CMakeLists.txt per coordination with @HtoToo. For -DBOARD=PRALINE FLASH_MB_SIZE and FLASH_MB_LIMIT_SIZE are now 4. Removed praline specific variable for FLASH limits. * Updated chibios-portapack's board.cpp to support initialization of the HachRF-Pro (praline) FPGA. Added append_fpga_bitstream.py tool to ensure that praline_fgpa.bin bitstream can be appended to -DBOARD=PRALINE produced firmware. In order to ensure successful execution of append_fpga_bitstream.py to append the fpga bitstream we should expect that the bistsream will be located at 0x180000 in flash. This requires that FLASH_MB_LIMIT_SIZE must be 1.5, and FLASH_BYTES_LIMIT_SIZE must be 1535 * 1024. If we want to allow more or less space for the base firmware image sans the fpga bitstream the location of the bistream must be moved to a location other than 0x180000. * Updated location of praline_fpga.bin bitstream to 0x380000 to allow more room for firmware. Firmware now has 3.5MB, or 2MB more available than before as coordinated with @HTotoo. * Expanded #ifndef PRALINE to include og and r9 gpio and pin setup as coordinated with @HTotoo. * Added note for PRALINE FLASH_MB_LIMIT_SIZE and FLASH_BYTES_LIMIT_SIZE to explain why we are using the 3.5 and 3584 values respectively as coordinated with @HTotoo. * Next round of modifications derived heavily, if not entirely from work done by @banandana at https://github.com/Banandana/mayhem-firmware. This commit should power on the HackRF Pro (praline) display, power on the fpga, and enable gpio, and provide debug utilties. There is still a lot of work to be done to fully enable the new praline board with this build and firmware architectural porting effort. However, hackrf-one boards do not seem to be adversely impacted by the #ifdef PRALINE statements, and CMakeLists updates, as far as I have been able to test. * Ran format-code.sh. Updates for this commit are only due to formatting. Tested builds and they seem to work as exptected. * Addressed fixes in firmware/application and firmware/baseband. Stream now flows to capture and looking glass. Issues were related to thread management. Issues were originally addressed by @banandana. * Ran format-code.sh to allow for consistency with autoamted clang checks. * Update hackrf ref repo to mayhem-portapack-hackrf next from https://github.com/portapack-mayhem/hackrf * Addressed format edits necessary to pass clang-format check. * Starting addressing Si5351 Clocks for radio sampling. These updates correctly set the Si5351 clock at start up. There appears to be an issue during runtime when testing with RX Test Init, Capture and Looking glass. * Updated clock_manager.cpp to restore correct function introduced by @banandana when testing with Rx Test Init. * Switched to using decimation for setting the sample rate without changing the Si5351 clock. This assumes that for the praline board Si5351 CLK0 runs at fixed 8 MHz (constant) and the FPGA decimates to get the desired sample rate. For example, for a 1 MHz sample rate -> Si5351 outputs 8 MHz, FPGA decimates by 8. There is still more work needed here, and potential verification that this is the correct way to operate with this new archteitecture. * After deliberating on hackrf_usb hackrf_core.c and radio.c, and reviewing firmware/application/hw/si5351.cpp the original approach of using the aproach detailed in hackrf_core.c sample_rate_frac_set() lines 580-582, via the implementation in firmware/application/hw/si5351.cpp seems like the best place to continue testing efforts. * Tested at ~2.4GHz (2.3 - 2.5) with lookgin glass and was able to receive signals. Added a Signal Path debug app to test gains, and readio mode (receive/transmit). * Added two debug apps for the RFFC507x. Status View and Tuning View. This helped debug some of the potential issues with tuning. * update submodule * format code * Small touch up merging latest next and ensuring build for HackRF One. * Reverted edits to re: firmware/baseband/sd_over_usb/scsi.c and firmware/application/portapack.cpp. Source now builds, had to pull latest hackrf submodule. * Skipped detect hardware for praline board to avoid backscreen in HackRF Pro praline board. --------- Co-authored-by: gullradriel <gullradriel@users.noreply.github.com>
379 lines
7.5 KiB
CMake
379 lines
7.5 KiB
CMake
set(EXTCPPSRC
|
|
#afsk_rx 16 byte
|
|
external/afsk_rx/main.cpp
|
|
external/afsk_rx/ui_afsk_rx.cpp
|
|
|
|
#calculator 632 bytes
|
|
external/calculator/main.cpp
|
|
external/calculator/ui_calculator.cpp
|
|
|
|
#font_viewer 8 byte?!
|
|
external/font_viewer/main.cpp
|
|
external/font_viewer/ui_font_viewer.cpp
|
|
|
|
#blespam 336 bytes - array initializers?
|
|
external/blespam/main.cpp
|
|
external/blespam/ui_blespam.cpp
|
|
|
|
#analogtv 552 bytes
|
|
external/analogtv/main.cpp
|
|
external/analogtv/analog_tv_app.cpp
|
|
external/analogtv/ui_tv.cpp
|
|
|
|
#nrf_rx 40 byte
|
|
external/nrf_rx/main.cpp
|
|
external/nrf_rx/ui_nrf_rx.cpp
|
|
|
|
#coasterp 0 byte
|
|
external/coasterp/main.cpp
|
|
external/coasterp/ui_coasterp.cpp
|
|
|
|
#lge 120 byte
|
|
external/lge/main.cpp
|
|
external/lge/lge_app.cpp
|
|
external/lge/rfm69.cpp
|
|
|
|
#lcr - 460 byte flash
|
|
external/lcr/main.cpp
|
|
external/lcr/ui_lcr.cpp
|
|
|
|
#jammer 144 byte
|
|
external/jammer/main.cpp
|
|
external/jammer/ui_jammer.cpp
|
|
|
|
#gpssim 160 byte
|
|
external/gpssim/main.cpp
|
|
external/gpssim/gps_sim_app.cpp
|
|
|
|
#spainter 464 byte
|
|
external/spainter/main.cpp
|
|
external/spainter/ui_spectrum_painter.cpp
|
|
external/spainter/ui_spectrum_painter_text.cpp
|
|
external/spainter/ui_spectrum_painter_image.cpp
|
|
|
|
#keyfob 216 byte
|
|
external/keyfob/main.cpp
|
|
external/keyfob/ui_keyfob.cpp
|
|
external/keyfob/ui_keyfob.hpp
|
|
|
|
#tetris 88 byte
|
|
external/tetris/main.cpp
|
|
external/tetris/ui_tetris.cpp
|
|
|
|
|
|
#extsensors 192 byte
|
|
external/extsensors/main.cpp
|
|
external/extsensors/ui_extsensors.cpp
|
|
external/extsensors/ui_extsensors.hpp
|
|
|
|
#foxhunt 0
|
|
external/foxhunt/main.cpp
|
|
external/foxhunt/ui_foxhunt_rx.cpp
|
|
external/foxhunt/ui_foxhunt_rx.hpp
|
|
|
|
#audio_test 192 byte
|
|
external/audio_test/main.cpp
|
|
external/audio_test/ui_audio_test.cpp
|
|
|
|
#wardrivemap 64 byte
|
|
external/wardrivemap/main.cpp
|
|
external/wardrivemap/ui_wardrivemap.cpp
|
|
|
|
#tpmsrx 920 byte- possible shared part with baseband
|
|
external/tpmsrx/main.cpp
|
|
external/tpmsrx/tpms_app.cpp
|
|
|
|
#protoview 8 byte
|
|
external/protoview/main.cpp
|
|
external/protoview/ui_protoview.cpp
|
|
|
|
#adsbtx 3544 byte - adsb shared part
|
|
external/adsbtx/main.cpp
|
|
external/adsbtx/ui_adsb_tx.cpp
|
|
|
|
#morse_tx 768 bytes -- disabled because of the new morse tx app with more functions
|
|
#external/morse_tx/main.cpp
|
|
#external/morse_tx/ui_morse.cpp
|
|
|
|
#sstvtx 456 bytes
|
|
external/sstvtx/main.cpp
|
|
external/sstvtx/ui_sstvtx.cpp
|
|
|
|
#sstvrx
|
|
external/sstvrx/main.cpp
|
|
external/sstvrx/ui_sstvrx.cpp
|
|
|
|
#random 464 bytes.
|
|
external/random_password/main.cpp
|
|
external/random_password/ui_random_password.cpp
|
|
external/random_password/sha512.cpp
|
|
|
|
#acars
|
|
#external/acars_rx/main.cpp
|
|
#external/acars_rx/acars_app.cpp
|
|
|
|
#wefax_rx 192 bytes
|
|
external/wefax_rx/main.cpp
|
|
external/wefax_rx/ui_wefax_rx.cpp
|
|
|
|
|
|
#noaaapt_rx 72 bytes
|
|
external/noaaapt_rx/main.cpp
|
|
external/noaaapt_rx/ui_noaaapt_rx.cpp
|
|
|
|
#shoppingcart_lock 272 bytes
|
|
external/shoppingcart_lock/main.cpp
|
|
external/shoppingcart_lock/shoppingcart_lock.cpp
|
|
|
|
|
|
#ookbrute 80 byte
|
|
external/ookbrute/main.cpp
|
|
external/ookbrute/ui_ookbrute.cpp
|
|
|
|
#ook_editor 1808 bytes
|
|
external/ook_editor/main.cpp
|
|
external/ook_editor/ui_ook_editor.cpp
|
|
|
|
#cvs_spam 24 byte
|
|
external/cvs_spam/main.cpp
|
|
external/cvs_spam/cvs_spam.cpp
|
|
|
|
#flippertx 712 bytes
|
|
external/flippertx/main.cpp
|
|
external/flippertx/ui_flippertx.cpp
|
|
|
|
#remote 1664 bytes
|
|
external/remote/main.cpp
|
|
external/remote/ui_remote.cpp
|
|
|
|
#mcu_temperature 112
|
|
external/mcu_temperature/main.cpp
|
|
external/mcu_temperature/mcu_temperature.cpp
|
|
|
|
#fmradio 640
|
|
external/fmradio/main.cpp
|
|
external/fmradio/ui_fmradio.cpp
|
|
|
|
#tuner 384
|
|
external/tuner/main.cpp
|
|
external/tuner/ui_tuner.cpp
|
|
|
|
#metronome 696 bytes
|
|
external/metronome/main.cpp
|
|
external/metronome/ui_metronome.cpp
|
|
|
|
#app_manager 40 bytes
|
|
external/app_manager/main.cpp
|
|
external/app_manager/ui_app_manager.cpp
|
|
|
|
#hopper 472 bytes
|
|
external/hopper/main.cpp
|
|
external/hopper/ui_hopper.cpp
|
|
|
|
# whip calculator 48 bytes
|
|
external/antenna_length/main.cpp
|
|
external/antenna_length/ui_whipcalc.cpp
|
|
|
|
# wav viewer 1232 bytes
|
|
external/wav_view/main.cpp
|
|
external/wav_view/ui_view_wav.cpp
|
|
|
|
|
|
# wipe sdcard 16 byte
|
|
external/sd_wipe/main.cpp
|
|
external/sd_wipe/ui_sd_wipe.cpp
|
|
|
|
# playlist editor 232 bytes
|
|
external/playlist_editor/main.cpp
|
|
external/playlist_editor/ui_playlist_editor.cpp
|
|
|
|
#snake 240 bytes
|
|
external/snake/main.cpp
|
|
external/snake/ui_snake.cpp
|
|
|
|
|
|
#stopwatch 0
|
|
external/stopwatch/main.cpp
|
|
external/stopwatch/ui_stopwatch.cpp
|
|
|
|
#breakout 1144 bytes
|
|
external/breakout/main.cpp
|
|
external/breakout/ui_breakout.cpp
|
|
|
|
#dinogame 0
|
|
external/dinogame/main.cpp
|
|
external/dinogame/ui_dinogame.cpp
|
|
|
|
#doom 224
|
|
external/doom/main.cpp
|
|
external/doom/ui_doom.cpp
|
|
|
|
#debug_pmem 944 byte
|
|
external/debug_pmem/main.cpp
|
|
external/debug_pmem/ui_debug_pmem.cpp
|
|
|
|
#scanner 520 byte
|
|
external/scanner/main.cpp
|
|
external/scanner/ui_scanner.cpp
|
|
|
|
#level 24 byte
|
|
external/level/main.cpp
|
|
external/level/ui_level.cpp
|
|
|
|
#gfxEQ 80 byte
|
|
external/gfxeq/main.cpp
|
|
external/gfxeq/ui_gfxeq.cpp
|
|
|
|
#waterfall designer
|
|
external/waterfall_designer/main.cpp
|
|
external/waterfall_designer/ui_waterfall_designer.cpp
|
|
|
|
#detector_rx 168 byte
|
|
external/detector_rx/main.cpp
|
|
external/detector_rx/ui_detector_rx.cpp
|
|
|
|
#space_invaders 0 byte
|
|
external/spaceinv/main.cpp
|
|
external/spaceinv/ui_spaceinv.cpp
|
|
|
|
#blackjack 24 byte
|
|
external/blackjack/main.cpp
|
|
external/blackjack/ui_blackjack.cpp
|
|
|
|
#battleship 256 byte
|
|
external/battleship/main.cpp
|
|
external/battleship/ui_battleship.cpp
|
|
|
|
#ert 3040 bytes - has common with baseband, could be renamed the namespace, so both could have it, but not kept in fw.
|
|
external/ert/main.cpp
|
|
external/ert/ert_app.cpp
|
|
|
|
#epirb_rx 168 byte flash
|
|
external/epirb_rx/main.cpp
|
|
external/epirb_rx/ui_epirb_rx.cpp
|
|
|
|
#soundboard 272byte - 1236 bytes
|
|
external/soundboard/main.cpp
|
|
external/soundboard/soundboard_app.cpp
|
|
|
|
#game2048 - 168 byte flash
|
|
external/game2048/main.cpp
|
|
external/game2048/ui_game2048.cpp
|
|
|
|
#bht_tx - 3920 byte flash, unknown
|
|
external/bht_tx/main.cpp
|
|
external/bht_tx/ui_bht_tx.cpp
|
|
external/bht_tx/bht.cpp
|
|
|
|
#morse_practice - 80 byte flash - bc of array initializers
|
|
external/morse_practice/main.cpp
|
|
external/morse_practice/ui_morse_practice.cpp
|
|
|
|
#adult_toys_controller 144 bytes
|
|
external/adult_toys_controller/main.cpp
|
|
external/adult_toys_controller/ui_adult_toys_controller.cpp
|
|
|
|
#flex_rx
|
|
external/flex_rx/main.cpp
|
|
external/flex_rx/ui_flex_rx.cpp
|
|
|
|
#subcarrx
|
|
external/subcarrx/main.cpp
|
|
external/subcarrx/ui_subcar.cpp
|
|
|
|
#siggen
|
|
external/siggen/main.cpp
|
|
external/siggen/ui_siggen.cpp
|
|
|
|
#morse_radio
|
|
external/morse_radio/main.cpp
|
|
external/morse_radio/ui_morse_radio.cpp
|
|
|
|
#morseradiotx
|
|
external/morseradiotx/main.cpp
|
|
external/morseradiotx/ui_morse_radiotx.cpp
|
|
)
|
|
|
|
set(EXTAPPLIST
|
|
afsk_rx
|
|
calculator
|
|
font_viewer
|
|
blespam
|
|
analogtv
|
|
nrf_rx
|
|
coasterp
|
|
lge
|
|
lcr
|
|
jammer
|
|
gpssim
|
|
spainter
|
|
keyfob
|
|
tetris
|
|
extsensors
|
|
foxhunt_rx
|
|
audio_test
|
|
wardrivemap
|
|
tpmsrx
|
|
protoview
|
|
adsbtx
|
|
#morse_tx
|
|
sstvtx
|
|
sstvrx
|
|
random_password
|
|
# acars_rx --not working
|
|
wefax_rx
|
|
noaaapt_rx
|
|
shoppingcart_lock
|
|
ookbrute
|
|
ook_editor
|
|
cvs_spam
|
|
flippertx
|
|
remote
|
|
mcu_temperature
|
|
fmradio
|
|
tuner
|
|
metronome
|
|
app_manager
|
|
hopper
|
|
antenna_length
|
|
view_wav
|
|
sd_wipe
|
|
playlist_editor
|
|
snake
|
|
stopwatch
|
|
breakout
|
|
dinogame
|
|
doom
|
|
debug_pmem
|
|
scanner
|
|
level
|
|
gfxeq
|
|
waterfall_designer
|
|
detector_rx
|
|
spaceinv
|
|
blackjack
|
|
battleship
|
|
ert
|
|
epirb_rx
|
|
soundboard
|
|
game2048
|
|
bht_tx
|
|
morse_practice
|
|
adult_toys_controller
|
|
flex_rx
|
|
subcarrx
|
|
siggen
|
|
morse_radio
|
|
morseradiotx
|
|
)
|
|
|
|
# sdusb has type conflicts with PRALINE (HackRF Pro) - add only for non-PRALINE builds
|
|
if(NOT BOARD STREQUAL "PRALINE")
|
|
list(APPEND EXTCPPSRC
|
|
external/sdusb/main.cpp
|
|
external/sdusb/ui_sd_over_usb.cpp
|
|
)
|
|
list(APPEND EXTAPPLIST sdusb)
|
|
endif()
|
|
|