Hi all,
I am porting the IEC60730 Library v4_00_01_00 to a TMS320F28062 target. The Library ships with a users guide (IEC60730-SAFETY-LIB-UG-v4.00.01.00.pdf), that explains the steps for porting the library (section F.1). This section mentions a couple of defines that must be set for every target. Two of these 'must-define' items are
#define CPU2CLAMSGRAM_START_ADDRESS
#define CPU2CLAMSGRAM_END_ADDRESS
since the 28062 does not include a CLA defining these two values clearly make no sense.
Furthermore in the source file "STL_utility.asm" on the lines 440-454 a conditional compiler switch is implemented which is consequently wrong
.if DEVICE_TYPE_28033 | DEVICE_TYPE_28035 | DEVICE_TYPE_28053 | DEVICE_TYPE_28055 | BUILD_LIB_F2806X
MSG_range: ; if((end_address > MAX_M1 ))
;check for CPU to CLA Message RAM range
MOV AL,#CPU2CLAMSGRAM_END_ADDRESS
MOV AH,#CPU2CLAMSGRAM_END_ADDRESS >> 16
CMPL ACC,@XAR5 ; MAX_CPU2CLAMSGRAM - end_address
B P_range,LT ; if((MAX_CPU2CLAMSGRAM - end_address) < 0 )
MOV AL,#CPU2CLAMSGRAM_START_ADDRESS
MOV AH,#CPU2CLAMSGRAM_START_ADDRESS >> 16
CMPL ACC,@XAR4 ; MIN_CPU2CLAMSGRAM - start_address
B RAM_range_pass,LEQ ; if((MIN_CPU2CLAMSGRAM - start_address) <= 0 )
B RAM_range_fail,UNC ; if((MIN_CPU2CLAMSGRAM - start_address) > 0 )
.endif
Of course I can tamper the library and make it suitable for my needs, but since it is verified/reviewed source code (UL/VDE) I am very reluctant to do so.
How should I proceed here?
BR Andreas