68LC302 and serial bootstrap feature

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

68LC302 and serial bootstrap feature

189 Views
tomstorey
Contributor II

Hi all. Hopefully there is still someone around in 2026 that has some knowledge tucked away in the back of their brains regarding the LC302.

I've been working on a little project involving an LC302 and I am interested in using the serial bootstrap feature. I just cant seem to get it to work and I wondered if there is anything particularly special that needs to be done to make it work.

I've tried everything I can think of, and I'm currently looking at replacing the LC302 that I currently have in case it is somehow faulty, but thought I'd ask the question before I go to that effort. FWIW the markings on the package are (with Motorola logo):

MC68LC302PU25CT
2J29A
QQDJ0316

I am powering it with 5V.

Basically I cannot get it to echo back anything that I am sending to it. I came across the following post which seemed to describe the same problem, but I dont seem to have the same issue: https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/We-have-been-using-the-68LC302-for-decade...

Things I've tried/I can observe with my scope/logic analyser:

I've tried using both PLL mode and not. In PLL mode I used a 4MHz oscillator (4.192 is hard to come across). In this mode I used 9174 baud (4MHz*4, /109, /16). Without the PLL I used a 20MHz oscillator with baud 11467. I've used my signal generator to feed 4.192MHz in and used the baud rate quoted in the datasheet also to no avail.

If I pull PA7 high to disable bootstrap mode, I can observe some brief activity on the AS pin, presumably as the CPU tries to read its reset vector from external memory. If I pull PA7 low to enable bootstrap mode I don't observe this activity any more, presumably as the CPU is held in reset.

I did early on discover that PA7 seems to have some kind of current source on it, and was sourcing approx 3-4mA of current (measured with my multimeter in current mode), overpowering my external pull down resistor and resulting in a logic high. This feels like an extremely high amount of current to me, and does anyone have an explanation for that? It seems vaguely related to the above thread causing PA7 to be pulled too high unexpectedly. Maybe my part is faulty?

Reset and HALT are being asserted simultaneously (I've got lots of 68k experience from hobby projects over the past several years).

I've double and triple checked all of my wiring including the polarity of the TX/RX signals, and even pulled the flow control inputs for SCC1 to their negated state just in case. I've measured with my oscilloscope that my USB-serial adapter does indeed generate the baud rate that I am requesting, and looping TX to RX allows me to echo back the characters that I send in putty, so I am fairly confident there is nothing odd going on there.

I havent wired up any of the memory busses, because for now I am just interested to see if I can load some code in via serial and make an LED blink, but the BUSW pin has been strapped for 16-bit bus operation, if that matters?

Does anyone have any other suggestions before I go desoldering stuff?

Thanks!

Tags (1)
0 Kudos
Reply
6 Replies

91 Views
tomstorey
Contributor II

So, I replaced the 68LC302 for another one, and for about 2 seconds it worked (echoed back the characters I was sending it), until I power cycled it, and from then on it wouldnt work any more again.

Initially I didnt have CD1 grounded, because the datasheet says this is a "dont care" for the purposes of the serial bootstrap process, and it did indeed work in this configuration. After it stopped working I tried grounding CD1 but this didnt help.

So close, and yet so far. This project is just cursed.

This one also seems to have some kind of heavy-ish current source on PA7 that needs a reasonably strong resistor to pull it down sufficiently, or a tri-state driver to override it.

0 Kudos
Reply

23 Views
TomE
Specialist II

I think you're killing the chip. There are a few ways to do that, and reading your posts suggests two possibilities.

You're running (or have run) the clock from an external signal generator. Have you terminated the cable from the signal generator so as to avoid reflections and overshoots? If you've got a 50 ohm coax from the signal generator without a 50 ohm resistor on the end, it'll glitch (the reflections) up to 10V and down to -5V. That'll kill the chip for sure.

If you have an Agilent signal generator (others might be similar), program it to "0 to 5V" and don't notice the "terminated or not" option, then setting it to terminated and not adding one will have it generate 0-10V which will then glitch to -10V to 20V. Check the clock signal at the CPU with a good (high frequency, like 100MHz or better) oscilloscope.

How are you powering the chip driving the serial port on the CPU? Do you have a MAX RS232 transceiver powered from the 5V that is powering the CPU (and being fed 12V RS232 from a PC or something)? Or are you using an external TTL-level (3V3 or 5V) serial port connected directly to the CPU? If you're using the latter then when you power the CPU off you'll still be driving that external voltage into that CPU pin. TTL-RS232 idles at 5V, so doing that might damage the pin or even cause fatal latch-up. Google says this chip can suffer fatal latch-up if you do this. Check "latch-up" on Wikipedia.

And make sure everything is grounded together. This but this is something people using CAN always forget to do. Ditto RS-232.

Tom

 

7 Views
tomstorey
Contributor II

I suppose another option is to just build something properly on a PCB. I have one designed already, but I was hoping to test said design with a prototype first, before comitting to PCBs. I sort of get the feeling that if I tried to build it up on a PCB where it has a better electrical environment, maybe it would just work.

Part of the reason for wanting to prototype it was to make sure I had the correct logic for multiplexing the strapping pins between their straps and GPIOs to enter bootstrap mode during reset. The reset and bootstrap enable can be provided by some GPIOs of the MCP2221A, such that you can either do a reset on its own, or reset with bootstrap enabled.

My signal generator is a Siglent SDG2122X. When I use it I have it set to 5V peak to peak with a 2.5V offset such that it ranges from 0 to 5V, rather than -2.5 to +2.5.

My scope is a Keysight MSOX2024A, and I used that to check the signal coming from the signal gen. I wouldnt say I was using a fully optimal ground setup at the time when I did that, so I was seeing over/undershoot on the clock signal, but I'd have put that down to the fact I wasnt using a group clip or ground spring on the scope probe - I was more interested in measuring the frequency seen at the pin of the chip and just double checking the voltage was achieving 5V and not being dragged down by anything. I dont remember to what extent it was over/under shooting, I'd have to measure it again I guess.

0 Kudos
Reply

16 Views
tomstorey
Contributor II

Initially when I tested with the signal generator I didnt have it terminated. In the most recent case I am using an on-board 20MHz oscillator and ignoring the PLL configuration for the time being just to simplify things. (This isn't the configuration I want to run in the final version of my project (if I ever get there) though, becuase I want to use a 4MHz oscillator to drive another part as well.)

Power for the whole board is coming from a small USB-serial module from Mikroe which has an MCP2221A on it. This unfortunately has a diode in series with the 5V supply so the board sees closer to 4.7V, but I have also used a bench PSU to supply a solid 5V. I cant think of a case where the CPU would not have power but a 5V signal would be present on any of the pins - power is either there for everything or it isnt.

But if that is a situation that could result in latch-up and destroy the chip then I might just ditch the whole project now, because I am looking at building it into an arduino style board, and if these parts are just too overly sensitive to wierd and wacky power situations then they are probably highly unsuitable for this project.

0 Kudos
Reply

177 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

The first thing I would check is CD1 . For the LC302 serial bootstrap echo path, the manual says the SCC hardware echoes received characters back on TXD1 , but CD1 must be asserted; on SCC1 the external CD1 pin must be tied low . If you pulled the SCC1 modem-control inputs to their “negated” state, that may be exactly why you see no echo.

Other important points from the LC302 boot description:

  • Serial bootstrap is enabled by sampling PA7 = 0 during hard reset , where hard reset means both RESET and HALT asserted .
  • PA7 must not float; it must be deliberately pulled high or low during reset.
  • The first 576 bytes received on SCC1 are stored in dual-port RAM, and each received character is echoed back out of TXD1 ; the device will not leave boot mode until all 576 bytes are received.
  • For internal-clock bootstrap, the documented nominal clock assumptions are 4.192 MHz or 32.768 kHz , with the SCC programmed to approximately 9600 baud.
  • In asynchronous UART mode, the bit rate is 1/16 of the TCLK1/RCLK1 clock rate when using the external clock option.

So before replacing the part, I would try this exact minimal setup:

  1. Hold RESET and HALT low together .
  2. Strap PA7/BOOT low with a strong enough pulldown to overcome whatever is on your board.
  3. Select the intended clock mode with PA5 :
    • PA5 = 0 : internal boot clock mode.
    • PA5 = 1 : external clock on TCLK1/RCLK1 , 16× baud.
  4. Strap PA12/MODCLK0 consistently with the clock source; the manual samples it during hard reset to distinguish the nominal EXTAL frequency.
  5. Tie CD1 low .
  6. Keep RXD1 , TXD1 , RCLK1 , and TCLK1 wiring consistent with SCC1, not SCC2. The boot feature is for SCC1 in the LC302 description.
  7. Send a full 576-byte test stream, not just one character, although the echo should appear character-by-character once receive is working.

The 3–4 mA sourced from PA7 is suspicious . The datasheet-level input leakage value retrieved is only 20 µA max , far below milliamps. Since PA7 is also a bidirectional multi-function pin, it is possible to get contention if something else is driving it or if the part has already left the reset-sampling state, but during reset-as-boot-strap it should not require sinking several mA just to read a low. I would check for a board-level pullup/driver/solder bridge on PA7 , verify the package pin orientation, and measure the current while both RESET and HALT are actively asserted.

One more practical note: your 4 MHz internal-clock attempt is not equivalent to 4.192 MHz . It may be close enough for some UARTs if the other side is adjusted, but the documented internal bootstrap mode assumes the nominal LC302 clock values, so for eliminating variables I would use 4.192 MHz with the documented baud , or use the external-clock mode and provide clean TCLK1/RCLK1 = 16 × baud .

 

regards

0 Kudos
Reply

172 Views
tomstorey
Contributor II

Hi, thanks for the message.

I have made sure that I am using SCC1 related pins.

My setup is on a perfboard with wire wrap, so there are no other influences on any of the pins other than what I have wire wrapped. I've verified with a multimeter that reset and halt are asserted together and that they reach 0V, and that all strap pins are seeing the required voltage levels with no floating pins.

Also, as mentioned in my post, I have also tried using 4.192MHz supplied by my signal generator and the baud rate quoted in the datasheet, but this didn't help.

Apologies when I said I had tied CD1 to its negated state, I've just mixed up my terminology and it is indeed tied to ground (asserted), along with CTS1 for good measure.

I'll try sending 576 bytes as a test in case it is just not echoing them back for some reason, but is still receiving them correctly.

Thanks

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2397356%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E68LC302%20and%20serial%20bootstrap%20feature%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2397356%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20all.%20Hopefully%20there%20is%20still%20someone%20around%20in%202026%20that%20has%20some%20knowledge%20tucked%20away%20in%20the%20back%20of%20their%20brains%20regarding%20the%20LC302.%3C%2FP%3E%3CP%3EI've%20been%20working%20on%20a%20little%20project%20involving%20an%20LC302%20and%20I%20am%20interested%20in%20using%20the%20serial%20bootstrap%20feature.%20I%20just%20cant%20seem%20to%20get%20it%20to%20work%20and%20I%20wondered%20if%20there%20is%20anything%20particularly%20special%20that%20needs%20to%20be%20done%20to%20make%20it%20work.%3C%2FP%3E%3CP%3EI've%20tried%20everything%20I%20can%20think%20of%2C%20and%20I'm%20currently%20looking%20at%20replacing%20the%20LC302%20that%20I%20currently%20have%20in%20case%20it%20is%20somehow%20faulty%2C%20but%20thought%20I'd%20ask%20the%20question%20before%20I%20go%20to%20that%20effort.%20FWIW%20the%20markings%20on%20the%20package%20are%20(with%20Motorola%20logo)%3A%3C%2FP%3E%3CP%3EMC68LC302PU25CT%3CBR%20%2F%3E2J29A%3CBR%20%2F%3EQQDJ0316%3C%2FP%3E%3CP%3EI%20am%20powering%20it%20with%205V.%3C%2FP%3E%3CP%3EBasically%20I%20cannot%20get%20it%20to%20echo%20back%20anything%20that%20I%20am%20sending%20to%20it.%20I%20came%20across%20the%20following%20post%20which%20seemed%20to%20describe%20the%20same%20problem%2C%20but%20I%20dont%20seem%20to%20have%20the%20same%20issue%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FColdFire-68K-Microcontrollers%2FWe-have-been-using-the-68LC302-for-decades-without-major%2Fm-p%2F612300%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FColdFire-68K-Microcontrollers%2FWe-have-been-using-the-68LC302-for-decades-without-major%2Fm-p%2F612300%3C%2FA%3E%3C%2FP%3E%3CP%3EThings%20I've%20tried%2FI%20can%20observe%20with%20my%20scope%2Flogic%20analyser%3A%3C%2FP%3E%3CP%3EI've%20tried%20using%20both%20PLL%20mode%20and%20not.%20In%20PLL%20mode%20I%20used%20a%204MHz%20oscillator%20(4.192%20is%20hard%20to%20come%20across).%20In%20this%20mode%20I%20used%209174%20baud%20(4MHz*4%2C%20%2F109%2C%20%2F16).%20Without%20the%20PLL%20I%20used%20a%2020MHz%20oscillator%20with%20baud%2011467.%20I've%20used%20my%20signal%20generator%20to%20feed%204.192MHz%20in%20and%20used%20the%20baud%20rate%20quoted%20in%20the%20datasheet%20also%20to%20no%20avail.%3C%2FP%3E%3CP%3EIf%20I%20pull%20PA7%20high%20to%20disable%20bootstrap%20mode%2C%20I%20can%20observe%20some%20brief%20activity%20on%20the%20AS%20pin%2C%20presumably%20as%20the%20CPU%20tries%20to%20read%20its%20reset%20vector%20from%20external%20memory.%20If%20I%20pull%20PA7%20low%20to%20enable%20bootstrap%20mode%20I%20don't%20observe%20this%20activity%20any%20more%2C%20presumably%20as%20the%20CPU%20is%20held%20in%20reset.%3C%2FP%3E%3CP%3EI%20did%20early%20on%20discover%20that%20PA7%20seems%20to%20have%20some%20kind%20of%20current%20source%20on%20it%2C%20and%20was%20sourcing%20approx%203-4mA%20of%20current%20(measured%20with%20my%20multimeter%20in%20current%20mode)%2C%20overpowering%20my%20external%20pull%20down%20resistor%20and%20resulting%20in%20a%20logic%20high.%20This%20feels%20like%20an%20extremely%20high%20amount%20of%20current%20to%20me%2C%20and%20does%20anyone%20have%20an%20explanation%20for%20that%3F%20It%20seems%20vaguely%20related%20to%20the%20above%20thread%20causing%20PA7%20to%20be%20pulled%20too%20high%20unexpectedly.%20Maybe%20my%20part%20is%20faulty%3F%3C%2FP%3E%3CP%3EReset%20and%20HALT%20are%20being%20asserted%20simultaneously%20(I've%20got%20lots%20of%2068k%20experience%20from%20hobby%20projects%20over%20the%20past%20several%20years).%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3CP%3EI've%20double%20and%20triple%20checked%20all%20of%20my%20wiring%20including%20the%20polarity%20of%20the%20TX%2FRX%20signals%2C%20and%20even%20pulled%20the%20flow%20control%20inputs%20for%20SCC1%20to%20their%20negated%20state%20just%20in%20case.%20I've%20measured%20with%20my%20oscilloscope%20that%20my%20USB-serial%20adapter%20does%20indeed%20generate%20the%20baud%20rate%20that%20I%20am%20requesting%2C%20and%20looping%20TX%20to%20RX%20allows%20me%20to%20echo%20back%20the%20characters%20that%20I%20send%20in%20putty%2C%20so%20I%20am%20fairly%20confident%20there%20is%20nothing%20odd%20going%20on%20there.%3C%2FP%3E%3CP%3EI%20havent%20wired%20up%20any%20of%20the%20memory%20busses%2C%20because%20for%20now%20I%20am%20just%20interested%20to%20see%20if%20I%20can%20load%20some%20code%20in%20via%20serial%20and%20make%20an%20LED%20blink%2C%20but%20the%20BUSW%20pin%20has%20been%20strapped%20for%2016-bit%20bus%20operation%2C%20if%20that%20matters%3F%3C%2FP%3E%3CP%3EDoes%20anyone%20have%20any%20other%20suggestions%20before%20I%20go%20desoldering%20stuff%3F%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2397405%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%2068LC302%20and%20serial%20bootstrap%20feature%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2397405%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20thanks%20for%20the%20message.%3C%2FP%3E%3CP%3EI%20have%20made%20sure%20that%20I%20am%20using%20SCC1%20related%20pins.%3C%2FP%3E%3CP%3EMy%20setup%20is%20on%20a%20perfboard%20with%20wire%20wrap%2C%20so%20there%20are%20no%20other%20influences%20on%20any%20of%20the%20pins%20other%20than%20what%20I%20have%20wire%20wrapped.%20I've%20verified%20with%20a%20multimeter%20that%20reset%20and%20halt%20are%20asserted%20together%20and%20that%20they%20reach%200V%2C%20and%20that%20all%20strap%20pins%20are%20seeing%20the%20required%20voltage%20levels%20with%20no%20floating%20pins.%3C%2FP%3E%3CP%3EAlso%2C%20as%20mentioned%20in%20my%20post%2C%20I%20have%20also%20tried%20using%204.192MHz%20supplied%20by%20my%20signal%20generator%20and%20the%20baud%20rate%20quoted%20in%20the%20datasheet%2C%20but%20this%20didn't%20help.%3C%2FP%3E%3CP%3EApologies%20when%20I%20said%20I%20had%20tied%20CD1%20to%20its%20negated%20state%2C%20I've%20just%20mixed%20up%20my%20terminology%20and%20it%20is%20indeed%20tied%20to%20ground%20(asserted)%2C%20along%20with%20CTS1%20for%20good%20measure.%3C%2FP%3E%3CP%3EI'll%20try%20sending%20576%20bytes%20as%20a%20test%20in%20case%20it%20is%20just%20not%20echoing%20them%20back%20for%20some%20reason%2C%20but%20is%20still%20receiving%20them%20correctly.%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2397391%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%2068LC302%20and%20serial%20bootstrap%20feature%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2397391%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%20class%3D%22%22%3EThe%20first%20thing%20I%20would%20check%20is%20%3CCODE%20class%3D%22%22%3ECD1%3C%2FCODE%3E%20.%20For%20the%20LC302%20serial%20bootstrap%20echo%20path%2C%20the%20manual%20says%20the%20SCC%20hardware%20echoes%20received%20characters%20back%20on%20%3CCODE%20class%3D%22%22%3ETXD1%3C%2FCODE%3E%20%2C%20but%20%3CCODE%20class%3D%22%22%3ECD1%3C%2FCODE%3E%20must%20be%20asserted%3B%20on%20SCC1%20the%20external%20%3CCODE%20class%3D%22%22%3ECD1%3C%2FCODE%3E%20pin%20must%20be%20tied%20low%20.%20If%20you%20pulled%20the%20SCC1%20modem-control%20inputs%20to%20their%20%E2%80%9Cnegated%E2%80%9D%20state%2C%20that%20may%20be%20exactly%20why%20you%20see%20no%20echo.%3C%2FP%3E%0A%3CP%20class%3D%22%22%3EOther%20important%20points%20from%20the%20LC302%20boot%20description%3A%3C%2FP%3E%0A%3CUL%20class%3D%22%22%3E%0A%3CLI%20class%3D%22%22%20style%3D%22list-style-type%3A%20disc%3B%22%3ESerial%20bootstrap%20is%20enabled%20by%20sampling%20%3CCODE%20class%3D%22%22%3EPA7%20%3D%200%3C%2FCODE%3E%20during%20hard%20reset%20%2C%20where%20hard%20reset%20means%20both%20%3CCODE%20class%3D%22%22%3ERESET%3C%2FCODE%3E%20and%20%3CCODE%20class%3D%22%22%3EHALT%3C%2FCODE%3E%20asserted%20.%3C%2FLI%3E%0A%3CLI%20class%3D%22%22%20style%3D%22list-style-type%3A%20disc%3B%22%3E%3CCODE%20class%3D%22%22%3EPA7%3C%2FCODE%3E%20must%20not%20float%3B%20it%20must%20be%20deliberately%20pulled%20high%20or%20low%20during%20reset.%3C%2FLI%3E%0A%3CLI%20class%3D%22%22%20style%3D%22list-style-type%3A%20disc%3B%22%3EThe%20first%20576%20bytes%20received%20on%20SCC1%20are%20stored%20in%20dual-port%20RAM%2C%20and%20each%20received%20character%20is%20echoed%20back%20out%20of%20%3CCODE%20class%3D%22%22%3ETXD1%3C%2FCODE%3E%20%3B%20the%20device%20will%20not%20leave%20boot%20mode%20until%20all%20576%20bytes%20are%20received.%3C%2FLI%3E%0A%3CLI%20class%3D%22%22%20style%3D%22list-style-type%3A%20disc%3B%22%3EFor%20internal-clock%20bootstrap%2C%20the%20documented%20nominal%20clock%20assumptions%20are%204.192%20MHz%20or%2032.768%20kHz%20%2C%20with%20the%20SCC%20programmed%20to%20approximately%209600%20baud.%3C%2FLI%3E%0A%3CLI%20class%3D%22%22%20style%3D%22list-style-type%3A%20disc%3B%22%3EIn%20asynchronous%20UART%20mode%2C%20the%20bit%20rate%20is%201%2F16%20of%20the%20%3CCODE%20class%3D%22%22%3ETCLK1%2FRCLK1%3C%2FCODE%3E%20clock%20rate%20when%20using%20the%20external%20clock%20option.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22%22%3ESo%20before%20replacing%20the%20part%2C%20I%20would%20try%20this%20exact%20minimal%20setup%3A%3C%2FP%3E%0A%3COL%20class%3D%22%22%3E%0A%3CLI%20class%3D%22%22%20style%3D%22list-style-type%3A%20disc%3B%22%3EHold%20%3CCODE%20class%3D%22%22%3ERESET%3C%2FCODE%3E%20and%20%3CCODE%20class%3D%22%22%3EHALT%3C%2FCODE%3E%20low%20together%20.%3C%2FLI%3E%0A%3CLI%20class%3D%22%22%20style%3D%22list-style-type%3A%20disc%3B%22%3EStrap%20%3CCODE%20class%3D%22%22%3EPA7%2FBOOT%3C%2FCODE%3E%20low%20with%20a%20strong%20enough%20pulldown%20to%20overcome%20whatever%20is%20on%20your%20board.%3C%2FLI%3E%0A%3CLI%20class%3D%22%22%20style%3D%22list-style-type%3A%20disc%3B%22%3ESelect%20the%20intended%20clock%20mode%20with%20%3CCODE%20class%3D%22%22%3EPA5%3C%2FCODE%3E%20%3A%0A%3CUL%20class%3D%22%22%3E%0A%3CLI%20class%3D%22%22%20style%3D%22list-style-type%3A%20disc%3B%22%3E%3CCODE%20class%3D%22%22%3EPA5%20%3D%200%3C%2FCODE%3E%20%3A%20internal%20boot%20clock%20mode.%3C%2FLI%3E%0A%3CLI%20class%3D%22%22%20style%3D%22list-style-type%3A%20disc%3B%22%3E%3CCODE%20class%3D%22%22%3EPA5%20%3D%201%3C%2FCODE%3E%20%3A%20external%20clock%20on%20%3CCODE%20class%3D%22%22%3ETCLK1%2FRCLK1%3C%2FCODE%3E%20%2C%2016%C3%97%20baud.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%20class%3D%22%22%20style%3D%22list-style-type%3A%20disc%3B%22%3EStrap%20%3CCODE%20class%3D%22%22%3EPA12%2FMODCLK0%3C%2FCODE%3E%20consistently%20with%20the%20clock%20source%3B%20the%20manual%20samples%20it%20during%20hard%20reset%20to%20distinguish%20the%20nominal%20%3CCODE%20class%3D%22%22%3EEXTAL%3C%2FCODE%3E%20frequency.%3C%2FLI%3E%0A%3CLI%20class%3D%22%22%20style%3D%22list-style-type%3A%20disc%3B%22%3ETie%20%3CCODE%20class%3D%22%22%3ECD1%3C%2FCODE%3E%20low%20.%3C%2FLI%3E%0A%3CLI%20class%3D%22%22%20style%3D%22list-style-type%3A%20disc%3B%22%3EKeep%20%3CCODE%20class%3D%22%22%3ERXD1%3C%2FCODE%3E%20%2C%20%3CCODE%20class%3D%22%22%3ETXD1%3C%2FCODE%3E%20%2C%20%3CCODE%20class%3D%22%22%3ERCLK1%3C%2FCODE%3E%20%2C%20and%20%3CCODE%20class%3D%22%22%3ETCLK1%3C%2FCODE%3E%20wiring%20consistent%20with%20SCC1%2C%20not%20SCC2.%20The%20boot%20feature%20is%20for%20SCC1%20in%20the%20LC302%20description.%3C%2FLI%3E%0A%3CLI%20class%3D%22%22%20style%3D%22list-style-type%3A%20disc%3B%22%3ESend%20a%20full%20576-byte%20test%20stream%2C%20not%20just%20one%20character%2C%20although%20the%20echo%20should%20appear%20character-by-character%20once%20receive%20is%20working.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22%22%3EThe%203%E2%80%934%20mA%20sourced%20from%20%3CCODE%20class%3D%22%22%3EPA7%3C%2FCODE%3E%20is%20suspicious%20.%20The%20datasheet-level%20input%20leakage%20value%20retrieved%20is%20only%2020%20%C2%B5A%20max%20%2C%20far%20below%20milliamps.%20Since%20%3CCODE%20class%3D%22%22%3EPA7%3C%2FCODE%3E%20is%20also%20a%20bidirectional%20multi-function%20pin%2C%20it%20is%20possible%20to%20get%20contention%20if%20something%20else%20is%20driving%20it%20or%20if%20the%20part%20has%20already%20left%20the%20reset-sampling%20state%2C%20but%20during%20reset-as-boot-strap%20it%20should%20not%20require%20sinking%20several%20mA%20just%20to%20read%20a%20low.%20I%20would%20check%20for%20a%20board-level%20pullup%2Fdriver%2Fsolder%20bridge%20on%20%3CCODE%20class%3D%22%22%3EPA7%3C%2FCODE%3E%20%2C%20verify%20the%20package%20pin%20orientation%2C%20and%20measure%20the%20current%20while%20both%20%3CCODE%20class%3D%22%22%3ERESET%3C%2FCODE%3E%20and%20%3CCODE%20class%3D%22%22%3EHALT%3C%2FCODE%3E%20are%20actively%20asserted.%3C%2FP%3E%0A%3CP%20class%3D%22%22%3EOne%20more%20practical%20note%3A%20your%204%20MHz%20internal-clock%20attempt%20is%20not%20equivalent%20to%204.192%20MHz%20.%20It%20may%20be%20close%20enough%20for%20some%20UARTs%20if%20the%20other%20side%20is%20adjusted%2C%20but%20the%20documented%20internal%20bootstrap%20mode%20assumes%20the%20nominal%20LC302%20clock%20values%2C%20so%20for%20eliminating%20variables%20I%20would%20use%204.192%20MHz%20with%20the%20documented%20baud%20%2C%20or%20use%20the%20external-clock%20mode%20and%20provide%20clean%20%3CCODE%20class%3D%22%22%3ETCLK1%2FRCLK1%20%3D%2016%20%C3%97%20baud%3C%2FCODE%3E%20.%3C%2FP%3E%0A%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22%22%3Eregards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2400045%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%2068LC302%20and%20serial%20bootstrap%20feature%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2400045%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ESo%2C%20I%20replaced%20the%2068LC302%20for%20another%20one%2C%20and%20for%20about%202%20seconds%20it%20worked%20(echoed%20back%20the%20characters%20I%20was%20sending%20it)%2C%20until%20I%20power%20cycled%20it%2C%20and%20from%20then%20on%20it%20wouldnt%20work%20any%20more%20again.%3C%2FP%3E%3CP%3EInitially%20I%20didnt%20have%20CD1%20grounded%2C%20because%20the%20datasheet%20says%20this%20is%20a%20%22dont%20care%22%20for%20the%20purposes%20of%20the%20serial%20bootstrap%20process%2C%20and%20it%20did%20indeed%20work%20in%20this%20configuration.%20After%20it%20stopped%20working%20I%20tried%20grounding%20CD1%20but%20this%20didnt%20help.%3C%2FP%3E%3CP%3ESo%20close%2C%20and%20yet%20so%20far.%20This%20project%20is%20just%20cursed.%20%3CLI-EMOJI%20id%3D%22lia_disappointed-face%22%20title%3D%22%3Adisappointed_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3CP%3EThis%20one%20also%20seems%20to%20have%20some%20kind%20of%20heavy-ish%20current%20source%20on%20PA7%20that%20needs%20a%20reasonably%20strong%20resistor%20to%20pull%20it%20down%20sufficiently%2C%20or%20a%20tri-state%20driver%20to%20override%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E