Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usb_cdc_acm.c structs #1

Closed
alexanderhiam opened this issue Feb 18, 2012 · 1 comment
Closed

usb_cdc_acm.c structs #1

alexanderhiam opened this issue Feb 18, 2012 · 1 comment

Comments

@alexanderhiam
Copy link

As of 2/16/12 the usb_cdc_acm.c library cannot compile on Linux Mint 12 64-bit with SDCC #5416 (Feb 3 2010) (that's all 'sdcc --version' gives me).
There are multiple structs defined in the usb.h library header in the form:

typedef struct STRUCT_NAME
{
  ...
} STRUCT_NAME;

usb_cdc_acm.c attempts to use the types 'struct STRUCT_NAME', when it should just use 'STRUCT_NAME'. It compiles without trouble after changing all occurrences.
It may be that it would compile fine with a current version of SDCC (I haven't tried yet), but the version I have is the one currently in the Apt repositories, so I figure it's the version that most Mint/Ubuntu users would have.

@DavidEGrayson
Copy link
Member

Hey alexanderhiam. Sorry for taking so long to respond to this! It sounds like you have a version of SDCC prior to 3.0.0 because 3.0.0 was released on 2010-11-01. The last time I checked, Ubuntu 10.04 also had an old version of SDCC. We recommend using SDCC 3.0.0 or later with the Wixel SDK even if you have to compile it from source.

I fixed the issue as you requested but I'm still not convinced that the Wixel SDK will work on versions of SDCC prior to 3.0.0.

When we upgraded our development to SDCC 3.0.0, I had to change the way that we're defining the addess of the XPAGE register and some other things, so I'm not sure that the current wixel-sdk code will work. You should take a look at your app's map file and make sure that the address of XPAGE is 0x93. The .map file should have a line that is something like:

00000093 __XPAGE xpage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants