How to declare a struct in CCM
Hello,
I work on a STM32F4 and I want use the CCM memory to declare my structures.
For example I want this kind of structure to be always declared in the CCM memory:
typedef struct Assign_Pot Assign_Pot;
struct Assign_Pot {
uint8_t variable1; uint8_t variable2; uint16_t variable3; };Assign_Pot* Assign_Tab[100];
I've been looking across the forum but I can't find a solution that works.
If I declare my structure like this:
struct Assign_Pot {
uint8_t variable1; uint8_t variable2; uint16_t variable3; } __attribute__ ((section('.ccm')));I have the warning: 'section' attribute does not apply to types [-Wattributes]
And the structure is not created in the CCM
Do you have some experience to share with this problem?
Thanks a lot, have a great day!
Note: this post was migrated and contained many threaded conversations, some content may be missing.