Message Boards
Threads [ Previous | Next ]
Why would something work with debug build with ICE but not with Release?
Why would something work with debug build with ICE but not with Release?
12/11/08 2:42 PM
OK guys,

Here is another one that has me scratching my head. When I run my board with the real ice and a debug build everything works fine. Then when I program my board with the real ice as the programmer with a release build some of the ADC channels stop working. Channel 11 and channel 13 comeback as "000" but the other channels work normally. the other channels being used are AN2-5. I checked and the voltage going to them is correct.

This is a problem since the PCBs were design to use 11 and 13. Time to start hacking up my board to debug but I bet all of the upper ADC channels may have a problem with a release build. (64pin part) I can easily switch to AN12 but the rest are either no connects or used for something other than ADC.

If someone is using the upper ADCs can you try a release build and see if you have the same problem?
RE: Why would something work with debug build with ICE but not with Release
12/11/08 2:55 PM as a reply to bwike .
I just verified that ADC AN12 does not work with release build either. I can try AN6 and AN7 by wiring analog voltages to the ice port (ugly).
RE: Why would something work with debug build with ICE but not with Release
12/11/08 4:06 PM as a reply to bwike .
Well the following ports do work: AN0, AN1, AN2-5, AN6, AN7, AN8. Ports AN11, AN12, AN13 do not work with a release build (at least on the 64 pin part). I did not try AN9, AN10, AN14 and AN15. Time to contact microchip I guess.
RE: Why would something work with debug build with ICE but not with Release
12/11/08 9:32 PM as a reply to bwike .
Those ADC pins are shared by the JTAG port which is enabled by default. Please check to make sure you have set DDPCON = 0 in your code. This disables the JTAG port on the PIC32 which was done automatically by the RealICE Debugger when in Debug mode.
RE: Why would something work with debug build with ICE but not with Release
9/7/10 6:03 AM as a reply to bwike .
All secret in its firmware, but don’t worry – it is ready to go.

AVR MiniICE has following properties:
Is compatible with AVR JTAG ICE;
It is capable to debug and program Atmega microcontrollers with JTAG interface;
Real time debugging support;
Regular updates of firmware to support new types of AVR;
Updates can be done directly from AVR Studio;
Power supply from 2.6 to 6V;
Connects to AVR Studio through COM port;
Two LED indicators (“Power� and “Connect�).
Now AVR studio 4 supports following AVR MCU’s (may be already new ones included):

ATmega128, ATmega128L, AT90CAN128
ATmega16, ATmega16L
ATmega162, ATmega162L, ATmega162V
ATmega165, ATmega165V
ATmega169, ATmega169L, ATmega169V
ATmega32, ATmega32L
ATmega323, ATmega323L
ATmega64, ATmega64L
How to set up this adapter to be ready. Main thin is that you have to upload the firmware to it. For this you will need ISP programmer. First of all you will need to upload a Bootloader (or Alternative bootloader )to Atmega16 to be able to update firmware to newest one located in AVR Studio directory.
When bootloader is programmed program fuses like this (Using PonyProg):


Then connect AVR miniIce cable to PC COM port and start AVR Studio. In AVR Studio Tools menu locate AVR Prog. And browse for file upgrade.ebn in AVR Studio directory (by default in “C:\Program Files\Atmel\AVR Tools\JTAGICE\Upgrade.ebn �):


After AVR is programmed (usually you will get som error message – don’t care about it), you can program AVR fuses to its previous state – in order to disable bootloading:






____________________________________________________________________________________________________




Want to get-on Google's first page and loads of traffic to your website? Hire a SEO specialist from Ocean Groups seo specialist