Quantcast
Channel: panStamp forum - All Forums
Viewing all articles
Browse latest Browse all 473

NRG2 Debug

$
0
0
Hello all,

I have a sketch that I've successfully flashed to NRG1.1 and NRG2 boards in the past, but am now having trouble getting it to run. I'd like to see where the code is hanging.

For some background, I'm running NRG2 boards on minibat 1.0 modules with SI7021 sensors. The project is to read the temperature and humidity from the sensor. I'm using Arduino 1.6.5 (I've tried 1.6.7 and 1.8.1 as well), because I've had success with it before. I'm flashing over an FT232RL with the ti-bsl programmer and "panStamp NRG 2 w/ cc430f5137" board selected.

The sketch successfully flashes and boots. I get the initial boot output via serial and it chokes soon after the call to read the SI7021. Logging the I2C bus, all I see is an initial, synchronous low>high on both SCL and SDA which lasts for half a second and then drops back low.

My guess is a bug in one of libraries, but I can't figure out how to bring up a debugger to identify where it is stuck. If anyone knows a likely culprit, that would be appreciated, but I'd really like to know how to run a debugger on these.

Viewing all articles
Browse latest Browse all 473

Trending Articles