Content originally posted in LPCWare by neilt6 on Thu Apr 25 10:55:48 MST 2013
Hi everyone. I've been tasked with evaluating the NXP LPC11U2X line of microcontrollers as a cheaper/faster/better alternative to the Atmel ATmega32U4 in an ongoing USB device project. So I ordered an LPCXpresso LPC11U14 board, and an Embedded Artists LPC11U35 board. I didn't want to spend a week writing drivers, so I decided to try the LPCOpen platform, which has an updated version of CMSIS anyway.
I've been trying for several days now to get a generic HID project up and running and, while I can get the examples to import and run (which seems to be where the docs end), I can't seem to figure out how to actually create a new workspace/project that leverage's the platform. I was able to recreate the periph_blinky example, but I spent like 10 minutes alone setting up hard coded include paths and library paths. Is this honestly how it's supposed to be used, where every project has to include every folder that all of the library projects include? How does this work when the platform is updated? Do I have to re-import all of the new examples and look for changes in the paths?
I also spent about an hour trying to recreate the generic HID example, but I couldn't get it to build. The lpc11u14 board library and USB device library would build separately, but when I tried to build the example the USB device library would start complaining about HAL related things. I even made sure I had all of the same paths, symbols, and references as the example!
I've combed through the documentation and found nothing related to starting a new project, outside of a note that installing LPCOpen means unzipping it, and a passing mention that "sys_config.h" is where you go to configure things... I realize this is a relatively new project, but it seems like very little thought was put into documenting how to actually use the libraries, not just import pre-done examples each equipped with a million hard coded include paths.
So basically, if somebody could walk me through creating a new workspace/project and linking it to the core library and USB library I would really appreciate it! I tried asking the same question over at LPCware a few days ago, but I haven't gotten any replies. I'm worried if this takes much longer, my company will pull the plug on this endeavour and send us back to the ATmega32U4. And now I'm hooked on 32-bit! :D
Thanks!
Neil Thiessen
EDIT: I'm also going to need to link to FreeRTOS eventually, but for now I'd be happy just to learn the proper way to use the platform, and get USB up and running.