follow ft86club on our blog, twitter or facebook.
FT86CLUB
Ft86Club
Speed By Design
Register Garage Community Calendar Today's Posts Search

Go Back   Toyota GR86, 86, FR-S and Subaru BRZ Forum & Owners Community - FT86CLUB > Technical Topics > Issues | Warranty | Recalls / TSB

Issues | Warranty | Recalls / TSB Problems, issues, recalls, TSBs

Register and become an FT86Club.com member. You will see fewer ads

User Tag List

Reply
 
Thread Tools Search this Thread
Old 10-29-2013, 06:14 PM   #1
juliog
Senior Member
 
juliog's Avatar
 
Join Date: Jan 2013
Drives: 86
Location: Green Hell
Posts: 930
Thanks: 1,269
Thanked 925 Times in 390 Posts
Mentioned: 55 Post(s)
Tagged: 1 Thread(s)
Garage
Toyota's killer firmware

Pretty technical, but proof that so many car issues today come from bad software:

http://www.edn.com/design/automotive...s-consequences
juliog is offline   Reply With Quote
Old 10-29-2013, 06:50 PM   #2
R.S-HawK
Banned
 
Join Date: Oct 2013
Drives: '13 Gen Coupe 3.8 R
Location: Tampa Bay
Posts: 387
Thanks: 52
Thanked 151 Times in 73 Posts
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Quote:
Stack overflow. Toyota claimed only 41% of the allocated stack space was being used. Barr's investigation showed that 94% was closer to the truth. On top of that, stack-killing, MISRA-C rule-violating recursion was found in the code, and the CPU doesn't incorporate memory protection to guard against stack overflow.
Quote:
A litany of other faults were found in the code, including buffer overflow, unsafe casting, and race conditions between tasks.
I would have expected better from Toyota.

And as a programmer, I find this embarrasing.
R.S-HawK is offline   Reply With Quote
The Following 2 Users Say Thank You to R.S-HawK For This Useful Post:
lazyluka (10-30-2013), Trap63 (10-31-2013)
Old 10-29-2013, 06:57 PM   #3
RRnold
2 wheel member
 
RRnold's Avatar
 
Join Date: Feb 2010
Drives: JZA80, 997.1, Taco
Location: SoCal->NorCal
Posts: 4,330
Thanks: 1,318
Thanked 938 Times in 480 Posts
Mentioned: 9 Post(s)
Tagged: 0 Thread(s)
Wow!!
__________________
RRnold is offline   Reply With Quote
Old 10-30-2013, 12:38 AM   #4
phrosty
Senior Member
 
Join Date: Apr 2013
Drives: 2013 FR-S
Location: Seattle
Posts: 806
Thanks: 202
Thanked 321 Times in 199 Posts
Mentioned: 18 Post(s)
Tagged: 1 Thread(s)
Reeks of expert testimony using a shotgun approach -- i.e. a bunch of "could-be"s versus a definite "this is what caused the issue".

Don't get me wrong, I have no doubt there are bugs -- programmers are far from perfect and even the best, most careful of practices lead to some bugs happening. Coding is hard

The correlative of this is that understanding someone else's code is hard -- I can look at someone's code and list off a ton of "could-be"s, when they've already taken care of the corner cases in some way that I'd only realize upon a deeper analysis.

Quote:
Originally Posted by R.S-HawK View Post
And as a programmer, I find this embarrasing.
The article was clearly not written by a programmer. I'd be curious to see the original technical document. This contains some very WTF wording that doesn't mean anything to a programmer:

Quote:
Toyota missed some of the calls made via pointer, missed stack usage by library and assembly functions (about 350 in total), and missed RTOS use during task switching.
It lists a number of things which are not bugs, but merely describe a lack of safety nets to catch certain very specific types of bugs:

Quote:
Toyota claimed the 2005 Camry's main CPU had error detecting and correcting (EDAC) RAM. It didn't.

...

Mirroring (where key data is written to redundant variables) was not always done.

...

Stack overflow. Toyota claimed only 41% of the allocated stack space was being used. Barr's investigation showed that 94% was closer to the truth. On top of that, stack-killing, MISRA-C rule-violating recursion was found
And some things here which could be bugs but the rest of the article leads me to think they just mean a potential for bugs -- this kind of code has been deemed attention-worthy by the software industry due to being difficult to get right and being the most common areas to find bugs:

Quote:
A litany of other faults were found in the code, including buffer overflow, unsafe casting, and race conditions between tasks.
phrosty is offline   Reply With Quote
The Following 2 Users Say Thank You to phrosty For This Useful Post:
strat61caster (10-30-2013), Trap63 (10-31-2013)
Old 10-30-2013, 12:43 AM   #5
suaveflooder
Senior Member
 
Join Date: Feb 2013
Drives: 2013 FR-S
Location: San Diego
Posts: 2,295
Thanks: 2,708
Thanked 1,052 Times in 664 Posts
Mentioned: 29 Post(s)
Tagged: 0 Thread(s)
time for an aftermarket tune!
suaveflooder is offline   Reply With Quote
The Following User Says Thank You to suaveflooder For This Useful Post:
Tim_Asphalt_FRS (10-30-2013)
Old 10-30-2013, 03:20 AM   #6
ft_sjo
Banned
 
Join Date: Oct 2012
Drives: GT86
Location: The Motherland
Posts: 1,398
Thanks: 140
Thanked 473 Times in 271 Posts
Mentioned: 22 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by suaveflooder View Post
time for an aftermarket tune!
No. A tune does not touch any of this.
ft_sjo is offline   Reply With Quote
The Following 2 Users Say Thank You to ft_sjo For This Useful Post:
onefitz (10-30-2013), suaveflooder (10-30-2013)
Old 10-30-2013, 04:49 AM   #7
fistpoint
Senior Member
 
Join Date: Dec 2011
Drives: Supercharged Golf Cart
Location: Estados Unitos
Posts: 1,196
Thanks: 75
Thanked 364 Times in 206 Posts
Mentioned: 3 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by phrosty View Post
The correlative of this is that understanding someone else's code is hard -- I can look at someone's code and list off a ton of "could-be"s, when they've already taken care of the corner cases in some way that I'd only realize upon a deeper analysis.

Sounds like you are describing an inefficient programmer, partially what the article is saying.
fistpoint is offline   Reply With Quote
Old 10-30-2013, 05:05 AM   #8
Anthony
Weight Nazi
 
Anthony's Avatar
 
Join Date: Aug 2012
Drives: 13 FRS -399lb, 11 335is, 05 Tiburon
Location: Biloxi, MS / Gulf Coast 86
Posts: 3,702
Thanks: 5,009
Thanked 3,714 Times in 1,765 Posts
Mentioned: 150 Post(s)
Tagged: 4 Thread(s)
Quote:
Originally Posted by suaveflooder View Post
time for an aftermarket tune!


Quote:
Originally Posted by ft_sjo View Post
No. A tune does not touch any of this.
__________________

Build Thread | The Venus Project | Any car which holds together for a whole race is too heavy.
Anthony is offline   Reply With Quote
The Following 3 Users Say Thank You to Anthony For This Useful Post:
Enraged21 (11-02-2013), onefitz (10-30-2013), slizoth (10-30-2013)
Old 10-30-2013, 05:25 AM   #9
PantsDants
Senior Member
 
Join Date: Jul 2013
Drives: Scion FR-S A/T, Whiteout
Location: Seattle
Posts: 334
Thanks: 57
Thanked 221 Times in 90 Posts
Mentioned: 16 Post(s)
Tagged: 2 Thread(s)
Quote:
Originally Posted by ft_sjo View Post
No. A tune does not touch any of this.
Exactly. My understanding is that all a tune does is change a bunch of constants (the spreadsheets/data tables of tuning parameters) that the ECU code passes into its functions to Do Things. (Is function the right term here? I come from the land of objects, I dunno about this low-level stuff.)

A tune has nothing to do with said functions nor can it change their implementation.
PantsDants is offline   Reply With Quote
Old 10-30-2013, 06:13 AM   #10
ft_sjo
Banned
 
Join Date: Oct 2012
Drives: GT86
Location: The Motherland
Posts: 1,398
Thanks: 140
Thanked 473 Times in 271 Posts
Mentioned: 22 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by PantsDants View Post
Exactly. My understanding is that all a tune does is change a bunch of constants (the spreadsheets/data tables of tuning parameters) that the ECU code passes into its functions to Do Things. (Is function the right term here? I come from the land of objects, I dunno about this low-level stuff.)

A tune has nothing to do with said functions nor can it change their implementation.
The flash (or multiples of) will contain program areas and data areas. Tuning typically affects the latter, however people like EcuTek bastardise the program area for their 'RaceROM' thing. It can lead to instability issues though, which was exhibited on our cars with the fuel gauge playing up, for example. I believe they pulled that code/hack now.
ft_sjo is offline   Reply With Quote
Old 10-30-2013, 07:25 AM   #11
ZZT86
Senior Member
 
ZZT86's Avatar
 
Join Date: Jul 2012
Drives: BR86
Location: Location
Posts: 841
Thanks: 310
Thanked 146 Times in 114 Posts
Mentioned: 5 Post(s)
Tagged: 0 Thread(s)
For a long time now Toyota has been ruled by Committee not Passion ! They still have an enviable reputation for design & build quality but it has been slipping . . . . unfortunately :/
ZZT86 is offline   Reply With Quote
Old 10-30-2013, 09:05 AM   #12
azian_advanced
*****istrator
 
azian_advanced's Avatar
 
Join Date: Apr 2010
Drives: 2013 Scion FR-S 10-Series M/T
Location: Calgary
Posts: 354
Thanks: 137
Thanked 337 Times in 90 Posts
Mentioned: 4 Post(s)
Tagged: 0 Thread(s)
everytime i read "unintended acceleration" on the internet, i always think of this:
http://www.nasa.gov/topics/nasalife/...ota-study.html
__________________
SC10N FR-S #435 of 2500
azian_advanced is offline   Reply With Quote
Old 10-30-2013, 11:17 AM   #13
phrosty
Senior Member
 
Join Date: Apr 2013
Drives: 2013 FR-S
Location: Seattle
Posts: 806
Thanks: 202
Thanked 321 Times in 199 Posts
Mentioned: 18 Post(s)
Tagged: 1 Thread(s)
Quote:
Originally Posted by fistpoint View Post
Sounds like you are describing an inefficient programmer
Indeed. In my experience, programmers who don't write straightforward code outnumber the ones who do.
phrosty is offline   Reply With Quote
Old 10-30-2013, 01:58 PM   #14
Tromatic
Banned
 
Join Date: May 2013
Drives: FR-S
Location: Portland, OR
Posts: 2,232
Thanks: 61
Thanked 1,728 Times in 786 Posts
Mentioned: 19 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by suaveflooder View Post
time for an aftermarket tune!
"Firmware" means hardware. You may be able to flash a new version of the firmware, but if the hardware itself is busticated there's not much you can do.

If I were Toyota, I'd be having a lawyer make a phone call about this headline:
Toyota's killer firmware: Bad design and its consequences
Tromatic is offline   Reply With Quote
 
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ecutek firmware problem ahk Software Tuning 5 07-29-2013 11:31 AM
Unichip Firmware issue jybrd Software Tuning 11 07-22-2013 03:40 PM
BRZ Nav Unit Firmware michaelahess Electronics | Audio | NAV | Infotainment 5 05-09-2013 09:55 PM
Veyron Killer: Switzer GTR tranzformer Other Vehicles & General Automotive Discussions 6 03-19-2012 08:43 PM
the BMW killer! RRnold Off-Topic Lounge [WARNING: NO POLITICS] 10 08-28-2010 02:48 AM


All times are GMT -4. The time now is 04:00 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
User Alert System provided by Advanced User Tagging v3.3.0 (Lite) - vBulletin Mods & Addons Copyright © 2026 DragonByte Technologies Ltd.

Garage vBulletin Plugins by Drive Thru Online, Inc.