天嵌tq335x开发板使用手册介绍
AM335x 处理器 SDK RTOS 板库端口和启动说明书

Board Porting\Bring up using Processor SDK RTOS for AM335xProcessor SDK RTOS component known as board library consolidates all the board-specific information so that all the modifications made when moving to a new custom platform using the SOC can be made in the source of this library.There are three different components in PRSDK that help in porting and bring up of a custom board:∙Board library updatesa.PLL Clocking and PRCMb.Pin mux Updatec.DDR Configurationd.Peripheral instances updates∙Diagnostics tests∙Boot loader updatesBoard Library Updates in Processor SDK RTOS:PLL ClockingThere are two places where the device PLL configurations are performed when using Processor SDK RTOS and CCS.Debug environment:Debug environment refers to development setup where code is debugged using JTAG emulator on the SOC. The PRSDK software relies on the GEL file that is part of the target configuration to setup the clocks and the DDR for the device. The CCS GEL file for AM335x platforms is located in the CCS package at the location ccsv7\ccs_base\emulation\boards\<boardName>For example for beagle bone black, the files can be found atccsv7\ccs_base\emulation\boards\beaglebone\gelThe GEL is the first piece of software that should be brought up on a custom board.Production environment:Production environment refers to the setup when the base application is booted from a boot media like a flash memory or host interface. In this environment, the bootloader sets performs all the SOC and board initialization and copies the application from flash memory to the device memory.The clock setup in the bootloader code can be located atpdk_am335x_x_x_x\packages\ti\starterware\bootloader\src\am335xUsers can choose to use the platform clocking similar to one of TI reference platforms or can modify them as per their application requirements. By default the PLL settings are setup for OPP_NOM settings (MPU= 600 MHz.)TI provides Clock Tree tool to allow users to simulate the clocking on the SOC. For quick reference of the multiplier and divider settings to change the PLL setting is provided in the spreadsheetAM335x_DPLL_CALCv3.xlsx.After modifying the clocking in the bootloader, users need to rebuild the bootloader using instructions provided in Processor_SDK_RTOS_BOOT_AM335x/AM437xPRCM Modules Enable:PRCM Module Enable is required to turn on the power domain and the clocking to each of the modules on the SOC. The PRCM Enable calls to enable each module are made from the functionBoard_moduleClockInit which is found in the location.pdk_am335x_1_0_9\packages\ti\board\src\bbbAM335x\bbbAM335x.cCheck every instance and peripheral required in the application platform and enable the module in the board library.For example to use three UARTs 0, 1 and 4, ensure that you have the following code as part of the board library setup:/* UART */status = PRCMModuleEnable(CHIPDB_MOD_ID_UART, 0U, 0U);status = PRCMModuleEnable(CHIPDB_MOD_ID_UART, 1U, 0U);status = PRCMModuleEnable(CHIPDB_MOD_ID_UART, 4U, 0U);Note: PRCMEnable function is defined in pdk_am335x_1_0_9\packages\ti\starterware\soc\am335x Pinmux updates in the Board library:Generating a New PinMux Configuration Using the PinMux Utility: This procedure uses the cloud-based pinmux utilityNavigate to ${PDK_INSTALL_DIR}\packages\ti\starterware\tools\pinmux_config\am335x and Load beaglebone_black_configAdd and remove peripheral instances and select the appropriate use cases required for development based on the application platform requirements and resolve all conflicts.Refer Pin_Mux_Utility_for_ARM_MPU_ProcessorsPost Processing steps:1.Change the Category filter to starterware and download the pinmux files am335x_pimnmux.hand am335x_pinmux_data.c2.At the bottom of am335x_pinmux.h change extern pinmuxBoardCfg_t gAM335xPinmuxData[];to extern pinmuxBoardCfg_t gBbbPinmuxData[];3.Change am335x_pinmux_data.c to am335x_beagleboneblack_pinmux_data.c.4.Change gAM335xPinmuxData to gBbbPinmuxData at the end of the file in file5.am335x_beagleboneblack_pinmux_data.c.Replace the existing files with the new files and rebuild the board library using the instructions in the section Rebuilding board Library in Processor SDK RTOS:Updating DDR settings:Similar to clock and PLL settings, DDR initialization is configured in the Debug environment through GEL files and in production environment using bootloader source files.TI provides AM335x_EMIF_Configuration_tips which contains a spreadsheet to enter the timing from the DDR datasheet to compute the EMIF timing number required to initialize DDR.We strongly recommend changing the value and testing using GEL files before using them in the bootloader software. For Sanity test, you can perform read/write tests using CCS Memory Browser or run the diagnostic memory read/write test that we provide in diagnostics package here:PDK_INSTALL_PATH\packages\ti\board\diag\memOnce the DDR timings have been confirmed, you can use the settings in the file:PDK_INSTALL_PATH \packages\ti\starterware\bootloader\src\am335x\sbl_am335x_platform_ddr.c Peripheral initialization:The board library is responsible for most of the SOC initialization but it also setup some board level components such as ethernet PHY and debug UART and I2C for reading board ID from EEPROM. All of the other peripheral instances and initialization needs to be done from the application level.For example for beagleboneblack, the peripheral initialization are performed from the source filepdk_am335x_1_0_9\packages\ti\board\src\bbbAM335x\bbbAM335x_lld_init.cThe debug UART instance, I2C Addresses are set using the file board_cfg.h found under:pdk_am335x_1_0_9\packages\ti\board\src\bbbAM335x\includeDefault UART instance is set to 0 in the board library. The Board initialization will configure the UART instance 0 to send binary log data to serial console using the Board_UARTInit function. If you wish to use more UART instances then we recommend linking in the UART driver in the application and using UART_open() and UART_stdioInit API calls from the application.Each peripheral driver in the Processor SDK RTOS has a SOC configuration that provides the interrupt numbers, base address, EDMA channels which can be updated using the file <peripheral>_soc.c file. This is used as default setup for initializing the driver instance. It can be overridden from the application using peripheral_getSOCInitCfg() and peripheral_setSOCInitCfg()For Example: All instances of UART for AM335x have been mapped in the filepdk_am335x_1_0_9\packages\ti\drv\uart\soc\am335x\UART_soc.cSystem integrators need to ensure that no interrupt numbers and EDMA resource conflicts exist in the SOC configuration for all drivers used in the system.To exercise three UARTs in the system, users can use the following code://Setup Debug UARTboardCfg = BOARD_INIT_PINMUX_CONFIG |BOARD_INIT_MODULE_CLOCK |BOARD_INIT_UART_STDIO;Board_init(boardCfg);// Open Additional UART Instances:/* UART SoC init configuration */UART_initConfig(false);/* Initialize the default configuration params. */UART_Params_init(&uartParams);// Open UART Instance 1uartTestInstance =1;uart1 = UART_open(uartTestInstance, &uartParams);//Open UART Instance 4uartTestInstance = 4;uart4 = UART_open(uartTestInstance, &uartParams);BoardID Detect:TI supports multiple evaluation and reference platforms for AM335x hence the hardware platforms are populated with an EEPROM which contains information that identifies the hardware and its revision. The board library and software components read the boardID and initialize the platform based on the boardID. The BoardID_detect function can be found in the source in the file bbbAM335x_info.c in the board library and board_am335x.c in the bootloader source at:<PDK_INSTALL_PATH>\packages\ti\starterware\board\am335xRebuilding board Library in Processor SDK RTOS:While Creating a new folder for the custom board is an option users can explore, TI recommends that users make there changes in existing board package using either bbbAM335x, evmAM335x oriceAM335x folder to avoid spending additional effort to modify the build files for including the customBord.Once all the update to the board library are completed, the board library can be updated using the following instructions.Instructions to rebuild board library:Setup Processor SDK build environment before following steps provided below.cd pdk_am335x_1_0_9\packagesgmake board_libFor a specific board users are required to provide the LIMIT_BOARDS argument.LIMIT_BOARDS : evmAM335x icev2AM335x iceAMIC110 bbbAM335x skAM335xFor Example for beagleboneblack, users can use the following build option:gmake board_lib LIMIT_BOARDS=bbbAM335xDiagnostics:After the board library is built, we highly recommend that you create a diagnostics package similar to one provided in board library to test different interfaces functionally during board bring up.The diagnostics package can be located at pdk_am335x_1_0_9\packages\ti\board\diag. These are simple bare-metal tests that use peripheral drivers to help functionally validate the pins and interfaces.Documentation for all available diagnostic tests is provided here:/index.php/Processor_SDK_RTOS_DIAGBootloader in Processor SDK RTOS:As part of the production flow, users are required to develop/port flashing and booting utilities so the application can be launched on the custom board with JTAG. TI provides a bootloader mechanism where the ROM bootloader loads a secondary bootloader on the onchip memory that initializes the SOC and DDR and then copies the application into DDR memory.The boot process and flashing tools have been described in detail in the following article that is part of processor SDK RTOS Software developer`s guide:/index.php/Processor_SDK_RTOS_BOOT_AM335x/AM437x#Building_the_B ootloader。
盈鹏飞嵌入式_AM335XGPMC使用总结

盈鹏飞嵌入式_AM335XGPMC使用总结AM335X GPMC使用比较灵活,可以配置为● 8-bit 同步或者异步并行总线 (非burst)● 16-bit 同步或者异步并行中线● 16-bit 非复用的NOR Flash● 16-bit 数据和地址总线复用的NOR Flash● 8-bit 和 16-bit NAND Flash● 16-bit pSRAM.下面以EVB335X扩展EXAR ST16C554为例,讲解如何配置GPMC。
1. 配置GPMC引脚static struct pinmux_config gpmc_pin_mux[] = {/********* 8-bit data bus **************/{"gpmc_ad0.gpmc_ad0", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},{"gpmc_ad1.gpmc_ad1", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},{"gpmc_ad2.gpmc_ad2", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},{"gpmc_ad3.gpmc_ad3", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},{"gpmc_ad4.gpmc_ad4", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},{"gpmc_ad5.gpmc_ad5", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},{"gpmc_ad6.gpmc_ad6", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},{"gpmc_ad7.gpmc_ad7", OMAP_MUX_MODE0 |AM33XX_PIN_INPUT_PULLUP},/**************** 8-bit address bus ****************/{"gpmc_a0.gpmc_a0", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT},{"gpmc_a1.gpmc_a1", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT},{"gpmc_a2.gpmc_a2", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT},{"gpmc_a3.gpmc_a3", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT},{"gpmc_a4.gpmc_a4", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT},{"gpmc_a5.gpmc_a5", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT},{"gpmc_a6.gpmc_a6", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT},{"gpmc_a7.gpmc_a7", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT},{"gpmc_csn2.gpmc_csn2", OMAP_MUX_MODE0 | AM33XX_PULL_DISA},{"gpmc_oen_ren.gpmc_oen_ren", OMAP_MUX_MODE0 | AM33XX_PULL_DISA},{"gpmc_wen.gpmc_wen", OMAP_MUX_MODE0 | AM33XX_PULL_DISA},{NULL, 0},};setup_pin_mux(gpmc_pin_mux);2. 申请GPMC内存unsigned long serial_gpmc_mem_base_phys;int cs = 2; /* EVB335X评估板中ST16C554接在CS2上 */gpmc_cs_request(cs, SZ_16M, &serial_gpmc_mem_base_phys)此时serial_gpmc_mem_base_phys存放的是该CS上多对应的物理起始地址。
ESM335x WEC7背光使用方法

ESM335x WEC7背光使用方法英创所有嵌入式主板都提供了屏幕背光控制方案,本文将详细介绍如何在ESM335X WEC7上进行屏幕背光控制。
自动背光设置设置自动背光时间,可以让系统在停止操作一定时间后自动关闭屏幕背光,当恢复操作后自动打开屏幕背光,设置方法如下:打开控制面板->电源,选择“方案”页,选择“电源使用方案”为“交流电源”,选择“将状态切换为用户空闲”选项的时间,这个时间即自动关闭背光的时间。
手动控制背光开关有时客户希望在自己应用程序中能够自由控制背光的开关,那么可以参考我们例程进行如下调用。
#include<commctrl.h>#include"winioctl.h"#include"pm.h"#define FILE_DEVICE_POWER FILE_DEVICE_ACPI#define IOCTL_POWER_SET CTL_CODE(FILE_DEVICE_POWER, 0x402, METHOD_BUFFERED, FILE_ANY_ACCESS)HANDLE hBLK;CEDEVICE_POWER_STATE power;DWORD dwReturn;//操作背光前需要先打开背光驱动hBLK = CreateFile(L"BKL1:", // name of deviceGENERIC_READ|GENERIC_WRITE, // desired accessFILE_SHARE_READ|FILE_SHARE_WRITE, // sharing modeNULL, // security attributes (ignored)OPEN_EXISTING, // creation dispositionFILE_FLAG_RANDOM_ACCESS, // flags/attributesNULL); // template file (ignored)//获得屏幕背光状态BOOL success;success = DeviceIoControl(hBLK,IOCTL_POWER_GET,NULL,0,&power,sizeof(CEDEVICE_POWER_STATE),NULL,NULL);//关闭屏幕背光,恢复操作(鼠标移动,按键等)屏幕背光不会打开power = D4;success = DeviceIoControl(hBLK,IOCTL_POWER_SET,NULL,0,&power,sizeof(CEDEVICE_POWER_STATE),&dwReturn,NULL);//关闭屏幕背光,恢复操作(鼠标移动,按键等)屏幕背光自动打开power = D1;success = DeviceIoControl(hBLK,IOCTL_POWER_SET,NULL,0,&power,sizeof(CEDEVICE_POWER_STATE),&dwReturn,NULL);//打开屏幕背光power = D0;success = DeviceIoControl(hBLK,IOCTL_POWER_SET,NULL,0,&power,sizeof(CEDEVICE_POWER_STATE),&dwReturn,NULL);//关闭背光驱动if (hBLK != NULL){CloseHandle(hBLK);}操作时需要先打开背光驱动,操作完成后需关闭背光驱动,D0为开,D4为关。
Sigmastar SSC335 全功能开发板技术手册说明书

Sigmastar SSC335全功能开发板技术手册一、应用场合:1. 适用于开发以下产品:(1)200万/300万网络摄像机。
(2)300万抓拍摄像机。
(3)安防监控产品。
(4)网络音视频产品。
(5)低功耗快速启动摄像机。
(6)4G/WIFI无线传输产品。
(7)编码器。
(8)双路摄像机。
(9)运动相机。
(10)航拍摄像机。
(11)UVC相机。
2. 适用于学习linux平台、熟悉ARM开发的开发者。
3. 适用于需要熟悉sigmstar平台音视频编解码、图像处理、UVC相机、4G/WIFI无线传输的开发人员。
二、型号:CA-M3335AID-MAIN-V1三、产品特色:■主控芯片采用Sigamastar高性能多媒体处理器片上系统(SOC),,内部集成A7、FPU、NEON,主频800MHZ。
■支持WDR、多级降噪及多种图像增强和矫正算法,为客户提供专业级的图像质量。
■采用标准的H.264/H.265 High Profile压缩算法,方便在窄带上实现高清晰的图像传输。
■最大支持300万编码.最高支持2304x1296@30帧、2048*1536@30帧、1920x1080@45帧H.264/H.265编码。
■内置1Gb DDR2。
■支持MIPI、USB Sensor输入、图像质量优异。
■支持双向语音对讲。
■支持ONVIF2.4标准协议,可对接海康、大华、雄迈等NVR。
■支持GB28181协议。
■支持手机监看。
■支持4G全网通:5模或者7模。
■支持WIFI:热点和STA模式。
■支持GPS、北斗定位。
■支持POE供电,功率13W,符合IEEE802.3af/at标准■支持二次开发。
■尺寸26*24mm,邮票孔。
方便做小型化产品。
■接口全,且与本公司其他主控、平台定义一致,适合兼容多款产品。
四、技术参数:五、产品外观及接口定义:J24:音频输入1.AIN0(左)2.音频地3.AIN1(右)J5:报警/485接口1.报警输出22.报警输出13. RS485正4. RS485负4. RS485_D+J15:SD 外接接口1. SD_DATA22. SD_DATA33. SD_CMD 4. 3.3V 5. SD_CLK J2:接POE 模块脚位接口定义主控pin脚接口类型电平功能描述说明1 SD_CDZ19 输入 3.3V SD卡插入检测低电平有效2 SD_DATA1 81 输入/输出 3.3V SD卡数据13 SD_DATA0 79 输入/输出 3.3V SD卡数据04 SD_CLK 77 输出 3.3V SD卡时钟50MHz5 GND 地数字地6 SD_CMD 78 输出 3.3V SD卡命令信号7 SD_DATA3 82 输入/输出 3.3V SD卡数据38 SD_DATA2 81 输入/输出 3.3V SD卡数据29 NC10 NC11 NC12 NC13 NC14 NC15 NC16 LINK_LAN 输入/输出 3.3V 网络连接状态指示输出高,网络连接成功连接网口RJ45绿灯17 ACT_LAN 输入/输出 3.3V 网络数据传输指示高/低切换:有数据传输,切换速度指示传输速度。
OMAP3530软件调试笔记

硬件环境:采用TI omap3530的天漠科技开发板和公司的板卡。
软件环境:天漠科技开发包:* linux kernel: 2.6.29-sbc8100* u-boot-1.3.3* x-load-1.41后续移植linux-omap:* linux kernel: 2.6.38作者:agan成都莱得科技联系邮箱*****************.cn转载须注明出处!内容简介:描述调试过程中所遇问题及其解决办法和过程,可作为新手的FAQ使用。
1. Issue: 不能从SD卡启动。
Fixed: 自己疏忽造成,手册已经提到要先用"HP Disk Storage Format Tool"格式化SD卡。
2. Issue: 烧写的Xload不能启动。
Fixed: ECC格式不对造成,xload需要使用HW Ecc, 其他全部使用SW ECC。
列表如下:x-loader 'nand ecc hw'u-boot 'nand ecc sw'okernel 'nand ecc sw'rootfs 'nand ecc sw'spash 'not required', default sw without oob3. Issue: 启动过程中打印错误信息"Ignoring unrecognised tag 0x54410008".Fixed: 屏蔽掉U-Boot中的函数'setup_videolfb_tag', 因为它传递了错误的参数给Kernel.4. Issue: 启动过程中打印错误信息"dpll3_m2_clk rate change failed: -22".Fixed: 这个错误发生在初始化SDRAM的PLL时钟的时候。
修改文件"arch/arm/mach-omap2/sdram-micron-mt46h32m32lf-6.h", 修改数组'mt46h32m32lf6_sdrc_params'的第3个指,把133333333改成133000000.SDRAM的默认时钟为266MHZ(LPDDR: Low Power Double Data Rate, so it running 133MHZ instead), 计算结果应该为 133000000, 而非预定义的133333333,所以报了错。
MYD-AM335X-J Linux 开发手册说明书

MYD-AM335X-J Linux 开发手册版本V1.12014/10/23版本记录目录第1章概述及软件资源介绍 (1)1.1 概述 (1)1.2 软件资源 (1)第2章Linux开发环境搭建 (3)2.1 建立工作目录 (3)2.2 设置交叉编译工具 (3)2.3 安装工具 (3)第3章Linux系统编译 (4)3.1 编译Bootloader (4)3.2 编译Linux内核 (5)3.3 制作文件系统 (5)第4章Linux 系统烧写 (6)4.1 TF卡系统映像更新 (6)4.2 NAND Flash更新/恢复 (7)第5章Linux应用程序 (10)5.1 GPIO (10)5.2 NET (10)5.3 RTC (11)5.4 LCD (11)5.5 Audio (12)5.6 I2C总线测试 (12)5.7 串口 (12)5.8 RS485 (12)5.9 CAN (13)5.10 引脚功能切换 (13)5.10.1 RS485_1跟UART5_RTSCTS 切换145.10.2 RS485_2和UART3切换及CAN1和UART4切换15第6章Qt开发 (17)6.1 使用光盘提供的Qt SDK (17)6.2 交叉编译Qt开发环境 (17)6.3 移植Qt到开发板 (18)6.4 交叉编译Qt应用程序 (19)第1章概述及软件资源介绍1.1 概述MYD-AM335X-J提供了丰富的系统资源和软件资源,本手册将从环境搭建开始,一步步介绍如何进行MYD-AM335X-J Linux开发。
本手册中开发主机上的命令以Ubuntu为例进行教授。
1.2 软件资源表1-1第2章Linux开发环境搭建2.1 建立工作目录拷贝MYD-AM335X-J光盘中的资料到主机中:$ mkdir -p <WORKDIR>$ cp -a <DVDROM>/05-Linux_Source/* <WORKDIR>2.2 设置交叉编译工具$ cd <WORKDIR>/Toolchain$ tar -xvjf \gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux.tar.bz2$ export PATH=$PATH:<WORKDIR>/Toolchain/\gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin$ export CROSS_COMPILE=arm-linux-gnueabihf-执行完“export”命令后输入arm按Tab键来检查是否设置成功,该设置只对当前终端有效,如需永久修改,请修改用户配置文件。
IPC335x规格书

1.产品概述IPC335x是一款基于TI AM335x系列处理器设计的低功耗嵌入式PC104结构的工业级主板。
主板集成度高、低成本、低功耗、功能齐全,包含多路串口、多路CAN总线、2路千兆网,性价比非常高的一款工业产品。
主要特点如下:◆集成TI Sitara系列高性能AM335x处理器●500—720MHz ARM Cortex™-A8 32bit RISC内核●POWERVR SGX™530 3D图形加速处理引擎●可编程实时单元子系统PRU-ICSS◆板载大容量存储●512MByte DDR2内存●4GByte 工业级eMMC◆支持最大分辨率为2048x2048●支持RGB565/RGB888标准●在60Hz刷新率下可达1366x768的高分辨率显示输出◆直接集成千兆网,真正实现工业千兆网络通信◆工作温度范围可达:-40℃~85℃◆外扩资源丰富:包括2xCAN总线接口、2xSPI总线、1xGPMC总线、2xMMC总线、2xI2C总线、24bit LCD总线、8x12bit ADC/TSC 、1xUSB 2.0 OTG、5x4线UART、3x16bit PWM、3x32biteCAP脉冲宽度捕获输入、3x32bit eQEP正交编码脉冲输出、1xRGMII/RMII/GMII Ethernet、4xtimer等。
图1.1 IPC335x 工业级主板实物图MMC/GPMC x8bitEMIF 16-bitUART02x CAN BUS Ver. 2 A&B1x 24bit LCD interface8x 12-bit ADC5x UART 2x MMC/SD1x USB 2.0 OTG 2x McSPI 2x I2C1x JTAG 1x GPMC all1x Ethernet GMIIAM335XPC104 CONNECTOREMMC/NANDDDR2PMU1.1V 1.8V3.3VI2CDDR2 x2USBEthernet20-pin CONNECTORRS2321x McASPUSB0EMAC0图1.2 IPC335x 系统框架结构图2. 产品规格2.1硬件规格处理器TI AM335xUp to 720MHz ARM Cortex ™-A8 32bit RISC 内核 NEON™ SIMD 协处理器系列Power VR SGX™530 3D图形加速处理引擎(1)RAM 128MByte/256MByte/512MByte DDR2Flash 4~32GByte eMMC或4Gbit NAND FlashLED 1x 供电指示灯2x 可编程指示灯EEPROM 1x 256Kbit I2C EEPROMPower接口5V DCPC104接口及扩展接口资源(2)1x GPMC1x LCD Control 24bit接口8x 12-bit ADC input (与电阻屏引脚有复用情况)5x 4线UART(RX、TX、CTS、RTS)1x USB2.0 OTG2x McSPI2x MMC/SD/SDIO总线2x I2C2x DCAN1x RGMII/RMII/GMII2x PRU MII(3)1x PRU UART(3)1x MDIO4xtimer3x 32-bit eCAP3x 16-bit eHRPWM2x 32-bit eQPEJTAGSYS RESET_INSYS RESET_OUTAM335X EXT WAKEUP板上其他接口资源1x USB 2.0 OTG (MINI USB-AB) 1x Gigabit Ethernet RJ451x RS232 DB9(RX, TX)1xSYS_RESETn 按钮(1) 仅限于带有图形加速的版本(AM3354,AM3358,AM3359)。
ICETEK-OMAP3530-Mini使用手册

2. 术语及符号约定
(1) 术语 SD SDIO MMC MDDR SDRAM OMAP3530 Mini 或 MiniBoard ubuntu 读卡器 Secure Digitall Secure Digital Input Output Multimedia Card Mobile Dual Data Rate Synchronous Dual Access Memory 德州仪器的 ARM-CortexA8 芯片 ICETEK-OMAP3530-Mini 板简称 Linux 发行版 ubuntu 8.04 Mini 板选配配件:USB 接口 SD 卡读卡器
一. 介绍
这是一本介绍 ICETEK-OMAP3530-Mini 板的使用手册,除了提供 Mini 板的硬件设计细节外, 还详细地介绍了板子的使用和软件操作步骤等内容。依照这个手册,用户可以将 Mini 板充分运 用,并可进一步进行深入的软件开发,也为用户制作自己的硬件和软件打下基础。
1. 升级与改版
1 地址:北京市海淀区知春路 108 号豪景大厦 A 座 18 层 电话:010-62105690(中继)/91-97 传真:010-62105699
REALTIME—DSP 系列应用丛书
第一章 ICETEK-OMAP3530-Mini 板简介
前 言......................................................................................................................................... 1 第一章 ICETEK-OMAP3530-Mini 板简介............................................................................. 2 一. 介绍............................................................................................................................. 2 二. ICETEK-OMAP3530-Mini 板概述............................................................................ 3 第二章 使用 ICETEK-OMAP3530-Mini 板............................................................................ 8 一. 以 ICETEK-OMAP3530-Mini 板为核心的计算机系统.......................................... 8 二. ICETEK-OMAP3530-Mini 系统配件........................................................................ 9 三. ICETEK-OMAP3530-Mini 系统连接...................................................................... 10 四. ICETEK-OMAP3530-Mini 系统上电步骤.............................................................. 11 五. ICETEK-OMAP3530-Mini 系统关闭步骤.............................................................. 11 六. 运行演示程序...........................................................................................................12
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
�
序即可开始制作开机 logo 镜像或 WinCE 的 NK 所需要的 logo 的 C 源码,该软件的使 用方法请参考 2.1.4 章节。 USB 转串口驱动:解压“USB 转串口驱动.rar”压缩包后,使用解压目录下的 windows 目录下的驱动(请根据实际操作系统的环境选择对应的驱动,该驱动支持的是 PL2303 的 USB 转串口设备) 。
说明 1:详细的 u-boot 使用方法说明请参考 TQ3358 固件更新的相关章节。
说明 2:Linux 和 Android 的烧写均使用 u-boot,唯一不一样的是启动参数,具体说明 请参考 TQ3358 PDA 固件更新的相关章节。
1.3.2 TQ3358 Android 软件介绍
天嵌科技经过数月的开发,为 TQ3358 提供了最新的 Linux-3.2 的内核,然后使用 Andorid4.0 开发了完整的系统和应用程序,完成了常用的功能。
1.3.3 TQ3358 交叉编译器介绍
天嵌科技提供的交叉编译器采用了 gcc-4.4.6 版本, 针对 am335x 所采用的 arm-cortexA8 的 ARM 核,以及对应的 ARMv7 指令集和硬件浮点数的特性制作了本版本的交叉编译器, 在 PC 的 Linux 的控制台输入命令#arm-linux-gcc -v 可以看到该款编译器的信息.
1.4.1 TQ3358 配套工具软件说明
点击上图中的“Windows 工具”按钮,等同于打开光盘的“TQ3358_CD\Windows 平台 工具\” 目录, 在该目录下提供了您在使用本产品时 PC 端需要安装的驱动或可能用到的软件, 包含如下: � 串口交互软件:解压“SecureCRT.rar”压缩包后,双击解压后的 SecureCRT.exe 程序即 可运行该软件了。该软件的使用方法请参考 2.1.2 章节。 � TFTP 下载软件:解压“TFTP_Server.rar”压缩包后,双击解压后的 tftpdwin.exe 程序即 可开始安装 TFTP 服务器,该软件的使用方法请参考 2.1.8 章节。 � SD 启动卡制作软件:双击“TQ335X_bootSDTools.exe”程序即可开始制作 SD 启动卡, 该软件的使用方法请参考 2.1.5 章节。 � 开机 logo 制作软件:解压“Image2LCD.rar”压缩包后,双击解压后的 Img2Lcd.exe 程
第一章 TQ3358 介绍
1.1 TQ3358 简介
TQ3358 开发套件是广州天嵌计算机科技有限公司专门针对有一定开发经验或企业用户 提供的一整套的学习和解决方案,它包含了完整的 androd4.0 和 linux3.2 的开发套件,完整 的实现了 android 的功能。使用本开发套件配合天嵌科技提供的软件库和软件成品,您可以 轻松的实习您想要实现的功能,满足您的需要。
1) 、内核介绍
天嵌科技提供的 Linux 内核包含了如下功能: 下面列出来的是 TQ3358 PDA 特有的驱动: � 图像旋转翻转驱动 � 支持动态调整所支持的 LCD 参数 � 支持联通 3G 模块(理论上支持市面上所有的 usb 接口的 3G 模块) � 支持 GPRS 模块 � 支持打电话 � 支持发短信 � 支持 3G 上网 下面列出来的是 TQ3358 PDA 常规的驱动: � YAFFS 文件系统 � RTC 驱动 � IIC 驱动 � LCD 驱动 � 背光灯驱动 � 触摸驱动 � ADC 驱动 � PWM 驱动 � 声卡驱动 � 100M 网卡驱动 � USB 驱动 � 4 串口驱动 � 用户按键驱动 � SD 卡驱动 下面列出各种驱动在内核中的位置: 说明 1:下面仅提供各个驱动的大致分布,因为内核中有的驱动依赖不同文件夹中的文 件,所以表格中有时候给出的是主要的驱动文件或者仅仅指出驱动所在位置。 3.2 源码驱动分布表格 LinuxLinux-3.2 驱动 NAND Flash 驱动 LCD 驱动 电阻触摸屏驱动 电容触摸屏驱动 在内核中的源码位置 drivers/mtd/nand/ drivers/video/da8xx-fb.c drivers/input/touchscreen/ti_tscadc.c drivers/input/touchscreen/(模块化) 系统中的设备名称 /dev/mtd* (*表示数字) /dev/fb0 /dev/event* /dev/event*
1.2 TQ3358 外围设备介绍
� � � � �
底板提供多种外设,功能如下: 100M 以太网; 音频解码器及音频功放,提供耳机接口及 MIC 接口; 3 路串口、3 路 IIC、1 路 SPI; 2 路 CAN 收发器电路,1 路 485 电路; 6 路 ADC 接口;
� 24bit LCD 接口,支持电容屏HOST 及 1 路 USB OTG 接口; � RTC 实时时钟; � 标准的 JTAG 接口 � 6 个用户按键 � 2 路用户测试 LED 灯 更多详细说明请查看《天嵌科技出品-TQ335X 开发板用户硬件手册》 。
1.4 TQ3358 光盘资源简介
本手册所对应的光盘就是 TQ3358 PDA 配套光盘了,把它插到 PC 的光驱里面,如果您 的电脑(Windows 系列的操作系统的情况下)启动了光盘自动运行功能,就会在 PC 的桌面 出现如下所示界面; 如果您的电脑关闭了光盘自动运行功能, 请进入到您的光盘所在盘符下, 双击运行 autorun.exe 程序,也可以出现如下所示界面。 当您的鼠标移动到对应的按钮上, 在界面左边的中间部分会出现对应的说明内容, 点击 按钮, 如果有下级菜单的会进入到下级菜单中, 对于没有下级菜单的就会打开对应的文件夹, 您可以找到您想要的文件。
、u-boot 介绍 1)
u-boot 功能表对照 功能 SD 自动更新固件 SD 手动更新固件 TFTP 烧写 支持 LCD 手动切换 LCD 上显示信息 启动 linux 系统 启动 android 系统 特点 无需与 PC 有任何连接,使量产和更新更快捷 无需与 PC 有任何连接,现场升级更方便,通过 LCD 交互, 业 内首创 需要连接网络,串口线。有烧写菜单, 支持“一键烧写镜像” 。 不需要更换 u-boot, 即可以让 u-boot 支持天嵌科技的所有 LCD 无需接串口,既可以在 LCD 看到开发板的内存和 nand 信息 支持内核动态调整 LCD 支持内核动态调整 LCD
1.3 TQ3358 软件特性介绍
TQ3358 配套的软件完整的实现平板电脑所有功能,并且在特色功能方面基本上涵盖了 开发板使用过程中的各个方面的应用开发, 同时提供了完善的配套开发教程, 供广大用户学 习和进行二次开发。下面从 bootloader、Android,Linux(包含 Qt 的介绍) 、几个方面进行 讲解。 说明 1: TQ3358 配套光盘会根据自身的开发进度和客户的反馈信息不定期地进行升级, 以求从各方面为您提供优质的服务。 说明 2:本版本中暂不提供 WinCE 的相关说明。 说明 3:TQ3358 会在下个版本开始提供 WinCE 7.0 和相关的教程(注:应用程序开发 和 WinCE6 完全相同,仅平台开发部分略有不同) 。
1.3.1 bootloader 介绍
天嵌科技在原生的 u-boot 中添加了 SD 卡的驱动,完善了 Nand Flash 的 ECC 校验,让 Nand Flash 的读写更加安全,添加了 FAT32 协议的驱动,实现了开机自动烧写镜像,SD 卡 烧写支持大于内存容量的文件系统的烧写,完善了环境变量的保存方式. 说明:关于启动的拨码开关的拨动请参考 2.1.1 章节中的拨码开关的说明和截图。
1.3.4 TQ3358 的 Linux 介绍
Linux 的内核驱动特性与 Android 内核的驱动特性基本一致,不同的是 Linux 的文件系 统采用的是 Qt 作为应用界面。所以这里只针对文件系统进行介绍。关于内核与编译器的介 绍请看上一小节。 在 V1.0 版本中采用的是 Qt-4.5 版本, 天嵌科技开发了一整套的 PDA 应用软件: 从 LED 灯控制程序到视频播放器。 各种应用程序的使用请阅读“TQ3358 PDA 使用”章节。
2) 、Android 应用介绍
在 V1.0 版本中采用的 Android4.0 版本,天嵌科技开发了一整套的应用软件:LED 灯控 制,蜂鸣器,CDMA、WCDMA、GSM 的模式切换等。具体内容请阅读第五章内容。 以 LED 灯为例子,向初学者详细讲解如何开发一个 Android 上的应用,包括 HAL 层, JNI 层等,以期为您打开一扇通向 Android 开发的大门。手册见(TQ3358_CD\开发板配套教 材集\天嵌科技出品-TQ3358 开发板 Android 开发完全手册_V1.0.pdf) 注意: V1.0 版本直接使用 TQ210 的 Android 开发完全手册,在 V1.1 版开始将会针对 TQ3358 进行修改,特别是 LED 灯驱动部分。
1.4.2 TQ3358 配套镜像说明
注意:TQ3358 配套的电容屏是 7 寸的,本光盘中的镜像默认都是针对 7 寸屏的,如果 需要配合使用其他分辨率的液晶屏,请参考 2.5.1 章节进行设置。 TQ3358 的配套镜在光盘中的路径为“TQ3358_CD\出厂烧录镜像合集\” 以下表格中的 路径省去了这两个目录名字,以下表格中所有指的路径和名字都在“TQ3358_CD\出厂烧录 镜像合集\”目录下。 镜像名称 u-boot 镜像 Android 内核镜像 Android 文件系统 Linux 内核镜像 Linux 文件系统 光盘中的具体路径 u-boot 镜像\u-boot_TQ3358_V1.0.bin Android 镜像\Android 内核\uImage_android_V1.0.bin Android 镜像\Android 文件系统镜像\rootfs_android_V1.0.bin Linux 镜像\Linux 内核\uImage_linux_V1.0.bin Linux 镜像\Linux 文件系统镜像\rootfs_linux_V1.0.bin