┬ÁTasker Forum > ATMELTM AT91SAM7X and AVR32



I've just upgraded to Crossworks v4 and after uploading the utasker to the SAM7S processor this will halt on the __irq_en macro.
When executing
--- Code: ---mrs r12, CPSR
--- End code ---
  the CPU halts and loops on
--- Code: ---  b .    /* endless loop */
--- End code ---

Any idee how this can be solved?


Since the involved code is assembler code I wouldn't expect a compiler version to be able to have any effect on that code.

The endless loop is a default exception vector, which probably means that the access caused an interrupt (maybe a fault interrupt?) to be triggered.

The instruction mrs is described here:
but I don't see any restrictions that could cause its use to fail.

Check that the code is located on a 32 bit boundary in memory - it is preceded by

    .code 32

but maybe the newer version ignores this?




[0] Message Index

Go to full version