Adding Application to existed Dave project, and...

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User8734
Level 4
Level 4
Good day,

When I adding application to existed DAVE project, I shall push
"Generate Code" knob, to create new files in Dave subfolder of project respectively.

Meanwhile, it is not always convenient, as far some of them I had to modify aftewords according my
actual needs.

Is it possiblity generate new "Dave" files only for new added items?
(Or selected group, or just exclude some existed "Dave" files from re-writing??)

Thanks in advance,
K
0 Likes
6 Replies
Not applicable
Hi Konstantin,

You need to "Generate Code" as long as you touch the Apps (eg. UI configuration, manual pin assignment, signal connection etc.). Of course in case of adding new Apps. It is not possible to generate new "Dave" files only for new added items. I assume the new added items are new Apps.

Best regards,
Sophia
0 Likes
User8734
Level 4
Level 4
Good day Sophia,

I am not understand "of course" in your answer.
As far "new Apps." require new code generation without doubt,
I can not say that regarding already existed ones.

So it just waste of time and inconvenient in cases, when say (example): -> Dave -> Generated -> src -> DMA003 -> DMA003_Conf.c
was already modified before adding new Apps.

BR
K
0 Likes
Not applicable
Hi Konstantin,

As I mentioned "It is not possible to generate new "Dave" files only for new added items." The "Generate Code" will trigger re-generation of all "Dave" files including existing ones. Hence, it is not recommended to modify the generated "Dave" files which will be overwritten upon "Generate Code". Instead, all the modifications should be made in main.c eg. after DAVE_Init().

Best regards,
Sophia
0 Likes
User8734
Level 4
Level 4
Hi Sophia,

Thanks.
Say, I want use LUT 1024 points for DAC.
By default, they defined as "const" and placed respectively in Flash.

I actually need out on DAC some array, placed in memory.
So I shall define it after Dave Init in main.c..
But, how I can free LUT 1024 points defined in Flash?

BR
K
0 Likes
Not applicable
Hi Konstantin,

For this case, you can try to modify the template DACWG003Confc.jet to point to self defined LUT, eg. DACWG003_LUT1
1) Declare LUT:
extern uint32_t DACWG003_LUT1[];

2) Change the LUT pointer:
const DACWG003_HandleType DACWG003_Handle<%= appInst%> =
{
...
.WaveLutPtr = DACWG003_LUT1,
...
};


Remember to "Generate Code" before compiling.

Best regards,
Sophia
0 Likes
User8734
Level 4
Level 4
Thanks for tip!

K.
0 Likes