Skip to content

Commit 3edf9ea

Browse files
Improve check and definition of radio frequency for TI Simple Link
***NO_CI***
1 parent ada331c commit 3edf9ea

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Diff for: CMake/binutils.TI_SimpleLink.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ endmacro()
5555
function(nf_check_radio_frequency)
5656

5757
if(NOT DEFINED RADIO_FREQUENCY)
58-
message(FATAL_ERROR "Radio frequncy NOT defined. Please set build option 'RADIO_FREQUENCY'. Valid values are 868 and 915.")
58+
message(FATAL_ERROR "\nRadio frequency NOT defined!!\nPlease set the build option 'RADIO_FREQUENCY' in 'config\\user-prefs.json' or in the user CMake preset. Valid values are 868 and 915.\n")
5959
endif()
6060

6161
# check if file exists
6262
if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${TARGET_BOARD}_${RADIO_FREQUENCY}.syscfg")
63-
message(FATAL_ERROR "Couldn't find a sysconfig file for radio frequency ${RADIO_FREQUENCY}. Valid values are 868 and 915.")
63+
message(FATAL_ERROR "\nCouldn't find a sysconfig file for radio frequency ${RADIO_FREQUENCY}.\n")
6464
endif()
6565

6666
endfunction()

Diff for: config/user-prefs.TEMPLATE.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"NF_PLATFORM_NO_CLR_TRACE": "OFF",
1919
"NF_CLR_NO_IL_INLINE": "OFF",
2020
"NF_FEATURE_WATCHDOG": "ON",
21-
"SWO_OUTPUT": "OFF"
21+
"SWO_OUTPUT": "OFF",
22+
"RADIO_FREQUENCY": "CHANGE_ME_TO_A_VALID_VALUE_868_OR_915"
2223
}
2324
}
2425
],

Diff for: targets/TI_SimpleLink/TI_CC1352R1_LAUNCHXL/CMakePresets.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
"API_nanoFramework.System.Collections": "OFF",
3737
"API_nanoFramework.System.Text": "ON",
3838
"API_nanoFramework.TI.EasyLink": "ON",
39-
"API_nanoFramework.Hardware.TI": "ON",
40-
"RADIO_FREQUENCY": "CHANGE_ME_TO_A_VALID_VALUE_868_OR_915"
39+
"API_nanoFramework.Hardware.TI": "ON"
4140
}
4241
}
4342
],

0 commit comments

Comments
 (0)