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

Postby flabbergast » Wed Mar 30, 2016 7:16 pm

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
Location: Munich, Germany

Re: Mailbox - How to pass a pointer correct

Postby Methanbombe » Wed Mar 30, 2016 7:39 pm

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


Return to “ChibiOS/RT”

Who is online

Users browsing this forum: No registered users and 5 guests