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

Forum Post: No privileged mode in main()

$
0
0

Board: BBB, A6 with processor XAM3359AZCZ100
AM335X_StarterWare_02_00_01_01
CCSv5.5, Windows7
XDS100v2
linker command file: AM3359.cmd


Hello everybody,


when creating a new empty project and loading the .out-file with the debugger (CCSv5.5) the core is in user
mode, not privileged mode as stated in the StarterWare User Guide. That prevents me from writing to some
hardware registers (pin multiplexing).
I would not mind calling CPUSwitchToPrivilegedMode(), but that function does not return.
Most likely the problem has something to do with the way the project is created, because the example project
gpioLEDBlink starts in privileged mode.

So the most important question is how to make a project that starts in privileged mode.
Alternatively, how can CPUSwitchToPrivilegedMode() be called reliably? (setting an interrupt vector somewhere?).

Any help is highly appreciated.

Thank you.

Martin


Viewing all articles
Browse latest Browse all 148958

Trending Articles



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