Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
12 years, 3 months ago.
Serial Woes/ Program Start Woes
Hello all,
I am using a DS18B20 sensor connected KL25Z board.
Using the library at http://mbed.org/users/feabhas/code/DS18B20/ I am able to boot the board and sense temperature with it, with the on board LED flashing red and blue - blue when the temperature is sampled.
Reflashing the board with my laser driver test code (a PID controller for the fan on a laser heatsink block, using the DS18B20 sensor to sense the temperature of the block, and a PWM out to set the lasers power) results in something like this popping up over the serial console, and no program execution is made:
$$$.02000200241C81935EBC4EE1
Now, I did double check my serial speed settings, and confirmed them - 115200 in the code, 115200 in Coolterm, which works fine with the temperature only firmware.
I did, however, just after a flash, get intelligible output from the board, but the execution stopped at "Performing temperature conversion..." and nothing else happened. No LEDs, no serial output.
Please note, I am using the online compiler on a Macbook Air, so debug is not possible at this stage.
Many thanks in advance for your help!
1 Answer
12 years, 3 months ago.
Without code we cannot say what is going wrong. Do take into account PTA1 and PTA2 may not be used if you want to use a serial connection to your computer.