Any strange behaviour, crashing issues etc, post them here! Problems compiling the firmware should go in the General support section rather than here
By Kalns
#54894
Hello.
I have made pazi88 m42 ecu, revision 2.3 firmware 202108

I wanted to enable input for launch control, and noticed that after ecu restart, engine will start poorly, has sync etc, but has so poor idle it stalls, missfires. It feels like heavily retatrded ignition, like launch would be enabled.
With wiring everything is ok.
When I disable launch it reverts back to normal.
So I tried secondary fuel table to be enabled by thesame switched input, and thesame thing accured again.

How can I troubleshoot this and what is nececery from me to troubleshoot it ?
By Kalns
#54915
Beleave me, I am reading it, but in here, there is no troubleshooting section that would explain why I am getting the response from engine as I described. And since its not only for launch control, but even for spark / fuel map switching using input makes me wonder why is that.. Thatswhy I am asking in forum.
Please drop link to section where its described, i`ll be happy to read it..

Its not in here..
https://wiki.speeduino.com/en/configura ... _Flatshift
User avatar
By PSIG
#54918
First-level diagnostics would be to use this page of the Wiki, and verify all of the defined set-up and settings are appropriate and correct for your application, including the features you are not using. Not to be harsh at all, but this is saying the same suggestion as the last response, but with more words. ;)

If no joy (and basically any time you ask for help), you should post your tune (*.msq) file, and a log using that exact tune, showing the issue. You could tell us your settings and such, but it is much easier for us to look at them (and other things you didn't know to tell us) in the tune file. The log file tells us thousands of data points while running, such as the commanded timing advance, and lots of other stuff I can't explain here.
By Kalns
#54920
Well I think its obvious, but maybe not everyone checks everything befor posting in forum..
Here is my current tune, with flatshift enabled, and when i disable only that engine works fine with no problems.

One thing I have found out in bmw oem wiring is that I acctualy have semi-sequential injection, but these engine constants work fine for me when launch or any other switched input is not enabled.
Attachments
(80.73 KiB) Downloaded 145 times
By LPG2CV
#54921
looking at your tune ( :D ), and this is simply my first thought.

it's not impossible that even though flat shift is disabled, that the pin selected for flat shift is not being assigned in the code but held high.

On the board selected, pin 9 is an injector pin, so it could mess up the fueling on one, or a pair of cylinders.

So if you enable flat shift, and set the pin as default, then burn, and than disable and burn again. Does that fix it?

Edit

looking again at the I/O Summary, The launch pin, is also pin 9, so this is very probable.

It's not clear in the config box that launch and flat shift are not independent.
By Kalns
#54924
I wired it to analog input 9, so i chose input 9.. maybe I should have left it to board default input analog input 51?
Yes indeed, one of injector outputs is using Digital pin9 of mcu.

To be honest, its a bit confusing, since I have used arduino previously, I know that there are multiple Analog and Digital inputs, both start from 0 to x, and seeing in tunerstudio just the number makes me dizzy, since I am looking either for a digital or analog pin.. It would be mutch more intuitive if it would state A0-A9 and D0-D9 for example in the dropdown boxes, and proper wiki offcourse..

I am folowing this schematic provided by pazi.

https://github.com/pazi88/Speeduino-M5x ... rev2.3.pdf
By LPG2CV
#54926
I'm not convinced it would be A51 :)

If it is going to be a pin for a switch, it is most likely going to be a digital pin.

However, if it helps, this is the pinout.

case 31:
//Pin mappings for the BMW PnP PCBs by pazi88.
#if defined(CORE_AVR)
//This is the regular MEGA2560 pin mapping
pinInjector1 = 8; //Output pin injector 1
pinInjector2 = 9; //Output pin injector 2
pinInjector3 = 10; //Output pin injector 3
pinInjector4 = 11; //Output pin injector 4
pinInjector5 = 12; //Output pin injector 5
pinInjector6 = 50; //Output pin injector 6
pinInjector7 = 39; //Output pin injector 7 (placeholder)
pinInjector8 = 42; //Output pin injector 8 (placeholder)
pinCoil1 = 40; //Pin for coil 1
pinCoil2 = 38; //Pin for coil 2
pinCoil3 = 52; //Pin for coil 3
pinCoil4 = 48; //Pin for coil 4
pinCoil5 = 36; //Pin for coil 5
pinCoil6 = 34; //Pin for coil 6
pinCoil7 = 46; //Pin for coil 7 (placeholder)
pinCoil8 = 53; //Pin for coil 8 (placeholder)
pinTrigger = 19; //The CAS pin
pinTrigger2 = 18; //The Cam Sensor pin
pinTrigger3 = 20; //The Cam sensor 2 pin
pinTPS = A2;//TPS input pin
pinMAP = A3; //MAP sensor pin
pinIAT = A0; //IAT sensor pin
pinCLT = A1; //CLT sensor pin
pinO2 = A8; //O2 Sensor pin
pinBat = A4; //Battery reference voltage pin
pinBaro = A5; //Baro sensor pin
pinDisplayReset = 41; // OLED reset pin
pinTachOut = 49; //Tacho output pin (Goes to ULN2003)
pinIdle1 = 5; //ICV pin1
pinIdle2 = 6; //ICV pin3
pinBoost = 7; //Boost control
pinVVT_1 = 4; //VVT1 output (intake vanos)
pinVVT_2 = 26; //VVT2 output (exhaust vanos)
pinFuelPump = 45; //Fuel pump output (Goes to ULN2003)
pinStepperDir = 16; //Stepper valve isn't used with these
pinStepperStep = 17; //Stepper valve isn't used with these
pinStepperEnable = 24; //Stepper valve isn't used with these
pinFan = 47; //Pin for the fan output (Goes to ULN2003)
pinLaunch = 51; //Launch control pin
pinFlex = 2; // Flex sensor
pinResetControl = 43; //Reset control output
pinVSS = 3; //VSS input pin
#elif defined(STM32F407xx)
pinInjector1 = PB15; //Output pin injector 1
pinInjector2 = PB14; //Output pin injector 2
pinInjector3 = PB12; //Output pin injector 3
pinInjector4 = PB13; //Output pin injector 4
pinInjector5 = PA8; //Output pin injector 5
pinInjector6 = PE7; //Output pin injector 6
pinInjector7 = PE13; //Output pin injector 7 (placeholder)
pinInjector8 = PE10; //Output pin injector 8 (placeholder)
pinCoil1 = PE2; //Pin for coil 1
pinCoil2 = PE3; //Pin for coil 2
pinCoil3 = PC13; //Pin for coil 3
pinCoil4 = PE6; //Pin for coil 4
pinCoil5 = PE4; //Pin for coil 5
pinCoil6 = PE5; //Pin for coil 6
pinCoil7 = PE0; //Pin for coil 7 (placeholder)
pinCoil8 = PB9; //Pin for coil 8 (placeholder)
pinTrigger = PD3; //The CAS pin
pinTrigger2 = PD4; //The Cam Sensor pin
pinTPS = PA2;//TPS input pin
pinMAP = PA3; //MAP sensor pin
pinIAT = PA0; //IAT sensor pin
pinCLT = PA1; //CLS sensor pin
pinO2 = PB0; //O2 Sensor pin
pinBat = PA4; //Battery reference voltage pin
pinBaro = PA5; //Baro sensor pin
pinDisplayReset = PE12; // OLED reset pin
pinTachOut = PE8; //Tacho output pin (Goes to ULN2003)
pinIdle1 = PD10; //ICV pin1
pinIdle2 = PD9; //ICV pin3
pinBoost = PD8; //Boost control
pinVVT_1 = PD11; //VVT1 output (intake vanos)
pinVVT_2 = PC7; //VVT2 output (exhaust vanos)
pinFuelPump = PE11; //Fuel pump output (Goes to ULN2003)
pinStepperDir = PB10; //Stepper valve isn't used with these
pinStepperStep = PB11; //Stepper valve isn't used with these
pinStepperEnable = PA15; //Stepper valve isn't used with these
pinFan = PE9; //Pin for the fan output (Goes to ULN2003)
pinLaunch = PB8; //Launch control pin
pinFlex = PD7; // Flex sensor
pinResetControl = PB7; //Reset control output
pinVSS = PB6; //VSS input pin
#endif
break;
By Kalns
#54928
Well and who could explain this ? Is it pin 8 or 51 ?

Should I consider to rewrite firmware to define pins correctly ? It shurely looks that it should not be done, and it should be self explanatory..
Vr Conditioner Noise when cranking

you could set 'skip revolutions' to 3, then it wo[…]

I uploaded logs and last tune and dyno plots look[…]

Hi, I am trying to assign Signed values to the x-a[…]

blitzbox

I've finally figured out why MAP and Lambda weren'[…]

Still can't find what you're looking for?