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

ARMv7M storing 3bytes in SRAM

Hello everybody!

I've recently had such a task: "Calculate the mean value of a signal. The signal is composed of 16 signed 24-bit samples. Each sample goes one by one in a memory starting from the address 0x20000200. Thus, each sample occupies 3 bytes. Store the result to the address 0x20000300".

The task is meant to be performed on ASM on MCU with ARMv7M architecture on board.Hence Thumb(2) instructions are only supported. According to the given addresses access to SRAM is implied

I suggest that some approach with not-alligned data store/access can be applied. However, I'm a newby to ARM and I'm lack of pracrtical knowledge. Therefore any advice or references might be very helpful