From 745348bf49f1fe8ca9960828f8e03d53041b6382 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 21 Dec 2019 19:58:07 -0500 Subject: [PATCH] kinetis just started to suddenly work? #1061 --- ...ngine_configuration_generated_structures.h | 184 +++++++++++++++++- .../controllers/algo/rusefi_generated.h | 121 ++++++++++++ firmware/tunerstudio/rusefi_kinetis.ini | 152 +++++++++++---- 3 files changed, 414 insertions(+), 43 deletions(-) diff --git a/firmware/config/boards/kinetis/config/controllers/algo/engine_configuration_generated_structures.h b/firmware/config/boards/kinetis/config/controllers/algo/engine_configuration_generated_structures.h index 9ae540b556..7a52be0512 100644 --- a/firmware/config/boards/kinetis/config/controllers/algo/engine_configuration_generated_structures.h +++ b/firmware/config/boards/kinetis/config/controllers/algo/engine_configuration_generated_structures.h @@ -1,4 +1,4 @@ -// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration/rusefi_config.txt Wed Dec 11 16:41:07 EST 2019 +// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration/rusefi_config.txt Sat Dec 21 19:54:17 EST 2019 // by class com.rusefi.output.CHeaderConsumer // begin #ifndef CONFIG_BOARDS_KINETIS_CONFIG_CONTROLLERS_ALGO_ENGINE_CONFIGURATION_GENERATED_STRUCTURES_H @@ -347,6 +347,93 @@ struct trigger_config_s { * This option could be used if your second trigger channel is broken offset 4 bit 2 */ bool useOnlyFirstChannel : 1; + /** + offset 4 bit 3 */ + bool unusedBit_4_3 : 1; + /** + offset 4 bit 4 */ + bool unusedBit_4_4 : 1; + /** + offset 4 bit 5 */ + bool unusedBit_4_5 : 1; + /** + offset 4 bit 6 */ + bool unusedBit_4_6 : 1; + /** + offset 4 bit 7 */ + bool unusedBit_4_7 : 1; + /** + offset 4 bit 8 */ + bool unusedBit_4_8 : 1; + /** + offset 4 bit 9 */ + bool unusedBit_4_9 : 1; + /** + offset 4 bit 10 */ + bool unusedBit_4_10 : 1; + /** + offset 4 bit 11 */ + bool unusedBit_4_11 : 1; + /** + offset 4 bit 12 */ + bool unusedBit_4_12 : 1; + /** + offset 4 bit 13 */ + bool unusedBit_4_13 : 1; + /** + offset 4 bit 14 */ + bool unusedBit_4_14 : 1; + /** + offset 4 bit 15 */ + bool unusedBit_4_15 : 1; + /** + offset 4 bit 16 */ + bool unusedBit_4_16 : 1; + /** + offset 4 bit 17 */ + bool unusedBit_4_17 : 1; + /** + offset 4 bit 18 */ + bool unusedBit_4_18 : 1; + /** + offset 4 bit 19 */ + bool unusedBit_4_19 : 1; + /** + offset 4 bit 20 */ + bool unusedBit_4_20 : 1; + /** + offset 4 bit 21 */ + bool unusedBit_4_21 : 1; + /** + offset 4 bit 22 */ + bool unusedBit_4_22 : 1; + /** + offset 4 bit 23 */ + bool unusedBit_4_23 : 1; + /** + offset 4 bit 24 */ + bool unusedBit_4_24 : 1; + /** + offset 4 bit 25 */ + bool unusedBit_4_25 : 1; + /** + offset 4 bit 26 */ + bool unusedBit_4_26 : 1; + /** + offset 4 bit 27 */ + bool unusedBit_4_27 : 1; + /** + offset 4 bit 28 */ + bool unusedBit_4_28 : 1; + /** + offset 4 bit 29 */ + bool unusedBit_4_29 : 1; + /** + offset 4 bit 30 */ + bool unusedBit_4_30 : 1; + /** + offset 4 bit 31 */ + bool unusedBit_4_31 : 1; /** * offset 8 */ @@ -557,6 +644,9 @@ struct engine_configuration_s { /** offset 76 bit 30 */ bool issue_294_31 : 1; + /** + offset 76 bit 31 */ + bool unusedBit_34_31 : 1; /** * Closed throttle. todo: extract these two fields into a structure * See also tps1_1AdcChannel @@ -1476,6 +1566,96 @@ struct engine_configuration_s { /** offset 976 bit 1 */ bool todoClutchDownPinInverted : 1; + /** + offset 976 bit 2 */ + bool unusedBit_247_2 : 1; + /** + offset 976 bit 3 */ + bool unusedBit_247_3 : 1; + /** + offset 976 bit 4 */ + bool unusedBit_247_4 : 1; + /** + offset 976 bit 5 */ + bool unusedBit_247_5 : 1; + /** + offset 976 bit 6 */ + bool unusedBit_247_6 : 1; + /** + offset 976 bit 7 */ + bool unusedBit_247_7 : 1; + /** + offset 976 bit 8 */ + bool unusedBit_247_8 : 1; + /** + offset 976 bit 9 */ + bool unusedBit_247_9 : 1; + /** + offset 976 bit 10 */ + bool unusedBit_247_10 : 1; + /** + offset 976 bit 11 */ + bool unusedBit_247_11 : 1; + /** + offset 976 bit 12 */ + bool unusedBit_247_12 : 1; + /** + offset 976 bit 13 */ + bool unusedBit_247_13 : 1; + /** + offset 976 bit 14 */ + bool unusedBit_247_14 : 1; + /** + offset 976 bit 15 */ + bool unusedBit_247_15 : 1; + /** + offset 976 bit 16 */ + bool unusedBit_247_16 : 1; + /** + offset 976 bit 17 */ + bool unusedBit_247_17 : 1; + /** + offset 976 bit 18 */ + bool unusedBit_247_18 : 1; + /** + offset 976 bit 19 */ + bool unusedBit_247_19 : 1; + /** + offset 976 bit 20 */ + bool unusedBit_247_20 : 1; + /** + offset 976 bit 21 */ + bool unusedBit_247_21 : 1; + /** + offset 976 bit 22 */ + bool unusedBit_247_22 : 1; + /** + offset 976 bit 23 */ + bool unusedBit_247_23 : 1; + /** + offset 976 bit 24 */ + bool unusedBit_247_24 : 1; + /** + offset 976 bit 25 */ + bool unusedBit_247_25 : 1; + /** + offset 976 bit 26 */ + bool unusedBit_247_26 : 1; + /** + offset 976 bit 27 */ + bool unusedBit_247_27 : 1; + /** + offset 976 bit 28 */ + bool unusedBit_247_28 : 1; + /** + offset 976 bit 29 */ + bool unusedBit_247_29 : 1; + /** + offset 976 bit 30 */ + bool unusedBit_247_30 : 1; + /** + offset 976 bit 31 */ + bool unusedBit_247_31 : 1; /** * offset 980 */ @@ -2928,4 +3108,4 @@ typedef struct persistent_config_s persistent_config_s; #endif // end -// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration/rusefi_config.txt Wed Dec 11 16:41:07 EST 2019 +// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration/rusefi_config.txt Sat Dec 21 19:54:17 EST 2019 diff --git a/firmware/config/boards/kinetis/config/controllers/algo/rusefi_generated.h b/firmware/config/boards/kinetis/config/controllers/algo/rusefi_generated.h index 38a8b9a7a1..ef83fd665a 100644 --- a/firmware/config/boards/kinetis/config/controllers/algo/rusefi_generated.h +++ b/firmware/config/boards/kinetis/config/controllers/algo/rusefi_generated.h @@ -378,6 +378,7 @@ #define CMD_PINS "pins" #define CMD_REBOOT "reboot" #define CMD_REBOOT_DFU "reboot_dfu" +#define CMD_RESET_ENGINE_SNIFFER "reset_engine_chart" #define CMD_TRIGGER_HW_INPUT "trigger_hw_input" #define CMD_TRIGGERINFO "triggerinfo" #define CMD_WRITECONFIG "writeconfig" @@ -1849,6 +1850,64 @@ #define trigger_type_e_enum "custom toothed wheel", "Ford Aspire", "Dodge Neon 1995", "Miata NA", "Miata NB", "GM_7X", "Cooper R50", "Mazda SOHC 4", "60/2", "36/1", "Honda 4+24+1", "Mitsubishi", "Honda 4+24", "Honda 1+4+24", "Dodge Neon 2003", "Mazda DOHC 1+4", "1+1", "1+60/2", "Single Tooth", "Dodge Ram 1+16", "60/2 VW", "Honda 1+24", "Dodge Stratus", "36_2_2_2", "Nissan Primera", "2JZ", "Rover K", "GM LS 24", "Honda CBR 600", "2JZ_1_12", "Honda CBR 600 custom", "3/1 skipped" , "Dodge Neon 2003 crank", "Miata VVT", "trg34", "trg35", "Subaru 7+6", "Jeep 18-2-2-2", "WIP", "Dodge Neon 1995 crank only", "Jeep XJ 4 cyl", "FiatIAQ_P8", "Mazda Z5", "trg43", "trg44", "trg45", "INVALID" #define trigger_type_offset 524 #define trigger_type_offset_hex 20c +#define trigger_unusedBit_4_10_offset 528 +#define trigger_unusedBit_4_10_offset_hex 210 +#define trigger_unusedBit_4_11_offset 528 +#define trigger_unusedBit_4_11_offset_hex 210 +#define trigger_unusedBit_4_12_offset 528 +#define trigger_unusedBit_4_12_offset_hex 210 +#define trigger_unusedBit_4_13_offset 528 +#define trigger_unusedBit_4_13_offset_hex 210 +#define trigger_unusedBit_4_14_offset 528 +#define trigger_unusedBit_4_14_offset_hex 210 +#define trigger_unusedBit_4_15_offset 528 +#define trigger_unusedBit_4_15_offset_hex 210 +#define trigger_unusedBit_4_16_offset 528 +#define trigger_unusedBit_4_16_offset_hex 210 +#define trigger_unusedBit_4_17_offset 528 +#define trigger_unusedBit_4_17_offset_hex 210 +#define trigger_unusedBit_4_18_offset 528 +#define trigger_unusedBit_4_18_offset_hex 210 +#define trigger_unusedBit_4_19_offset 528 +#define trigger_unusedBit_4_19_offset_hex 210 +#define trigger_unusedBit_4_20_offset 528 +#define trigger_unusedBit_4_20_offset_hex 210 +#define trigger_unusedBit_4_21_offset 528 +#define trigger_unusedBit_4_21_offset_hex 210 +#define trigger_unusedBit_4_22_offset 528 +#define trigger_unusedBit_4_22_offset_hex 210 +#define trigger_unusedBit_4_23_offset 528 +#define trigger_unusedBit_4_23_offset_hex 210 +#define trigger_unusedBit_4_24_offset 528 +#define trigger_unusedBit_4_24_offset_hex 210 +#define trigger_unusedBit_4_25_offset 528 +#define trigger_unusedBit_4_25_offset_hex 210 +#define trigger_unusedBit_4_26_offset 528 +#define trigger_unusedBit_4_26_offset_hex 210 +#define trigger_unusedBit_4_27_offset 528 +#define trigger_unusedBit_4_27_offset_hex 210 +#define trigger_unusedBit_4_28_offset 528 +#define trigger_unusedBit_4_28_offset_hex 210 +#define trigger_unusedBit_4_29_offset 528 +#define trigger_unusedBit_4_29_offset_hex 210 +#define trigger_unusedBit_4_30_offset 528 +#define trigger_unusedBit_4_30_offset_hex 210 +#define trigger_unusedBit_4_31_offset 528 +#define trigger_unusedBit_4_31_offset_hex 210 +#define trigger_unusedBit_4_3_offset 528 +#define trigger_unusedBit_4_3_offset_hex 210 +#define trigger_unusedBit_4_4_offset 528 +#define trigger_unusedBit_4_4_offset_hex 210 +#define trigger_unusedBit_4_5_offset 528 +#define trigger_unusedBit_4_5_offset_hex 210 +#define trigger_unusedBit_4_6_offset 528 +#define trigger_unusedBit_4_6_offset_hex 210 +#define trigger_unusedBit_4_7_offset 528 +#define trigger_unusedBit_4_7_offset_hex 210 +#define trigger_unusedBit_4_8_offset 528 +#define trigger_unusedBit_4_8_offset_hex 210 +#define trigger_unusedBit_4_9_offset 528 +#define trigger_unusedBit_4_9_offset_hex 210 #define trigger_unusedCustomIsSynchronizationNeeded_offset 528 #define trigger_unusedCustomIsSynchronizationNeeded_offset_hex 210 #define trigger_unusedCustomNeedSecondTriggerInput_offset 528 @@ -1945,6 +2004,68 @@ #define unusedAnotherOne_offset_hex 2e8 #define unusedAtOldBoardConfigurationEnd_offset 988 #define unusedAtOldBoardConfigurationEnd_offset_hex 3dc +#define unusedBit_247_10_offset 976 +#define unusedBit_247_10_offset_hex 3d0 +#define unusedBit_247_11_offset 976 +#define unusedBit_247_11_offset_hex 3d0 +#define unusedBit_247_12_offset 976 +#define unusedBit_247_12_offset_hex 3d0 +#define unusedBit_247_13_offset 976 +#define unusedBit_247_13_offset_hex 3d0 +#define unusedBit_247_14_offset 976 +#define unusedBit_247_14_offset_hex 3d0 +#define unusedBit_247_15_offset 976 +#define unusedBit_247_15_offset_hex 3d0 +#define unusedBit_247_16_offset 976 +#define unusedBit_247_16_offset_hex 3d0 +#define unusedBit_247_17_offset 976 +#define unusedBit_247_17_offset_hex 3d0 +#define unusedBit_247_18_offset 976 +#define unusedBit_247_18_offset_hex 3d0 +#define unusedBit_247_19_offset 976 +#define unusedBit_247_19_offset_hex 3d0 +#define unusedBit_247_20_offset 976 +#define unusedBit_247_20_offset_hex 3d0 +#define unusedBit_247_21_offset 976 +#define unusedBit_247_21_offset_hex 3d0 +#define unusedBit_247_22_offset 976 +#define unusedBit_247_22_offset_hex 3d0 +#define unusedBit_247_23_offset 976 +#define unusedBit_247_23_offset_hex 3d0 +#define unusedBit_247_24_offset 976 +#define unusedBit_247_24_offset_hex 3d0 +#define unusedBit_247_25_offset 976 +#define unusedBit_247_25_offset_hex 3d0 +#define unusedBit_247_26_offset 976 +#define unusedBit_247_26_offset_hex 3d0 +#define unusedBit_247_27_offset 976 +#define unusedBit_247_27_offset_hex 3d0 +#define unusedBit_247_28_offset 976 +#define unusedBit_247_28_offset_hex 3d0 +#define unusedBit_247_29_offset 976 +#define unusedBit_247_29_offset_hex 3d0 +#define unusedBit_247_2_offset 976 +#define unusedBit_247_2_offset_hex 3d0 +#define unusedBit_247_30_offset 976 +#define unusedBit_247_30_offset_hex 3d0 +#define unusedBit_247_31_offset 976 +#define unusedBit_247_31_offset_hex 3d0 +#define unusedBit_247_3_offset 976 +#define unusedBit_247_3_offset_hex 3d0 +#define unusedBit_247_4_offset 976 +#define unusedBit_247_4_offset_hex 3d0 +#define unusedBit_247_5_offset 976 +#define unusedBit_247_5_offset_hex 3d0 +#define unusedBit_247_6_offset 976 +#define unusedBit_247_6_offset_hex 3d0 +#define unusedBit_247_7_offset 976 +#define unusedBit_247_7_offset_hex 3d0 +#define unusedBit_247_8_offset 976 +#define unusedBit_247_8_offset_hex 3d0 +#define unusedBit_247_9_offset 976 +#define unusedBit_247_9_offset_hex 3d0 +#define unusedBit_34_31_offset 76 +#define unusedBit_34_31_offset_hex 4c #define unusedErrorPin_offset 2040 #define unusedErrorPin_offset_hex 7f8 #define unusedFlexFuelSensor_offset 3100 diff --git a/firmware/tunerstudio/rusefi_kinetis.ini b/firmware/tunerstudio/rusefi_kinetis.ini index de38ec4432..7359318f46 100644 --- a/firmware/tunerstudio/rusefi_kinetis.ini +++ b/firmware/tunerstudio/rusefi_kinetis.ini @@ -85,7 +85,7 @@ enable2ndByteCanID = false ; see PAGE_0_SIZE in C source code ; CONFIG_DEFINITION_START -; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration/rusefi_config.txt Sun Dec 08 00:34:54 EST 2019 +; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on integration/rusefi_config.txt Sat Dec 21 19:54:17 EST 2019 pageSize = 20000 page = 1 @@ -125,6 +125,7 @@ page = 1 issue_294_29 = bits, U32, 76, [28:28], "false", "true" issue_294_30 = bits, U32, 76, [29:29], "false", "true" issue_294_31 = bits, U32, 76, [30:30], "false", "true" + unusedBit_34_31 = bits, U32, 76, [31:31], "false", "true" tpsMin = scalar, S16, 80, "ADC", 1, 0, 0, 1023, 0 tpsMax = scalar, S16, 82, "ADC", 1, 0, 0, 1023, 0 tpsErrorDetectionTooLow = scalar, S16, 84, "%", 1, 0, -40, 200, 0 @@ -207,6 +208,35 @@ page = 1 trigger_unusedCustomIsSynchronizationNeeded= bits, U32, 528, [0:0], "false", "true" trigger_unusedCustomNeedSecondTriggerInput= bits, U32, 528, [1:1], "false", "true" trigger_useOnlyFirstChannel= bits, U32, 528, [2:2], "false", "true" + trigger_unusedBit_4_3 = bits, U32, 528, [3:3], "false", "true" + trigger_unusedBit_4_4 = bits, U32, 528, [4:4], "false", "true" + trigger_unusedBit_4_5 = bits, U32, 528, [5:5], "false", "true" + trigger_unusedBit_4_6 = bits, U32, 528, [6:6], "false", "true" + trigger_unusedBit_4_7 = bits, U32, 528, [7:7], "false", "true" + trigger_unusedBit_4_8 = bits, U32, 528, [8:8], "false", "true" + trigger_unusedBit_4_9 = bits, U32, 528, [9:9], "false", "true" + trigger_unusedBit_4_10 = bits, U32, 528, [10:10], "false", "true" + trigger_unusedBit_4_11 = bits, U32, 528, [11:11], "false", "true" + trigger_unusedBit_4_12 = bits, U32, 528, [12:12], "false", "true" + trigger_unusedBit_4_13 = bits, U32, 528, [13:13], "false", "true" + trigger_unusedBit_4_14 = bits, U32, 528, [14:14], "false", "true" + trigger_unusedBit_4_15 = bits, U32, 528, [15:15], "false", "true" + trigger_unusedBit_4_16 = bits, U32, 528, [16:16], "false", "true" + trigger_unusedBit_4_17 = bits, U32, 528, [17:17], "false", "true" + trigger_unusedBit_4_18 = bits, U32, 528, [18:18], "false", "true" + trigger_unusedBit_4_19 = bits, U32, 528, [19:19], "false", "true" + trigger_unusedBit_4_20 = bits, U32, 528, [20:20], "false", "true" + trigger_unusedBit_4_21 = bits, U32, 528, [21:21], "false", "true" + trigger_unusedBit_4_22 = bits, U32, 528, [22:22], "false", "true" + trigger_unusedBit_4_23 = bits, U32, 528, [23:23], "false", "true" + trigger_unusedBit_4_24 = bits, U32, 528, [24:24], "false", "true" + trigger_unusedBit_4_25 = bits, U32, 528, [25:25], "false", "true" + trigger_unusedBit_4_26 = bits, U32, 528, [26:26], "false", "true" + trigger_unusedBit_4_27 = bits, U32, 528, [27:27], "false", "true" + trigger_unusedBit_4_28 = bits, U32, 528, [28:28], "false", "true" + trigger_unusedBit_4_29 = bits, U32, 528, [29:29], "false", "true" + trigger_unusedBit_4_30 = bits, U32, 528, [30:30], "false", "true" + trigger_unusedBit_4_31 = bits, U32, 528, [31:31], "false", "true" trigger_customTotalToothCount = scalar, S32, 532, "number", 1, 0.0, 0, 500.0, 0 trigger_customSkippedToothCount = scalar, S32, 536, "number", 1, 0.0, 0, 500.0, 0 hip9011SpiDevice = bits,U32, 540, [0:7], "Off", "SPI1", "SPI2", "SPI3", "SPI4" @@ -502,6 +532,36 @@ page = 1 ;no TS info - skipping unused offset 972 todoClutchUpPinInverted = bits, U32, 976, [0:0], "false", "true" todoClutchDownPinInverted= bits, U32, 976, [1:1], "false", "true" + unusedBit_247_2 = bits, U32, 976, [2:2], "false", "true" + unusedBit_247_3 = bits, U32, 976, [3:3], "false", "true" + unusedBit_247_4 = bits, U32, 976, [4:4], "false", "true" + unusedBit_247_5 = bits, U32, 976, [5:5], "false", "true" + unusedBit_247_6 = bits, U32, 976, [6:6], "false", "true" + unusedBit_247_7 = bits, U32, 976, [7:7], "false", "true" + unusedBit_247_8 = bits, U32, 976, [8:8], "false", "true" + unusedBit_247_9 = bits, U32, 976, [9:9], "false", "true" + unusedBit_247_10 = bits, U32, 976, [10:10], "false", "true" + unusedBit_247_11 = bits, U32, 976, [11:11], "false", "true" + unusedBit_247_12 = bits, U32, 976, [12:12], "false", "true" + unusedBit_247_13 = bits, U32, 976, [13:13], "false", "true" + unusedBit_247_14 = bits, U32, 976, [14:14], "false", "true" + unusedBit_247_15 = bits, U32, 976, [15:15], "false", "true" + unusedBit_247_16 = bits, U32, 976, [16:16], "false", "true" + unusedBit_247_17 = bits, U32, 976, [17:17], "false", "true" + unusedBit_247_18 = bits, U32, 976, [18:18], "false", "true" + unusedBit_247_19 = bits, U32, 976, [19:19], "false", "true" + unusedBit_247_20 = bits, U32, 976, [20:20], "false", "true" + unusedBit_247_21 = bits, U32, 976, [21:21], "false", "true" + unusedBit_247_22 = bits, U32, 976, [22:22], "false", "true" + unusedBit_247_23 = bits, U32, 976, [23:23], "false", "true" + unusedBit_247_24 = bits, U32, 976, [24:24], "false", "true" + unusedBit_247_25 = bits, U32, 976, [25:25], "false", "true" + unusedBit_247_26 = bits, U32, 976, [26:26], "false", "true" + unusedBit_247_27 = bits, U32, 976, [27:27], "false", "true" + unusedBit_247_28 = bits, U32, 976, [28:28], "false", "true" + unusedBit_247_29 = bits, U32, 976, [29:29], "false", "true" + unusedBit_247_30 = bits, U32, 976, [30:30], "false", "true" + unusedBit_247_31 = bits, U32, 976, [31:31], "false", "true" etbIo1_directionPin1 = bits, U08, 980, [0:7], "NONE", "INVALID", "PA0", "PA1", "PA2", "PA3", "PA4", "PA5", "PA6", "PA7", "PA8", "PA9", "PA10", "PA11", "PA12", "PA13", "PA14", "PA15", "PA16", "PA17", "PB0", "PB1", "PB2", "PB3", "PB4", "PB5", "PB6", "PB7", "PB8", "PB9", "PB10", "PB11", "PB12", "PB13", "PB14", "PB15", "PB16", "PB17", "PC0", "PC1", "PC2", "PC3", "PC4", "PC5", "PC6", "PC7", "PC8", "PC9", "PC10", "PC11", "PC12", "PC13", "PC14", "PC15", "PC16", "PC17", "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", "PD8", "PD9", "PD10", "PD11", "PD12", "PD13", "PD14", "PD15", "PD16", "PD17", "PE0", "PE1", "PE2", "PE3", "PE4", "PE5", "PE6", "PE7", "PE8", "PE9", "PE10", "PE11", "PE12", "PE13", "PE14", "PE15", "PE16", "PE17", "TLE6240_1", "TLE6240_2", "TLE6240_3", "TLE6240_4", "TLE6240_5", "TLE6240_6", "TLE6240_7", "TLE6240_8", "TLE6240_9", "TLE6240_10", "TLE6240_11", "TLE6240_12", "TLE6240_13", "TLE6240_14", "TLE6240_15", "TLE6240_16" etbIo1_directionPin2 = bits, U08, 981, [0:7], "NONE", "INVALID", "PA0", "PA1", "PA2", "PA3", "PA4", "PA5", "PA6", "PA7", "PA8", "PA9", "PA10", "PA11", "PA12", "PA13", "PA14", "PA15", "PA16", "PA17", "PB0", "PB1", "PB2", "PB3", "PB4", "PB5", "PB6", "PB7", "PB8", "PB9", "PB10", "PB11", "PB12", "PB13", "PB14", "PB15", "PB16", "PB17", "PC0", "PC1", "PC2", "PC3", "PC4", "PC5", "PC6", "PC7", "PC8", "PC9", "PC10", "PC11", "PC12", "PC13", "PC14", "PC15", "PC16", "PC17", "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", "PD8", "PD9", "PD10", "PD11", "PD12", "PD13", "PD14", "PD15", "PD16", "PD17", "PE0", "PE1", "PE2", "PE3", "PE4", "PE5", "PE6", "PE7", "PE8", "PE9", "PE10", "PE11", "PE12", "PE13", "PE14", "PE15", "PE16", "PE17", "TLE6240_1", "TLE6240_2", "TLE6240_3", "TLE6240_4", "TLE6240_5", "TLE6240_6", "TLE6240_7", "TLE6240_8", "TLE6240_9", "TLE6240_10", "TLE6240_11", "TLE6240_12", "TLE6240_13", "TLE6240_14", "TLE6240_15", "TLE6240_16" etbIo1_controlPin1 = bits, U08, 982, [0:7], "NONE", "INVALID", "PA0", "PA1", "PA2", "PA3", "PA4", "PA5", "PA6", "PA7", "PA8", "PA9", "PA10", "PA11", "PA12", "PA13", "PA14", "PA15", "PA16", "PA17", "PB0", "PB1", "PB2", "PB3", "PB4", "PB5", "PB6", "PB7", "PB8", "PB9", "PB10", "PB11", "PB12", "PB13", "PB14", "PB15", "PB16", "PB17", "PC0", "PC1", "PC2", "PC3", "PC4", "PC5", "PC6", "PC7", "PC8", "PC9", "PC10", "PC11", "PC12", "PC13", "PC14", "PC15", "PC16", "PC17", "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", "PD8", "PD9", "PD10", "PD11", "PD12", "PD13", "PD14", "PD15", "PD16", "PD17", "PE0", "PE1", "PE2", "PE3", "PE4", "PE5", "PE6", "PE7", "PE8", "PE9", "PE10", "PE11", "PE12", "PE13", "PE14", "PE15", "PE16", "PE17", "TLE6240_1", "TLE6240_2", "TLE6240_3", "TLE6240_4", "TLE6240_5", "TLE6240_6", "TLE6240_7", "TLE6240_8", "TLE6240_9", "TLE6240_10", "TLE6240_11", "TLE6240_12", "TLE6240_13", "TLE6240_14", "TLE6240_15", "TLE6240_16" @@ -1344,6 +1404,10 @@ fileVersion = { 20190701 } wueAfrTargetOffset = array, S16, [ 16], ":1", 0.1, 0.0, -3.0, 3.0, 1; wueAnalRecommend = array, U08, [ 16], "%", 1.00, 0.0, 100, 255.00, 0 +; These are inverted (false = "Yes") so that they default to enabled + enableLogDebugChannels = bits, U08, [0:0], "Yes", "No" + enableLogErrorList = bits, U08, [0:0], "Yes", "No" + [ConstantsExtensions] defaultValue = wueAfrTargetOffset, -1.5 -1.4 -1.15 -0.95 -0.775 -0.65 -0.5625 -0.5 -0.4375 -0.375 -0.3125 -0.25 -0.1875 -0.125 -0.0625 0 @@ -2004,16 +2068,16 @@ gaugeCategory = Throttle Body (incl. ETB) entry = coilDutyCycle, "dwell: coil duty cycle", float,"%.3f" entry = currentTargetAfr,"fuel: target AFR", float,"%.3f" - entry = accelerationX, "Acceleration: X", float,"%.2f" - entry = accelerationY, "Acceleration: Y", float,"%.2f" - entry = egt1, "EGT1", float,"%.1f" - entry = egt2, "EGT2", float,"%.1f" - entry = egt3, "EGT3", float,"%.1f" - entry = egt4, "EGT4", float,"%.1f" - entry = egt5, "EGT5", float,"%.1f" - entry = egt6, "EGT6", float,"%.1f" - entry = egt7, "EGT7", float,"%.1f" - entry = egt8, "EGT8", float,"%.1f" + entry = accelerationX, "Acceleration: X", float,"%.2f", { LIS302DLCsPin != 0 } + entry = accelerationY, "Acceleration: Y", float,"%.2f", { LIS302DLCsPin != 0 } + entry = egt1, "EGT1", float,"%.1f", { max31855_cs1 != 0} + entry = egt2, "EGT2", float,"%.1f", { max31855_cs2 != 0} + entry = egt3, "EGT3", float,"%.1f", { max31855_cs3 != 0} + entry = egt4, "EGT4", float,"%.1f", { max31855_cs4 != 0} + entry = egt5, "EGT5", float,"%.1f", { max31855_cs5 != 0} + entry = egt6, "EGT6", float,"%.1f", { max31855_cs6 != 0} + entry = egt7, "EGT7", float,"%.1f", { max31855_cs7 != 0} + entry = egt8, "EGT8", float,"%.1f", { max31855_cs8 != 0} entry = engineLoadAccelExtra, "fuel: engine load acceleration extra fuel",float, "%.3f" entry = engineLoadDelta, "fuel: load change",float, "%.3f" @@ -2035,54 +2099,54 @@ gaugeCategory = Throttle Body (incl. ETB) ; is there a way to log parameter? entry = debugMode, "debugMode",int,"%d" ; Alternator_PID: alternator duty cycle ; DBG_TPS_ACCEL: from TPS - entry = debugFloatField1, "debug f1",float,"%.4f" + entry = debugFloatField1, "debug f1",float,"%.4f", { !enableLogDebugChannels } ; Alternator_PID: current integration term ; DBG_TPS_ACCEL: to TPS - entry = debugFloatField2, "debug f2: iTerm",float,"%.4f" + entry = debugFloatField2, "debug f2: iTerm",float,"%.4f", { !enableLogDebugChannels } ; Alternator_PID: previous error ; DBG_TPS_ACCEL: tps<>tps table value - entry = debugFloatField3, "debug f3: prevError",float,"%.4f" + entry = debugFloatField3, "debug f3: prevError",float,"%.4f", { !enableLogDebugChannels } ; Alternator_PID: I setting ; DBG_TPS_ACCEL: extra fuel - entry = debugFloatField4, "debug f4: iParam",float,"%.4f" + entry = debugFloatField4, "debug f4: iParam",float,"%.4f", { !enableLogDebugChannels } ; Alternator_PID: D setting - entry = debugFloatField5, "debug f5: dParam",float,"%.4f" + entry = debugFloatField5, "debug f5: dParam",float,"%.4f", { !enableLogDebugChannels } ; Alternator_PID: dTerm - entry = debugFloatField6, "debug f6: dTerm",float,"%.4f" + entry = debugFloatField6, "debug f6: dTerm",float,"%.4f", { !enableLogDebugChannels } - entry = debugFloatField7, "debug f7",float,"%.4f" + entry = debugFloatField7, "debug f7",float,"%.4f", { !enableLogDebugChannels } ; Alternator_PID: P setting - entry = debugIntField1, "debug i1: pParam",int,"%d" + entry = debugIntField1, "debug i1: pParam",int,"%d", { !enableLogDebugChannels } ; Alternator_PID: offset setting - entry = debugIntField2, "debug i2: offset",int,"%d" + entry = debugIntField2, "debug i2: offset",int,"%d", { !enableLogDebugChannels } ; Alternator_PID: PID reset counter - entry = debugIntField3, "debug i3",int,"%d" + entry = debugIntField3, "debug i3",int,"%d", { !enableLogDebugChannels } + + entry = debugIntField4, "debug i4",int,"%d", { !enableLogDebugChannels } + + entry = debugIntField5, "debug i5",int,"%d", { !enableLogDebugChannels } - entry = debugIntField4, "debug i4",int,"%d" - entry = debugIntField5, "debug i5",int,"%d" - - entry = engineMode, "Engine Mode",int,"%d" entry = warningCounter, "warning: counter",int,"%d" entry = lastErrorCode, "warning: last",int,"%d" - entry = recentErrorCode0, "error 0",int,"%d" - entry = recentErrorCode1, "error 1",int,"%d" - entry = recentErrorCode2, "error 2",int,"%d" - entry = recentErrorCode3, "error 3",int,"%d" - entry = recentErrorCode4, "error 4",int,"%d" - entry = recentErrorCode5, "error 5",int,"%d" - entry = recentErrorCode6, "error 6",int,"%d" - entry = recentErrorCode7, "error 7",int,"%d" + entry = recentErrorCode0, "error 0",int,"%d", { !enableLogErrorList } + entry = recentErrorCode1, "error 1",int,"%d", { !enableLogErrorList } + entry = recentErrorCode2, "error 2",int,"%d", { !enableLogErrorList } + entry = recentErrorCode3, "error 3",int,"%d", { !enableLogErrorList } + entry = recentErrorCode4, "error 4",int,"%d", { !enableLogErrorList } + entry = recentErrorCode5, "error 5",int,"%d", { !enableLogErrorList } + entry = recentErrorCode6, "error 6",int,"%d", { !enableLogErrorList } + entry = recentErrorCode7, "error 7",int,"%d", { !enableLogErrorList } entry = internalMcuTemperature, "CPU Temperature",float,"%.2f" entry = tCharge, "tCharge",float,"%.3f" @@ -2258,6 +2322,7 @@ menuDialog = main menu = "&Controller" subMenu = ecuStimulator, "ECU stimulator" + subMenu = datalogSettings, "Datalogging" subMenu = ioTest, "Bench test" subMenu = engineTypeDialog, "Popular vehicles" subMenu = std_separator @@ -2678,13 +2743,13 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00" field = "Idle Stepper Enable", stepperEnablePin field = "Fuel Pump Pin", fuelPumpPin field = "Fuel Pump Pin Mode", fuelPumpPinMode - field = "ETB#1 Dir #1", etb1_directionPin1 - field = "ETB#1 Dir #2", etb1_directionPin2 - field = "ETB#1 Control #1", etb1_controlPin1 - field = "etb1_controlPinMode", etb1_controlPinMode - field = "ETB#2 Dir #1", etb2_directionPin1 - field = "ETB#2 Dir #2", etb2_directionPin2 - field = "ETB#2 Control #1", etb2_controlPin1 + field = "ETB#1 Dir #1", etbIo1_directionPin1 + field = "ETB#1 Dir #2", etbIo1_directionPin2 + field = "ETB#1 Control #1", etbIo1_controlPin1 + field = "etb1_controlPinMode", etbIo1_controlPinMode + field = "ETB#2 Dir #1", etbIo2_directionPin1 + field = "ETB#2 Dir #2", etbIo2_directionPin2 + field = "ETB#2 Control #1", etbIo2_controlPin1 field = "SD CS Pin", sdCardCsPin field = "MIL / Check Engine Pin", malfunctionIndicatorPin field = "MIL / Check Engine Pin Mode", malfunctionIndicatorPinMode @@ -3531,7 +3596,7 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00" field = "No1 Control #1", etbIo1_controlPin1, {throttlePedalPositionAdcChannel != 16 && etb_use_two_wires == 0} field = "No2 Direction #1", etbIo2_directionPin1, {throttlePedalPositionAdcChannel != 16} field = "No2 Direction #2", etbIo2_directionPin2, {throttlePedalPositionAdcChannel != 16} - field = "No2 Control #1", etb2_controlPin1, {throttlePedalPositionAdcChannel != 16 && etb_use_two_wires == 0} + field = "No2 Control #1", etbIo2_controlPin1, {throttlePedalPositionAdcChannel != 16 && etb_use_two_wires == 0} field = "TPS#2 min", tps2Min, {etbIo2_directionPin1 != 0} field = "TPS#2 max", tps2Max, {etbIo2_directionPin1 != 0} panel = etbPidDialog @@ -3632,6 +3697,11 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00" field = "" field = "Engine chart size", engineChartSize + dialog = datalogSettings, "Datalogging Settings" + field = "#Disabling optional logging may increase update rate!" + field = "Log debug channels", enableLogDebugChannels + field = "Log recent errors list", enableLogErrorList + ; Racing Features->Launch Control dialog = smLaunchControl, "Launch Control Settings NOT WORKING" field = "RPM Step1 Limit", step1rpm