Mailbox - How to pass a pointer correct

Discussions and support about ChibiOS/RT, the free embedded RTOS.
flabbergast
Posts: 71
Joined: Sat Aug 22, 2015 1:22 pm

Re: Mailbox - How to pass a pointer correct

Post by flabbergast »

There may be a better way of doing this, I would go with

Code: Select all

uint8_t Pool_Buffer[OUTPUT_BUFFER_LEN*sizeof(OutputMessage)];
Methanbombe
Posts: 8
Joined: Sat Mar 26, 2016 9:07 pm

Re: Mailbox - How to pass a pointer correct

Post by Methanbombe »

FUUUUUUUUUCK

I AM THE BIGGEST POSSIBLE MORON ON THE EARTH :'(

the problem was that I defined the OutputMessage struct below the Pool_Buffer, and gcc didn't know the size of the struct...

Moved it 5 lines up and now it's working :/

Thanks for your help anyways :)

Methanbombe
Post Reply