AND Technology Research
4 Forest Drive
Theydon Bois
Essex
CM16 7EY
Tel: 01992 814655
Fax: 01992 813362
CodeLines Support

Problem with software installation program 'Set-up' for English Language only.

The current tool set used doesn't allow a multi-lingual set-up. Investigation into upgrading to a multi-lingual 'Set-up'. In the interim non English users will need to install the program on the Start menu manually to locate the programs in their default directories..

Problems running CodeLines - Copy Protection

Some CodeLines CD-ROM versions are copy protected, it is a requirement of this that the CodeLines installation CD-ROM is in the users's PC CD-ROM drive when starting the program and while the program is in operation.

Possible I2C bus contention when using CodeLines 870 driver.

I2C driver changed to ensure no bus contention. Please contact the support line new driver Tel: 01992 814655 or email and@andtr.co.uk with software registration details.

Problems getting a project to run in a TOPAS900 CAN Starter Kit.

There is a linker command file supplied with the CAN starter kit for the TOPAS environment and also a startup.asm. Please check you are placing your code into the correct ISR (Interrupt Service Routine) eg. ISR for timer 9 are INTRA and INTTRB not INTTR9.

Using UARTs in TOPAS environment it is important to initialise the monitors UART to allow debugging if a secondary UART is being used. Please see Square Wave Projects supplied on the CodeLines 900 CD.

How do I set an accurate Baud Rate ?

When editing the baud rate in the CodeLines 900 baud rate box this selects the first baud rate faster than the baud rate you are selecting. For more precise control use the clock divide and divided by boxes.

Problems starting Tutorial

When the user types "d:\pdk900" into the Name field, CodeLines tries to create the files "d:\pdk900.h" and "d:\pdk900.c". ProDesK then reports that the directory does not exist and asks the user if they wish to create it. As, you cannot have a directory called "d:\pdk900.c" CodeLines is unable to continue. This happens because CodeLines is expecting a directory and then a project name. For example - "d:\pdk900\tutorial", would create the files "d:\pdk900\tutorial.c" and "d:\pdk900\tutorial.h".

Still having problems getting a project to run in a TOPAS900 CAN Starter Kit

In the following it is assumed the user knows how to program the CAN I and CAN II Flash ROM, CodeLines 900 and Toshiba Debugger.

CodeLines 900 with CAN I Port 5 Initialisation

In CodeLines 900 Control Window, choose resources and then right click on Port 5 and then choose Initialisation. Now set-up the port as below.P50 / -RD CMOS Output Function Control
P51 / -WR CMOS Output Function Control
P52 / -HWR CMOS Output Function Control
P53 / -BUSRQ CMOS Output
P57 / -CLKOUT NonePort 8 Initialisation
In ProDesK 900 Control Window, choose resources and then right click on Port 8 and then choose Initialisation. Now set-up the port as below.P80 / TXD0 CMOS Output Function Control
P81 / RXD0 Input Function Control
Linker File (LCF)After building the ProDesK 900 project edit the linker file with a LCF extent in the Project_name.BLD\SYSTEM\PROJ directory.Replace these addresses
/* memory definition */
/* start of ROM, size of ROM */
ROM : org=0x00fc0000 len=0x00040000
/* start of RAM, size of RAM */
RAM : org=0x000000a0 len=0x00002000
With these.
/* memory definition */
/* start of ROM, size of ROM */
ROM : org=0x00fe0000 len=0x00020000
/* start of RAM, size of RAM */
RAM : org=0x00fd0000 len=0x00010000
Replace these addresses
/* sections */
/* code */
/* start of ROM */
code org=0x00fc0000 : { *(_STARTUP) *(f_code) } > ROM
/* area - uninitialised data */
/* start of RAM */
area org=0x000000a0 : {*(f_area) } > RAM
/* start address of stack - 1 */
stack org=0x000020a0-1 : {*(f_stack)}
With these.
/* sections */
/* code */
/* start of ROM */
code org=0x00ff0000 : { *(_STARTUP) *(f_code) } > ROM
/* area - uninitialised data */
/* start of RAM */
area org=0x000fd0000 : {*(f_area) } > RAM
/* start address of stack - 1 */
stack org=0x00fe0000-1 : {*(f_stack)}Startup File (cstartup.asm)
After building the ProDesK 900 project edit the startup file with a ASM extent in the Project_name.BLD\USER\SOURCE directory.At label _startup remark out di (Disable Interrupts).
;START UP
;The reset vector takes us here!
;-----------------------------------------------------------------
_startup:
; di ; Disables interrupt
ldb (WDMOD),0x00 ;watchdog timer disable
ldb (WDCR), 0xb1 ;watchdog timer disable OK
ldl xsp, STACK_P+1 ;setup xspAt the following interrupts change to dsb 4 and remark out the original line.dsb 4 ;dl _IntSWI7 ; IntSWI7 8
dsb 4 ;dl _IntNMI ; IntNMI 9
dsb 4 ;dl _IntRX0 ; IntRX0 34
dsb 4 ;dl _IntTX0 ; IntTX0 35
dsb 4 ;dl _IntRX1 ; IntRX1 36
dsb 4 ;dl _IntTX1 ; IntTX1 37

After compiling the program you can now use the Toshiba debugger to load your project onto the CAN I board.Remember to make copies of the files you have modified so if you have to rebuild the CodeLines 900 project you can resave the files.

CodeLines 900 with CAN II

Convert ABS file in the Toshiba TMPro Builder (Compiler)

So you can run your project in the CAN II External Flash ROM you need to convert the Toshiba ABS to a Hex 20 file. In the TMPro Builder choose Menu option Action and then option Convert ABS.
Type the following into the dialog box: --l -Fh20 -ra 0xf80000,0x80000,0x80000

The hex file will have an extent of h20 and will reside in Project_name.BLD\USER\PRODUCT directory.The file can now be loaded into the CAN II board Flash ROM using the Toshiba CAN Flash ROM Programmer.

 
Contact us | Copyright | Disclaimer | Privacy Statement
 

Problem with software installation program 'Set-up' for English Language only.

The current tool set used doesn't allow a multi-lingual set-up. Investigation into upgrading to a multi-lingual 'Set-up'. In the interim non English users will need to install the program on the Start menu manually to locate the programs in their default directories..

Problems running CodeLines - Copy Protection

Some CodeLines CD-ROM versions are copy protected, it is a requirement of this that the CodeLines installation CD-ROM is in the users's PC CD-ROM drive when starting the program and while the program is in operation.

Possible I2C bus contention when using CodeLines 870 driver.

I2C driver changed to ensure no bus contention. Please contact the support line new driver Tel: 01992 814655 or email and@andtr.co.uk with software registration details.

Problems getting a project to run in a TOPAS900 CAN Starter Kit.

There is a linker command file supplied with the CAN starter kit for the TOPAS environment and also a startup.asm. Please check you are placing your code into the correct ISR (Interrupt Service Routine) eg. ISR for timer 9 are INTRA and INTTRB not INTTR9.

Using UARTs in TOPAS environment it is important to initialise the monitors UART to allow debugging if a secondary UART is being used. Please see Square Wave Projects supplied on the CodeLines 900 CD.

How do I set an accurate Baud Rate ?

When editing the baud rate in the CodeLines 900 baud rate box this selects the first baud rate faster than the baud rate you are selecting. For more precise control use the clock divide and divided by boxes.

Problems starting Tutorial

When the user types "d:\pdk900" into the Name field, CodeLines tries to create the files "d:\pdk900.h" and "d:\pdk900.c". ProDesK then reports that the directory does not exist and asks the user if they wish to create it. As, you cannot have a directory called "d:\pdk900.c" CodeLines is unable to continue. This happens because CodeLines is expecting a directory and then a project name. For example - "d:\pdk900\tutorial", would create the files "d:\pdk900\tutorial.c" and "d:\pdk900\tutorial.h".

Still having problems getting a project to run in a TOPAS900 CAN Starter Kit

In the following it is assumed the user knows how to program the CAN I and CAN II Flash ROM, CodeLines 900 and Toshiba Debugger.

CodeLines 900 with CAN I Port 5 Initialisation

In CodeLines 900 Control Window, choose resources and then right click on Port 5 and then choose Initialisation. Now set-up the port as below.P50 / -RD CMOS Output Function Control
P51 / -WR CMOS Output Function Control
P52 / -HWR CMOS Output Function Control
P53 / -BUSRQ CMOS Output
P57 / -CLKOUT NonePort 8 Initialisation
In ProDesK 900 Control Window, choose resources and then right click on Port 8 and then choose Initialisation. Now set-up the port as below.P80 / TXD0 CMOS Output Function Control
P81 / RXD0 Input Function Control
Linker File (LCF)After building the ProDesK 900 project edit the linker file with a LCF extent in the Project_name.BLD\SYSTEM\PROJ directory.Replace these addresses
/* memory definition */
/* start of ROM, size of ROM */
ROM : org=0x00fc0000 len=0x00040000
/* start of RAM, size of RAM */
RAM : org=0x000000a0 len=0x00002000
With these.
/* memory definition */
/* start of ROM, size of ROM */
ROM : org=0x00fe0000 len=0x00020000
/* start of RAM, size of RAM */
RAM : org=0x00fd0000 len=0x00010000
Replace these addresses
/* sections */
/* code */
/* start of ROM */
code org=0x00fc0000 : { *(_STARTUP) *(f_code) } > ROM
/* area - uninitialised data */
/* start of RAM */
area org=0x000000a0 : {*(f_area) } > RAM
/* start address of stack - 1 */
stack org=0x000020a0-1 : {*(f_stack)}
With these.
/* sections */
/* code */
/* start of ROM */
code org=0x00ff0000 : { *(_STARTUP) *(f_code) } > ROM
/* area - uninitialised data */
/* start of RAM */
area org=0x000fd0000 : {*(f_area) } > RAM
/* start address of stack - 1 */
stack org=0x00fe0000-1 : {*(f_stack)}Startup File (cstartup.asm)
After building the ProDesK 900 project edit the startup file with a ASM extent in the Project_name.BLD\USER\SOURCE directory.At label _startup remark out di (Disable Interrupts).
;START UP
;The reset vector takes us here!
;-----------------------------------------------------------------
_startup:
; di ; Disables interrupt
ldb (WDMOD),0x00 ;watchdog timer disable
ldb (WDCR), 0xb1 ;watchdog timer disable OK
ldl xsp, STACK_P+1 ;setup xspAt the following interrupts change to dsb 4 and remark out the original line.dsb 4 ;dl _IntSWI7 ; IntSWI7 8
dsb 4 ;dl _IntNMI ; IntNMI 9
dsb 4 ;dl _IntRX0 ; IntRX0 34
dsb 4 ;dl _IntTX0 ; IntTX0 35
dsb 4 ;dl _IntRX1 ; IntRX1 36
dsb 4 ;dl _IntTX1 ; IntTX1 37

After compiling the program you can now use the Toshiba debugger to load your project onto the CAN I board.Remember to make copies of the files you have modified so if you have to rebuild the CodeLines 900 project you can resave the files.

CodeLines 900 with CAN II

Convert ABS file in the Toshiba TMPro Builder (Compiler)

So you can run your project in the CAN II External Flash ROM you need to convert the Toshiba ABS to a Hex 20 file. In the TMPro Builder choose Menu option Action and then option Convert ABS.
Type the following into the dialog box: --l -Fh20 -ra 0xf80000,0x80000,0x80000

The hex file will have an extent of h20 and will reside in Project_name.BLD\USER\PRODUCT directory.The file can now be loaded into the CAN II board Flash ROM using the Toshiba CAN Flash ROM Programmer.