dsPIC33F Code example does not work

tjthebe wrote on Tuesday, August 03, 2010:


I’ve been trying to get the demo application included with RTOS to work. I’m using Microchip MPLAB IDE, C30 compiler, the Explorer 16 development board and the ICD2 as a programmer.  I kept the project as I found it (except for changing some directories) and it compiles with no error.

After programming the microcontroller then removing and replacing power, I get a blank LCD and one of the LEDs (D10) is constantly lit although it is very dim.

Can someone give insight on what the problem may be? Thanks in advance.

P.S The FreeRTOS website says something about a “D socket” which I’m unfamiliar with so I ignored that sentence.

richard_damon wrote on Tuesday, August 03, 2010:

The D socket that was mentioned I believe is the 9 pin D-Sub connector for the serial port, the application expects a loop back so it receives back what it sent out.

As to the system coming up “dead”, one thing that sometimes happens to me is by mistake I load a debug version down with the debugger, instead of a release version with the programmer. When loaded with the debugger, the program NEEDS the debugger still attached to run, or else the unit just locks up.

tjthebe wrote on Wednesday, August 04, 2010:

Thanks Richard
I looked through the demo again after reading this post and I noticed a few mistakes on my part. First, after you pointed it out, I discovered that there was no loopback connection. Second, the Explorer 16 board that I’m using is different to the one specified in the example application. The example drives a 16x2 alphanumeric LCD but the board which I have has a graphic LCD installed. This says to me that the connections on the board are different and the microcontroller wont have the same effect which explains why the system comes up dead.