cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

Anonymous
Not applicable

 I am working on a project with a CY8C24123 in assembly using PSoC Designer 5.3.

   

The code size is going to the limits of the memory of the CY8C24123, so I am quite concerned with memory use.

   

Today I found that the linker is wasting quite a lot of my precious memory. It leaves a gap between the code coming from boot.asm and the initialisation code for the blocks. There is nothing between the boot.asm code and $0150, wasting about 200 bytes.

   

I found that this memory gap is caused by a system variable called "RELSTART" that can be found in the "opts.txt" and make files. Though I have not found how I can do anything about this. Every time I change the value it gets overwritten on the next assembly run.

   

 

   

BTW: It would be nice if selecting "Assembly" as the programming method all C support code gets automatically thrown out of the system generated source code.

0 Likes
Reply
3 Replies
Esteemed Contributor

This might help -

   

 

   

www.cypress.com/

   

 

   

Regards, Dana.

0 Likes
Reply
Esteemed Contributor II

In Designer under Project -> Settings -> Linker you can find an option where the relocatable code starts. You may adjust this for your needs.

   

 

   

Bob

0 Likes
Reply
Esteemed Contributor II

... and regarding C - specific code: afaik all of that is #ifed so that no code is generated when you select "Assembly" as your programming language.

   

 

   

Bob

0 Likes
Reply