This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

数值转化为指针 警告

Other Parts Discussed in Thread: MSP430F2617, MSP430FR2355, DRV8848

TI 达人

        双节愉快

如题同样的代码在CCS 环境下 msp430f2617 编译没有警告,而在msp430fr2355下有警告。怀疑是编译器设置的问题,请教问题出在哪里?代码如下:

unsigned char* addr = 0;
unsigned long addr_value = 0;

addr = (unsigned char*) addr_value;

编译器警告:

Description Resource Path Location Type #173-D invalid type conversion Serial_Cmd_Monitor.c /MSP430FR2355_for_BDC_DRV8848 line 139 C/C++ Problem