Noticed something funny on the P2 booting
Cluso99
Posts: 18,069
in Propeller 2
I was trying out my new boards and I had a bug in my code - I never have bugs in my code so it must have been an aberration as I haven't had any bugs since my last bug
So I tried a working board, the P2-EVAL RevB with a RevB chip. I had a very simple RGB LED connected to the P0-3 pins with P0=GND (common) and 1=Green, 2=Blue, 3=Red.
When powering up via USB and then booting from microSD I noticed the blue LED flashing before the code to flash this LED could possibly be executing. When this was flashing I noticed that the P2Eval leds P56 & P57 turn on for a short time and P58-61 flash while booting from the SD card. Then my code starts flashing the RGB LEDs. But it's the flashing of the P2 while P0 must be outputting low while the P2 is booting from the microSD that is unusual. Has anyone seen this or can confirm this as it seems these lower P2 pins might be being driven while the P2 is booting up?
I'll do some more tests on my own pcb a little later but thought I'd post before I forget about it.
So I tried a working board, the P2-EVAL RevB with a RevB chip. I had a very simple RGB LED connected to the P0-3 pins with P0=GND (common) and 1=Green, 2=Blue, 3=Red.
When powering up via USB and then booting from microSD I noticed the blue LED flashing before the code to flash this LED could possibly be executing. When this was flashing I noticed that the P2Eval leds P56 & P57 turn on for a short time and P58-61 flash while booting from the SD card. Then my code starts flashing the RGB LEDs. But it's the flashing of the P2 while P0 must be outputting low while the P2 is booting from the microSD that is unusual. Has anyone seen this or can confirm this as it seems these lower P2 pins might be being driven while the P2 is booting up?
I'll do some more tests on my own pcb a little later but thought I'd post before I forget about it.
Comments
What does a scope say about the lower pin activity relative to booting sequence ?
Perhaps during bootup the I/O pins are being driven briefly??? No idea.
EDIT: I see Chip is using this for autobaud and you are just clearing them.
It just seems strange i/o pins 0 & 2 seem to be driven while booting. There is enough drive between these two pins to drive my led. P56 & P57 are also on for a short time but this could just be the LED driver chip glitching. P58-61 flash as the the flash is being checked and then the SD is being read. Once the code is loaded these stop.