1k views
in System Integration by

Hi,

I have two projects

one is an example for IMXRT1050-EVKB ( evkbimxrt1050_host_hid_mouse_keyboard_freertos (A project)

and another project is generated by Embedded Wizard (B project)

I can build and run these two projects separately with MCUXpresso in IMXRT1050

Now, I want to combine B project to A project 

and then I can implement the function when I press the real keyboard and it will trigger the KeyPressHandler event.

How to combine these two projects? 

Is there any guide or suggestion?

Thanks

 

Best Regards,

Andy Dong

by

I just did something similar. Start off with the EW codebase and add NXP et al's code into it.

Pay close attention to # Symbols as well as #includes. Sometimes there's a undocumented hook in there. E.g., LWIP code has a PHY symbol you must have for ethernet interupts to work.

Also pay close attention to the existing projects layout in the folder tree. Some of those folders are likely to be Virtual Folders and files.

It's never easy, get a big coffee and prepair for dealing with a flood of linker errors one by one.

by

Pin config and clocking will also be a big task. EW's project doesnt include a .mex for some reason. So import the pin_mux.c to create a .mex so you can use the PinTool, and THEN merge in your other projects pins. Otherwise you'll be doing it all in an editor. And thats no fun.

EW plumbs these in ew_bsp_system.c. Use the MCUxpresso tool to add a new Pin "Functional Group".  Once you have a new empty Funtional Group import the other projects pin_mux.c into it. You'll likely get pin conflicts in red. Sort them out by hand, there's no shortcut here, you gotta plumb things yourself right.

You can see here how I added some in:

oid EwBspConfigSystem( void )
{
  BOARD_ConfigMPU();
  BOARD_InitPins();
  BOARD_InitI2C1Pins();
  BOARD_InitI2C3Pins();        //mls
  BOARD_InitSemcPins();
  BOARD_InitEthernetPins(); //mls
  BOARD_BootClockRUN();
  BOARD_InitEnetClock();     // eth for LwIP (move this to BootClockRun??) mls
  BOARD_InitDebugConsole();

}

 

1 Answer

0 votes
by
Hi Andy,

We do not have a dedicated guide for this task, but all in all I would recommend you to start with the Embedded Wizard project.

Try to include the essential software parts from the other project step by step.

King regards

Tim

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...