2015-09-12 03:45 AM
why Pointer is always (uint8_t *)?
does it mean the pointer will never exceed 255?2015-09-12 05:34 AM
It's a pointer to 8-bit values, the pointer itself is 32-bit wide and can address 4GB
2015-09-12 12:15 PM
2015-09-12 04:19 PM
The concept of pointers transcends the use of an STM32, you might want to review the K&R chapter on pointers, or that of your primary text.
It's pointing to a series of bytes/characters, these are 8-bit in size. If you used (uint32_t *) you'd be pointing at 32-bit words. sizeof(uint8_t) = 1 // The thing it's pointing AT sizeof(uint8_t *) = 4 // The pointer to it, an ADDRESS sizeof(uint32_t) = 4 // The thing it's pointing AT sizeof(uint32_t *) = 4 // The pointer to it, an ADDRESS All WHAT examples?