We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi there,
I'm very new to uVision 4, so sorry if this is a stupid question.
I created a project and added the STR91x.s and a slightly modified version of the blinky.c demo included in the MCBSTR9 directory. The strange thing is that if I were modify and use the blinky.uproj file provided (after some suitable modifications), the program works. But when I try using my own uproj file, nothing happens on the board. I looked at the map file and found this problem:
When I use the blinky.uproj project file, the Image Symbol Table in the map file shows that str91x.o occupies location 0x00000000, as expected. But when I use my own project file, address 0x00000000 is occupied by __main.o instead, despite the fact that I specified that the str91x.s file should be loaded into the project. In addition, the "reset" section from str91x.o is removed from the image.
How do I fix this?
The other thing is: Where do I find information on how to access the hardware like LEDs, ADCs, LCD on the MCB-STR9 board? I've looked at blinky.c, and without any further information, statements like these completely baffle me:
SCU->GPIOOUT[7] = 0x5555; GPIO7->DDR = 0xFF; ... GPIO7->DR[0x3FC]=n;
Where do I get information about what these things mean? For example, why does writing 0x5555 to SCU->GPIOOUT[7] result in P7.0..7 being set to "mode 1"? And what is "mode 1"?
My apologies for this long message. I've tried for days to make my programs work, without much success. I'd appreciate any pointers.
Regards, Colin.
Okey-doke, I'll check it out. Thanks! :)