Re: [U-Boot] loadb problem. Hangs on START_CHAR

2014-11-17 Thread Wolfgang Denk
Dear Bo, In message <1416231868926-196549.p...@n7.nabble.com> you wrote: > > I keep coming back to the fact that "loads" works fine in 115200 baud, but > "loadb" does not. This is the funny part of it. > If there is indeed a timing issue, it must be some handshaking in the Kermit > protocol, ri

Re: [U-Boot] loadb problem. Hangs on START_CHAR

2014-11-17 Thread bomellberg
Dear Wolfgang! Thank you for your efforts to help me out. I keep coming back to the fact that "loads" works fine in 115200 baud, but "loadb" does not. If there is indeed a timing issue, it must be some handshaking in the Kermit protocol, right? The "loads" command just absorbs data as it is tran

Re: [U-Boot] loadb problem. Hangs on START_CHAR

2014-11-17 Thread Wolfgang Denk
Dear Bo, In message <1416230584402-196545.p...@n7.nabble.com> you wrote: > > The following picture shows sending the character 'U' (0x01010101): > > > > Channel 1 shows the 'U' sent from the PC. Channel 2 shows the 'U' sent as > rep

Re: [U-Boot] loadb problem. Hangs on START_CHAR

2014-11-17 Thread Wolfgang Denk
Dear Bo, In message <1416227882897-196541.p...@n7.nabble.com> you wrote: > Well, I measured TX and RX at the target. They both have the same minimum > pulse width of about 8.7 µs. > > I'm reading up on delays in c-kermit. Is there a way to set char- and line > delays somehow? You should not need

Re: [U-Boot] loadb problem. Hangs on START_CHAR

2014-11-17 Thread bomellberg
"The fastest pulse" = the time that one bit encompasses. The following picture shows sending the character 'U' (0x01010101): Channel 1 shows the 'U' sent from the PC. Channel 2 shows the 'U' sent as reply from the board, which is als

Re: [U-Boot] loadb problem. Hangs on START_CHAR

2014-11-17 Thread bomellberg
Well, I measured TX and RX at the target. They both have the same minimum pulse width of about 8.7 µs. I'm reading up on delays in c-kermit. Is there a way to set char- and line delays somehow? In Tera Term for Windows you can set them but they seem to have no effect on Kermit transfers, only on

Re: [U-Boot] loadb problem. Hangs on START_CHAR

2014-11-17 Thread Wolfgang Denk
Dear Bo, In message <1416225420788-196515.p...@n7.nabble.com> you wrote: > > I measured the fastest pulse on my scope to 8.691 µs, which gives 1/(8.691 x ... Re-reading this I stumble over "the fastest pulse". Did you also verify that the bit widths are all the same? What about the stop bit se

Re: [U-Boot] loadb problem. Hangs on START_CHAR

2014-11-17 Thread Wolfgang Denk
Dear Bo, In message <1416225420788-196515.p...@n7.nabble.com> you wrote: > > Yes, those settings are all in my .kermrc setup. OK. Just checking to make sure we don;t miss anything. > I measured the fastest pulse on my scope to 8.691 µs, which gives 1/(8.691 x > 1e-6) = 115061.56 baud. Not real

Re: [U-Boot] loadb problem. Hangs on START_CHAR

2014-11-17 Thread bomellberg
Wolfgang, Yes, those settings are all in my .kermrc setup. I measured the fastest pulse on my scope to 8.691 µs, which gives 1/(8.691 x 1e-6) = 115061.56 baud. Not really 115200 but is it too far from working in your opinion? The tolerance in RS232 signalling is about 50% of the minimum pulse wid

Re: [U-Boot] loadb problem. Hangs on START_CHAR

2014-11-17 Thread Wolfgang Denk
Dear Bo, In message <1416218063825-196499.p...@n7.nabble.com> you wrote: > > If I turn down the baud rate to 9600, as well as set a line delay of 100 ms, > the loadb transfer works, and I get 0x240 bytes of Hello World at the > address of my choice. > > So, it seems to be some kind of baud rate

Re: [U-Boot] loadb problem. Hangs on START_CHAR

2014-11-17 Thread bomellberg
Some progress... If I turn down the baud rate to 9600, as well as set a line delay of 100 ms, the loadb transfer works, and I get 0x240 bytes of Hello World at the address of my choice. So, it seems to be some kind of baud rate missmatch between my board and the PC. The console works fine in 1152

Re: [U-Boot] loadb problem. Hangs on START_CHAR

2014-11-10 Thread bomellberg
Dear Wolfgang, > Which sort of hardware are you using? I am using an NXP LPC4337 cpu with external SDRAM and SPIFI flash. No ethernet. My config files are based upon code for the Embedded Artists LPC4357 demo board (ea-lpc4357.h) See my first post. Thanks, /Bo -- View this message in contex

Re: [U-Boot] loadb problem. Hangs on START_CHAR

2014-11-10 Thread Wolfgang Denk
Dear bomellberg, In message <1415622808801-195379.p...@n7.nabble.com> you wrote: > Upon further investigation, it seems like the board DOES receive the 0x01 > START_CHAR. An RS232 sniffer shows that the 0x01 is being sent, and the > board answers 'S'. It does not show on the console though. > > I

Re: [U-Boot] loadb problem. Hangs on START_CHAR

2014-11-10 Thread bomellberg
Upon further investigation, it seems like the board DOES receive the 0x01 START_CHAR. An RS232 sniffer shows that the 0x01 is being sent, and the board answers 'S'. It does not show on the console though. I will need to go deeper into the code to see why it fails. Both CKermit and TeraTerm makes s

[U-Boot] loadb problem. Hangs on START_CHAR

2014-11-07 Thread bomellberg
Hi. I'm working on getting u-boot running on a custom board. I am using code from Emcraft as a starting point. The cpu is NXP LPC4337. The board has external SDRAM and SPIFI flash, but no wired network. I can boot u-boot fine, and I can perform some memory operations with md and mw. I can load t