Hallo Sebastian,
thank You for Your answer.
I have found the LPCOpen structure. There are also example projects. I tried to open one, but unfortunately it doesn't compile.
I've got the OM13074 board. My own code runs well on this, I can control all the LEDs and ADCs.
When I try the examples, I do it in a new project, in a separate sub-folder.
Here are the error messages:
13:04:41 **** Incremental Build of configuration Debug for project nxp_lpcxpresso_11u37_usbd_rom_cdc ****
make -r -j4 all
Building file: ../example/src/cdc_desc.c
Building file: ../example/src/cdc_main.c
Building file: ../example/src/cdc_vcom.c
Building file: ../example/src/cr_startup_lpc11xx.c
Invoking: MCU C Compiler
Invoking: MCU C Compiler
Invoking: MCU C Compiler
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_LPCOPEN -DCORE_M0 -I"/home/bela/mcuxpresso/Proba10USB/nxp_lpcxpresso_11u37_usbd_rom_cdc/example/inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fmerge-constants -fmacro-prefix-map="../example/src/"=. -mcpu=cortex-m0 -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"example/src/cdc_desc.d" -MT"example/src/cdc_desc.o" -MT"example/src/cdc_desc.d" -o "example/src/cdc_desc.o" "../example/src/cdc_desc.c"
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_LPCOPEN -DCORE_M0 -I"/home/bela/mcuxpresso/Proba10USB/nxp_lpcxpresso_11u37_usbd_rom_cdc/example/inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fmerge-constants -fmacro-prefix-map="../example/src/"=. -mcpu=cortex-m0 -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"example/src/cdc_main.d" -MT"example/src/cdc_main.o" -MT"example/src/cdc_main.d" -o "example/src/cdc_main.o" "../example/src/cdc_main.c"
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_LPCOPEN -DCORE_M0 -I"/home/bela/mcuxpresso/Proba10USB/nxp_lpcxpresso_11u37_usbd_rom_cdc/example/inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fmerge-constants -fmacro-prefix-map="../example/src/"=. -mcpu=cortex-m0 -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"example/src/cdc_vcom.d" -MT"example/src/cdc_vcom.o" -MT"example/src/cdc_vcom.d" -o "example/src/cdc_vcom.o" "../example/src/cdc_vcom.c"
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_LPCOPEN -DCORE_M0 -I"/home/bela/mcuxpresso/Proba10USB/nxp_lpcxpresso_11u37_usbd_rom_cdc/example/inc" -Os -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fmerge-constants -fmacro-prefix-map="../example/src/"=. -mcpu=cortex-m0 -mthumb -D__REDLIB__ -fstack-usage -specs=redlib.specs -MMD -MP -MF"example/src/cr_startup_lpc11xx.d" -MT"example/src/cr_startup_lpc11xx.d" -o "example/src/cr_startup_lpc11xx.o" "../example/src/cr_startup_lpc11xx.c"
In file included from ../example/src/cdc_main.c:32:
/home/bela/mcuxpresso/Proba10USB/nxp_lpcxpresso_11u37_usbd_rom_cdc/example/inc/board.h:35:10: fatal error: chip.h: No such file or directory
35 | #include "chip.h"
| ^~~~~~~~
../example/src/cr_startup_lpc11xx.c:48:10: fatal error: sys_config.h: No such file or directory
48 | #include "sys_config.h"
| ^~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
In file included from ../example/src/cdc_desc.c:32:
/home/bela/mcuxpresso/Proba10USB/nxp_lpcxpresso_11u37_usbd_rom_cdc/example/inc/app_usbd_cfg.h:31:10: fatal error: lpc_types.h: No such file or directory
31 | #include "lpc_types.h"
| ^~~~~~~~~~~~~
compilation terminated.
make: *** [example/src/subdir.mk:30: example/src/cdc_desc.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [example/src/subdir.mk:30: example/src/cdc_main.o] Error 1
In file included from ../example/src/cdc_vcom.c:32:
/home/bela/mcuxpresso/Proba10USB/nxp_lpcxpresso_11u37_usbd_rom_cdc/example/inc/app_usbd_cfg.h:31:10: fatal error: lpc_types.h: No such file or directory
31 | #include "lpc_types.h"
| ^~~~~~~~~~~~~
compilation terminated.
make: *** [example/src/subdir.mk:39: example/src/cr_startup_lpc11xx.o] Error 1
make: *** [example/src/subdir.mk:30: example/src/cdc_vcom.o] Error 1
"make -r -j4 all" terminated with exit code 2. Build might be incomplete.
13:04:42 Build Failed. 9 errors, 0 warnings. (took 837ms)
Since I'm not an experienced SW engineer (HW instead), I can only interpret these some header files are missing.
I couldn't find for example a board.h file for my OM13074 board. What I have found for LPC11U37, it has inside a joystick, some buttons ... they're not present on my board. Of course, it also doesn't compile, when I try to use the board.h I found.
What can I do now?
I also started to write my own code to use the USB module on the chip, but it seems to be a larges challange.
Regards:
Jean
ps: just another question. Does it worth the effort with this chip ? NXP doesn't promote the LPC11xx series, are they too old? I've got another board too, OM13098 with LPC54628. What is Your opinion, would it be more efficient to change to this more complex chip? Does this board better examples and better support than the LPC11U37?