The release notes for version 11 of the MCUXpresso Config Tools states that in version 10 new functionality was introduced that - "Added support of expansion board adapters - expansion boards that contain additional expansion headers"
I have been trying to use this new functionality with my LPC55S69 EVK Development Board and an LPCXpresso Click Shield Board, which has 2 Mikro Click adapters, but I have been struggling against a apparent lack of documentation for the new expansion board adapters functionality.
The Knowledge Base Article https://community.nxp.com/t5/MCUXpresso-Config-Tools/Creating-expansion-board-definition-file-for-Ar... has been a good starting point for my investigations but the version 1.0 XSD file that is referenced does not include definitions for expansion board adapters. However, I have discovered that there is a version 2.0 XSD which does include the required definitions, but my efforts to craft an xml file that conforms to this definition and works, have so far not been successful.
Interestingly, the screen shots used in the latest version of the Config Tools User Guide appear to show the expansion board adapter functionality being used. Please see the attached User Guide screenshot, from which you will see a FRDM K64 Click Shield.xml file being applied to an expansion header. This clearly shows the Mikro1 and Mikro2 adapter headers that I am trying to define for my LPC Click Shield.
Does anyone have a copy of the FRDM K64 Click Shield.xml file that was used to generate the User Guide screen shots? The K64 Click Shield and LPC Click Shield are very similar and this should give me a good starting point.
Thanks.
已解决! 转到解答。
Hi,
I'm glad that you configuration now works properly.
Regarding to the additional import of default expansion board - yes, it's possible. You can use the following steps to import setup of the standard board for the same processor that is used for the configuration.
best regards
MCUXpresso Config Tools Team
Petr Hradsky
Hi Petr,
Thank you for providing the FRDM_K64_Click_Shield.xml file, which has proved to be very useful in helping me to progress my own xml file for the LPCXpresso Click Shield board. However, I have still not been able to produce a version of my LPCX_Click_Shield.xml file that works. When I apply my xml file to an expansion header that is based on the lpc_style_arduino header type, I get the following error messages reported in the MCUXpresso log file:
Feb 21, 2022 10:28:02 PM Pins SEVERE: Expansion header Mikro_BUS_1 on expansion adapter board LPCXpresso_Click_Shield contains invalid pin references
Feb 21, 2022 10:28:02 PM Pins SEVERE: Expansion header Mikro_BUS_2 on expansion adapter board LPCXpresso_Click_Shield contains invalid pin references
Unfortunately, I have been unable to identify which particular pin references MCUXpresso is saying are incorrect, so can you please take a look at the attached xml file and see if you can assist me in identifying where the problems lie? To assist, I have also attached a copy of the LPCXpresso Click Shield schematic.
I think that some additional documentation or an article covering this functionality would be extremely useful and I look forward to seeing something in due course. Any idea as to the likely timescale for this?
Thanks for your help.
Steve.
Hi Steve,
we have looked on your file an the problem is in the identification of the referenced connecters in the adapter definition:
The value of the id attribute in the connector element must match the original id of in the expansion header definition. That id's can for example be seen when you click on the '+' button to add new expansion header and select the header you want (in your case micro_bus):
After changing the ids back to C1 and C2, the file works and can be applied. We haven't checked connections correctness - you can check that in the tool in tooltips, when you switch to the adapter headers that appear in the list after applying the board file.
I also attach modified version of your file.
best regards
Petr Hradsky
Config Tools Team
Hi Petr,
Thank you for your prompt response and for correcting my xml file. I now have this working correctly in my project.
One final question before I mark this thread as resolved:
New projects created with the latest version of MCUXpresso have pre-populated expansion header(s) matching the expansion headers on the board eg. LPCXpressoV2/V3 Expansion Header for theLPCXpresso55S69 Development Board. Is there any way to add these pre-populated header definitions to an existing project that does not have them?
Thanks,
Steve.
Hi,
I'm glad that you configuration now works properly.
Regarding to the additional import of default expansion board - yes, it's possible. You can use the following steps to import setup of the standard board for the same processor that is used for the configuration.
best regards
MCUXpresso Config Tools Team
Petr Hradsky