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.

How to boot a SYS/BIOS binary and toggle GPIO pins

Other Parts Discussed in Thread: DM3730

Hello,

Have several questions:

1) After writing a SYS/BIOS program in CCS5.3 how do I get the DM3730 chip to boot it?

- Can I simply set my program up as MLO and have the chip boot it from MMC?

- Can I have x-loader boot it off of MMC?

- After compiling how do I get the binary up and running?

- Does SYS/BIOS initialize hardware for me, e.g. easy way to setup UART or GPIO or HWI, etc...

-- If not, are there some examples on how to do this

2) To test if my program is running I figure it is easy to toggle a pin value (GPIO) since UART is becoming difficult (which it shouldn't be). So, what is the syntax to do this?

- What include files do I need?

- What needs to be setup?

- Etc.

 

All of the info I find keeps pointing me towards Linux, it seems support for SYS/BIOS is limited. I haven't found any solid instructions on how to make standalone programs and load them.

  • Dustin,

    As I replied to your other BIOS forum thread, I think you need to take a first step of getting a simple non-OS application booting first, and once you get that process figured out, then bring SYS/BIOS into the mix.  From looking at your posts on the DaVinci and CCS forums, it seems you were first taking that approach.  I don’t know of any issues you’ll see with booting a SYS/BIOS-based app, but it will remove some complexity from trying to get everything to work in one big step.

    I think the DaVinci forum is the best place for you to pursue the booting, MLO, MMC, x-loader questions.

    Regarding writing to GPIOs: SYS/BIOS itself does not use GPIOs, and does not provide any initialization of them, or abstraction layer or APIs for access.  On some platforms there are some chip support libraries that people can use, but for simpler peripherals I think most people will write their own code, typically declaring C structures representing the peripheral registers, and then writing to the registers directly.

    Scott