Page 1 of 1

Firmware issues?

Posted: Sun Oct 02, 2016 1:03 pm
by Snake____1
Hi there,

Just got my rusefi board soldered together and firmware loaded via SWD.

However

Once I have connected Tunerstudio @ baud 38400 PC10/11, it works fine. Until I change any setting and hit burn, it automatically disconnects. If i reconnect without resetting the board it start right back up again fine. But once I restart/reset the board I get the firmware FATAL error RED led of doom!

Any known issue?

BTW, if I ground PD6 during reset it reconnects fine again "firmware reset"

Regards,
Joachim
20161002_151017.jpg
20161002_151017.jpg (1.84 MiB) Viewed 13106 times

Re: Firmware issues?

Posted: Sun Oct 02, 2016 1:18 pm
by AndreyB
Wow, you've taken the hardest route with our brain board!

Is it the latest firmware? Is it matching TunerStudio project .ini file? Please post a screenshot of TunerStudio - I am interested in bottom indicators, one of them confirms if version is compatible.

Have you tried connecting with rusEfi console once you get the red LED? It could have a better error message.

As an option try older bundles just to confirm it's not that latest version is broken - see https://svn.code.sf.net/p/rusefi/code/firmware_archive/

Re: Firmware issues?

Posted: Sun Oct 02, 2016 1:37 pm
by Snake____1
Hi, yes I usually end up taking the hardest route on everything unfortunately. Latest meaning probably two-three weeks old? Same .ini in tunerstudio.

Unfortunately the console will not connect once the firmware fatal is present.

I will try an older firmware and check :)

Screenshot.png
Screenshot.png (402.91 KiB) Viewed 13105 times

Re: Firmware issues?

Posted: Sun Oct 02, 2016 1:40 pm
by AndreyB
"version" is green so looks good. please post once you try an older bundle (firmware and project), for instance https://svn.code.sf.net/p/rusefi/code/firmware_archive/rusefi_bundle_20160706.zip

do you have a discovery board by any chance? discovery would allow you both TS and console simultaneously. Do you have the 20x4 LCD by any chance?

Re: Firmware issues?

Posted: Sun Oct 02, 2016 2:48 pm
by Snake____1
OK, a couple of good tries later...

The 20160706_2358 build works OK without the firmware FATAL error.

I have a couple of LCD's here, but i can't seem to get the 20x4 to work... "the 128x64 doesn't work either, just had to try..."

No, unfortunately I don't have the Discovery board. Although I am tempted to get one now.

When hitting burn I have to manually connect afterwards. Is this normal?


*edit: The 20160907_0025 build also works OK without he FATAL fault.
Screenshot1.png
Screenshot1.png (34.23 KiB) Viewed 13101 times

Re: Firmware issues?

Posted: Sun Oct 02, 2016 3:16 pm
by AndreyB
Just made https://svn.code.sf.net/p/rusefi/code/firmware_archive/rusefi_bundle_20161002.zip
Just reset/flashed/created new project using this version.
Via USB/TTL it works, no red light but yes, same loss of connection on burn. Added a comment to https://sourceforge.net/p/rusefi/tickets/276/

Via virtual serial (micro USB on discovery) it works, no red light and no disconnect on burn.

Which exact setting are you changing to get the red light on current version? I would love to reproduce this issue on my end.

Re: Firmware issues?

Posted: Sun Oct 02, 2016 4:54 pm
by Snake____1
OK, long story short. Tacho output set to PD11 gives the FATAL error led...

Somehow I can't replicate the dead comm's fault at the moment. But I will keep trying :D

Re: Firmware issues?

Posted: Sun Oct 02, 2016 5:05 pm
by AndreyB
I've misread your original error report a bit now I see what was going on!

PD11 is assigned as one of joystick pins by default (default firmware is for Frankenso board) so using it for tach output produces a fatal pin conflict. Good news is you still have TTL communication and you can still go change joystick settings in order to fix your configuration, right?

todo: https://sourceforge.net/p/rusefi/tickets/316/

PS: joystick pins are not visible on TunerStudio, let me fix that right now...

Re: Firmware issues?

Posted: Sun Oct 02, 2016 5:16 pm
by AndreyB
Joystick pins are now visible on TunerStudio project, give it some time to build new bundle. Thank you for discovering two issues!

Re: Firmware issues?

Posted: Sun Oct 02, 2016 5:19 pm
by AndreyB
What is this green wire next to the button?

Re: Firmware issues?

Posted: Sun Oct 02, 2016 5:38 pm
by Snake____1
OSH park had an issue with my boards, so instead of them replacing them i just "repaired" the ones i got. There was no connection to GND at C1.

Re: Firmware issues?

Posted: Sun Oct 02, 2016 7:51 pm
by kb1gtt
Do I see another wire between the USB and push button? Is that a potential issue that should be resolved, or is that another MFG issue?

Re: Firmware issues?

Posted: Mon Oct 03, 2016 2:32 pm
by Snake____1
Heh, sorry you had to see that. That was my fault not reading the datasheet of the nuf2101mt1g before placing it, I placed it 180 degrees wrong and sadly the magic smoke escaped! So i budged the D-&D+ without ESD protection, it's fine on the bench but I'm getting a new filter before I put the board in my car :roll:

Re: Firmware issues?

Posted: Mon Oct 03, 2016 4:59 pm
by kb1gtt
No worries. If you think that silk screen or anything like that could have helped, by all means let me know and I'll see what I can do to make it less likely to happen. What ever you say can only make it stronger. Keep up the good work, I look forward to seeing what you make of it, and how well it goes.

Re: Firmware issues?

Posted: Sat Oct 08, 2016 9:18 pm
by Snake____1
So... I'm having a new issue. Just benchtesting now before trying it in my car I noticed it shows double the actual rpm's.

Settings are 4stroke with cam, 60/2.
Primary PA5, crank - 60/2
Secondary PC6, cam - single pulse.

Thing is, when i choose 4stroke without cam, it shows actual rpm.

If i switch over primary and secondary it doesn't recognize rpm's.

Everyting measures ok on my digital osciloscope...

Re: Firmware issues?

Posted: Sat Oct 08, 2016 10:31 pm
by AndreyB
Snake____1 wrote:Settings are 4stroke with cam, 60/2.
Primary PA5, crank - 60/2
Secondary PC6, cam - single pulse.
this is super error-prone dialog at the moment, can you please post screenshots of both ways you were trying it with more details?

Re: Firmware issues?

Posted: Sat Oct 08, 2016 11:27 pm
by Snake____1
I am currently feeding a 60/2 signal directly via an Arduino, with built in cam generator. This runs at a steady 1000rpm.

Signal on the Crank input:
IMG_000.BMP
IMG_000.BMP (37.62 KiB) Viewed 13020 times
Signal on the CAM input:
IMG_001.BMP
IMG_001.BMP (37.62 KiB) Viewed 13020 times
TS 4-Stroke with CAM "correct way" Still feeding crank Secondary, and cam primary signals:
4wc.png
4wc.png (370.2 KiB) Viewed 13020 times
wc.png
wc.png (155.77 KiB) Viewed 13019 times
TS 4-Stroke with CAM "inverted primary and secondary":
4wcsw.png
4wcsw.png (395.33 KiB) Viewed 13020 times
wcsw.png
wcsw.png (160.26 KiB) Viewed 13019 times
And TS 4-Stroke WITHOUT CAM:
4woc.png
4woc.png (376.84 KiB) Viewed 13020 times
woc.png
woc.png (148.79 KiB) Viewed 13019 times

Re: Firmware issues?

Posted: Sat Oct 08, 2016 11:59 pm
by AndreyB
Unfortunately we have a usability issue here. Maybe a better choice of words is needed
"4 stroke with cam" does not mean that your first channel becomes cam. For your "60/2 with cam signal" you need to follow the http://rusefi.com/wiki/index.php?title=Manual:Software:VVT article. In this case your cam input is VVT (again, need a better choice of term since it's not VVT it's sync input in your case), and your 60/2 is the primary trigger input :( It's a mess, I can see how this would make zero sense.

I will post once I make some changes to the project files to reduce the confusion at least a little bit.

Re: Firmware issues?

Posted: Sun Oct 09, 2016 1:56 am
by AndreyB
Tiny progress: secondary channel is now disabled for triggers where it is not needed, and "vvt input" is now "Cam Sync/VVT input" because that's what it is and that's what you need in your case.