Part Number: CC2640R2F
Tool/software: Code Composer Studio
Hi Everyone,
I'm facing some problems while executing the below code.
1.Shifting is not working
2.when i use sprintf my program is not running.
Please let me know the reason why it's not working. snippet of code is written below.
Thanking You,
Vijay Rakesh
Code..
char test[20];
uint32_t bleAddressl = *((uint32_t *)(FCFG1_BASE + FCFG1_O_MAC_BLE_0)) & 0xFFFFFFFF;
uint32_t bleAddressm = *((uint32_t *)(FCFG1_BASE + FCFG1_O_MAC_BLE_1)) & 0x0000FFFF;
uint64_t bleAddress = (bleAddressl<<32)+bleAddressm; // WARNING : #64-D shift count is too large
Log_info1("MAC ID : %x",bleAddress);
Log_info1(" After Alogorithm MAC ID : %x",bleAddress);
sprintf(test,"%d",bleAddress); // WARNING : #183-D argument is incompatible with corresponding format string conversion
Log_info1("TEST : %s",test);