Hello,
I have few questions, all related to the "byte = 2 bytes " phenomenon of the C2000:
1. Will memory work as expected when I copy non even size of bytes ? (or simply last argument will be in-effect twice as large ?)
2. Will printf by able to access 27 bytes in RAM and print them (that last byte is NULL) in this example.
3 What will strlen() return for "C2000" ?
4. Can I define a pack(1) struct ?
5. How can I preform CRC32 on an odd size of memory region?
6. Is there a salsa20 implementation for this MCU?
6. Can I define struct with bit-fields ?
7. Can I read /write single byte to/from SPI / UART (I know there is a difrent name for UART, cause why use something from the mid 60's?)
8. How can I create a packed struct with odd size (count of bytes) of elements, for ex: ?
While at it, how can I access 'b' assuming b is a uint8_t (one byte ), without the ugly _byte() intrinsic ?
struct my_struct {
char a[3];
bool b;
char c[3];
};
9. What will memcmp() return for : { 0xa5,0xa7,0xa3 } and { 0xa5,0xa7,0xa3, 0x00 } ?
Thanks,
Eitan Michaelson,
SolarEdge, Israel.