EB: how to setting priority grouping in EB?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

EB: how to setting priority grouping in EB?

Jump to solution
1,686 Views
vivid_
Contributor I

When I enable Isr in platform module, then I found the maximum priority only up to 15, if the priority is set to greater than 15, then EB will report a error that the priority out of range. how can I set the priority greater than 15? And I want to know whether I can set the priority group in EB.

Here I use s32k344 and RTD 4.0.0.0

0 Kudos
Reply
1 Solution
1,651 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @vivid_ 

In the S32K3xx Reference Manual, it is stated that there are 16 priority levels configurable in 4 bits in IRQn fields in NVIC IPRn registers.

According to NVIC_SetPriority(), the 4 less significant bits in IRQn fields in NVIC IPRn registers are not implemented.

VaneB_0-1730491154457.png

Whith the above information, the Table 4-18 (Priority grouping) of the ARM Cortex-M7 Devices Generic User Guide, can be understood in this way:

VaneB_1-1730491228474.png

In addition, about priority grouping, a function is also provided, see the following image.

VaneB_2-1730491249574.png

BR, VaneB

View solution in original post

0 Kudos
Reply
1 Reply
1,652 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @vivid_ 

In the S32K3xx Reference Manual, it is stated that there are 16 priority levels configurable in 4 bits in IRQn fields in NVIC IPRn registers.

According to NVIC_SetPriority(), the 4 less significant bits in IRQn fields in NVIC IPRn registers are not implemented.

VaneB_0-1730491154457.png

Whith the above information, the Table 4-18 (Priority grouping) of the ARM Cortex-M7 Devices Generic User Guide, can be understood in this way:

VaneB_1-1730491228474.png

In addition, about priority grouping, a function is also provided, see the following image.

VaneB_2-1730491249574.png

BR, VaneB

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1985607%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EEB%3A%20how%20to%20setting%20priority%20grouping%20in%20EB%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1985607%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWhen%20I%20enable%20Isr%20in%20platform%20module%2C%20then%20I%20found%20the%20maximum%20priority%20only%20up%20to%2015%2C%20if%20the%20priority%20is%20set%20to%20greater%20than%2015%2C%20then%20EB%20will%20report%20a%20error%20that%20the%20priority%20out%20of%20range.%20how%20can%20I%20set%20the%20priority%20greater%20than%2015%3F%20And%20I%20want%20to%20know%20whether%20I%20can%20set%20the%20priority%20group%20in%20EB.%3C%2FP%3E%3CP%3EHere%20I%20use%20s32k344%20and%20RTD%204.0.0.0%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1986418%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20EB%3A%20how%20to%20setting%20priority%20grouping%20in%20EB%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1986418%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F242786%22%20target%3D%22_blank%22%3E%40vivid_%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20the%20S32K3xx%20Reference%20Manual%2C%20it%20is%20stated%20that%20there%20are%2016%20priority%20levels%20configurable%20in%204%20bits%20in%20IRQn%20fields%20in%20NVIC%20IPRn%20registers.%3C%2FP%3E%0A%3CP%3EAccording%20to%20NVIC_SetPriority()%2C%20the%204%20less%20significant%20bits%20in%20IRQn%20fields%20in%20NVIC%20IPRn%20registers%20are%20not%20implemented.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22VaneB_0-1730491154457.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22VaneB_0-1730491154457.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F308195iACAA1B80AC3A5566%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22VaneB_0-1730491154457.png%22%20alt%3D%22VaneB_0-1730491154457.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EWhith%20the%20above%20information%2C%20the%20Table%204-18%20(Priority%20grouping)%20of%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocumentation-service.arm.com%2Fstatic%2F61efd6602dd99944d051417b%3Ftoken%3D%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EARM%20Cortex-M7%20Devices%20Generic%20User%20Guide%3C%2FA%3E%2C%20can%20be%20understood%20in%20this%20way%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22VaneB_1-1730491228474.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22VaneB_1-1730491228474.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F308196i9EBF69F007379488%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22VaneB_1-1730491228474.png%22%20alt%3D%22VaneB_1-1730491228474.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIn%20addition%2C%20about%20priority%20grouping%2C%20a%20function%20is%20also%20provided%2C%20see%20the%20following%20image.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22VaneB_2-1730491249574.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22VaneB_2-1730491249574.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F308197i036C62B17F4EEA9D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22VaneB_2-1730491249574.png%22%20alt%3D%22VaneB_2-1730491249574.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBR%2C%20VaneB%3C%2FP%3E%3C%2FLINGO-BODY%3E