This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/BEAGLEBK: Building TI-RTOS applications for Beaglebone Black

Thanks for Rahul`s response below; it was very helpful, and I was able to build the UART example project for BeagleBone Black in no time.

https://e2e.ti.com/support/processors/f/791/p/768982/2869998#2869998 

However, the problem is that I've been unable to make a bootable microSD card with the output binary. I followed the documentation here. (Sections 1.1.11 & 1.1.12) Here's what I've tried:

  • First of all, I connected the board's UART with the following setup. (I verified the UART works properly by booting the board normally and reading and writing characters from Linux shell.)
  • I used HP USB Disk Storage Format Tool to format my microSD card. Then, I picked the "ti/AM335X_StarterWare_02_00_00_07/binary/armv7a/cgt_ccs/am335x/beaglebone/bootloader/MLO" file and "project_name.bin" file created by CCS, renamed the latter as "app", and put them in the SD card manually. After that, I inserted the card into the board, and powered it up while holding down the S2 pin (to make it boot with SD card). Nothing happened; nothing gets printed on the serial port, not even boot up messages.
  • I tried the same with a bin file generated by the tiobj2bin tool, but that didn't make a difference.
  • I also tried the prebuilt files in the path "ti/processor_sdk_rtos_am335x_5_02_00_10/prebuilt-sdcards/evmAM335x/sd_card_files", but that didn't work out, either.
  • I also tried "TI_SDCard_boot_utility_v1_0", which successfully ran to completion, but nothing.
  • Lastly, I tried running "create-sdcard.sh" script in the RTOS SDK directory, which also ran to completion, but nothing.

I tried those both on a 64-GB SDXC card and on a 16-GB SDHC card, but neither worked. What should be my next move?

Thanks again,

Okan

PS. apologies for inserting the build log in the text itself; I should've attached it as a file as you later suggested.

  • OkCalis,

    There may be some issue with the HW setup on your Beagle bone black. I copied the prebuilt images on a SD card and was able to successfully boot of the images on the card with the following log. you need to first ensure that your board is booting with pre-built images to ensure SD boot is working correctly.

    Have you erased the eMMC images so the board can boot from SD? IF you don`t insert the SD card do you see UART boot ping character "CCC". This indicates that when the ROM bootloader on the silicon doesn`t find images on eMMC and SD, it successfully goes to UART boot and sends ping characters on the terminal.

    Refer to my response here:

    https://e2e.ti.com/support/processors/f/791/p/630153/2324907

    Regards,

    Rahul

  • Hi, Rahul,

    I did not erase the eMMC flash because I don't want to lose the factory-flashed Linux image in it. But the BeagleBone documentation says I can force the board to boot from microSD, rather than eMMC, by holding down the S2 button while powering it up. If I don't hold down the S2 button on powerup, I can see U-Boot launch and load the Linux kernel in several settings. However, if I hold down the button, nothing happens and nothing gets printed on the serial port, which makes me think that I have successfully skipped the eMMC boot mode.

    As for your other question, no, I do not see any "CCC" characters on serial port when I try booting from SD while the microSD card is removed.

    Thanks again,
    OkCalis
  • OkCalis.

    Since I am not able to reproduce this issue, I would recommend that you check with community members what else they have tried. I don`t believe this to be an RTOS bootloader issue given the same steps work on my board consistently.

    I will also check internally regarding options and update the post if there is any additional guidance to provide.

    Regards,
    Rahul
  • Rahul,

    There has been some progress. I tried copying the "app" and "MLO" files to the microSD card through Windows after formatting the card through the Linux shell script. Doing that on the prebuilt files yields the following serial output.

    Then, I tried the same on two PDK examples (namely "GPIO_LedBlink_bbbAM335x_armTestProject" and "UART_BasicExample_bbbAM335x_armExampleProject", which returns the following output:

    But nothing else, unfortunately. Nothing gets printed via UART, and the user LED does not toggle.

    What do you suggest doing next? Is the "Some tests have failed" string on the output of the pre-built image expected? If so, may I be generating the BIN file (from the output of the sample PDK Project) the wrong way? 

    Regards,

    OkCalis

  • Hi, Rahul,

    I'd be very glad if you could verify that the BIN file in the attached project (the default example) is working on your microSD card. As I mentioned in my earlier post, my board won't get past the "Jumping to Starterware application" line.

    Looking forward to hearing from you,

    Best regards,

    OkCalis

    6201.UART_BasicExample_bbbAM335x_armExampleProject.tar.gz

  • Hi,
    Please, could someone at least confirm that Processor SDK examples are compatible with the Starterware bootloader, i.e, MLO?
    In boot stage, I infer from the UART output that the bootloader gets the board to pass an initialization routine (as it prints "BOARDinit status 0x0").
    I suspected that, since the example code calls the Board_Init() function as well before starting SYS/BIOS, it may be getting stuck due to a second attempt of initialization. Hence, I commented out the Board_Init() function call, but that did not work out, either. There must be a simple explanation to why this is not working for me.

    Thanks again for helping.
  • Yes, Processor SDK examples are compatible with starterware bootloader that is provided with PDK. Our system test team tests the MLO with Processor SDK driver examples to confirm this setup..

    Are you still having this issue. I have found a BBB to try this out and will provide and update when I try the UART Examples that you have provided.

    Regards.
    Rahul
  • Hi, Rahul,

    Thanks for your support and patience regarding this issue.

    I solved it a while ago with the help of the following forum thread: 

    I used the Win32DiskManager tool to format the microSD card, and I think that has resolved the problem.

    Thanks again.