Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
JeBo_4132831
Level 4
Level 4
25 replies posted 25 sign-ins 10 replies posted

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:

 

 

 

 

 

0 Likes
1 Solution
JeBo_4132831
Level 4
Level 4
25 replies posted 25 sign-ins 10 replies posted

I finally find my issue. A variable overlaps the descriptor ....

 

Thanks for your help.

View solution in original post

0 Likes
6 Replies