Hello, thanks to the people who want to be helpful, but I really have to tell you that it is not easy to start (bare-metal programming) with BBB. Here are some of the troubles I ran into:
*1.) Simple bare-metal from SD-card:* I installed the patch for starterware, when it was available for download again, formatted a SD-card as descriped and put the new MLO file (which should work for BBB now) and the app file on it. Inserted the SD-card into the BBB's slot and booted by holding down the boot button while powering. Nothing happens: No LEDs, no communication on the serial port. *2.) PRU programming:* I do understand that the main core is not intended for real-time programming, so I try to do it on one of the PRUs, but XDS100v2 does not even connect to a PRU: "The project ... is not compatible with any CPU in the target configuration." *3.) Emulation problems:* XDS100v2: "Error connecting to the target: (Error -1266 @ 0x0)". Now one must figure out that he has to press *Cancel (!)* and wait about 8 seconds --> all of a sudden the emulator has got connection to the board and can execute the code. *4.) Documentation:* I spent 2 weeks on reading articles and documentations and most of the time I was a permanent reader on forums. Often you find people who have exactly the same problems, but no solutions are provided or the solution proposed did not work in my case. I use CCS6 but what you find on the internet is for earlier versions, e.g., if you want to go through a tutorial step-by-step, you are soon stuck, as you can't find the settings in CCS6, which are shown for CCS5... Are there people around, who are successfully doing bare-metal programming in C? Am Dienstag, 21. Oktober 2014 18:40:00 UTC+2 schrieb Jason Kridner: > > > > On Mon, Oct 20, 2014 at 9:23 AM, <[email protected] <javascript:>> > wrote: > >> Hello, >> >> after nearly 2 weeks of struggling my first LED blinking works under the >> following constitution: >> -) Beaglebone black, Element14, rev.C >> -) no OS --> holding "boot" button, when powering >> -) Code Composure Studio v6 >> -) Starterware (without BBB patch: >> >> http://software-dl.ti.com/dsps/dsps_public_sw/am_bu/starterware/latest/index_FDS.html >> >> (DOES NOT WORK AT THE MOMENT) >> -) XDS100v2 emulator >> >> 1.) >> The maximum frequency for toggling the pin is 1.6 MHz, >> but I need maximum speed. >> In my understanding there is still a speed decrease as the system is >> running in *emulation *mode. >> Correct? >> > > I don't think emulation should slow you down if you are using hardware > breakpoints. The recommendations on using the PRUs would certainly result > in improved switching times, but I'm confident you could optimize your ARM > Cortex-A8 code quite a bit as well. Care to share your source and your > compilation options? Did you use "-O3" for example? Are you going through a > non-optimal library? Would you consider optimizing at the > cache/assembly/etc levels? > > >> >> 2.) >> From the build process of CCS I have got a .out file. >> *What are the next steps to get the program running from the SD card?* >> Please be very precise - I have already heard of MOL, u-boot, GEL >> file,...., >> but there does not seem to be a step-by-step tutorial. >> > > The StarterWare boot instructions as mentioned elsewhere should help. I > thought those instructions were fairly step-by-step. U-boot SPL (MLO) seems > like it would provide the most open and extensible examples. I suggest you > try writing the step-by-step. > > >> >> 3.) >> *What are the next steps to get the program running from the eMMC?* >> >> >> You see, I want to do bare-metal C programming, without linux or any >> other OS, >> as I must operate (pin toggling, computations,...) as fast as possible. >> > > The eMMC looks just like an SD card to the processor. You simply need to > flash your code onto the eMMC the same way you would an SD card---except > that you can't remove it. You could boot over USB if you want to program > the eMMC without doing it from an existing system booted off of the eMMC or > SD ports. See https://github.com/ungureanuvladvictor/BBBlfs. > > >> >> >> Your help is very appreciated! >> >> Reinhard >> >> -- >> For more options, visit http://beagleboard.org/discuss >> --- >> You received this message because you are subscribed to the Google Groups >> "BeagleBoard" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
