Hi,
I have checked the data sheet of LPC553x, I suppose that difference for LPC5534JBD100 and LPC5536JBD100 is that the flash/RAM size, they are pin to pin compatible.
But if you populated LPC5534JBD100 on PCB, but you want to download LPC5536 project to the LPC5534, maybe there is issue, the probe may check the part number of the processor when it download.
If you replace the LPC5534JBD100 with LPC5536JBD100 on PCB, then download LPC5536 project, is it okay?
Hope it can help you
BR
XiangJun Rong