首先是这个:
void debug(u8* const data)
{
uart1SendStr(data);
}
……
line392:
debug("==DDR_Test end==\r\n\r\n");
------first_stage.c:392: error: pointer targets in passing argument 1 of 'debug' differ in signedness
---------------------------------------------------------------------
char *tempstr[500];
line403:
sprintf( tempstr, ">startAddr = 0x%h endAddr = 0x%h\r\n", startAddr, endAddr );
------first_stage.c:403: error: passing argument 1 of 'sprintf' from incompatible pointer type
这两个都是编译时遇到的头一个错误,应该没有受context的影响,我承认编译器有警告我:waring's being treated as errors!
我也承认自己C语言学的一般。不过,这个错误也太@@。谁知道咋回事么? |