Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - preraksheth

#1
After putting the flash magic in Debug mode and communication in Half Duplex mode, it worked for some time.
But then again, it started failing - now with an error "failed to send data to device" after successfully erasing sectors
This is now getting weird!
Please, please help
Regards,
Prerak
#2
Again, I am able to communicate thru terminal and the protocol seems to be ok in terminal
Regards,
Prerak
#3
Andy,

I am back with the problem. Originally, my problem was solved by putting the flash magic in debug mode and programming in debug mode.
Unfortunately, now even that does not work.
I can say that the serial communication line is working fine, as the previously loaded program does communicate with the PC properly (although sometimes with glitches).
I wonder what I could do next. I don't have logic analyzer to provide you with the hard baud rate info.

Any help would be greatly appreciated.
Regards,
Prerak
#4
Thanks so much Andy.

After keeping the flash magic in "Half Duplex" mode and disabling any default behavior for DTS/DTR/RTS etc, I am able to read device signature. (Don't know why)
But it still could not program (failed to send data).
Then I tried to put in debug mode, and suddenly it could program!
This has repeated multiple times - 70% times, it is able to program in debug mode. Never outside debug mode.
But now, it did not create a debug file :-(
I am totally zapped at what's going on. Will be great if you could shade some light based on above. Meanwhile I will try to get a debug file
Regards,
Prerak
#5
Andy - is the file good enough? Do I provide more info? Your help is greatly appreciated. Thanks
#7
I seem to have a peculiar problem with a prototype board that I have made
microcontroller: LPC2138
Flash Magic version: 5.87.2331 (Same problem with older version as well)
Baud rate: 9600
Crystal: 12 MHz
Communication: Serial (no USB conversion)

When I use a terminal (Putty or in built flash magic terminal), I am able to communicate.
I have tried:

?
Response> Synchronized
Synchronized
Response>OK
12000
Response>OK
J
Response>
0
196839
K
Response>
0
13
2

But if I try to read device signature, it keeps failing (and so obviously it can not program either)
I have put P0.14 to ground, and reset it before trying this everytime

Apart from this, if I want to program using terminal, what Unlock code do I have to use?
Thanks to all - I am new to the forum, and may have missed if this is already replied - in which case you can just point me to the right link