ISP auto baud rate detection fails with 115200 baud rate

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ISP auto baud rate detection fails with 115200 baud rate

1,166 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by olltsu on Tue Mar 08 08:56:48 MST 2016
Hello,
When I took a brand new LPC1785 which has no application flashed inside, powered it on and started sending a '?' char from minicom with a 115200 baud rate, the controller recogniced this and sent "Synchronized" back.
The problem is that the baud rate is not exactly 115200 and the data gets corrupted on the way. When looking with oscilloscope the individual bits take ~9.2 us when with 115200 they should take ~8.7 us (1 / 115200).
The problem appears only with 115200 bauds, all smaller baud rates work okay. However I would like to use as fast baudrate as possible to speed up the flashing.

I tested this manually with minicom, but lpc21isp cannot synchronize with the controller either, most probably because of this same problem.

What could be the problem? I'd like to note that this happened with a brand new LPC1785 without any of my own software flashed in it. I come from LPC11xx controllers and with them I have never had such problems.

Could this problem be unique for only this single controller and caused by a bad IRC calibration or am I doing something wrong?
Labels (1)
0 Kudos
4 Replies

901 Views
lpcware
NXP Employee
NXP Employee
bump
0 Kudos

901 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by olltsu on Tue Mar 08 15:34:12 MST 2016
Hmmm you're right, looks like I have to stick to 57600 baud rate. Thanks.
0 Kudos

901 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MikeSimmonds on Tue Mar 08 15:32:46 MST 2016
I seem to remember that (if it is worth the effort for you) you can auto baud at 57600 and then used the baud rate change command to set
the baud rate up to 115200 as desired. [With a corresponding change in the host program of course.]

I.e. it is the baud rate auto detection that is the problem, not the higher baud rate in itself.

Cheers, Mike.
0 Kudos

901 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DF9DQ on Tue Mar 08 13:23:39 MST 2016
There's an erratum for this device which says (ISP.1) that baud rate for ISP download is limited to 57600 baud.
0 Kudos