Good day all!
I have a project that uses the LPC844M201JBD48 MCU. Now that MCUs are 'the new toiletpaper' and virtually unavailable this year, we managed to purchase a few thousand of LPC845M301JBD48, which is the same footprint and will run the same code, but has more RAM and some additional devices (2 USART vs 5 USART for example). I can flash these directly in our products "as is" with MCUxpresso, however since we have them, I would like to add the LPC845 as a variant to the project, so that as we continue to develop software for the product some may be for "either 844 or 845" and some will be for "845 version only".
Rather than make a new '845' project and copy existing code to that project, I would like to have them in the same project. Otherwise, I can see having to duplicate new code or bug fixes for both versions concurrently yet separately... no bueno. Since the two MCUs are really just about like switching between 2 different packages of the 844 (sort of...), perhaps MCUx can allow a setup where I may select between the two versions from the same project, and rebuild as needed for each? I could #if out the 845 specific code, to keep the 844 version within RAM limits. the 844 also uses both USARTs but the new code for 845 I wish to mux in a 3rd one under 'Peripherals'. You see where I am going, eh?
I have been looking and cannot figure out how to do this, if it can be done. Hopefully I just missed something simple...!
Therefore, my specific question: Can I add a 'variant' of such similar processors to an existing MCUx project, if so, how best to? If not, any experience you might share on how best to proceed otherwise, copy project, etc.?
Cheers!
-jeff-