This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

cortex-m33 s-domain exception accessing virtual function

Im getting a usage fault accessing a virtual function in my cortex m33 application.

Accesses to functions in the base class seem fine

CFSR = 0x0

[15:46:46:635] Stacked: ␍␊
[15:46:46:678] R0  = 0x20004000␍␊
[15:46:46:678] R1  = 0x00000131␍␊
[15:46:46:678] R2  = 0x10004415␍␊
[15:46:46:678] R3  = 0x000001e5␍␊
[15:46:46:678] R4  = 0x702a84f8␍␊
[15:46:46:678] R5  = 0xffffffe9␍␊
[15:46:46:678] R6  = 0x20004000␍␊
[15:46:46:678] R7  = 0x000003e8␍␊
[15:46:46:678] R8  = 0xe000e000␍␊
[15:46:46:678] R9  = 0x702a84f8␍␊
[15:46:46:678] R10 = 0x07070707␍␊
[15:46:46:678] R11 = 0x70143f99␍␊
[15:46:46:678] R12 = 0x0000019d␍␊
[15:46:46:678] LR  = 0x00000179␍␊
[15:46:46:678] PC  = 0x00000155␍␊
[15:46:46:678] PSR = 0x000001c1␍␊
[15:46:46:678] ␍␊
[15:46:46:678] Current: ␍␊
[15:46:46:678] LR   = 0x701cf615␍␊
[15:46:46:678] MSP  = 0x20003fb0␍␊
[15:46:46:678] PSP  = 0x717ec2c8␍␊
[15:46:46:678] xPSR = 0x20000000␍␊
[15:46:46:678] CFSR  = 0x00000000␍␊
[15:46:46:678] HFSR  = 0x00000000␍␊
[15:46:46:678] DFSR  = 0x00000000␍␊
[15:46:46:678] MMFAR = 0x00000000␍␊
[15:46:46:678] BFAR  = 0x00000000␍␊
[15:46:46:678] AFSR  = 0x00000000␍␊
[15:46:46:721] PriMask = 0x00000000␍␊
[15:46:46:721] SVC priority: 0x00␍␊
[15:46:46:721] PendSVC priority: 0xf0␍␊
[15:46:46:721] Systick priority: 0xf0␍␊

This software runs on other hardware which leads me to believe there is something in the build or configuration of freertos and or setup of hardware.

The application is running without trustzone using free rtos all compiled with arm-none-eabi 10.3