Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 148978

Forum Post: RE: PRU without LINUX

$
0
0

Hello Martin,

I'm going to try to answer all of your questions, but I'm going to break your post down into sub-sections below.

[quote user="Martin H."]That can be very useful, but what if you cannot use LINUX for some reason?
What are the single steps to build and debug for bare metal? Using Starterware for instance.[/quote]This is currently a gap in that we do not have a full-fledged Starterware driver available for loading the PRU. Bear in mind that the PRUSS memory and register sets are all memory-mapped to the ARM, so writing a loader is a possibility (granted that it's extra time and effort). Today we don't have this available.

In case you did not already know there is a driver available in SYS/BIOS as part of the Industrial Development Kit, but I am not familiar with that package or the support model.

[quote user="Martin H."]The Cortex A9 somehow has to load the binary code to the PRU. (Is that the code that is generated using hexpru.exe as described in the readme file of compiler version 2?)[/quote]The Linux remoteproc driver actually loads a .out file. It uses an ELF parser to strip out all of the debug information and loads the requisite sections into memory as defined in the linker command file. In a StarterWare driver it would probably be easier to use a .hex file instead.

[quote user="Martin H."]Some LINUX examples include a file pru.h with special functions for the PRU (initialization etc.). Is there something similar for NON-LINUX users?[/quote]No; however, a header file generally doesn't necessarily contain OS-specific stuff or at least not too much that it's impossible to clean up. I am not sure if there is anything in the IDK package I previously mentioned.

[quote user="Martin H."]Does anybody know of such an example for programming the PRU and A9 without using LINUX?[/quote]I do not know if the community has created a non-Linux driver as of yet, but hopefully someone else can chime in here.


Viewing all articles
Browse latest Browse all 148978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>