UAEFI vs 407disco (actual) startup times difference - SOLVED

Post Reply
gurov
Posts: 35
Joined: Wed Feb 07, 2024 10:43 pm
Location: nj
Github Username: ggurov
Slack: ggurov
Contact:

UAEFI vs 407disco (actual) startup times difference - SOLVED

Post by gurov »

kind of comparing apple to rotten potatoes here, but would be neat to have a reason for why delay after 12v is applied is different on UAEFI compared to basically same 407 disco setup:

UAEFI startup sequence, 4 super bright LEDS are stepper motor coils https://rusefi.com/online/view.php?msq=1623



407 disco actual based https://rusefi.com/online/view.php?msq=1624



the delay between switch on (+12v) and when the 4 leds start flashing (stepper motor moving home) is significantly longer on the 407 disco.

what could be the cause of that ? sdcard logging is turned off on 407 disco ecu. i tried turning spi busses off as well, and that made no difference.
Last edited by gurov on Fri Apr 12, 2024 12:24 am, edited 2 times in total.
1994 6speed supra turbo [ single turbo/1000cc ID/twin fuel pumps/bc2 262 cams ]. J&S safeguard for knock , UAEFI / 407 disco with rusefi / AEM EMS v2 / MS3pro PNP / Speeduino (mega2560 / teensy41 / stm32f411)
2020 BMW X3m - bootmod3 stage1
User avatar
AndreyB
Site Admin
Posts: 14368
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: UAEFI vs 407disco (actual) startup times difference

Post by AndreyB »

Try running uaEFI firmware on f407disco and vice versa?

A ton of compile time options are different between these two firmware one would be around https://github.com/rusefi/rusefi/commit/e8b1fc302f71a3df2162235dba02f0e3f91bf01f

One day someone should add some timestamps into start-up console message but for now maybe try once this change builds https://github.com/rusefi/rusefi/commit/05d744b8f29549af6a11e24fe2ffa3ab343cc63d
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
gurov
Posts: 35
Joined: Wed Feb 07, 2024 10:43 pm
Location: nj
Github Username: ggurov
Slack: ggurov
Contact:

Re: UAEFI vs 407disco (actual) startup times difference

Post by gurov »

hmm, perhaps once i get better gate drivers for the ignition setup on there that doesn't need to start inverted.

the pinout isn't quite the same between these two setups, so maybe disco firmware on uaefi could work if i set just a basic proof of life sign up.
1994 6speed supra turbo [ single turbo/1000cc ID/twin fuel pumps/bc2 262 cams ]. J&S safeguard for knock , UAEFI / 407 disco with rusefi / AEM EMS v2 / MS3pro PNP / Speeduino (mega2560 / teensy41 / stm32f411)
2020 BMW X3m - bootmod3 stage1
User avatar
AndreyB
Site Admin
Posts: 14368
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: UAEFI vs 407disco (actual) startup times difference

Post by AndreyB »

gurov wrote:
Tue Mar 12, 2024 3:06 pm
hmm, perhaps once i get better gate drivers for the ignition setup on there that doesn't need to start inverted.
Ohh that's what this is all about? Ignition setup depending on start-up time seems like a signal of danger ahead.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
gurov
Posts: 35
Joined: Wed Feb 07, 2024 10:43 pm
Location: nj
Github Username: ggurov
Slack: ggurov
Contact:

Re: UAEFI vs 407disco (actual) startup times difference

Post by gurov »

i'm using a low-side driver to drive the coils, uln2803a IC to pull down 5v low. ignition is in "inverted" mode in ignition setup.

so the startup time impacts that portion of the init sequence

in this video:

the LED array on the left is ignition coils (L2=cyl1, L3=cyl2, L4=cyl3, etc)

you can see they light up after switch on, and then go dark.

so a small quick blip would be fine, but charging for a few seconds before the "inverted" sets the right output to the pins:

image.png
image.png (6.15 KiB) Viewed 2048 times
1994 6speed supra turbo [ single turbo/1000cc ID/twin fuel pumps/bc2 262 cams ]. J&S safeguard for knock , UAEFI / 407 disco with rusefi / AEM EMS v2 / MS3pro PNP / Speeduino (mega2560 / teensy41 / stm32f411)
2020 BMW X3m - bootmod3 stage1
User avatar
AndreyB
Site Admin
Posts: 14368
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: UAEFI vs 407disco (actual) startup times difference

Post by AndreyB »

It would be off "startup times difference" topic to start discussing pull-ups etc.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
gurov
Posts: 35
Joined: Wed Feb 07, 2024 10:43 pm
Location: nj
Github Username: ggurov
Slack: ggurov
Contact:

Re: UAEFI vs 407disco (actual) startup times difference

Post by gurov »

it's not, that's just a way to generate a +5v signal for coils using this kind of driver and using "inverted" ignition setting.

that part works fine, and it works fine once it's initialized.

this is how old megasquirt1/2 would set up smart coil ignition from the front LED that were driven by low-side drivers.

regardles of this particular hardware setup.

problem statement: "Inverted ignition" setting takes too long to apply to running pin state

expectation is that default pin state would be the very very super first thing configured after power on, maybe right after saying hello, because it's set to inverted for a reason.
1994 6speed supra turbo [ single turbo/1000cc ID/twin fuel pumps/bc2 262 cams ]. J&S safeguard for knock , UAEFI / 407 disco with rusefi / AEM EMS v2 / MS3pro PNP / Speeduino (mega2560 / teensy41 / stm32f411)
2020 BMW X3m - bootmod3 stage1
User avatar
AndreyB
Site Admin
Posts: 14368
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: UAEFI vs 407disco (actual) startup times difference

Post by AndreyB »

At the moment that's DEFINITELY TOTALLY NOT THE CASE, PROCEED WITH CAUTION.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
Dron_Gus
contributor
contributor
Posts: 460
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: UAEFI vs 407disco (actual) startup times difference

Post by Dron_Gus »

Good practice is to have HW protection against unwanted state during power on. So cpu can stay under reset/flashing state without any hw harm.
Default pins states are defined in STM32 manual.
Yes it takes some time for FW to start, init, load settings and apply this settings to pins.
If reset state of STM32 gpios cause some unwanted activity on ECU output - better to review HW, add inverters, pull-downs/pull-ups, EN signals and so on.
gurov
Posts: 35
Joined: Wed Feb 07, 2024 10:43 pm
Location: nj
Github Username: ggurov
Slack: ggurov
Contact:

Re: UAEFI vs 407disco (actual) startup times difference

Post by gurov »

the startup time difference is solved by soldering sb10 on disco board bottom:

https://rusefi.com/forum/viewtopic.php?f=4&t=2747
1994 6speed supra turbo [ single turbo/1000cc ID/twin fuel pumps/bc2 262 cams ]. J&S safeguard for knock , UAEFI / 407 disco with rusefi / AEM EMS v2 / MS3pro PNP / Speeduino (mega2560 / teensy41 / stm32f411)
2020 BMW X3m - bootmod3 stage1
Post Reply