uint8_t UserRxBuffer[APP_RX_DATA_SIZE] @ "RAM128K" = {0};/* Received Data over USB are stored in this buffer */
uint8_t UserTxBuffer[APP_TX_DATA_SIZE] @ "RAM128K" = {0};/* Received Data over UART (CDC interface) are stored in this buffer */
uint16_t g_UsbRxLen @ "RAM128K" = {0}; //usb接收PC发送的数据长度
icfw文件:
define region RAM128K_region = mem:[from __ICFEDIT_region_RAM128K_start__ to __ICFEDIT_region_RAM128K_end__];
place in RAM128K_region {section RAM128K};