2 # ********************************
4 # ********************************
6 ## TODO: R9M STLINK/stock and R9M Lite targets can be merged
7 [env:Frsky_TX_R9M_via_STLINK]
8 extends = env_common_stm32, radio_900
10 $
{env_common_stm32.build_flags
}
11 $
{common_env_data.build_flags_tx
}
12 $
{radio_900.build_flags
}
13 -include target
/Frsky_TX_R9M.h
15 -D HSE_VALUE=12000000U
16 -DVECT_TAB_OFFSET=0x4000U
17 board_build.ldscript = variants/R9M_ldscript.ld
18 board_build.flash_offset = 0x4000
19 src_filter = ${env_common_stm32.src_filter} -<rx_*.cpp>
21 BOOTLOADER=bootloader/r9m_bootloader.bin
24 https
://github.com
/PaoloP74
/extEEPROM.git
26 [env:Frsky_TX_R9M_via_stock_BL]
27 extends = env:Frsky_TX_R9M_via_STLINK
29 [env:Frsky_TX_R9M_via_WIFI]
30 extends = env:Frsky_TX_R9M_via_STLINK
32 [env:Frsky_TX_R9M_LITE_via_STLINK]
33 extends = env:Frsky_TX_R9M_via_STLINK
35 $
{env_common_stm32.build_flags
}
36 $
{common_env_data.build_flags_tx
}
37 $
{radio_900.build_flags
}
38 -include target
/Frsky_TX_R9M_LITE.h
40 -D HSE_VALUE=12000000U
41 -DVECT_TAB_OFFSET=0x4000U
43 [env:Frsky_TX_R9M_LITE_via_stock_BL]
44 extends = env:Frsky_TX_R9M_LITE_via_STLINK
46 [env:Frsky_TX_R9M_LITE_PRO_via_STLINK]
47 extends = env_common_stm32, radio_900
48 board = robotdyn_blackpill_f303cc
50 $
{env_common_stm32.build_flags
}
51 $
{common_env_data.build_flags_tx
}
52 $
{radio_900.build_flags
}
53 -include target
/Frsky_TX_R9M_LITE_PRO.h
54 -D HSE_VALUE=12000000U
55 -DVECT_TAB_OFFSET=0x8000U
56 board_build.ldscript = variants/R9M_Lite_Pro_ldscript.ld
57 board_build.flash_offset = 0x8000
59 BOOTLOADER=bootloader/r9m_lite_pro_bootloader.bin
61 src_filter = ${env_common_stm32.src_filter} -<rx_*.cpp>
63 https
://github.com
/PaoloP74
/extEEPROM.git
66 # ********************************
68 # ********************************
70 [env:Frsky_RX_R9MM_R9MINI_via_STLINK]
71 extends = env_common_stm32, radio_900
74 $
{env_common_stm32.build_flags
}
75 $
{common_env_data.build_flags_rx
}
76 $
{radio_900.build_flags
}
77 -include target
/Frsky_RX_R9M.h
78 -D HSE_VALUE=24000000U
79 -DVECT_TAB_OFFSET=0x08008000U
80 src_filter = ${env_common_stm32.src_filter} -<tx_*.cpp>
82 BOOTLOADER=bootloader/r9mm_bootloader.bin
85 [env:Frsky_RX_R9MM_R9MINI_via_BetaflightPassthrough]
86 extends = env:Frsky_RX_R9MM_R9MINI_via_STLINK
88 [env:Frsky_RX_R9SLIM_via_STLINK]
89 extends = env:Frsky_RX_R9SLIM_via_BetaflightPassthrough
91 BOOTLOADER=bootloader/r9slim_no_btn_bootloader.bin
94 [env:Frsky_RX_R9SLIM_via_BetaflightPassthrough]
95 extends = env_common_stm32, radio_900
97 $
{env_common_stm32.build_flags
}
98 $
{common_env_data.build_flags_rx
}
99 $
{radio_900.build_flags
}
101 -include target
/Frsky_RX_R9M.h
102 -D HSE_VALUE=12000000U
103 -DVECT_TAB_OFFSET=0x08008000U
104 board_build.ldscript = variants/R9MM/R9MM_ldscript.ld
105 src_filter = ${common_env_data.src_filter} -<ESP32*.*> -<ESP8266*.*> -<WS281B*.*> -<tx_*.cpp>
107 https
://github.com
/PaoloP74
/extEEPROM.git
110 [env:Frsky_RX_R9SLIMPLUS_via_STLINK]
111 extends = env:Frsky_RX_R9SLIMPLUS_via_BetaflightPassthrough
113 BOOTLOADER=bootloader/r9slim_plus_bootloader.bin
116 [env:Frsky_RX_R9SLIMPLUS_via_BetaflightPassthrough]
117 extends = env_common_stm32, radio_900
118 board_build.ldscript = variants/R9MM/R9MM_ldscript.ld
120 $
{env_common_stm32.build_flags
}
121 $
{common_env_data.build_flags_rx
}
122 $
{radio_900.build_flags
}
123 -D TARGET_R9SLIMPLUS_RX
124 -include target
/Frsky_RX_R9M.h
125 -D HSE_VALUE=12000000U
126 -DVECT_TAB_OFFSET=0x8000U
127 src_filter = ${env_common_stm32.src_filter} -<tx_*.cpp>
129 [env:Frsky_RX_R9SLIMPLUS_OTA_via_STLINK]
130 extends = env:Frsky_RX_R9SLIMPLUS_via_BetaflightPassthrough
131 board = robotdyn_blackpill_f303cc
132 board_build.ldscript = variants/stm32f303xx.ld
134 BOOTLOADER=bootloader/r9slim_plus_ota_bootloader.bin
137 [env:Frsky_RX_R9SLIMPLUS_OTA_via_BetaflightPassthrough]
138 extends = env:Frsky_RX_R9SLIMPLUS_OTA_via_STLINK
140 [env:Frsky_RX_R9MX_via_STLINK]
141 extends = env_common_stm32, radio_900
144 $
{env_common_stm32.build_flags
}
145 $
{common_env_data.build_flags_rx
}
146 $
{radio_900.build_flags
}
148 -include target
/Frsky_RX_R9M.h
149 -DVECT_TAB_OFFSET=0x08008000U
150 -D HSI_VALUE=16000000
151 -Wl,--defsym=FLASH_OFFSET=0x8000
152 src_filter = ${env_common_stm32.src_filter} -<tx_*.cpp>
154 BOOTLOADER=bootloader/r9mx_bootloader.bin
157 [env:Frsky_RX_R9MX_via_BetaflightPassthrough]
158 extends = env:Frsky_RX_R9MX_via_STLINK
160 [env:Jumper_RX_R900MINI_via_STLINK]
161 extends = env:Jumper_RX_R900MINI_via_BetaflightPassthrough
163 BOOTLOADER=bootloader/jumper_r900_bootloader.bin
166 [env:Jumper_RX_R900MINI_via_BetaflightPassthrough]
167 extends = env_common_stm32, radio_900
169 $
{env_common_stm32.build_flags
}
170 $
{common_env_data.build_flags_rx
}
171 $
{radio_900.build_flags
}
172 -D TARGET_R900MINI_RX
173 -include target
/Frsky_RX_R9M.h
174 -D HSE_VALUE=12000000U
175 -DVECT_TAB_OFFSET=0x8000U
176 board_build.ldscript = variants/R9MM/R9MM_ldscript.ld
177 src_filter = ${env_common_stm32.src_filter} -<tx_*.cpp>