Hi,
Is there available macros to check whether a given address resides in DTCM, DMAMEM, EXTRAM, FLASH, ... ? I checked a bit but I did not find anything conclusive except a macro IS_EXTRAM() in cores/teensy4/extmem.c.
And by the way, this macro contains a typo: 'ptr' should be replaced by...