Increase CAN receiving slots?

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

Post Reply
Reverant
Super MS/Extra'er
Posts: 1233
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

Increase CAN receiving slots?

Post by Reverant »

Can we do this officially?

I tried it myself, but I got greedy and doubled the slots from 16 to 32; now RAM memory section.data1 overflows into .data2 by 206 bytes (16*sizeof(can_rcv_msg)-2), and it looks like a royal pain to the unseasoned MS3 memory programmer to get everything to somehow fit.

I've already modified the .ini file, so if one of the devopers would like me to send the code their way to save them some time, let me know.
The man behind MS Labs
2005 Audi A3 2.0L TFSI DSG AWD - Extreme MS3
2002 Mazda Miata 1.8 6sp - Enhanced MS3 1.4.0, sequential injection, sequential ignition, big turbo, lots of boost
jsmcortina
Site Admin
Posts: 39587
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Increase CAN receiving slots?

Post by jsmcortina »

Reverant wrote: it looks like a royal pain
Although you've made the ini changes, it sounds like they won't work because the settings won't fit in memory as defined.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
Reverant
Super MS/Extra'er
Posts: 1233
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

Re: Increase CAN receiving slots?

Post by Reverant »

The problem isn't with the settings themselves - they fit fine in page28 as there was leftover space in the end of the page.

The problem is with the can receiving *buffers*; 16 fit in .data1 leaving only 2 bytes. If the buffers can be moved somewhere else where's there enough space for another 16 buffers (13 bytes each), then we're good to go.
The man behind MS Labs
2005 Audi A3 2.0L TFSI DSG AWD - Extreme MS3
2002 Mazda Miata 1.8 6sp - Enhanced MS3 1.4.0, sequential injection, sequential ignition, big turbo, lots of boost
Post Reply