Try programming the slave first and then master. Ideally it should work with and without hub.
Thanks for the reply.
Still I couldn't get it to work without the use of a hub. If you can give me an insight on the logic behind why programming the slave first? It would be really helpful.
The only logic is that if the master is programmed first, it may start sending or receiving invalid data due to spurious signals on the GPIOS of the slave device as it is not programmed.