pazi88 / Speeduino-M5x-PCBs

Speeduino compatible m5x PnP PCBs
GNU General Public License v2.0
108 stars 56 forks source link

202402 Firmware update and some problems #30

Open h25r opened 6 months ago

h25r commented 6 months ago

Hi! I updated to latest speeduino stable release, and compiled to 6 injection and 3 igntion channels but some things dont work well

Can someone compile a working version? I dont know if pazi will continue updating firmware .hex folder

pazi88 commented 6 months ago

The PWM Fan I know to be problem in the 202402 FW. Something to do with the changes to how secondary serial works. I couldn't figure out fix for that before the FW came out. Others are something that I haven't been able to try, because I currently don't have board/ecu to test. I sold my last car with speeduino...

h25r commented 6 months ago

The PWM Fan I know to be problem in the 202402 FW. Something to do with the changes to how secondary serial works. I couldn't figure out fix for that before the FW came out. Others are something that I haven't been able to try, because I currently don't have board/ecu to test. I sold my last car with speeduino...

I would be happy to be a beta tester for any version of the new firmware.

I'll be attentive in case you release a new version.

I hope to try your new build this weekend and report any errors I find.

williammueller commented 4 months ago

I can confirm pwm fan and vvt issues. However I saw no readings for vvt1, and no duty cycle applied to either solenoid.

Flashing back to 202305 and it all comes right back. Same tune, no changes.

h25r commented 4 months ago

I hope @pazi88 pazi upload some firmware that works when he has time... Maybe some beers via paypal will help!

pazi88 commented 4 months ago

The bugs are really speeduino firmware thing. So if you are finding issues, please report those on Speeduino github. With logs and such @williammueller @h25r

h25r commented 4 months ago

The bugs are really speeduino firmware thing. So if you are finding issues, please report those on Speeduino github. With logs and such @williammueller @h25r

ok i got firmware 202405 working now, changes made from noisymime also i made new bluepill version to allow it reading %duty values from the right location (new version moved it from case 121 to case 123)

I upload here the .bin to fix bluepill on newer firmware (also changed minimum pwm duty from 10 to 5%, my fan can stop now with values under 10%) 202405bluepill.zip

williammueller commented 3 months ago

Sorry for the late response. I can confirm building from 2024 fix pack 1 matched with the @h25r blue pill firmware appears to work smoothly.

@h25r Could you provide the raw code you used to build that firmware with the fan controller fix?

h25r commented 3 months ago

Sorry for the late response. I can confirm building from 2024 fix pack 1 matched with the @h25r blue pill firmware appears to work smoothly.

@h25r Could you provide the raw code you used to build that firmware with the fan controller fix?

changes made to serial3tobmwcan.ino

line 173: Serial3.write(123); // LSB offset for receiving PWM fan duty. line 771: if (tmp_duty < 3){ // adjust the range to valid 10-90 for BMW fan line 772 tmp_duty = 3;

sometimes fan stay off until reaching the 10% value from speeduino and other times spins at minimum speed all time its enough for me but there is some more research to work perfect.

@pazi88 maybe you can add that version of bluepill to bluepills folder so anyone can update speeduino firmware version with that ecu