- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Another day, another question ... 🙂
We are finalizing our Firmware.
One question regarding the Descriptor Name.
We want to display something like that :
"STMicroelectronics STiceX emulator"
I create the dscr.asm accordingly.
But the display of the device.name is corrupted (file attached) ??
Could you verify my dscr.scm ?
I tried numerous things but always strange name is displayed (Note that it seems to work if i reduce the name lenght ...??).
I'm using Eclipse, SDCC and your framework based onto bulkloop example.
Regards.
.even ; descriptors must be 2-byte aligned for SUDPTR{H,L} to work
_StringDscr1:
.db StringDscr1_End-_StringDscr1 ;; String descriptor length
.db DSCR_STRING
StringDscr1_End:
.even ; descriptors must be 2-byte aligned for SUDPTR{H,L} to work
_StringDscr2:
.db StringDscr2_End-_StringDscr2 ;; Descriptor length
.db DSCR_STRING
.db 'S',00
.db 'T',00
.db 'M',00
.db 'i',00
.db 'c',00
.db 'r',00
.db 'o',00
.db 'e',00
.db 'l',00
.db 'e',00
.db 'c',00
.db 't',00
.db 'r',00
.db 'o',00
.db 'n',00
.db 'i',00
.db 'c',00
.db 's',00
.db ' ',00
.db 'S',00
.db 'T',00
.db 'i',00
.db 'c',00
.db 'e',00
.db 'X',00
.db ' ',00
.db 'e',00
.db 'm',00
.db 'u',00
.db 'l',00
.db 'a',00
.db 't',00
.db 'o',00
.db 'r',00
.db ' ',00
.db ' ',00
.db ' ',00
StringDscr2_End:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I finally find my issue. A variable overlaps the descriptor ....
Thanks for your help.