OSD3358 not booting from SD card on custom board design

Hi,

I am working on a OSD3358 custom board, the reference design is from Pocket beagle, I am not sure where the problem is. This is the first time I’m designing for the OSD3358 Chip.

I have tried both the methods mentioned in the forum posts #4733 and #4608 regarding the EEPROM ID check. Still I am unable to boot.The image I am using - AM3358 Debian 10.3 2020-04-06 4GB SD IoT and even nothing is showing up on UART 0. This led me to further review the design of my board.

I have a few doubts regarding my design , It would be of great help to review my design before proceeding further on the design changes. This is my github link : https://github.com/Manish-0521/osd3358.git

  1. Maybe the Trace width of SD card lines in the PCB design is wrong, I have attempted on making it Single Co-Planar 50 OHM impedance.

  2. I am turing the device on from the USB and the Trace width of VIN_USB is less in my design, as per the forums i have noticed that due to Inrush Current of 1.5A there might be an issue. I am getting the correct voltages on the Test points VDDS_DDR, VDD_CORE, VDD_MPU, VDDS_PLL. So I am assuming the Power is fine. But i did not check the sequence of turning on of these voltages.

Please review the schematics too.

Thanks in advance,
Manish

Manish,

Initial look into the schematics does not reveal anything obviously incorrect. Although 1 thing I noticed was both pull-ups and pull-downs for Address setting of IC1 seem to be populated, which might mess withe EEPROM configuration as EEPROM inside OSD3358-SM is on address 0x50. May not be an issue, but recommend checking and making sure the external EEPROM is on a different address.

If you are getting outputs on power rails, that would mean that the PMIC is up. Can you double check all voltage rails are OK according to https://octavosystems.com/app_notes/osd335x-sm-power-application-note/?

When there is no SD card, do you get “CCCC” output on UART0? If so, this is an indication that the processor has booted correctly and searching for a boot media.

The other things to check is 24MHz and 32KHz clock signals.

One way you can completely bypass EEPROM is by using EEPROM Blank image as described in https://github.com/RobertCNelson/omap-image-builder/tree/master/octavo. You can build this image on your machine by selecting octavo-blank-eeprom.conf while running https://github.com/RobertCNelson/omap-image-builder/tree/master/octavo#generate-image-file.

When booting with the SD card, you should be able to see activity on SD CLK and CMD lines, if you have an oscilloscope, this would be a debug step to understand whether the processor is attempting to boot from the SD card.

Please let us know if you have an update on the debug,

Best,

Neeraj

Hi Neeraj,

Thank you for your response. The I2C address of the EEPROM has been configured appropriately.

Here are the voltage readings I observed:

  • VDDS_DDR: 1.5V
  • VDD_CORE: 1.1V
  • VDD_MPU: 1.1V
  • VDDS_PLL: 1.8V
Other voltage rails also appear to be within acceptable ranges.

Regarding the 24 MHz oscillator, I noticed there is no clock signal present when observed on the oscilloscope. It shows a constant high signal instead of an oscillating waveform.

Additionally, when monitoring the SD_CLK and CMD lines, there is no activity on either line. Both remain at a constant high signal, even when the SD card is inserted.

I managed to check part of the power sequence using the oscilloscope (50 MHz, 2-channel). Specifically, I monitored:

  • Channel 1: SYS_RTC_1P8V
  • Channel 2: SYS_VDD_1P8V
I am attaching an image of the observed power sequence. Since I am relatively new to using the oscilloscope.

I would appreciate your feedback or guidance on what are the next steps to take regarding this issue.

Thank you,
Manish

Manish,

The power rail measurements look OK. The sequence of RTC_1P8 vs VDD_1P8 also looks OK.

However, lack of 24MHz on OSC0 input is concerning. This is the main clock input for the SoC and it needs this clock input to function. The lack of activity on SD_CLK and CMD lines is consistent with the fact that the main clock input for the SoC is not functional.

Please review the values for C4, C6 and R33 in your schematic. Take a look at Section “Input Clock Requirements” in AM335x datasheet: https://www.ti.com/lit/ds/symlink/am3358.pdf to understand OSC0 Crystal Circuit Requirements. Can you see 32KHz signal?

Best,
Neeraj

Hi Neeraj,

The OSC0(Y1) I am using “YXC – YSX530GA 24MHZ 20PF 10PPM 2Pad SMD/SMT Crystal”. Values of C4 -20pF C6-20pF R33- 1M.
I have gone through the input clock requirements in AM335x datasheet. Is there any issue with the Load capacitance values C4 and C6. Can you guide me through on what values to be placed?
The OSC1(Y2) is “Q13FC1350000400” EPSON FC-135 32.768KHZ 12.5PF 20PPM 2Pad SMD/SMT Crystal.
The values of C8 & C9 are 12pF, R38 - 1M.
I am powering this board through USB, I have connected an external wire to increase the current carrying capacity as the inrush current is 1.5A.

If there is a problem due to load capacitance, Can you please guide me through selecting them.
Can you please suggest me the next steps to be followed in order to get my board working.

Thank you,
Manish

Manish,

The datasheet for the crystal is unclear on the load capacitance, but the part # you posted indicates 20pF load capacitance. Given the values of C4 and C6, the load capacitance comes out to 15pF, which is not that far off. I am not sure it will make a difference, but you can try removing R33 and seeing if that starts the oscillator? If you can, I would try replacing the oscillator as well.

The clock input is critical for OSD3358 to work. So, if removing R33 does not work, you could drive an external 24MHz input to see if that boots the device.

Best,
Neeraj

Hi Mr.Neeraj

We have designed new board for the OSD3358-BSM and got it assembled, i have followed the steps to skip the EEPROM check, still I’m unable to boot with SD card.
All the voltage levels on VDDS_DDR, VDD_MPU, VDD_CORE, SYSRTC_1P8V, SYS_VDD2_3P3V, SYS_VDD_1P8V, SYS_VDD3_3P3V are fine.
I have probed the 24Mhz crystal and it seems fine, but the 32.768Khz crystal is not working, I’m getting a constant 1.8v.
I don’t see any activity on SD-CLK line, when its Pulled up with a 10k resistor it reads 3.3v, when it is not pulled up it read 3.1v.
The SYSBOOT is as follows : 0001100000000010 0 to 15.
I don’t know if its a hardware issue or Im doing something else wrong.
I am using pocket beagle debian 10.3 version - bone-debian-10.3-iot-armhf-2020-04-06-4gb.img

Please guide me so this problem can be solved, let me know if any other information is required.

Best Regards
Manish

Hey Manish,

Boot mode and power rail signals seem OK for SD card boot.

Next thing to check is whether AM335x SoC is coming out of reset. Please probe RESET signal output of U3(based on schematics in your repo).

Once you verify RESET signal is HIGH, look for “CC” on UART0 when board is powered up with no SD card present. This will tell us that the AM335x SoC is executing the ROM code and is ready to boot. This is a sign of life that all hardware configuration inside the SiP is OK.

If you observe “CC” on UART0 output when no SD card is present, we need to proceed to verify that the SD card interface is OK.

First thing to check is the CD pin of the SD card interface. This signal needs to be LOW for OSD3358 to detect presence of the SD card. Some card holders have opposite polarity for this pin(CD is OPEN when card is inserted). So, power the board ON with SD card present and probe CD signal to make sure it is LOW.

If CD is LOW as expected, scope the CLK signal(SDIO_CLK) during power up to see if ROM code is exercising the SD card interface to boot. You will need to use an oscilloscope to plot the CLK signal while powering the board ON. You should see activity on the CLK line after PMIC powers up the SoC. This happens in the first few 100 milliseconds. If you observe activity on the CLK line, we are close to booting the board.

Please let me know how it goes or if you have any questions.

Best,
Neeraj

Hi Mr.Neeraj,

The RESET signal is high after power on, I measured 3.24v , where as the Input of the buffer (PMIC_PGOOD) is measured 1.84v.
On UART0 I’m NOT getting any “CC” when SD is present or not.
I haven’t programmed the EEPROM I2C.
CD is low as expected, when SD card is placed. When SD is not placed it is high.
No activity is observed on SD_CLK line, after power up it is pulled High.

Please respond as soon as possible, We are very short on time.
Thank you,
Manish.

Hi Mr.Neeraj,

We resolved the issue and the board is booting now.
There is a Resistor populated on JTAG_EMU0 pin R31 pulled down.

Thank you,
Manish.