Hi everyone!
I'm starting to work on a project that requires porting TinyUSB to LPC55S36 MCU. I am using an LPCXpresso55S36 board and MCUXpresso IDE.
I'm trying to follow the Getting Started guide described in the TinyUSB GitHub repo, more exactly the steps described under Add TinyUSB to your project. However, it is not clear to me. I add some comments with respecto to these steps below:
Copy or git submodule this repo into your project in a subfolder. Let's say it is your_project/tinyusb.
DONE. I added TinyUSB repo as a submodule and I can see the repo folders inside MCUXpresso IDE.
- Add all the .c in the tinyusb/src folder to your project
Does this means that I have to move tusb_option.h, tusb.c and tusb.h to another folder, like sourcefolder? Or perhaps this is not neccesary in MCUXpressoIDE.
- Add your_project/tinyusb/src to your include path. Also make sure your current include path also contains the configuration file tusb_config.h.
This seems is not needed in MCUXpresso IDE, it should be made automatically when project is buit.
- Make sure all required macros are all defined properly in tusb_config.h (configure file in demo application is sufficient, but you need to add a few more such as CFG_TUSB_MCU, CFG_TUSB_OS since they are passed by IDE/compiler to maintain a unique configure for all boards).
- If you use the device stack, make sure you have created/modified usb descriptors for your own need. Ultimately you need to implement alltud descriptorcallbacks for the stack to work.
In these two points, I suppose I have to write my own code to LPC55S36.
Therefore, has anyone made this before?? Has anyone a detailed guide/application note or suggestion to share??
Thanks in advance!!!
Martin