S32DS SDK S32PA_RTM 2.0.0 __VECTOR_RAM

cancel
Showing results for 
Search instead for 
Did you mean: 

S32DS SDK S32PA_RTM 2.0.0 __VECTOR_RAM

320 Views
Pat
Contributor III

Hi,

There is an issue in the file interrupt_manager_MPC57xx.c, line 90 at definition of the size of the array :

__VECTOR_RAM[ FEATURE_INTERRUPT_IRQ_MAX ]

it should be:

__VECTOR_RAM[ FEATURE_INTERRUPT_IRQ_MAX + 1 ]

From MPC5744P_features.h, the definition is as follow:

#define FEATURE_INTERRUPT_IRQ_MAX         (SGEN_Err_IRQn)

Best regards,

Pat

1 Reply

144 Views
jiri_kral
NXP Employee
NXP Employee

Hi Pat, 

Thanks for report. I'll create JIRA ticket for that. Anyway - technically it is not an issue. __VECTOR_RAM array has allocated size 0xC00  by linker script and there is no memory management. There is assert for index from 0 to <= FEATURE_INTERRUPT_IRQ_MAX. So, code should be working correctly. But the way how it is written is confusing. 

Or are you facing some issue? 

Jiri