From 62e2a44d7165bd7337c93b8915c08ad5dd6d247f Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 5 Mar 2014 12:34:49 +0700 Subject: [PATCH] added init file for 43xx ram with keil keil host os none work with ngx4330 board --- demos/host/host_os_none/host_os_none.uvopt | 325 +++++++-- demos/host/host_os_none/host_os_none.uvproj | 770 ++++++++++++++++++++ demos/host/host_os_none/keil_ram.ini | 11 + 3 files changed, 1057 insertions(+), 49 deletions(-) create mode 100644 demos/host/host_os_none/keil_ram.ini diff --git a/demos/host/host_os_none/host_os_none.uvopt b/demos/host/host_os_none/host_os_none.uvopt index c16722b4..13eea9b2 100644 --- a/demos/host/host_os_none/host_os_none.uvopt +++ b/demos/host/host_os_none/host_os_none.uvopt @@ -499,7 +499,7 @@ 1 0 - 1 + 0 8 @@ -685,9 +685,236 @@ + + Board NGX4330 + 0x4 + ARM-ADS + + 12000000 + + 1 + 1 + 1 + 0 + + + 1 + 65535 + 0 + 0 + 0 + + + 79 + 66 + 8 + .\UV4Build\ + + + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 0 + 0 + 0 + 0 + + + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + + + 1 + 0 + 1 + + 8 + + + 0 + Data Sheet + DATASHTS\NXP\LPC43xx\LPC43x0_DS.pdf + + + 1 + User Manual + DATASHTS\NXP\LPC43xx\LPC43xx_UM.pdf + + + 2 + Technical Reference Manual + datashts\arm\cortex_m4\r0p1\DDI0439C_CORTEX_M4_R0P1_TRM.PDF + + + 3 + Generic User Guide + datashts\arm\cortex_m4\r0p1\DUI0553A_CORTEX_M4_DGUG.PDF + + + + SARMCM3.DLL + -MPU + DCM.DLL + -pCM4 + SARMCM3.DLL + -MPU + TCM.DLL + -pCM4 + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + 7 + + + + + + + + + + .\keil_ram.ini + Segger\JL2CM3.dll + + + + 0 + DLGUARM + + + + 0 + DLGTARM + (1010=-1,-1,-1,-1,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)(1012=-1,-1,-1,-1,0) + + + 0 + ARMDBGFLAGS + + + + 0 + JL2CM3 + -U268003250 -O1006 -S8 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(2BA01477) -L00(4) -TO19 -TC72000000 -TP21 -TDS800B -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB5 -TFE1 -FO15 -FD10000000 -FC800 -FN0 + + + 0 + UL2CM3 + -O975 -S0 -C0) + + + + + + 0 + 1 + usbh_devices + + + 1 + 1 + ehci_data + + + 2 + 1 + ehci_data.device[1] + + + 3 + 1 + ehci_data.device[0] + + + 4 + 1 + hub_data + + + 5 + 1 + disk_state + + + 6 + 1 + **path + + + + + 1 + 0 + 0x20002067 + + + + 0 + 1 + 1 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + 0 + + + + + + app - 0 + 1 0 0 0 @@ -697,10 +924,10 @@ 1 0 0 - 11 + 0 0 - 144 - 152 + 109 + 112 0 ..\src\main.c main.c @@ -715,8 +942,8 @@ 0 3 0 - 1 - 2 + 0 + 0 0 ..\src\cdc_serial_app.c cdc_serial_app.c @@ -731,8 +958,8 @@ 0 0 0 - 1 - 1 + 0 + 0 0 ..\src\keyboard_app.c keyboard_app.c @@ -745,10 +972,10 @@ 1 0 0 - 44 + 0 0 - 0 - 0 + 121 + 130 0 ..\src\mouse_app.c mouse_app.c @@ -763,8 +990,8 @@ 0 0 0 - 1 - 1 + 0 + 0 0 ..\src\rndis_app.c rndis_app.c @@ -777,10 +1004,10 @@ 1 0 0 - 0 + 38 0 - 1 - 1 + 143 + 150 0 ..\src\msc_app.c msc_app.c @@ -795,8 +1022,8 @@ 0 0 0 - 242 - 250 + 0 + 0 0 ..\src\cli.c cli.c @@ -867,8 +1094,8 @@ 0 0 0 - 1 - 1 + 0 + 0 0 ..\..\..\tinyusb\host\hub.c hub.c @@ -883,8 +1110,8 @@ 0 0 0 - 359 - 362 + 0 + 0 0 ..\..\..\tinyusb\host\usbh.c usbh.c @@ -899,8 +1126,8 @@ 0 0 0 - 276 - 284 + 0 + 0 0 ..\..\..\tinyusb\host\ehci\ehci.c ehci.c @@ -947,8 +1174,8 @@ 0 26 0 - 61 - 69 + 0 + 0 0 ..\..\..\tinyusb\hal\hal_lpc43xx.c hal_lpc43xx.c @@ -979,8 +1206,8 @@ 0 0 0 - 1 - 9 + 0 + 0 0 ..\..\..\tinyusb\common\errors.c errors.c @@ -995,8 +1222,8 @@ 0 0 0 - 55 - 62 + 0 + 0 0 ..\..\..\tinyusb\common\fifo.c fifo.c @@ -1059,8 +1286,8 @@ 0 0 0 - 1 - 1 + 0 + 0 0 ..\..\..\tinyusb\class\msc_host.c msc_host.c @@ -1243,8 +1470,8 @@ 0 47 0 - 51 - 59 + 0 + 0 0 ..\..\..\vendor\fatfs\diskio.c diskio.c @@ -1257,10 +1484,10 @@ 1 0 0 - 0 + 19 0 - 1701 - 1713 + 3183 + 3195 0 ..\..\..\vendor\fatfs\ff.c ff.c @@ -1275,8 +1502,8 @@ 0 0 0 - 1 - 1 + 0 + 0 0 ..\..\..\vendor\fatfs\ccsbcs.c ccsbcs.c @@ -1327,12 +1554,12 @@ 4 39 1 - 1 + 0 0 3 0 - 95 - 138 + 0 + 0 0 ..\..\bsp\boards\printf_retarget.c printf_retarget.c @@ -1465,10 +1692,10 @@ 2 0 0 - 19 + 30 0 - 149 - 152 + 144 + 153 0 ..\..\bsp\lpc43xx\startup_keil\startup_LPC43xx.s startup_LPC43xx.s @@ -1531,8 +1758,8 @@ 0 3 0 - 579 - 580 + 0 + 0 0 ..\..\bsp\lpc43xx\CMSIS_LPC43xx_DriverLib\src\lpc43xx_cgu.c lpc43xx_cgu.c @@ -1575,7 +1802,7 @@ bsp lpc175x_6x - 1 + 0 0 0 0 diff --git a/demos/host/host_os_none/host_os_none.uvproj b/demos/host/host_os_none/host_os_none.uvproj index 53ecd1fd..222539d0 100644 --- a/demos/host/host_os_none/host_os_none.uvproj +++ b/demos/host/host_os_none/host_os_none.uvproj @@ -2356,6 +2356,776 @@ + + Board NGX4330 + 0x4 + ARM-ADS + + + LPC4330 + NXP (founded by Philips) + IRAM(0x10000000-0x1001FFFF) IRAM2(0x20000000-0x2000FFFF) CLOCK(12000000) CPUTYPE("Cortex-M4") FPU2 + + "STARTUP\NXP\LPC43xx\startup_LPC43xx.s" ("NXP LPC43xx Startup Code") + UL2CM3(-O975 -S0 -C0) + 6193 + LPC43xx.H + + + + + + + + + + SFD\NXP\LPC43xx\LPC43xx.SFR + 0 + + + + NXP\LPC43xx\ + NXP\LPC43xx\ + + 0 + 0 + 0 + 0 + 1 + + .\UV4Build\ + host_os_none + 1 + 0 + 0 + 1 + 1 + .\UV4Build\ + 1 + 0 + 0 + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 0 + 0 + + + 0 + 0 + + + 0 + 0 + $K\ARM\BIN\ELFDWT.EXE !L BASEADDRESS(0x10000000) + + 0 + 0 + + 0 + + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + + + SARMCM3.DLL + -MPU + DCM.DLL + -pCM4 + SARMCM3.DLL + -MPU + TCM.DLL + -pCM4 + + + + 1 + 0 + 0 + 0 + 16 + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + + + 1 + 1 + 0 + 1 + 1 + 1 + 0 + 1 + 1 + + 0 + 7 + + + + + + + + + + + + + .\keil_ram.ini + Segger\JL2CM3.dll + + + + + 0 + 1 + 0 + 1 + 1 + 4099 + + Segger\JL2CM3.dll + "" () + + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + "Cortex-M4" + + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 2 + 1 + 0 + 8 + 1 + 0 + 0 + 3 + 3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 1 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x10000000 + 0x20000 + + + 1 + 0x1a000000 + 0x80000 + + + 0 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x10000000 + 0x18000 + + + 1 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x10080000 + 0xa000 + + + 0 + 0x20000000 + 0x10000 + + + + + + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + --gnu --c99 --diag_suppress=66 + CORE_M4 TUSB_CFG_MCU=MCU_LPC43XX BOARD=BOARD_NGX4330 TUSB_CFG_OS=TUSB_OS_NONE + + ..\src;..\..\bsp\lpc43xx\CMSIS_LPC43xx_DriverLib\inc;..\..\bsp;..\..\..\tinyusb;..\..\..\vendor\fatfs + + + + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + NO_CRP + + + + + + 1 + 0 + 0 + 0 + 1 + 0 + 0x1A000000 + 0x10000000 + + + + + + + + + + + + app + + + main.c + 1 + ..\src\main.c + + + cdc_serial_app.c + 1 + ..\src\cdc_serial_app.c + + + keyboard_app.c + 1 + ..\src\keyboard_app.c + + + mouse_app.c + 1 + ..\src\mouse_app.c + + + rndis_app.c + 1 + ..\src\rndis_app.c + + + msc_app.c + 1 + ..\src\msc_app.c + + + cli.c + 1 + ..\src\cli.c + + + + + tinyusb + + + tusb.c + 1 + ..\..\..\tinyusb\tusb.c + + + osal_none.c + 1 + ..\..\..\tinyusb\osal\osal_none.c + + + hcd.c + 1 + ..\..\..\tinyusb\host\hcd.c + + + hub.c + 1 + ..\..\..\tinyusb\host\hub.c + + + usbh.c + 1 + ..\..\..\tinyusb\host\usbh.c + + + ehci.c + 1 + ..\..\..\tinyusb\host\ehci\ehci.c + + + hal_lpc11uxx.c + 1 + ..\..\..\tinyusb\hal\hal_lpc11uxx.c + + + hal_lpc13uxx.c + 1 + ..\..\..\tinyusb\hal\hal_lpc13uxx.c + + + hal_lpc43xx.c + 1 + ..\..\..\tinyusb\hal\hal_lpc43xx.c + + + hal_lpc175x_6x.c + 1 + ..\..\..\tinyusb\hal\hal_lpc175x_6x.c + + + errors.c + 1 + ..\..\..\tinyusb\common\errors.c + + + fifo.c + 1 + ..\..\..\tinyusb\common\fifo.c + + + cdc_host.c + 1 + ..\..\..\tinyusb\class\cdc_host.c + + + cdc_rndis_host.c + 1 + ..\..\..\tinyusb\class\cdc_rndis_host.c + + + hid_host.c + 1 + ..\..\..\tinyusb\class\hid_host.c + + + msc_host.c + 1 + ..\..\..\tinyusb\class\msc_host.c + + + dcd.c + 1 + ..\..\..\tinyusb\device\dcd.c + + + dcd_lpc_11uxx_13uxx.c + 1 + ..\..\..\tinyusb\device\dcd_lpc_11uxx_13uxx.c + + + dcd_lpc43xx.c + 1 + ..\..\..\tinyusb\device\dcd_lpc43xx.c + + + dcd_lpc175x_6x.c + 1 + ..\..\..\tinyusb\device\dcd_lpc175x_6x.c + + + usbd.c + 1 + ..\..\..\tinyusb\device\usbd.c + + + ohci.c + 1 + ..\..\..\tinyusb\host\ohci\ohci.c + + + cdc_device.c + 1 + ..\..\..\tinyusb\class\cdc_device.c + + + custom_class_host.c + 1 + ..\..\..\tinyusb\class\custom_class_host.c + + + hid_device.c + 1 + ..\..\..\tinyusb\class\hid_device.c + + + msc_device.c + 1 + ..\..\..\tinyusb\class\msc_device.c + + + + + fatfs + + + diskio.c + 1 + ..\..\..\vendor\fatfs\diskio.c + + + ff.c + 1 + ..\..\..\vendor\fatfs\ff.c + + + ccsbcs.c + 1 + ..\..\..\vendor\fatfs\ccsbcs.c + + + + + boards + + + board.c + 1 + ..\..\bsp\boards\board.c + + + board_ea4357.c + 1 + ..\..\bsp\boards\embedded_artists\ea4357\board_ea4357.c + + + printf_retarget.c + 1 + ..\..\bsp\boards\printf_retarget.c + + + pca9532.c + 1 + ..\..\bsp\boards\embedded_artists\oem_base_board\pca9532.c + + + board_ngx4330.c + 1 + ..\..\bsp\boards\ngx\board_ngx4330.c + + + board_lpc4357usb.c + 1 + ..\..\bsp\boards\microbuilder\board_lpc4357usb.c + + + board_rf1ghznode.c + 1 + ..\..\bsp\boards\microbuilder\board_rf1ghznode.c + + + board_lpcxpresso1769.c + 1 + ..\..\bsp\boards\lpcxpresso\board_lpcxpresso1769.c + + + board_lpcxpresso1347.c + 1 + ..\..\bsp\boards\lpcxpresso\board_lpcxpresso1347.c + + + board_mcb4300.c + 1 + ..\..\bsp\boards\keil\board_mcb4300.c + + + + + bsp lpc43xx + + + startup_LPC43xx.s + 2 + ..\..\bsp\lpc43xx\startup_keil\startup_LPC43xx.s + + + system_LPC43xx.c + 1 + ..\..\bsp\lpc43xx\CMSIS_LPC43xx_DriverLib\src\system_LPC43xx.c + + + lpc43xx_i2c.c + 1 + ..\..\bsp\lpc43xx\CMSIS_LPC43xx_DriverLib\src\lpc43xx_i2c.c + + + lpc43xx_scu.c + 1 + ..\..\bsp\lpc43xx\CMSIS_LPC43xx_DriverLib\src\lpc43xx_scu.c + + + lpc43xx_cgu.c + 1 + ..\..\bsp\lpc43xx\CMSIS_LPC43xx_DriverLib\src\lpc43xx_cgu.c + + + lpc43xx_gpio.c + 1 + ..\..\bsp\lpc43xx\CMSIS_LPC43xx_DriverLib\src\lpc43xx_gpio.c + + + lpc43xx_uart.c + 1 + ..\..\bsp\lpc43xx\CMSIS_LPC43xx_DriverLib\src\lpc43xx_uart.c + + + + + bsp lpc175x_6x + + + 0 + 0 + 0 + 0 + 0 + 0 + 2 + 2 + 2 + 2 + 11 + + + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + + + + + + + + + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + + + + + + + + + + + + core_cm3.c + 1 + ..\..\bsp\lpc175x_6x\CMSISv2p00_LPC17xx\src\core_cm3.c + + + system_LPC17xx.c + 1 + ..\..\bsp\lpc175x_6x\CMSISv2p00_LPC17xx\src\system_LPC17xx.c + + + lpc17xx_clkpwr.c + 1 + ..\..\bsp\lpc175x_6x\LPC17xx_DriverLib\source\lpc17xx_clkpwr.c + + + lpc17xx_gpio.c + 1 + ..\..\bsp\lpc175x_6x\LPC17xx_DriverLib\source\lpc17xx_gpio.c + + + lpc17xx_pinsel.c + 1 + ..\..\bsp\lpc175x_6x\LPC17xx_DriverLib\source\lpc17xx_pinsel.c + + + lpc17xx_uart.c + 1 + ..\..\bsp\lpc175x_6x\LPC17xx_DriverLib\source\lpc17xx_uart.c + + + startup_LPC17xx.s + 2 + ..\..\bsp\lpc175x_6x\startup_keil\startup_LPC17xx.s + + + + + diff --git a/demos/host/host_os_none/keil_ram.ini b/demos/host/host_os_none/keil_ram.ini new file mode 100644 index 00000000..8d711608 --- /dev/null +++ b/demos/host/host_os_none/keil_ram.ini @@ -0,0 +1,11 @@ + +FUNC void Setup (unsigned int region) { + region &= 0xFFFF0000; + SP = _RDWORD(region); // Setup Stack Pointer + PC = _RDWORD(region + 4); // Setup Program Counter + _WDWORD(0xE000ED08, region); // Setup Vector Table Offset Register +} + +//LOAD "Board NGX4330\\host_os_none.axf" INCREMENTAL +LOAD %L INCREMENTAL +Setup(__scatterload); // Get ready to execute image in SRAM or whatever region it is in g,main