What Wired Programming Connection Will the P2 Use on Bootup?
JRetSapDoog
Posts: 954
in Propeller 2
Apologies for the basic question, but how will the P2 be programmed from a PC? Will it look for a serial connection on booting (before resorting to the SPI flash), I mean after a reset or cold boot? I'm sure the answer is "Of course!" and I've no doubt read that on the forum but forgotten the details. I do vaguely recall seeing a pin-out for the proposed chip, but a lot of water has gone over the dam.
I'm updating a P1 project with two PCB's, wherein a first PCB (call it 'A') has a four-pin, 0.1" pitch header for a Prop Plug and passes the signaling and ground (rx/tx/res/vss) to a second PCB (call it 'B') that has a P1 (Prop). In this project, for a wired programming connection, it's not convenient to place the header on the 'B' board (due to physical access being limited). So the Prop Plug header is on the 'A' board. But if I someday update the 'B' board to use a P2 instead of the P1, I'm wondering if I'll have to go back and update the 'A' board again.
Will the P2's ROM allow programming (and flashing) via the current Prop Plug? I realize that there may be wireless SPP options, too. So, I might be able to move programming to the 'B' board (e.g., using a header and WiFi board) if and when I do update it for the P2. But right now, I'm just thinking about a wired connection. So, will a Prop Plug still work with the final P2 silicon? If so, I can probably use the same 'A' board that I'm reworking now.
Also, is there any potential to program the P2 directly from a USB connection without a Prop Plug (or similar USB-to-serial solution) on bootup? I don't believe there are any dedicated USB programming pins for booting on the P2. Will any of the 64 I/O pins have special USB functionality on bootup like P30 & P31 have now for serial? I don't recall reading that, so probably not (though I believe such special bootup functionality does exist for serial loading of/on the P2). I guess one could utilize 2 of the 64 I/O pins for USB programming *after* bootup (presuming a USB driver got loaded into a cog), in which case a Prop Plug or similar wouldn't be needed. So, it might be good for me to add a USB socket and some wiring to my 'A' board whatever the case may be.
I'm updating a P1 project with two PCB's, wherein a first PCB (call it 'A') has a four-pin, 0.1" pitch header for a Prop Plug and passes the signaling and ground (rx/tx/res/vss) to a second PCB (call it 'B') that has a P1 (Prop). In this project, for a wired programming connection, it's not convenient to place the header on the 'B' board (due to physical access being limited). So the Prop Plug header is on the 'A' board. But if I someday update the 'B' board to use a P2 instead of the P1, I'm wondering if I'll have to go back and update the 'A' board again.
Will the P2's ROM allow programming (and flashing) via the current Prop Plug? I realize that there may be wireless SPP options, too. So, I might be able to move programming to the 'B' board (e.g., using a header and WiFi board) if and when I do update it for the P2. But right now, I'm just thinking about a wired connection. So, will a Prop Plug still work with the final P2 silicon? If so, I can probably use the same 'A' board that I'm reworking now.
Also, is there any potential to program the P2 directly from a USB connection without a Prop Plug (or similar USB-to-serial solution) on bootup? I don't believe there are any dedicated USB programming pins for booting on the P2. Will any of the 64 I/O pins have special USB functionality on bootup like P30 & P31 have now for serial? I don't recall reading that, so probably not (though I believe such special bootup functionality does exist for serial loading of/on the P2). I guess one could utilize 2 of the 64 I/O pins for USB programming *after* bootup (presuming a USB driver got loaded into a cog), in which case a Prop Plug or similar wouldn't be needed. So, it might be good for me to add a USB socket and some wiring to my 'A' board whatever the case may be.
Comments
Somebody would need to buy a vendor ID and product ID though, I think.
Now if direct USB booting isn't in the cards or not desired for whatever reason, I wonder if the current Prop Plug will work to send a program into the P2 (that could also optionally be flashed, as on the P1). I guess so, but I'm not totally sure. Serial comms being much more straightforward than USB is a given on bootup, I presume, and I guess many serial comm devices/approaches should work, including the Prop Plug (hopefully). I suppose that's obvious to most folks here, but in the microcontroller space I've only programmed the Propeller and a PIC or two.
I believe it is like this ?
Serial is supported, with a quick-exit (RxD=L?) if the designer wants faster SPI boot.
Boot is now fractional, so you can change gears, and get a faster overall load, after the first RC osc ROM code loads the user stub.
There is likely to be room for USB loader, and if one can be written, it could be included.
SiLabs have a USB boot loader in appx 1.5k bytes.