inline_6 New Member 14 Member For: 10y 9m 24d Posted 11/01/17 12:19 AM Share Posted 11/01/17 12:19 AM Good on you, sounds like you're close so just keep on pushing the end product will be worth it. Link to comment Share on other sites More sharing options...
MattyP MattyP Cruise Control 6,317 Member For: 12y 6m 5d Gender: Male Location: Central Coast Posted 11/01/17 03:39 AM Share Posted 11/01/17 03:39 AM @rollex I'm incredibly interested, I never dreamt I would live in a world with falcon live tuning, that would be the dream. If you need anymore prototype cars let me know. Link to comment Share on other sites More sharing options...
rollex Member 683 Member For: 10y 5m 1d Gender: Male Location: Australia Posted 11/01/17 04:06 AM Share Posted 11/01/17 04:06 AM Anything is possible, you just need enough time and money! HP Tuners said live tuning would not be economical and when they did it for GM the profit from it was a fraction of what they get elsewhere and hence dropped it. As they only offered it for one strategy I can see why it was not economical, however if I can write an automated routine to patch any strategy automatically, then suddenly it does become profitable so hopefully it is something we can implement down the road. 3 Link to comment Share on other sites More sharing options...
Ralph Wiggum Moar Powar Babeh Lifetime Members 19,323 Member For: 19y 1m 17d Gender: Male Location: Perth Posted 11/01/17 04:10 AM Author Share Posted 11/01/17 04:10 AM Im very curious to see how you're able to access the routine needed for the PCM to be writeable and still have it operate. Link to comment Share on other sites More sharing options...
rollex Member 683 Member For: 10y 5m 1d Gender: Male Location: Australia Posted 11/01/17 04:12 AM Share Posted 11/01/17 04:12 AM (edited) You can't so you do something tricky instead. Basically the code references the flash ROM to read the tables and determine the output values. What you do is change the ROM references to RAM. You then insert an init routine that copies the old ROM tables to the RAM at startup. Then when the engine is running your write to the RAM, the changes won't be persistent though so you then need to do a full write afterwards when you are happy. edit: You could also write random values and possibly crash the PCM, so there would need to be lots of thought put into it. Edited 11/01/17 04:14 AM by rollex 1 Link to comment Share on other sites More sharing options...
k31th less WHY; more WOT Site Developer 28,924 Member For: 16y 6m 30d Gender: Male Location: Melbourne Posted 11/01/17 05:36 AM Share Posted 11/01/17 05:36 AM as a programmer, I'd never want to be multi-threading with randomly accessible memory and read-only memory simultaneously (which is essentially what you're saying there) as you're almost guaranteed to have issues unless the OS you're working within keenly controls the RAM allocation/de-allocation/re-allocation... Link to comment Share on other sites More sharing options...
rollex Member 683 Member For: 10y 5m 1d Gender: Male Location: Australia Posted 11/01/17 06:26 AM Share Posted 11/01/17 06:26 AM (edited) There's no "allocation" as such, it's all stored on the heap well out of range of typical usage. Eg you set it at startup and it doesn't change. Also its entirely single threaded. Edited 11/01/17 06:26 AM by rollex Link to comment Share on other sites More sharing options...
k31th less WHY; more WOT Site Developer 28,924 Member For: 16y 6m 30d Gender: Male Location: Melbourne Posted 11/01/17 06:31 AM Share Posted 11/01/17 06:31 AM I think you're going to have extreme difficulty in live tuning, if you're using single threads Link to comment Share on other sites More sharing options...
rollex Member 683 Member For: 10y 5m 1d Gender: Male Location: Australia Posted 11/01/17 06:48 AM Share Posted 11/01/17 06:48 AM Of course the desktop application isn't single threaded. The MPC565 however is single core, hence there will be no common deadlock issues. Eg everything happens synchronously, eg they get time splices, its not possible for two things to access the same piece of RAM at the same time, hence there will be no issues. Eg the PCM reads a table, then the UDS command handler routine comes in with new data and updates the RAM, then PCM then reads the updated RAM. This isn't like programming for a PC, it is embedded programming. The issues you are talking about do not exist. Link to comment Share on other sites More sharing options...
k31th less WHY; more WOT Site Developer 28,924 Member For: 16y 6m 30d Gender: Male Location: Melbourne Posted 11/01/17 06:55 AM Share Posted 11/01/17 06:55 AM yeah, that makes sense... good luck with the live tuning component - it will make you a ton of money if you can get it to work (as tuners will love to say they can't live tune, but then live tune it and charge the same amount and do 5-10x as many tunes ), so it'll be worth any time you spend on it (as long as that time leads to success, of course) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now