Clear the atom?

i ran a code on my atom and now i cannot upload another or write over it. is there a way to clear the atom so i can start from fresh?

I don’t know of anyway of doing this. It should however not be necessary as the bootloader on the chip should not change when it writes a new program.

When the IDE tries to reprogram the chip it reboots the processor by changing the DTR/RTS line and then they do some handshake after the processor resets. So if you can not reprogram your processor something else must be wrong, like power… My assumption that nothing else on your system changed (IDE, IDE settings, serial connection…), if this assumption is not correct you should do the standard stuff…

Note: I once had this program and it turned out to be one of the servo wires got caught in servo and was causing a short some of the time. I ended up removing all other connections to my ABB(old card) and it programmed fine and then I tracked down which servo line had problems.

Good Luck
Kurt

we can now rule out power problems! :confused: :confused: :confused: :confused:
**
Still have issue!**

problem happend when i compiled with “warnings”
http://i531.photobucket.com/albums/dd355/innerbreed/Capture-7.jpg

sinCoxa = 0.6428 cosCoxa = 0.7660 IKFeetPosX_NEW = -IKFeetPosX*cosCoxa - IKFeetPosY*sinCoxa ; Rotation of Global coordinate to Local coordinate IKFeetPosY_NEW = IKFeetPosX*sinCoxa - IKFeetPosY*cosCoxa ; Rotation of Global coordinate to Local coordinate

You polly reached the million rewrite limit… JK :laughing:

I had this strange problem before, but instead of not compiling, it was the BAP ADin pins were no longer working, and it was caused by a fault in the IDE. After uninstalling the IDE and then reinstalling it, the BAP starting working again. When my BAP stopped working properly, all I was doing was programming the BAP with NO other changes and it went from “working” to “not working”. A reinstall solved the problem. I wish I could tell you how or why, but all I know is that it worked in my case.

Perhaps you could give this a try and see what happens. Who knows, maybe you’ll get lucky.

Hi again,

Are you sure these are not legit errors? What is sinCoxa and Coscoxa defined as? are they defined as var float?

Likewise for IKFeetPosX_NEW? Or do you want them to be integer in the end? If you want them as integers maybe for example it should look like:

IKFeetPosX_NEW = TOINT(-IKFeetPosX*cosCoxa - IKFeetPosY*sinCoxa)

However these are warnings not errors, so it should not stop it from programming the chip.

Kurt

sinCoxa = 0.6428 cosCoxa = 0.7660

IKFeetPosY_NEW          var sword 

i will have a look into the this and see what happends.

i have sorted the main problem now. all i did was copy and paste the code into another .bas and renamed it. now it works. ghost in the system or something.

thanks again.

You are welcome, but you may still need to look how sinCoxa is defined?
I assume that it is something like: cosCoxa var float

If it is a constant, maybe instead you should have something like:
sincoxa FCON 0.6428

Kurt