Dec 13, 2017
09:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 13, 2017
09:43 AM
Hello,
is it possible to exclude an app from DAVE_INIT() ?
I want to initialize a certain app at a certain point in the program.
Since content of DAVE_INIT() will be overwritten with every code-generation, deleting (cutting) this certain "app-init" does not work.
hopefully someone knows a workaround for this...or can tell me where to efficiently delete the "app-init".
cheers dave
DAVE 4, XMC1100/4500
is it possible to exclude an app from DAVE_INIT() ?
I want to initialize a certain app at a certain point in the program.
Since content of DAVE_INIT() will be overwritten with every code-generation, deleting (cutting) this certain "app-init" does not work.
hopefully someone knows a workaround for this...or can tell me where to efficiently delete the "app-init".
cheers dave
DAVE 4, XMC1100/4500
3 Replies
Dec 13, 2017
11:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 13, 2017
11:47 PM
You can remove the line and build only your project.
If you delete the line (or comment), build and run the project the file won't be overwritten because Dave was not asked to perform a new code-generation process.
I tried here and it worked.
Order: Add the Apps -> Code-Generation tool -> Delete or comment app-init -> Build (only build) -> Run
If you delete the line (or comment), build and run the project the file won't be overwritten because Dave was not asked to perform a new code-generation process.
I tried here and it worked.
Order: Add the Apps -> Code-Generation tool -> Delete or comment app-init -> Build (only build) -> Run
Dec 14, 2017
10:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 14, 2017
10:11 AM
Hi,
The DAVE_Init() is called from your main.c. You can write your own DAVE_InitEx() and called instead of the generated one.
Regards,
Jesus
The DAVE_Init() is called from your main.c. You can write your own DAVE_InitEx() and called instead of the generated one.
Regards,
Jesus
Oct 16, 2018
04:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 16, 2018
04:16 PM
Another possible approach is acting upon the order in which apps are initialized in Dave.c. This order depend on the "history" of your apps addition in the project and is recorded into Dave\Model\ModelConfigData.data
Manually changing ModelConfigData.data is fairly unwise, so the only stable solution is removing an app and then immediately reinserting it. This stores the app at the end of the list.
The advantage of this approach is that once the trick is done you can safely regenerate the apps code as you need.
All the best
Riccardo
Manually changing ModelConfigData.data is fairly unwise, so the only stable solution is removing an app and then immediately reinserting it. This stores the app at the end of the list.
The advantage of this approach is that once the trick is done you can safely regenerate the apps code as you need.
All the best
Riccardo