psoc 3 code 10% bigger than 2.2 Why?

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

cross mob
Anonymous
Not applicable

Regards

   

John

0 Likes
8 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

I made just the opposite experiences with my projects. When comparing Creator 2.2 usage with 3.0 usage they frequently needed less codespace. Can you upload an example project for 2.2 to let us have a look at?

   

 

   

Bob

0 Likes
gica_284176
Level 2
Level 2
Welcome! 10 replies posted 5 replies posted

Dear All

   

My experience is > 10% , an astioning 300% , from 55kb , with Creator 2.2 , without any touch, at 142Kb with creator 3.0

   

.Is interesting lokk why ?.

   

A upload my project.

   

Best at all

   

giovanni

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Your project did not upload, use IE or Firefox, Chrome has issues

   

uploading.

   

 

   

Regards, Dana.

0 Likes
lock attach
Attachments are accessible only for community members.
gica_284176
Level 2
Level 2
Welcome! 10 replies posted 5 replies posted

Dear All

   

The problem was zip blocked by my provider, i create a new zip and rar version.

   

What i discovery if i take of any bootloader, the code go to 33Kb.

   

If i leave the bootloader, in creator 2 i have 55Kb, in creator 3 now increase more to astoning 176kb.

   

Very strange.

   

I allegate the project.

   

Best  at all

   

giovanni

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

I compiled in 3.0 and got -

   

 

   

Flash used: 33768 of 262144 bytes (12.9 %).
SRAM used: 23645 of 65536 bytes (36.1 %).

   

 

   

Regards, Dana.

0 Likes
EdUc_284901
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted

Hello danaaknight!

   

Is the code bigger as cocoritococorito said??Asking cause I could not download the project

   

Thank you

   

Edgard

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

w/o Bootloader, which was his posted project, I got same. Unfortunately

   

he did not post final conclusion as to why BL took on a much larger

   

FLASH footprint. I suspect the BL code had a change assocated with

   

3.0 that did not get implemented.

   

 

   

Regards, Dana.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

The release notes for 3.0 specifically point to need to update that

   

component. That could have been cause of FLASH bloat.

   

 

   

There is also this in release notes -

   

 

   

New RAM Usage Calculation

   


Prior to the 3.0 release, the reporting of SRAM usage at the end of a build with the GNU Compiler
Toolchain did not correctly report the stack and heap settings in the System DWR file. This has been
corrected and PSoC Creator is now properly reporting the RAM usage (note that the actual RAM usage
has not changed, just the reporting in the Output Window). You can modify the Stack and Heap Size
values in the System DWR.

   

 

   

Regards, Dana.

0 Likes