Author Topic: Can programm my MCU only one Time (LPC935()  (Read 7788 times)

tuxilein

  • Jr. Member
  • **
  • Posts: 4
    • View Profile
Can programm my MCU only one Time (LPC935()
« on: September 20, 2006, 01:16:53 pm »
Hey,

i use Flash Magic Programmer a long time ago. I have had no problem with reprogramming the Device. Now i start to programm a device and it is done but i will reporgramm the same device nothing go.
I have not change any values it is all the same as before.

Flash magic can not conect after programing to the device. But the device is running.

Thanks

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2173
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Can programm my MCU only one Time (LPC935()
« Reply #1 on: September 20, 2006, 01:19:59 pm »
Which ISP entry method are you using?

What tests have you performed to determine the ISP entry method is working and what were the results?

Embedded Systems Academy, Inc.
support at esacademy dot com

tuxilein

  • Jr. Member
  • **
  • Posts: 4
    • View Profile
Re: Can programm my MCU only one Time (LPC935()
« Reply #2 on: September 20, 2006, 01:41:54 pm »
"Use DTR and RTS to enter ISP mode"  if you mean this, i did'nt change everything.

now i have connnect a lcd display on the i2c bus and if it will programm secound time any data trash came.
this is only on some mcu's.

i can programm every mcu one time the next time i't don't will programm it.

thanks



Post Edited (09-20-06 13:45)

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2173
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Can programm my MCU only one Time (LPC935()
« Reply #3 on: September 20, 2006, 01:48:14 pm »
It sounds like your ISP entry method is not working. Use a scope to check the Rst and RxD pins and make sure you are seeing the three pulses. If you are not using an MCB900 then copy that circuit - it is the only one guaranteed to work.

Embedded Systems Academy, Inc.
support at esacademy dot com

tuxilein

  • Jr. Member
  • **
  • Posts: 4
    • View Profile
Re: Can programm my MCU only one Time (LPC935()
« Reply #4 on: September 20, 2006, 01:56:35 pm »
mm i think you don't understand it.

my programmer circuit is ok and works good bevor. i use it over 2 years long now and i have net hed any problem with the programmer and reprogramming the mcu.

this problemm is now here. i can programm new mcu and the next time i didn't can programm it. noting change on the programmer hardware and no changes on the FM sw!

The circuit is from:
http://www.esacademy.com/software/flashmagic/appnotes/ISPHardwareEntryAppNote.pdf
site 5 and it works great. ok.

now you think after this the entry mode isn't ok?

thanks

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2173
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Can programm my MCU only one Time (LPC935()
« Reply #5 on: September 20, 2006, 02:06:47 pm »
So you have the same:

  - target board
  - microcontroller
  - version of Flash Magic
  - PC
  - serial cable

for the last two years, and it used to work but not you are having problems?

Something has changed. It's a matter of finding out what. Being able to program a brand new device once but then not being able to do it a second time is a classic symptom of failure to place the device into ISP mode.

Embedded Systems Academy, Inc.
support at esacademy dot com

tuxilein

  • Jr. Member
  • **
  • Posts: 4
    • View Profile
Re: Can programm my MCU only one Time (LPC935()
« Reply #6 on: September 20, 2006, 02:15:31 pm »
ok thats right is all the same but the pc has changeed for 1,5 year but for a month i can programm with this.

yes i have now 12 devices that i can't programm again it was all new devices.

you have no idea what can change but the funny think is i can programm a new device one time and than is out to programm it.

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2173
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Can programm my MCU only one Time (LPC935()
« Reply #7 on: September 20, 2006, 02:23:10 pm »
So for the last month you were able to reprogram devices and then suddenly it stopped working with no changes to anything, including the hex file or version of Flash Magic?

Based on the limited information I have, I don't have any magic answers to your problem. In your situation I would do what probably most engineers would do and that is to throw away assumptions and start testing to build up a list of facts. If you want me to help you with that process, let me know.

Embedded Systems Academy, Inc.
support at esacademy dot com

erikm

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Re: Can programm my MCU only one Time (LPC935()
« Reply #8 on: September 21, 2006, 08:01:17 am »
my programmer circuit is ok and works good bevor. i use it over 2 years long now and i have net hed any problem with the programmer and reprogramming the mcu.

two possibilities

1) the most likely
The circuit is from:
http://www.esacademy.com/software/flashmagic/appnotes/ISPHardwareEntryAppNote.pdf
site 5 and it works great. ok.

you have substituted something and ended up with "a defective circuit that works"  such is VERY common and to make such show the problem can take something as simple as a change in temperature.  The callic is "My 232 inetrface is "tested and proven" now it does not work and after dragging along it is revealed that it does not work now because the PC was replaced.

2) something in your hardware is broken

Erik

erik

oarecare

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Re: Can programm my MCU only one Time (LPC935()
« Reply #9 on: October 08, 2006, 03:55:47 am »
could it be that he has not selected 'erase blocks used by hex file' and the programs write on top of each other? just a guess... try to erase it fully and see if it works