uLan embedded source tree v 0.5 =============================== This is highly experimental code, look for latest version on the project related pages http://ulan.sourceforge.net/ http://sourceforge.net/projects/ulan http://cmp.felk.cvut.cz/~pisa#ulan To build code you need to have SDCC 2.5.3-CVS. The snapshot past Sep 3 2005 are OK. The GNU make program 3.81beta3 or better is required. The full build has been tested on Linux based hosts only for now. The uLan protocol code has been successfully build by Keil compiler under Windows in the past. The archive has to be unpacked with symbolic links for now. We are thinking about rearrangement of the code to make it more portable and drop link requirements. The MCS51 is only port provided in this version. To build do cd ul_embedded-x.y/mcs51 make defaul-config make You should find resulting binaries in the "_compiled/bin" directory. The board and application is selected by used "config.omk" file. Example files can be found in the "configs" directory. The next boards and applications are supported Device: MCS51 TI MSC-1210 Board: ULAD-21 - AD converter and uLan2USB converter Applications: config.mscboot-ulad21 - uLan enabled remote boot-loader and boot-block config.u2u-ulad21 - uLan to USB converter Board: HISC - Home Information System Controller config.mscboot-hisc - boot block for distributed HISC system config.blinder - blinder controller config.kswtimer - kettle switch timer Device: MCS51 Atmel AT89C51RD2 config.u2u-ps1 - AT89C51RD2 based uLan2USB converter The procedure to write boot-block into ULAD-21 MSC1210 based board requires next steps FLASHMSC_TTY=/dev/ttyS1 flashmsc -d $FLASHMSC_TTY -E 0x807f flashmsc -d $FLASHMSC_TTY -E 0x7fff flashmsc -d $FLASHMSC_TTY -X 18432000 ulad21-hcr.hex flashmsc -d $FLASHMSC_TTY -X 18432000 ulad21-boot.hex The "flashmsc" sources can be found at page http://cmp.felk.cvut.cz/~pisa/#mcuutils To replace application in the converter or other uLan node over uLan communication protocol, next steps are required echo Reset application if running ul_sendhex -g 0 -m 0 echo Waiting to target to go into boot block echo If application blocks, reset device at this time echo to activate boot block now ul_sendhex -o 0 -m 0 echo Found devices ul_sendhex -p 64 echo Erasing flash ul_sendhex -m 62 -t 5 -e -s 0x2000 -l 0x6000 sleep 2 echo Loading application ul_sendhex -m 62 -t 5 application.hex Look for uLan driver for host side (Linux, Windows, DOS) uLan protocol driver. The uLan2USB converter requires at least version ul_drv-0.7 release. The code authors (C) Copyright 1996-2005 by Pavel Pisa http://cmp.felk.cvut.cz/~pisa (C) Copyright 1996-2005 PiKRON Ltd. http://www.pikron.com (C) Copyright 2002-2005 Petr Smolik