Flash Magic 3.59.227 can´t communicate

Started by rbtamd, May 12, 2007, 08:40:44 AM

Previous topic - Next topic

rbtamd

Hi folks,

I was using flash magic 3.50 and It works good. I installed the latest version (3.59.227) and it can communicate with my system. I am using the same settings. I try to connect via hyperterminal, sending the "U" char and the boot loader echoes it. Is this a bug in this version of flash magic?

Thanks

Roberto

Andy Ayre

Please generate a debug file and send it to me. The steps are here:

  http://www.flashmagictool.com/debugfile.html

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

rbtamd

Andy, I send you the debug file.

Thanks

Roberto

Andy Ayre

I haven't received anything. Make sure you are sending to support at esacademy dot com.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

rbtamd

I don´t know why, any way I send it again.

Thanks

Roberto

Andy Ayre

Got it. The device is not echoing the 'U' back to FM.

How are you placing the device into ISP mode? Flash Magic isn't doing it so you must be doing it manually somehow. Which method are you using?

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

rbtamd

I´m using no touch to place it in ISP. My condotion is tie the P1.4 to ground. I have a led indication and it is ok. If I use on the same PC hyperterminal I can see the ´U´char. It seems like flash magic doesn´t see the com port. I have the same com port settings.

Thanks

Roberto

Andy Ayre

It appears to me that when you use Flash Magic the device is not going into ISP mode. Are you sure that DTR and RTS from the COM port are not connected to either RST or VDD in some way? If you are using your own entry method such as No Touch you have to ensure that nothing else can cause the device to be reset.

If you are using an MCB900 board then I think you will need to remove the pins for DTR and RTS in your cable or cut some tracks. Note that the logic levels on DTR and RTS always change when a COM port is open (default Windows behaviour), even if you have the option to control DTR and RTS disabled in Flash Magic.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

rbtamd

I´m using MCB900 board and it worked good before I installed this version. I don´t know why but if I use DTR and RTS to enter in isp mode flashmagic works good. But with no touch doesn´t work. My confusion is because this no touch was working and I don´t have made any changes. I think the device is in ISP because when I use my version of no touch if I send a "U" via hyperterminal the device returns me "U" and the program have a led indication.

Thanks
Roberto

Andy Ayre

If enabling DTR and RTS in Flash Magic works and disabling it doesn't work, then that tells me the device is not being placed into ISP mode by the no touch method.

Put a scope on VDD and RST and check that when Flash Magic opens the COM Port it is not altering the state of RST or the power supply pin.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

rbtamd

I put the scope in VDD and RST, and they are Ok in any case. 
I made another test with the scope and found the following: when I check "Use DTR and RTS to enter in ISP mode" I see the signal in the TX pin of the serial port at the pc side. When is unchecked I don´t see anything on the TX pin. This test was made with MCB900 unplugged. I think that this could be a bug in this version.

Thanks

Roberto

rbtamd

I must to correct my last post. I made a cross rs232 cable to test and Flash Magic allways send the "U" char. Sorry it was a mistake, I´ll continue testing.

Thanks

Roberto

rbtamd

I think the problem is DTR signal. When "Use DTR and RTS to enter ISP mode" is unchecked Flash Magic still driving DTR when send data, it disable the max3221, an the controller doesn´t see any data. I cut the DTR line and it is Ok, but I think the old version doesn´t drive DTR signal when "Use..." is unchecked.

Thanks

Roberto

Andy Ayre

Recently we made sure that when the COM port is opened both DTR and RTS are unasserted. This was to fix a problem - I guess on some PCs the state of DTR could be different than the norm. By default DTR and RTS should always be set to the unasserted state by Windows when a COM port is opened (if handshaking is disabled), and Flash Magic now ensures this.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

rbtamd

I think handshking isn´t disable and this maybe the problem.

Roberto