Hello world, bare metal Beagleboard

前端 未结 3 2100
闹比i
闹比i 2021-02-08 13:23

I\'m trying to get a \'hello world\' type program running on my Beagleboard-xm rev. C, by calling a C puts function from assembly.

So far I\'ve been using t

3条回答
  •  星月不相逢
    2021-02-08 13:52

    I've not enough repetation to comment.. But my answere to

    Works either way. Now the weird thing is that I can print individual characters with with uart_send('c') for example, but cannot print strings print_string(char *str){ while (*str != '\0') uart_send (*str++); } print_string("Test"); . Any thoughts on this?

    is:

    You write faster in the output buffer, as UART is able to send.. So you've to check, if the output buffer is empty, before you send a new character.

    I've done this in the code on my blog (http://hardwarefreak.wordpress.com/2011/08/30/some-experience-with-the-beagleboard-xm-part-2/)

提交回复
热议问题