This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to compile byte write to read modify write with word/ half word write?

If my SOC can not support  ldrb , how can i deal with byte write in C file? Is there some option to make byte write compile to read modify write ?

Parents
  • Hi Chase,

    Why do you not believe that your device does not support LDRB, this is a standard Arm instruction.

    As for your request, I'm not aware of any such option. It would be better to declare all global variables as (aligned) int, so that word (32-bit) access will always be used.

Reply
  • Hi Chase,

    Why do you not believe that your device does not support LDRB, this is a standard Arm instruction.

    As for your request, I'm not aware of any such option. It would be better to declare all global variables as (aligned) int, so that word (32-bit) access will always be used.

Children