Hi,
Thanks for your interest in NXP MIMXRT series!
NXP provides a detailed AN to guide this operation, please refer to it.
https://www.nxp.com/docs/en/application-note/AN12077.pdf
There are a few notes in it, firstly, since the size of the TCM must be an integer power of 2 and the OCRAM must be greater than 64KB. then, if you want to increase the OCRAM, there must be at least one TCM that has a value of 0. Therefore, please choose the configuration that is right for you from the following three options.

Also, if there is a TCM that needs to be 0, then it must be noted:
If the requested ITCM/DTCM size is 0 Bytes, disable the corresponding TCM in
IOMUXC_GPR_GPR16->INIT_xTCM_EN before configuring the size to 0 Bytes in
IOMUXC_GPR_GPR14->CM7_CFGxTCMSZ.
For a more specific guide, see also this post, which is a good place to start: Reallocating the FlexRAM - NXP Community
Best regards,
Gavin