Error message after changing processor

Code that used to work fine on my 5v Trinket Pro is now throwing error messages during compilation when using a Trinket M0...this looks way above my experience so can someone please advise?

Error message is as follows;
****/Arduino15\packages\adafruit\hardware\samd\1.5.0\libraries\SPI\SPI.cpp:408:6: error: 'SERCOM4' was not declared in this scope

{ &SERCOM4->SPI.DATA.reg, SERCOM4_DMAC_ID_TX, SERCOM4_DMAC_ID_RX },

There are a few others - all reference either SERCOM4 or SERCOM5

Vastly different processor so no surprise it won’t work.

But you know the drill here after 288 posts, post the code if you want help.

Looks like the solution has been provided here:
https://forum.arduino.cc/index.php?topic=623775.msg4232819#msg4232819

***/Arduino15\packages\adafruit\hardware\samd*1.5.0\libraries\SPI\SPI.cpp:408:6: error: 'SERCOM4' was not declared in this scope

Update to 1.5.1.

Grumpy_Mike:
Vastly different processor so no surprise it won’t work.

But you know the drill here after 288 posts, post the code if you want help.

In this case, it wouldn't have helped...wasn't anything in my code that changed...gent who wrote the OLED library very kindly added the solution as pointed out by Pert.

In this case, it wouldn't have helped.

Yes it would. I would have tried to compile it and it would have worked or not. Then I could have tracked down the trouble and would have found it.

I did think long and hard about helping you after all the grief I got last time. However, I thought i would give you the benefit of the doubt to see if you were any better behaved. Sadly you are not.

I will try and resist the temptation to help you again. Sorry.

Mike: YOU got grief? I seem to remember you gave as good as you got...and, it seems are still giving.

The reason I didn't post the code, is I hadn't changed it. At all. It worked on my old chip. I changed the chip, and it stopped working. I see this as a trust issue really...you wouldn't take my word for it that working code had simply stopped working. This is why, as I recall, I asked YOU not to help in future...not the other way around.

Delta: If we'd known there was a list, all those of us who come here in good faith, but perhaps are not as knowledgeable as Mike and your good self...

(and let's be honest, if we were, we wouldn't need the help in the first place...)

...would sign up for said "list" if it means people who want to make seeking help as hard as possible didn't actually contact us.

Someone else solved this problem. I didn't post any code for them; just the error same as I did here. Pert's intervention was welcome - he/she broadened the availability of the answer.

I don't see what Mike's contribution or yours have added to the thread, other than to make the forum seem a confrontational and adversarial environment.

Noobs: do not despair! Help IS available on this forum...if you speak to the right people.

Delta_G:
The list is for those who are more concerned with getting their "respects" than they are with code.

You mean those on it, or those who use it?

Delta_G:
Look, coders aren't the most personal bunch.

Syntax error...you need a "some" in there...

Delta_G:
I'm sorry someone hurt your little feelings.

Nah. Just that they didn't give help, on a help forum. Seemed odd.

Delta_G:
But if you're going to forget working on the code to just bitch about it, well I'm not here to help with your little feelings...

This post would've been all about the code without your and Mike's input...

Delta_G:
...I just help with code.

Sometimes.

Delta_G:
So now I add a star by your name on the list of people not to bother helping because they just complain.

So I need to show you the "respects" you mentioned at the start? OK, here you go.

I hear I'm on your list.

Respect.