Part Number: AM5728
Hi,
Working on a *barebone* target that has an AM5728 processor. I've found that when the standard C memcpy() routine is called on data that is not 32-bit aligned, it will crash. I am using the GCC 9.2.1 ARM compiler that comes with Code Composer Studio 11.1.0.00011. I have used the -mno-unaligned-access compiler flag, however it does not help with calls to memcpy(). It's _not_ possible to ensure the data involved is on a 32-bit word boundary because I'm dealing with arbitrary string of bytes which can be anywhere. For example, I can't even use memcpy() to append a string of bytes to the end of another byte array. The latter is arbitrary length, so the destination address cannot be restricted to 32-bit alignment.
Is there a way to configure the AM5728 to gracefully handle unaligned memory access or if there is a way for memcpy() ot be modified to handle unaligned addresses? Thx!