diff --git a/cross-file/ctxlink.ini b/cross-file/ctxlink.ini new file mode 100644 index 00000000..a00f56a7 --- /dev/null +++ b/cross-file/ctxlink.ini @@ -0,0 +1,23 @@ +# This a cross-file for the ctxLink probe, providing sane default options for it. + +[binaries] +c = 'arm-none-eabi-gcc' +ld = 'arm-none-eabi-gcc' +ar = 'arm-none-eabi-ar' +nm = 'arm-none-eabi-nm' +strip = 'arm-none-eabi-strip' +objcopy = 'arm-none-eabi-objcopy' +objdump = 'arm-none-eabi-objdump' +size = 'arm-none-eabi-size' + +[host_machine] +system = 'bare-metal' +cpu_family = 'arm' +cpu = 'arm' +endian = 'little' + +[project options] +probe = 'ctxlink' +targets = 'cortexar,cortexm,riscv32,riscv64,efm,hc32,lpc,nrf,nxp,renesas,rp,sam,stm,ti,xilinx' +rtt_support = true +bmd_bootloader = false diff --git a/meson_options.txt b/meson_options.txt index 4861f352..db92c33a 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -8,6 +8,7 @@ option( 'blackpill-f401ce', 'blackpill-f411ce', 'bluepill', + 'ctxlink', 'f072', 'f3', 'f4discovery', @@ -58,22 +59,41 @@ option( value: false, description: 'Enable debug output (for debugging the BMD stack, not debug targets)' ) -option('rtt_support', type: 'boolean', value: true, description: 'Enable RTT (Real Time Transfer) support') -option('rtt_ident', type: 'string', description: 'RTT (Real Time Transfer) identifier string') +option( + 'rtt_support', + type: 'boolean', + value: true, + description: 'Enable RTT (Real Time Transfer) support' +) +option( + 'rtt_ident', + type: 'string', + description: 'RTT (Real Time Transfer) identifier string' +) option( 'no_own_ll', type: 'boolean', value: false, description: 'Use generic interface routines (for when low level routines are not available)' ) -option('bmd_bootloader', type: 'boolean', value: true, description: 'Use the BMD bootloader (not always applicable)') +option( + 'bmd_bootloader', + type: 'boolean', + value: true, + description: 'Use the BMD bootloader (not always applicable)' +) option( 'stlink_swim_nrst_as_uart', type: 'boolean', value: false, - description: 'Repurpose the SWIM and NRST pins as the UART RX and TX (only applicable to stlink)' + description: 'Repurpose the SWIM pins as the UART (only applicable to stlink)' +) +option( + 'serialno', + type: 'string', + value: '1', + description: 'Serial number to report (only applicable to some probes)' ) -option('serialno', type: 'string', value: '1', description: 'Serial number to report (only applicable to some probes)') option( 'advertise_noackmode', type: 'boolean',