2022-07-29 22:58:42 +00:00
|
|
|
; The very slick RAK wireless RAK 4631 / 4630 board - Unified firmware for 5005/19003, with or without OLED RAK 1921
|
2022-04-25 05:13:41 +00:00
|
|
|
[env:rak4631]
|
|
|
|
extends = nrf52840_base
|
|
|
|
board = wiscore_rak4631
|
2024-05-12 20:43:47 +00:00
|
|
|
board_check = true
|
2022-04-25 05:13:41 +00:00
|
|
|
build_flags = ${nrf52840_base.build_flags} -Ivariants/rak4631 -D RAK_4631
|
2024-05-16 13:08:59 +00:00
|
|
|
-L "${platformio.libdeps_dir}/${this.__env__}/bsec2/src/cortex-m4/fpv4-sp-d16-hard"
|
2023-09-04 18:16:39 +00:00
|
|
|
-DGPS_POWER_TOGGLE ; comment this line to disable triple press function on the user button to turn off gps entirely.
|
2024-02-28 15:45:15 +00:00
|
|
|
-DEINK_DISPLAY_MODEL=GxEPD2_213_BN
|
|
|
|
-DEINK_WIDTH=250
|
|
|
|
-DEINK_HEIGHT=122
|
2023-01-09 16:03:52 +00:00
|
|
|
build_src_filter = ${nrf52_base.build_src_filter} +<../variants/rak4631> +<mesh/eth/> +<mesh/api/> +<mqtt/>
|
2022-04-25 05:13:41 +00:00
|
|
|
lib_deps =
|
|
|
|
${nrf52840_base.lib_deps}
|
2022-10-25 22:07:02 +00:00
|
|
|
${networking_base.lib_deps}
|
2022-04-27 09:05:08 +00:00
|
|
|
melopero/Melopero RV3028@^1.1.0
|
2022-11-10 08:35:56 +00:00
|
|
|
https://github.com/RAKWireless/RAK13800-W5100S.git#1.0.2
|
2023-05-06 12:17:40 +00:00
|
|
|
rakwireless/RAKwireless NCP5623 RGB LED library@^1.0.2
|
2024-06-15 14:46:15 +00:00
|
|
|
https://github.com/meshtastic/RAK12034-BMX160.git#4821355fb10390ba8557dc43ca29a023bcfbb9d9
|
2022-04-25 05:13:41 +00:00
|
|
|
debug_tool = jlink
|
2024-06-16 20:59:38 +00:00
|
|
|
|
2024-06-17 05:24:57 +00:00
|
|
|
|
2022-04-25 05:13:41 +00:00
|
|
|
; If not set we will default to uploading over serial (first it forces bootloader entry by talking 1200bps to cdcacm)
|
2024-06-16 20:59:38 +00:00
|
|
|
; Note: as of 6/2013 the serial/bootloader based programming takes approximately 30 seconds
|
|
|
|
;upload_protocol = jlink
|
|
|
|
|
|
|
|
; Allows programming and debug via the RAK NanoDAP as the default debugger tool for the RAK4631 (it is only $10!)
|
|
|
|
; programming time is about the same as the bootloader version.
|
|
|
|
; For information on this see the meshtastic developers documentation for "Development on the NRF52"
|
|
|
|
[env:rak4631_dap]
|
|
|
|
extends = env:rak4631
|
|
|
|
board_level = extra
|
|
|
|
; pyocd pack --i nrf52840
|
|
|
|
; eventually use platformio/tool-pyocd@^2.3600.0 instad
|
|
|
|
upload_protocol = custom
|
|
|
|
upload_command = pyocd flash -t nrf52840 $UPLOADERFLAGS $SOURCE
|
|
|
|
|
|
|
|
; Only reprogram the board if the code has changed
|
|
|
|
debug_load_mode = modified
|
|
|
|
;debug_load_mode = manual
|
|
|
|
debug_tool = custom
|
|
|
|
; We manually pass in the elf file so that pyocd can reverse engineer FreeRTOS data (running threads, etc...)
|
|
|
|
debug_server =
|
|
|
|
pyocd
|
|
|
|
gdbserver
|
|
|
|
-t
|
|
|
|
nrf52840
|
|
|
|
--elf
|
|
|
|
${platformio.build_dir}/${this.__env__}/firmware.elf
|
|
|
|
; The following is not needed because it automatically tries do this
|
|
|
|
;debug_server_ready_pattern = -.*GDB server started on port \d+.*
|
|
|
|
;debug_port = localhost:3333
|