2024-11-19 04:37 AM - last edited on 2024-11-19 04:40 AM by Andrew Neil
Hello all ,
I am facing a issue of hard fault because of some reason however after analyzing issue I suspect this could be due to use of structure having uint64_t variable having bit fielding. I have also attached snapshot of issue which I am facing(Precise data access violation).
typedef struct _st_device_info_payload
{
uint64_t IMEI : 50;
uint64_t BLE_MAC_ID : 48;
uint64_t WiFi_MAC_ID : 48;
uint16_t Server_Port;
uint64_t SIM_ICCID_1 :6;
uint64_t SIM_ICCID_2 :64;
char Server_Domain_Name[20];
char APN[20];
}st_device_info_payload;
Please confirm these few points.
1. Can I use uint64_t for STM32H7 MCU.
2. Can we use bit fielding for uint64_t variable for stm32h7.
2024-11-19 04:49 AM - edited 2024-11-19 04:50 AM
Hello @devendra ,
Please review how to post a thread in this community: https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228
This is mainly regarding the title, share a better image resolution, and how to share the code, MCU part number..
Thank you for your understanding.