This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Code works only with Debug Adapter

Dear All,
I am using Silabs 8051F340 processor to which a temperature and humidity sensor(sensirion) is interfaced.
This sensor is interfaced using I2C like(2 wire serial) protocol. Code works fine when it gets power from debug adapter.(Background debug disabled but only power is allowed to circuit).But when board is connected to independent power supply of 5V the part of code which communicates to sensor, generates error condition. I also tried downloading other codes to same board(outputting data to serial port..etc) which works fine with independent power supply.

I checked my RESET circuit as well; it's okay. Is it something timing related issue? I am also giving a delay of 4 seconds before communicating to sensor to stabilize power supply. But it's not at all responding to independent power supply. Sensor interface generates error(other part of code responds okay though). Kindly Help.
Thank you,
Ameya

0