The assembly code is as following
ConfigurationDscr:
db DSCR_CONFIG_LEN ;; Descriptor length
db DSCR_CONFIG ;; Descriptor type
db (ConfigurationDscrEnd-ConfigurationDscr) mod 256 ;; Total Length (LSB)
db (ConfigurationDscrEnd-ConfigurationDscr) / 256 ;; Total Length (MSB)
ConfigurationDscrEnd:
The expression (ConfigurationDscrEnd-ConfigurationDscr) will cause invalid relocatable segment in LX51 but not in BL51. Is there any good solution ?