OMAP DSP Bridge
|2011-01-17 10:37:31||GPP app fails creating node with global variables|
|Posted By: Oliver Haag|
Join Date: 2010-12-22
I've got a problem where I don't get further myself, hope you can help me here:
The project is based on the dmmcopy-sample that came with userspace-dspbridge.
At the moment my node consists of the following files:
nodeCreate.c, nodeDelete.c, nodeExecute.c: The create/delete/execute routines for the node
Profile.c, Profile.h: This is a simple profiler, that measures the execution times of various code parts. It has got some global variables and some functions.
When I access one of the global variables of the profiler from within a function of the profiler (void DAB_BMW_initProfiling()), the GPP-side Application can't create the node (DSPNode_Create failed. Status = 0x8000803d).
What I don't understand is, why it's working fine as long as I access the global variable only in the execution-routine of the node (RMS_STATUS DAB_BMW_execute(NODE_EnvPtr env)).
Working without global variables is not really possible during the whole project, since I need many large arrays with constant tables that are necessary in various functions of decoding-process.
So how can I use global variables in other function except the basic create/delete/execute routines? Couldn't get that working for some time now and have no idea how this can be fixed, so help would be really appreciated :)
If you need more details, just ask.
BMW Forschung und Technik GmbH