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.

omap4460 gpio toggle in assembly

Hi All,

For debugging purpose, I want to toggle omap4460 gpio in assembly code in u-boot. (Inside start.S file)

Can anyone point me to the proper way or method?

-------------------------------------------------------------------------------------------------------------------------------

Thanks,

Jags VG

  • Hi Jags,

    If you are new to assembly code you can examine this article:

    http://omappedia.org/wiki/Writing_ARM_Assembly

    Secondly, start.s is to early to toggle the gpio. the setup returns to start.s after the c run-time setup and etc.

    What specifically are you trying to debug that you need gpio support at that moment of initialization?

    Regards,

    Boyko

  • Hi Boyko,

    Thanks for reply, We have solved the problem.

    actually we wanted to debug the ddr problem in one of our board. (is u-boot execution starting on ddr or not?)

    but we wanted to do that before even serial initilization so We couldn't use the prints. so we planned to toggle the gpio at very early level and probe that.

    ---------------------------------------------------------------------------------------------------------------

    Thanks,

    Jags VG