Page 1 of 1

Won't program after programming GPIO_INT8

Posted: Tue Apr 08, 2014 2:41 am
by jdarling
I got hello world to work, the decided to program GPIO_INT8 to my board. After loading it I could see the IO pins toggle while pulling them high or low. Yea!

But now I can't program the board any more. It still runs the GPIO_INT8 code no matter what I try. Is there some sort of program mode I can force it to by pulling a pin low or high?

Re: Won't program after programming GPIO_INT8

Posted: Tue Apr 08, 2014 1:24 pm
by basicchip
In BASIC if you exit BASICtools and restart, it should halt the program. We haven't seen one that was not halted. If you are using BASIC could you post a sample. We have seen programs that blast out the serial port that hang serial driver and that looks like what you describe.

In C it always enters ISP mode to write a new program, I've never seen a program or can think of one that would brick a part.

And which board are you using?

Re: Won't program after programming GPIO_INT8

Posted: Tue Apr 08, 2014 3:23 pm
by jdarling
The board is the 812 based 20 pin DIM version.

I had the board unplugged from anything all night and plugged it into a completely different computer. Started up the Coridium BASICtools again and still nothing. But again when I take pins to ground I see;

GPIO 0 Boot Pin Interrupt #
GPIO 1 Boot Pin Interrupt #

Always in sequence and with # counting up.

All I did was load the GPIO_INT8.bas file to it through a serial cable, nothing special.

I don't think the part is bricked, I think its auto-starting the GPIO_INT8 code as its doing exactly what one would expect this code to do when powered up. Even if I just plug the board into a 5 volt supply, then hookup the RXD, TXD, and GND pins to a serial cable I can see the shifts when taking pins to ground.

Re: Won't program after programming GPIO_INT8

Posted: Tue Apr 08, 2014 4:47 pm
by basicchip
You also need to connect up RESET to DTR or RTS depending on what kind of cable you have (RTS on FTDI built cables). That resets the board, and within 1/2 second of the reset an ESC or ctl-C has to be received or the BASIC program will start up.

This is also covered in the Power on behavior in the Hardware section.