Posted: 08:44pm 12 Jan 2022 |
Copy link to clipboard |
Print this post |
|
IWFM (it works for me).
Tried with a couple of laptops, I get the same ttyACM0 every time.
However, I do NOT get the signon message :( (I do get a > prompt if I hit Enter.)
So... looked at the code. Looks OK. Part of main:
if(Option.SerialConsole==0) while (!tud_cdc_connected() && mSecTimer<5000) {}
Superficially OK, though what mSecTimer has got to at that time I don't know.
The disassembly looks wrong :(
10002306: 2c00 cmp r4, #0 10002308: d12b bne.n 10002362 <main+0x1de> 1000230a: 4e0e ldr r6, [pc, #56] ; (10002344 <main+0x1c0>) 1000230c: 4d0e ldr r5, [pc, #56] ; (10002348 <main+0x1c4>) 1000230e: e023 b.n 10002358 <main+0x1d4> ... 10002344: 20030bf0 .word 0x20030bf0 10002348: 00001387 .word 0x00001387 1000234c: 6832 ldr r2, [r6, #0] 1000234e: 6873 ldr r3, [r6, #4] 10002350: 2b00 cmp r3, #0 10002352: dc06 bgt.n 10002362 <main+0x1de> 10002354: d100 bne.n 10002358 <main+0x1d4> 10002356: e0fc b.n 10002552 <main+0x3ce> 10002358: 0020 movs r0, r4 1000235a: f05a fd6b bl 1005ce34 <tud_cdc_n_connected> 1000235e: 2800 cmp r0, #0 10002360: d0f4 beq.n 1000234c <main+0x1c8>
Looks like it fails to wait.
edit: I've sometimes had the message... Must play more...
John Edited 2022-01-13 07:50 by JohnS |