tests: Align buffer in icmsg_buf tests.
This change adds alignment to buffer on which icmsg_buf is created. Some platforms run into fatal exception when accessing unaligned addresses. Fix that by ensure 4 byte alignment. Signed-off-by: Emil Obalski <emil.obalski@nordicsemi.no>
This commit is contained in:
parent
370ce60152
commit
cc57f0acb9
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
|||
* 212 - sizeof(struct icmsg_buf) - 1 = 199.
|
||||
* -1 because internal rd/wr_idx is reserved to mean the buffer is empty.
|
||||
*/
|
||||
static uint8_t memory_area[212];
|
||||
static uint8_t memory_area[212] __aligned(4);
|
||||
|
||||
static void test_icmsg_buf_ut(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue