Change from -Og to -O2 optimization, no hardfault observed. Here is the code and listing:
Note changes:
-
CMP BLSconditional is moved up in sequence, - order within the
ifclause ofMOVS MOVis reversed toMOV MOVS, - the call to
UpdSendShortCmd()goes fromBL BtoB.W NOP
Common to the no hardfault listings:
-
CMP BLSare the first two instructions
Cheers,
Joe
