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.
Hello,
Does anybody know if I can use the Keil MDK to write baremetal code for the Raspberry Pi?
Thanks.
I find that Keil, and Realview before it, had some pretty good debuggers, and I've definitely blind debugged in to hardware for which source wasn't immediately available or I had used GNU/GCC to create. I've stepped through ROMs, boot loaders, and into Linux kernels.
Many systems have staged boot processes, where a simple boot loader pulls in uBoot, bitbox, or RedBoot, which in turn brings in the kernel.
I think Keil is unsuitable for uBoot or Kernel work, but plenty adequate for boot roms or boot loaders, and in many cases 32 KB would be more that enough to do quite a bit of damage. Admittedly you're not going to fill up NAND/DDR with code, but you could log data there, and copy it to an SDCard.
I don't think Keil is a good match for the Pi, I'd probably look for something that had ready JTAG support, and open documentation. John is working with what he has, and is showing a whole bunch more wherewithal than a slew of other posters, and we should be using a tone that's commensurate with the effort to try something new in a constructive fashion.