cancel
Showing results for 
Search instead for 
Did you mean: 

Hard Fault

devendra
Associate II

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).

devendra_0-1732019755800.jpeg

 

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. 

 

 

1 REPLY 1
SofLit
ST Employee

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.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.