µVision Build Log
Tool Versions:
IDE-Version: ¦ÌVision V5.35.0.0
Copyright (C) 2021 ARM Ltd and ARM Germany GmbH. All rights reserved.
License Information: 123 Administrator, 123, LIC=21E4T-RN5YP-45KT5-GTNJ0-PT15F-5N3IJ
Tool Versions:
Toolchain: MDK-ARM Plus Version: 5.35.0.2
Toolchain Path: H:\keil\ARM\ARMCLANG\Bin
C Compiler: ArmClang.exe V6.16
Assembler: Armasm.exe V6.16
Linker/Locator: ArmLink.exe V6.16
Library Manager: ArmAr.exe V6.16
Hex Converter: FromElf.exe V6.16
CPU DLL:
Dialog DLL:
Target DLL: CMSIS_AGDI_V8M.DLL V1.7.0.0
Dialog DLL: TCM.DLL V1.53.0.0
Project:
H:\01_xist\ac201_50\ex5_i2c\MCU_Prj\MDK\STAR.uvprojx
Project File Date: 02/04/2026
Output:
*** Using Compiler 'V6.16', folder: 'H:\keil\ARM\ARMCLANG\Bin'
Rebuild target 'STAR'
../User/BL24C08.c(1): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_rcc.h(9): warning: In file included from...
../Lib/CMSIS/Device/Include\STAR.h(108): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_conf.h(11): warning: // comments are not allowed in this language [-Wcomment]
//#include "STAR_gpio.h"
^
../User/BL24C08.c(1): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_rcc.h(9): warning: In file included from...
../Lib/CMSIS/Device/Include\STAR.h(174): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(192): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(214): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(267): warning: // comments are not allowed in this language [-Wcomment]
typedef struct // Document DDI0194G_ssp_pl022_r1p3_trm.pdf
^
../User/BL24C08.c(1): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_rcc.h(41): warning: commas at the end of enumerator lists are a C99-specific feature [-Wc99-extensions]
APB_FREQ,
^
../User/BL24C08.c(4): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_i2c.h(52): warning: commas at the end of enumerator lists are a C99-specific feature [-Wc99-extensions]
DLY_CNT_0, /*total count is 0 */
^
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_i2c.h(73): warning: // comments are not allowed in this language [-Wcomment]
//usual: standard 100K; fast 400k: high 3.4M
^
../User/BL24C08.c(15): warning: // comments are not allowed in this language [-Wcomment]
#define I2C_CLK_FREQ 100000 //160K
^
../User/BL24C08.c(22): warning: no previous prototype for function 'delay_ms' [-Wmissing-prototypes]
void delay_ms(uint16_t dly)
^
../User/BL24C08.c(22): note: declare 'static' if the function is not intended to be used outside of this translation unit
void delay_ms(uint16_t dly)
^
static
../User/BL24C08.c(32): warning: no previous prototype for function 'I2C_Pin_Init' [-Wmissing-prototypes]
void I2C_Pin_Init(void)
^
../User/BL24C08.c(32): note: declare 'static' if the function is not intended to be used outside of this translation unit
void I2C_Pin_Init(void)
^
static
../User/BL24C08.c(43): warning: no previous prototype for function 'EEPROM_I2C_Init' [-Wmissing-prototypes]
void EEPROM_I2C_Init(void)
^
../User/BL24C08.c(43): note: declare 'static' if the function is not intended to be used outside of this translation unit
void EEPROM_I2C_Init(void)
^
static
../User/BL24C08.c(62): warning: unused variable 'num' [-Wunused-variable]
uint16_t num=0;
^
../User/BL24C08.c(59): warning: no previous prototype for function 'I2C_ByteWrite_nBytes' [-Wmissing-prototypes]
void I2C_ByteWrite_nBytes (uint8_t slave_addr,uint8_t word_addr,uint8_t* Buffer,uint8_t Num)
^
../User/BL24C08.c(59): note: declare 'static' if the function is not intended to be used outside of this translation unit
void I2C_ByteWrite_nBytes (uint8_t slave_addr,uint8_t word_addr,uint8_t* Buffer,uint8_t Num)
^
static
../User/BL24C08.c(114): warning: no previous prototype for function 'I2C_EEPROM_RandomRead' [-Wmissing-prototypes]
void I2C_EEPROM_RandomRead(uint8_t slave_addr,uint8_t word_addr,uint8_t* Buffer,uint16_t rx_data_num)
^
../User/BL24C08.c(114): note: declare 'static' if the function is not intended to be used outside of this translation unit
void I2C_EEPROM_RandomRead(uint8_t slave_addr,uint8_t word_addr,uint8_t* Buffer,uint16_t rx_data_num)
^
static
../User/BL24C08.c(178): warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned int)' [-Wimplicit-function-declaration]
memset(Tx_Buffer,0x0,sizeof(Tx_Buffer));
^
../User/BL24C08.c(178): note: include the header or explicitly provide a declaration for 'memset'
../User/BL24C08.c(181): warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
Tx_Buffer[i] =i;
~^
../User/BL24C08.c(183): warning: implicit conversion loses integer precision: 'uint16_t' (aka 'unsigned short') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
I2C_ByteWrite_nBytes(EEPROM_DEV_ADDR,rw_addr,Tx_Buffer,rw_num);
~~~~~~~~~~~~~~~~~~~~ ^~~~~~
../User/BL24C08.c(183): warning: implicit conversion loses integer precision: 'uint16_t' (aka 'unsigned short') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
I2C_ByteWrite_nBytes(EEPROM_DEV_ADDR,rw_addr,Tx_Buffer,rw_num);
~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
../User/BL24C08.c(195): warning: implicit conversion loses integer precision: 'uint16_t' (aka 'unsigned short') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
I2C_EEPROM_RandomRead(EEPROM_DEV_ADDR,rw_addr,Rx_Buffer,rw_num);
~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
20 warnings generated.
compiling BL24C08.c...
../User/main.c(3): warning: In file included from...
../Lib/CMSIS/Device/Include\STAR.h(108): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_conf.h(11): warning: // comments are not allowed in this language [-Wcomment]
//#include "STAR_gpio.h"
^
../User/main.c(3): warning: In file included from...
../Lib/CMSIS/Device/Include\STAR.h(174): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(192): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(214): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(267): warning: // comments are not allowed in this language [-Wcomment]
typedef struct // Document DDI0194G_ssp_pl022_r1p3_trm.pdf
^
../User/main.c(7): warning: In file included from...
../User/io_i2c.h(11): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_rcc.h(41): warning: commas at the end of enumerator lists are a C99-specific feature [-Wc99-extensions]
APB_FREQ,
^
../User/main.c(7): warning: In file included from...
../User/io_i2c.h(17): warning: // comments are not allowed in this language [-Wcomment]
#define IO_SCL_BIT GPIO_Pin_15 //GPIO_15IICSCL
^
../User/io_i2c.h(32): warning: this function declaration is not a prototype [-Wstrict-prototypes]
void io_i2c_init();
^
void
../User/io_i2c.h(33): warning: this function declaration is not a prototype [-Wstrict-prototypes]
void io_i2c_pin_init();
^
void
../User/main.c(9): warning: // comments are not allowed in this language [-Wcomment]
//LED2 GPIO0_0
^
../User/main.c(86): warning: implicit conversion loses integer precision: 'uint16_t' (aka 'unsigned short') to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
Write_Buffer[i]=i;
~^
11 warnings generated.
compiling main.c...
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_rcc.c(1): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_rcc.h(9): warning: In file included from...
../Lib/CMSIS/Device/Include\STAR.h(108): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_conf.h(11): warning: // comments are not allowed in this language [-Wcomment]
//#include "STAR_gpio.h"
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_rcc.c(1): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_rcc.h(9): warning: In file included from...
../Lib/CMSIS/Device/Include\STAR.h(174): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(192): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(214): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(267): warning: // comments are not allowed in this language [-Wcomment]
typedef struct // Document DDI0194G_ssp_pl022_r1p3_trm.pdf
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_rcc.c(1): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_rcc.h(41): warning: commas at the end of enumerator lists are a C99-specific feature [-Wc99-extensions]
APB_FREQ,
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_rcc.c(7): warning: // comments are not allowed in this language [-Wcomment]
#define PCLK_DIV 0 //PCLK分频系数 该系数需与FPGA工程例化CM33时的PCLK_DIV�数一致
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_rcc.c(63): warning: default label in switch which covers all enumeration values [-Wcovered-switch-default]
default:
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_rcc.c(69): warning: no newline at end of file [-Wnewline-eof]
}
^
9 warnings generated.
compiling STAR_rcc.c...
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_retarget.c(2): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_rcc.h(9): warning: In file included from...
../Lib/CMSIS/Device/Include\STAR.h(108): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_conf.h(11): warning: // comments are not allowed in this language [-Wcomment]
//#include "STAR_gpio.h"
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_retarget.c(2): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_rcc.h(9): warning: In file included from...
../Lib/CMSIS/Device/Include\STAR.h(174): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(192): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(214): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(267): warning: // comments are not allowed in this language [-Wcomment]
typedef struct // Document DDI0194G_ssp_pl022_r1p3_trm.pdf
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_retarget.c(2): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_rcc.h(41): warning: commas at the end of enumerator lists are a C99-specific feature [-Wc99-extensions]
APB_FREQ,
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_retarget.c(3): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_uart.h(102): warning: // comments are not allowed in this language [-Wcomment]
#define UART_TxInterrupt 0x04 //(0x1UL<<2)
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_retarget.c(8): warning: // comments are not allowed in this language [-Wcomment]
//struct __FILE { int handle; /* Add whatever you need here */ };
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_retarget.c(16): warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion]
return (UartPutc(ch));
~~~~~~~~ ^~
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_retarget.c(15): warning: unused parameter 'f' [-Wunused-parameter]
int fputc(int ch, FILE *f) {
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_retarget.c(18): warning: unused parameter 'f' [-Wunused-parameter]
int fgetc(FILE *f) {
^
11 warnings generated.
compiling STAR_retarget.c...
../User/uart.c(1): warning: In file included from...
../Lib/CMSIS/Device/Include\STAR.h(108): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_conf.h(11): warning: // comments are not allowed in this language [-Wcomment]
//#include "STAR_gpio.h"
^
../User/uart.c(1): warning: In file included from...
../Lib/CMSIS/Device/Include\STAR.h(174): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(192): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(214): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(267): warning: // comments are not allowed in this language [-Wcomment]
typedef struct // Document DDI0194G_ssp_pl022_r1p3_trm.pdf
^
../User/uart.c(3): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_uart.h(102): warning: // comments are not allowed in this language [-Wcomment]
#define UART_TxInterrupt 0x04 //(0x1UL<<2)
^
../User/uart.c(4): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_rcc.h(41): warning: commas at the end of enumerator lists are a C99-specific feature [-Wc99-extensions]
APB_FREQ,
^
../User/uart.c(40): warning: // comments are not allowed in this language [-Wcomment]
GPIO_AF_Config(STAR_GPIO0, GPIO_AF_USART0_RXD, ENABLE); //GPIO[2]
^
../User/uart.c(3): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_uart.h(27): warning: padding size of 'UART_InitTypeDef' with 3 bytes to alignment boundary [-Wpadded]
typedef struct
^
../User/uart.c(63): warning: no previous prototype for function 'uart_init' [-Wmissing-prototypes]
void uart_init(uint32_t BundRate)
^
../User/uart.c(63): note: declare 'static' if the function is not intended to be used outside of this translation unit
void uart_init(uint32_t BundRate)
^
static
../User/uart.c(72): warning: no previous prototype for function 'UART0_Handler' [-Wmissing-prototypes]
void UART0_Handler(void)
^
../User/uart.c(72): note: declare 'static' if the function is not intended to be used outside of this translation unit
void UART0_Handler(void)
^
static
../User/uart.c(88): warning: no previous prototype for function 'UART1_Handler' [-Wmissing-prototypes]
void UART1_Handler(void)
^
../User/uart.c(88): note: declare 'static' if the function is not intended to be used outside of this translation unit
void UART1_Handler(void)
^
static
../User/uart.c(104): warning: no previous prototype for function 'UART2_Handler' [-Wmissing-prototypes]
void UART2_Handler(void)
^
../User/uart.c(104): note: declare 'static' if the function is not intended to be used outside of this translation unit
void UART2_Handler(void)
^
static
../User/uart.c(7): warning: unused function 'uart_interrupt_init' [-Wunused-function]
static void uart_interrupt_init(UART_TypeDef *UARTx)
^
14 warnings generated.
compiling uart.c...
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_gpio.c(1): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_gpio.h(8): warning: In file included from...
../Lib/CMSIS/Device/Include\STAR.h(108): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_conf.h(11): warning: // comments are not allowed in this language [-Wcomment]
//#include "STAR_gpio.h"
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_gpio.c(1): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_gpio.h(8): warning: In file included from...
../Lib/CMSIS/Device/Include\STAR.h(174): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(192): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(214): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(267): warning: // comments are not allowed in this language [-Wcomment]
typedef struct // Document DDI0194G_ssp_pl022_r1p3_trm.pdf
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_gpio.c(74): warning: // comments are not allowed in this language [-Wcomment]
//GPIOx->ALTFUNCCLR = ( 1 << GPIO_Pin_x );
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_gpio.c(100): warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
if((GPIOx->DATA &(Bit_SET << GPIO_Pin_x)) == Bit_RESET)
~ ~~~~~~~~^~~~~~~~~~~~~
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_gpio.c(250): warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
GPIOx->DATAOUT |= (Bit_SET << GPIO_Pin_x );
~~ ~~~~~~~~^~~~~~~~~~~~~
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_gpio.c(254): warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
GPIOx->DATAOUT &= (~(Bit_SET << GPIO_Pin_x ));
~~ ^~~~~~~~~~~~~~~~~~~~~~~~~
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_gpio.c(311): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
GPIOx->INTENSET = (Interrupt_ENABLE << GPIO_Pin_x);
~ ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_gpio.c(315): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
GPIOx->INTTYPECLR = (Interrupt_ENABLE<< GPIO_Pin_x);
~ ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_gpio.c(316): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
GPIOx->INTPOLCLR = (Interrupt_ENABLE << GPIO_Pin_x);
~ ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_gpio.c(319): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
GPIOx->INTTYPECLR = (Interrupt_ENABLE << GPIO_Pin_x);
~ ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_gpio.c(320): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
GPIOx->INTPOLSET = (Interrupt_ENABLE << GPIO_Pin_x);
~ ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_gpio.c(323): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
GPIOx->INTTYPESET = (Interrupt_ENABLE << GPIO_Pin_x);
~ ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_gpio.c(324): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
GPIOx->INTPOLCLR = (Interrupt_ENABLE << GPIO_Pin_x);
~ ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_gpio.c(327): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
GPIOx->INTTYPESET = (Interrupt_ENABLE << GPIO_Pin_x);
~ ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_gpio.c(328): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
GPIOx->INTPOLSET = (Interrupt_ENABLE << GPIO_Pin_x);
~ ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_gpio.c(334): warning: implicit conversion changes signedness: 'int' to 'uint32_t' (aka 'unsigned int') [-Wsign-conversion]
GPIOx->INTENCLR = (Interrupt_ENABLE << GPIO_Pin_x);
~ ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
19 warnings generated.
compiling STAR_gpio.c...
../Lib/CMSIS/Device/Source/system_ARMCM33.c(37): warning: // comments are not allowed in this language [-Wcomment]
// #include "ARMCM33_DSP_FP_TZ.h"
^
../Lib/CMSIS/Device/Source/system_ARMCM33.c(38): warning: In file included from...
../Lib/CMSIS/Core/Include\ARMv8MML_SP.h(36): warning: // comments are not allowed in this language [-Wcomment]
//mod by sdfu,useless
^
../Lib/CMSIS/Device/Source/system_ARMCM33.c(40): warning: In file included from...
../Lib/CMSIS/Device/Source/star_mpu.h(1): warning: // comments are not allowed in this language [-Wcomment]
//crate at 22.3.1 by sdfu
^
../Lib/CMSIS/Device/Source/system_ARMCM33.c(40): warning: In file included from...
../Lib/CMSIS/Device/Source/star_mpu.h(3): warning: In file included from...
../Lib/CMSIS/Core/Include\exectb_mcu.h(1): warning: // comments are not allowed in this language [-Wcomment]
//------------------------------------------------------------------------------
^
../Lib/CMSIS/Device/Source/system_ARMCM33.c(40): warning: In file included from...
../Lib/CMSIS/Device/Source/star_mpu.h(3): warning: In file included from...
../Lib/CMSIS/Core/Include\exectb_mcu.h(40): warning: In file included from...
../Lib/CMSIS/Core/Include/system_exectb_mcu.h(1): warning: // comments are not allowed in this language [-Wcomment]
//------------------------------------------------------------------------------
^
../Lib/CMSIS/Device/Source/system_ARMCM33.c(40): warning: In file included from...
../Lib/CMSIS/Device/Source/star_mpu.h(4): warning: In file included from...
../Lib/CMSIS/Core/Include\EXECTB_tests.h(1): warning: // comments are not allowed in this language [-Wcomment]
//------------------------------------------------------------------------------
^
../Lib/CMSIS/Device/Source/system_ARMCM33.c(40): warning: In file included from...
../Lib/CMSIS/Device/Source/star_mpu.h(4): warning: In file included from...
../Lib/CMSIS/Core/Include\EXECTB_tests.h(27): warning: In file included from...
../Lib/CMSIS/Core/Include/EXECTB_Config.h(1): warning: // comments are not allowed in this language [-Wcomment]
//------------------------------------------------------------------------------
^
../Lib/CMSIS/Device/Source/system_ARMCM33.c(40): warning: In file included from...
../Lib/CMSIS/Device/Source/star_mpu.h(4): warning: In file included from...
../Lib/CMSIS/Core/Include\EXECTB_tests.h(29): warning: In file included from...
../Lib/CMSIS/Core/Include/debugdriver_functions.h(1): warning: // comments are not allowed in this language [-Wcomment]
//------------------------------------------------------------------------------
^
../Lib/CMSIS/Device/Source/system_ARMCM33.c(40): warning: In file included from...
../Lib/CMSIS/Device/Source/star_mpu.h(60): warning: this function declaration is not a prototype [-Wstrict-prototypes]
void mpu_enable();
^
void
9 warnings generated.
compiling system_ARMCM33.c...
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_i2c.c(1): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_i2c.h(8): warning: In file included from...
../Lib/CMSIS/Device/Include\STAR.h(108): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_conf.h(11): warning: // comments are not allowed in this language [-Wcomment]
//#include "STAR_gpio.h"
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_i2c.c(1): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_i2c.h(8): warning: In file included from...
../Lib/CMSIS/Device/Include\STAR.h(174): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(192): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(214): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(267): warning: // comments are not allowed in this language [-Wcomment]
typedef struct // Document DDI0194G_ssp_pl022_r1p3_trm.pdf
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_i2c.c(1): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_i2c.h(52): warning: commas at the end of enumerator lists are a C99-specific feature [-Wc99-extensions]
DLY_CNT_0, /*total count is 0 */
^
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_i2c.h(73): warning: // comments are not allowed in this language [-Wcomment]
//usual: standard 100K; fast 400k: high 3.4M
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_i2c.c(2): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_rcc.h(41): warning: commas at the end of enumerator lists are a C99-specific feature [-Wc99-extensions]
APB_FREQ,
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_i2c.c(78): warning: // comments are not allowed in this language [-Wcomment]
// Reset clk_div_ratio, sda_del_sel and sda_del_cnt bits
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_i2c.c(79): warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
tmpval&= ~I2C_FREQ_AND_SDA_DLY_MASK;
~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_i2c.c(80): warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
tmpval |= ((clk_div<CONTROL |= ((Num&0x0f) << I2C_TX_NUM_Pos );
~~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~~
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_i2c.c(576): warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
I2Cx->CONTROL |= (TxbufferWlevel<CONTROL |= ( RxbufferWlevel << I2C_RX_BUFFER_LEVEL_Pos);
~~ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
16 warnings generated.
compiling STAR_i2c.c...
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_uart.c(1): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_uart.h(10): warning: In file included from...
../Lib/CMSIS/Device/Include\STAR.h(108): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_conf.h(11): warning: // comments are not allowed in this language [-Wcomment]
//#include "STAR_gpio.h"
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_uart.c(1): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_uart.h(10): warning: In file included from...
../Lib/CMSIS/Device/Include\STAR.h(174): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(192): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(214): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(267): warning: // comments are not allowed in this language [-Wcomment]
typedef struct // Document DDI0194G_ssp_pl022_r1p3_trm.pdf
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_uart.c(1): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_uart.h(102): warning: // comments are not allowed in this language [-Wcomment]
#define UART_TxInterrupt 0x04 //(0x1UL<<2)
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_uart.c(2): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_rcc.h(41): warning: commas at the end of enumerator lists are a C99-specific feature [-Wc99-extensions]
APB_FREQ,
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_uart.c(55): warning: // comments are not allowed in this language [-Wcomment]
//Baud rate divider. The minimum number is 16.
^
../Lib/CMSIS/Device/StdPeriph_Driver/src/STAR_uart.c(1): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_uart.h(27): warning: padding size of 'UART_InitTypeDef' with 3 bytes to alignment boundary [-Wpadded]
typedef struct
^
9 warnings generated.
compiling STAR_uart.c...
../User/io_i2c.c(7): warning: In file included from...
../User/io_i2c.h(11): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_rcc.h(9): warning: In file included from...
../Lib/CMSIS/Device/Include\STAR.h(108): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_conf.h(11): warning: // comments are not allowed in this language [-Wcomment]
//#include "STAR_gpio.h"
^
../User/io_i2c.c(7): warning: In file included from...
../User/io_i2c.h(11): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_rcc.h(9): warning: In file included from...
../Lib/CMSIS/Device/Include\STAR.h(174): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(192): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(214): warning: anonymous unions are a C11 extension [-Wc11-extensions]
union {
^
../Lib/CMSIS/Device/Include\STAR.h(267): warning: // comments are not allowed in this language [-Wcomment]
typedef struct // Document DDI0194G_ssp_pl022_r1p3_trm.pdf
^
../User/io_i2c.c(7): warning: In file included from...
../User/io_i2c.h(11): warning: In file included from...
../Lib/CMSIS/Device/StdPeriph_Driver/inc\STAR_rcc.h(41): warning: commas at the end of enumerator lists are a C99-specific feature [-Wc99-extensions]
APB_FREQ,
^
../User/io_i2c.c(7): warning: In file included from...
../User/io_i2c.h(17): warning: // comments are not allowed in this language [-Wcomment]
#define IO_SCL_BIT GPIO_Pin_15 //GPIO_15IICSCL
^
../User/io_i2c.h(32): warning: this function declaration is not a prototype [-Wstrict-prototypes]
void io_i2c_init();
^
void
../User/io_i2c.h(33): warning: this function declaration is not a prototype [-Wstrict-prototypes]
void io_i2c_pin_init();
^
void
../User/io_i2c.c(25): warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
set_io_i2c_sda_high();
^
../User/io_i2c.c(28): warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
set_io_i2c_sda_low();
^
../User/io_i2c.c(34): warning: implicit conversion loses integer precision: 'int' to 'short' [-Wimplicit-int-conversion]
data = data << 1;
~ ~~~~~^~~~
../User/io_i2c.c(37): warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
set_io_i2c_sda_high();
^
../User/io_i2c.c(17): warning: no previous prototype for function 'io_i2c_bit_shift_out' [-Wmissing-prototypes]
int io_i2c_bit_shift_out(short data)
^
../User/io_i2c.c(17): note: declare 'static' if the function is not intended to be used outside of this translation unit
int io_i2c_bit_shift_out(short data)
^
static
../User/io_i2c.c(62): warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
set_io_i2c_sda_high();
^
../User/io_i2c.c(70): warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion]
ret = ret << 1;
~ ~~~~^~~~
../User/io_i2c.c(83): warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
set_io_i2c_sda_high();
^
../User/io_i2c.c(86): warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
set_io_i2c_sda_low();
^
../User/io_i2c.c(92): warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
set_io_i2c_sda_high();
^
../User/io_i2c.c(58): warning: no previous prototype for function 'io_i2c_bit_shift_in' [-Wmissing-prototypes]
int io_i2c_bit_shift_in(char ack)
^
../User/io_i2c.c(58): note: declare 'static' if the function is not intended to be used outside of this translation unit
int io_i2c_bit_shift_in(char ack)
^
static
../User/io_i2c.c(105): warning: // comments are not allowed in this language [-Wcomment]
set_io_i2c_sda_high();//SDAߵƽ
^
../User/io_i2c.c(105): warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
set_io_i2c_sda_high();//SDAߵƽ
^
../User/io_i2c.c(108): warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
set_io_i2c_sda_low();//SDA͵ƽ
^
../User/io_i2c.c(103): warning: no previous prototype for function 'io_i2c_start' [-Wmissing-prototypes]
void io_i2c_start()
^
../User/io_i2c.c(103): note: declare 'static' if the function is not intended to be used outside of this translation unit
void io_i2c_start()
^
static
../User/io_i2c.c(103): warning: this old-style function definition is not preceded by a prototype [-Wstrict-prototypes]
void io_i2c_start()
^
../User/io_i2c.c(122): warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
set_io_i2c_sda_low();//SDA͵ƽ
^
../User/io_i2c.c(126): warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
set_io_i2c_sda_high();//SDAߵƽ
^
../User/io_i2c.c(120): warning: no previous prototype for function 'io_i2c_stop' [-Wmissing-prototypes]
void io_i2c_stop()
^
../User/io_i2c.c(120): note: declare 'static' if the function is not intended to be used outside of this translation unit
void io_i2c_stop()
^
static
../User/io_i2c.c(120): warning: this old-style function definition is not preceded by a prototype [-Wstrict-prototypes]
void io_i2c_stop()
^
../User/io_i2c.c(176): warning: implicit conversion loses integer precision: 'int' to 'char' [-Wimplicit-int-conversion]
data = io_i2c_bit_shift_in(1);
~ ^~~~~~~~~~~~~~~~~~~~~~
../User/io_i2c.c(236): warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
*buf++ = io_i2c_bit_shift_in(0);
~ ^~~~~~~~~~~~~~~~~~~~~~
../User/io_i2c.c(239): warning: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Wimplicit-int-conversion]
*buf++ = io_i2c_bit_shift_in(1);
~ ^~~~~~~~~~~~~~~~~~~~~~
../User/io_i2c.c(252): warning: empty expression statement has no effect; remove unnecessary ';' to silence this warning [-Wextra-semi-stmt]
set_io_i2c_sda_high();//SDAߵƽ
^
../User/io_i2c.c(250): warning: no previous prototype for function 'io_i2c_init' [-Wmissing-prototypes]
void io_i2c_init() {
^
../User/io_i2c.h(32): note: this declaration is not a prototype; add 'void' to make it a prototype for a zero-parameter function
void io_i2c_init();
^
void
../User/io_i2c.c(250): warning: this old-style function definition is not preceded by a prototype [-Wstrict-prototypes]
void io_i2c_init() {
^
../User/io_i2c.c(256): warning: no previous prototype for function 'io_i2c_pin_init' [-Wmissing-prototypes]
void io_i2c_pin_init()
^
../User/io_i2c.h(33): note: this declaration is not a prototype; add 'void' to make it a prototype for a zero-parameter function
void io_i2c_pin_init();
^
void
../User/io_i2c.c(256): warning: this old-style function definition is not preceded by a prototype [-Wstrict-prototypes]
void io_i2c_pin_init()
^
../User/io_i2c.c(272): warning: no newline at end of file [-Wnewline-eof]
}
^
../User/io_i2c.c(8): warning: no previous extern declaration for non-static variable 'watch_i' [-Wmissing-variable-declarations]
unsigned char watch_i;
^
../User/io_i2c.c(8): note: declare 'static' if the variable is not intended to be used outside of this translation unit
unsigned char watch_i;
^
39 warnings generated.
compiling io_i2c.c...
assembling startup_ARMCM33.s...
linking...
Program Size: Code=10144 RO-data=2856 RW-data=4 ZI-data=3260
After Build - User command #1: fromelf.exe H:\01_xist\ac201_50\ex5_i2c\MCU_Prj\MDK\Objects\i2c.axf --bin -o i2c.bin
After Build - User command #2: mergeBinFileAndProgram.bat
ϵͳÕÒ²»µ½Ö¸¶¨µÄ·¾¶¡£
'cable.exe' ²»ÊÇÄÚ²¿»òÍⲿÃüÁҲ²»ÊÇ¿ÉÔËÐеijÌÐò
»òÅú´¦ÀíÎļþ¡£
'cable.exe' ²»ÊÇÄÚ²¿»òÍⲿÃüÁҲ²»ÊÇ¿ÉÔËÐеijÌÐò
»òÅú´¦ÀíÎļþ¡£
".\Objects\i2c.axf" - 0 Error(s), 157 Warning(s).
Software Packages used:
Package Vendor: ARM
http://www.keil.com/pack/ARM.CMSIS.5.8.0.pack
ARM.CMSIS.5.8.0
CMSIS (Common Microcontroller Software Interface Standard)
Collection of Component include folders:
H:\keil\ARM\CMSIS\5.8.0\Device\ARM\ARMCM33\Include
Collection of Component Files used:
Build Time Elapsed: 00:00:03