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

USB low-full-high speed peripherals Forum Discussions

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
MallikaK_22
Moderator
Moderator
Moderator
250 solutions authored 500 replies posted 250 replies posted

Hi,

Kindly share your descriptor file.

Regards,

Mallika

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

Hi Mallika,

I've already tried to attached .ASM file but it is not accepted.  That's why i wrote the StringDscr2 definition in text.

I wll try again ...

0 Likes

Hi,

Please zip and then try attaching.

Regards,

Mallika

0 Likes
MallikaK_22
Moderator
Moderator
Moderator
250 solutions authored 500 replies posted 250 replies posted

Hi,

Please find attached the dscr.a51 file. I've modified the string descriptor accordingly and under Product field "STMicroelectronics STiceX emulator" is appearing as shown in the following figure.

b6dda597-8c25-4f51-8787-a54ecd252d61.PNG

Best Regards,

Mallika

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

Unfortunaltely this is exactly what i did (using a dscr.scm required for SDCC) and it does not work.

Attached the dscr.scm.

Issue linked to sdcc ?

 

Perhaps you can attach your .IIC ?  i can test it just to see if the displayed name is OK also onto my configuration ?

THE DISPLAY IS :

<DEVICE>
 FriendlyName="STMicroelectronics STiceX emulator"
 Manufacturer="Cypress"
 Product="STMicro㰴籴㴵絵㸶繶onics STiceX emulator"

I can share you my complete SDCC project if needed (in private).

Regards.

0 Likes
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.

0 Likes