Fantastic! I already compiled your GPIO program and have it running on uclinux. This is a perfect start to our project. Thanks a lot for your help. I have no doubt that I’ll have more questions in the future.
Here you have some code to interact with the board.
UART.txt have some functions to work with a second UART if you have one (the first UART works with printf(), getc()...)
GPIO.c is a full app that reads from the switches and ligths the corresponding LEDs.
You can also take a look at the apps that come with petalinux like gpio-test.
On the other hand, if you want to interact with hardware inside the FPGA designed by yourself, you can use the functions/macros that the EDK creates after using the wizard "Create or Import Peripheral" in microblaze_0/include/youripname.h.
Tell me if you have any problem.
[mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] En nombre de Brian
Hello, I’m currently a Computer Engineering student working on project using the Spartan 3E Rev D Starter Board and Petalinux. I currently have the board running uclinux and have been very satisfied with it. Unfortunately, my professor wants me to take it a step further. He wants me to somehow integrate uclinux with some of the hardware aspects of the board itself. He gave me an example such as running a user app called “lights” through the uclinux terminal which will then blink the leds of the Spartan 3e starter board. I’ve read through the petalinux guides and know that I can write apps for uclinux that run exclusively inside of it, but I haven’t seen any programs that can be run in uclinux that can interact with the board itself, like with the leds or lcd display. Has anyone had any experience with this kind of program? Thanks for any help you can give me.