I'm using MCUXpresso 11.01 ConfigTools for the MIMXRT1062DVJ6A and have added the SEMC to my project. The SEMC configuration in the Peripherals tool is the default, except that, under General configuration, I've set SDRAM configuration/CS pin mux to "MUX RDY pin". The generated peripherals.h file does not define SEMC_1_PERIPHERAL, but the generated peripherals.c file does reference it. Since the file is read-only, I have to make it writable, add the macro definition
/* Definition of peripheral ID */
#define SEMC_1_PERIPHERAL SEMC
and remember to add it back if I make a change that requires the code to be updated.
Have I missed some configuration step that would resulted in the Peripherals tool automatically generating the macro definition?
Thanks for the quick response. However, this is the same temporary fix that I mentioned in my original post which, as I also mentioned, has the problem that, if I need to make configuration changes, it will be overwritten by a new peripherals.h file generated by the config tool. So, this is a ConfigTools bug that needs to be resolved.
As a better workaround, I added a definition for SEMC_1_PERIPHERAL to the defined symbols passed to the preprocessor during the build. That should not be affected by ConfigTools updating generated code.