diff --git a/bsp/imxrt1052-evk/.config b/bsp/imxrt1052-evk/.config index c87ac99395d1eb0bfa0ecec4cb60392cec4dd6c7..0c6ea00ec9f911dd57962f8940634ddaa800328a 100644 --- a/bsp/imxrt1052-evk/.config +++ b/bsp/imxrt1052-evk/.config @@ -148,6 +148,7 @@ CONFIG_RT_USING_SDIO=y CONFIG_RT_USING_LIBC=y # CONFIG_RT_USING_PTHREADS is not set # CONFIG_RT_USING_POSIX is not set +# CONFIG_HAVE_SYS_SIGNALS is not set # # Network stack @@ -236,14 +237,6 @@ CONFIG_LWIP_NETIF_LOOPBACK=0 # RT-Thread GUI Engine # # CONFIG_PKG_USING_GUIENGINE is not set -# CONFIG_GUIENGINE_IMAGE_JPEG_NONE is not set -# CONFIG_GUIENGINE_IMAGE_JPEG is not set -# CONFIG_GUIENGINE_IMAGE_TJPGD is not set -# CONFIG_GUIENGINE_IMAGE_PNG_NONE is not set -# CONFIG_GUIENGINE_IMAGE_PNG is not set -# CONFIG_GUIENGINE_IMAGE_LODEPNG is not set -# CONFIG_PKG_USING_GUIENGINE_V200 is not set -# CONFIG_PKG_USING_GUIENGINE_LATEST_VERSION is not set # CONFIG_PKG_USING_PERSIMMON is not set # CONFIG_PKG_USING_LWEXT4 is not set # CONFIG_PKG_USING_PARTITION is not set @@ -278,6 +271,7 @@ CONFIG_LWIP_NETIF_LOOPBACK=0 # CONFIG_PKG_USING_WLAN_WICED is not set # CONFIG_PKG_USING_COAP is not set # CONFIG_PKG_USING_NOPOLL is not set +# CONFIG_PKG_USING_NETUTILS is not set # # security packages diff --git a/bsp/imxrt1052-evk/Libraries/gcc/MIMXRT1052xxxxx_flexspi_nor.ld b/bsp/imxrt1052-evk/Libraries/gcc/MIMXRT1052xxxxx_flexspi_nor.ld index 993d8589a92584aee109de085e786132771ef10c..e459198fc268c85aab36562c62766fd5dd3e27d0 100644 --- a/bsp/imxrt1052-evk/Libraries/gcc/MIMXRT1052xxxxx_flexspi_nor.ld +++ b/bsp/imxrt1052-evk/Libraries/gcc/MIMXRT1052xxxxx_flexspi_nor.ld @@ -218,14 +218,14 @@ SECTIONS *(NonCacheable.init) . = ALIGN(4); __noncachedata_init_end__ = .; /* create a global symbol at initialized ncache data end */ - } > m_dtcm + } > m_nocache . = __noncachedata_init_end__; .ncache : { *(NonCacheable) . = ALIGN(4); __noncachedata_end__ = .; /* define a global symbol at ncache data end */ - } > m_dtcm + } > m_nocache __DATA_END = __NDATA_ROM + (__noncachedata_init_end__ - __noncachedata_start__); text_end = ORIGIN(m_text) + LENGTH(m_text); diff --git a/bsp/imxrt1052-evk/applications/mem_test.c b/bsp/imxrt1052-evk/applications/mem_test.c index b8d0e8a617801eaf1a3658d2e30b52bd569125b6..67726c84d6d46df87635ad1e85f609594e5c8579 100644 --- a/bsp/imxrt1052-evk/applications/mem_test.c +++ b/bsp/imxrt1052-evk/applications/mem_test.c @@ -78,7 +78,7 @@ void mem_test(uint32_t address, uint32_t size ) for(i=0; i -#include "string.h" - -#define __is_print(ch) ((unsigned int)((ch) - ' ') < 127u - ' ') -static void dump_hex(const rt_uint8_t *ptr, rt_size_t buflen) -{ - unsigned char *buf = (unsigned char*)ptr; - int i, j; - - for (i=0; iparent.name); - rt_kprintf("the first sector failed.\r\n"); - goto __return; - } - rt_kprintf("\n"); - } - -__return: - if( read_buffer != RT_NULL ) - { - rt_free(read_buffer); - } -} - -static void write_sd__(uint32_t addr, int length, unsigned char data) -{ - int i; - rt_device_t device = RT_NULL; - rt_err_t result; - struct rt_device_blk_geometry geometry; - rt_uint8_t * write_buffer = RT_NULL; - rt_uint8_t * data_point = RT_NULL;; - - device = rt_device_find("sd0"); - rt_device_init(device); - rt_device_open(device,RT_DEVICE_FLAG_RDWR); - - rt_memset(&geometry, 0, sizeof(geometry)); - result = rt_device_control(device, - RT_DEVICE_CTRL_BLK_GETGEOME, - &geometry); - rt_kprintf("device info:\r\n"); - rt_kprintf("sector size : %d byte\r\n", geometry.bytes_per_sector); - rt_kprintf("sector count : %d \r\n", geometry.sector_count); - rt_kprintf("block size : %d byte\r\n", geometry.block_size); - rt_kprintf("\r\n"); - write_buffer = rt_malloc(geometry.bytes_per_sector); - if( write_buffer == RT_NULL ) - { - rt_kprintf("no memory for write_buffer!\r\n"); - goto __return; - } - data_point = write_buffer; - - for(i=data; i -FINSH_FUNCTION_EXPORT_ALIAS(sdio_read, sdior, sdio read test); -FINSH_FUNCTION_EXPORT_ALIAS(sdio_write, sdiow, sdio write test); -#endif diff --git a/bsp/imxrt1052-evk/drivers/drv_eth.c b/bsp/imxrt1052-evk/drivers/drv_eth.c index 2678336c8397e74630795b405ac3969112f24766..3bd9cdcc7298662f620c7c1daaf648cb41b4543d 100644 --- a/bsp/imxrt1052-evk/drivers/drv_eth.c +++ b/bsp/imxrt1052-evk/drivers/drv_eth.c @@ -572,9 +572,10 @@ static void phy_monitor_thread_entry(void *parameter) if (link) // link up { - PHY_GetLinkSpeedDuplex(imxrt_eth_device.enet_base, PHY_ADDRESS, &speed, &duplex); + PHY_GetLinkSpeedDuplex(imxrt_eth_device.enet_base, + PHY_ADDRESS, &speed, &duplex); - if (kENET_MiiSpeed10M == speed) + if (kPHY_Speed10M == speed) { dbg_log(DBG_LOG, "10M\n"); } @@ -583,7 +584,7 @@ static void phy_monitor_thread_entry(void *parameter) dbg_log(DBG_LOG, "100M\n"); } - if (kENET_MiiHalfDuplex == duplex) + if (kPHY_HalfDuplex == duplex) { dbg_log(DBG_LOG, "half dumplex\n"); } @@ -592,7 +593,8 @@ static void phy_monitor_thread_entry(void *parameter) dbg_log(DBG_LOG, "full dumplex\n"); } - if ((imxrt_eth_device.speed != speed) || (imxrt_eth_device.duplex != duplex)) + if ((imxrt_eth_device.speed != (enet_mii_speed_t)speed) + || (imxrt_eth_device.duplex != (enet_mii_duplex_t)duplex)) { imxrt_eth_device.speed = (enet_mii_speed_t)speed; imxrt_eth_device.duplex = (enet_mii_duplex_t)duplex; diff --git a/bsp/imxrt1052-evk/drivers/usart.c b/bsp/imxrt1052-evk/drivers/usart.c index 2c026c0a432712e691ac2386b8c7d3f32617f3e7..68c0f500eeef2ed6f7a0c02717e44a3fa0937af0 100644 --- a/bsp/imxrt1052-evk/drivers/usart.c +++ b/bsp/imxrt1052-evk/drivers/usart.c @@ -114,7 +114,7 @@ void UART7_IRQHandler(void) #if defined(RT_USING_UART8) struct rt_serial_device serial8; -void UART7_IRQHandler(void) +void UART8_IRQHandler(void) { uart_isr(&serial8); } diff --git a/bsp/imxrt1052-evk/project.ewp b/bsp/imxrt1052-evk/project.ewp index b202eca56be1c4d2441e961d403c28ae6a7dfaa6..d3ff73d2a76392afdb45863eb4cf30932c19ad86 100644 --- a/bsp/imxrt1052-evk/project.ewp +++ b/bsp/imxrt1052-evk/project.ewp @@ -220,7 +220,6 @@ SKIP_SYSCLK_INIT EVK_MCIMXRM FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1 - FT2_BUILD_LIBRARY RT_USING_DLIBC _DLIB_FILE_DESCRIPTOR @@ -354,38 +353,20 @@ $PROJ_DIR$\..\..\libcpu\arm\common $PROJ_DIR$\..\..\components\drivers\include $PROJ_DIR$\Libraries\drivers - $PROJ_DIR$\..\..\components\dfs\filesystems\devfs - $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\include - $PROJ_DIR$\..\..\components\gui\libraries\freetype-2.6.2\include\freetype - $PROJ_DIR$\..\..\components\gui\include - $PROJ_DIR$\drivers + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src + $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\include\posix $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\include\ipv4 - $PROJ_DIR$\..\..\components\gui\include\rtgui $PROJ_DIR$\. - $PROJ_DIR$\..\..\components\gui\libraries\freetype-2.6.2\src\smooth $PROJ_DIR$\..\..\libcpu\arm\cortex-m7 $PROJ_DIR$\..\..\components\dfs\include - $PROJ_DIR$\..\..\components\gui\libraries\lodepng - $PROJ_DIR$\..\..\components\gui\libraries\freetype-2.6.2\include - $PROJ_DIR$\..\..\components\gui\libraries\freetype-2.6.2\include\freetype\internal - $PROJ_DIR$\..\..\components\gui\libraries\freetype-2.6.2\include\freetype\internal\services - $PROJ_DIR$\..\..\components\gui\src + $PROJ_DIR$\..\..\components\dfs\filesystems\devfs $PROJ_DIR$\Libraries\CMSIS\Include $PROJ_DIR$\Libraries\utilities - $PROJ_DIR$\..\..\components\gui\libraries\freetype-2.6.2\src\sfnt $PROJ_DIR$\applications $PROJ_DIR$\..\..\components\finsh $PROJ_DIR$\..\..\components\dfs\filesystems\elmfat - $PROJ_DIR$\..\..\components\gui\libraries\freetype-2.6.2\src\truetype - $PROJ_DIR$\..\..\components\gui\libraries\freetype-2.6.2\src\psnames - $PROJ_DIR$\..\..\components\gui\libraries\freetype-2.6.2\src\autofit - $PROJ_DIR$\..\..\components\gui\libraries\freetype-2.6.2\src\cache - $PROJ_DIR$\..\..\components\gui\libraries\freetype-2.6.2\include\freetype\config - $PROJ_DIR$\..\..\components\gui\include\rtgui\widgets - $PROJ_DIR$\..\..\components\gui\libraries\freetype-2.6.2\src\base - $PROJ_DIR$\..\..\components\gui\libraries\freetype-2.6.2\builds\rt-thread - $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\include\posix + $PROJ_DIR$\drivers $PROJ_DIR$\..\..\components\net\lwip-2.0.2\src\arch\include