AnsweredAssumed Answered

SHPRx System handler priority register won't set to 0xFF

Question asked by fitzgerald.mark on May 31, 2017
Latest reply on May 31, 2017 by fitzgerald.mark

I’m debugging some low-level code.  The STM32L471 hardware is not configuring properly per the code.  I’m configuring the System handler priority registers (SHPRx).  See ST manual PM0214 programming manual or ARM architecture reference.  The programming manual states the priority of each handler is a range from 0 to 255 (0xFF).  When I try to set a value of 0xFF, the hardware only sets the value to 0xF0.  This is not the published range per the ARM and ST docs.

 

In my example code, the SHPR2 register isn’t setting to 0xFF for PRI11; it only sets the register to 0xF0.  Same is true for SHPR3 register isn’t setting to 0x40FF0000; it only sets to 0x40F00000.

 

I’ve checked ARM and ST literature; they all indicate that each field supports a priority value from 0 to 255 (0xFF) so I should be able to set PRI11 and PRI14 to 0xFF.  Please advise if you why the ST part is failing to function as documented?  Workaround?

 

See screenshots.  Does anyone have any insight about why these registers aren’t working per the literature?

 

SHPR2 not setting PRI11 to 0xFF

 

SHPR3 not setting PRI14 to 0xFF

Outcomes