Is there a way to set PDL_UTILITY_ENABLE flag?

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

cross mob
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

   

 

   

Although I've been enjoying my life with PSoC Creator for FM0+,

   

there is one thing repeatedly annoys me.

   

Which is/are the PDL_UTILITY_ENABLE_PRINTF/SCANF flags in pdl_user.h.

   

Being a hacker of Unix origin, I depend on printf and scanf a lot.

   

So I like PSoC Creator and PDL, which provides me the both.

   

 

   

To use them I have to modify these flags manually.

   

But every time the application gets regenerated or clean and rebuild the project,

   

pdl_user.h gets overwritten and my modification(s) is gone.

   

And to notice this I have to wait rather long time for the compiler error message

   

saying there is no "Uart_Io_Init()".

   

 

   

Now my QUESTION is

   

Is/are there way to specify these flags from TopDesign.cysh or something

   

so that the modification survive over application re-generations?

   

 

   

Best Regards,

   

18-Apr-2017

   

Motoo Tanaka

0 Likes
1 Solution
Anonymous
Not applicable

Dear Tanaka-san,

   


As per the discussions with our Software team, for now - you need to manually change PDL_UTILITY_ENABLE_PRINTF/SCANF flags in pdl_user.h to PDL_ON when you make changes or when there is a Clean and Build.

   

However, we shall be adding this enhancement in the future version of Creator. Thanks for reporting this issue.

View solution in original post

0 Likes
4 Replies
Anonymous
Not applicable

Hi,

   

We understand that this is an issue. We will check with the software team and see if there is a work-around for this.

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Bmah-san,

   

Thank you for your response.

   

And I'm sorry for my very slow response.

   

We had a very long off week, which we call "Golden Week" in Japan.

   

Anyway, I'm glad hearing that the issue has been shared.

   

Best Regards,

   

8-May-2017

   

Motoo Tanaka

0 Likes
Anonymous
Not applicable

Dear Tanaka-san,

   


As per the discussions with our Software team, for now - you need to manually change PDL_UTILITY_ENABLE_PRINTF/SCANF flags in pdl_user.h to PDL_ON when you make changes or when there is a Clean and Build.

   

However, we shall be adding this enhancement in the future version of Creator. Thanks for reporting this issue.

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear Bmah-san,

   

Thank you very much for your taking pain of checking this issue.

   

> As per the discussions with our Software team, for now - you need to manually

   

> change PDL_UTILITY_ENABLE_PRINTF/SCANF flags in pdl_user.h to PDL_ON

   

> when you make changes or when there is a Clean and Build.

   

Yes, that is the way it is now. And anyway I've been doing this.

   

> However, we shall be adding this enhancement in the future version of Creator.

   

This is a very nice piece of information, I'm looking forward to seeing it.

   

Best Regards,

   

23-May-2017

   

Motoo Tanaka

0 Likes