PSOC5LP compile error with function-code in SRAM

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

cross mob
Anonymous
Not applicable

Hello,

I am still working on an issue described in

PSOC5LP Jitter in interrupt handling

the problem was solved with executing a function in SRAM according to the description in

https://community.cypress.com/external-link.jspa?url=http%3A%2F%2Fwww.cypress.com%2F%3FrID%3D61932

I defined a prototype 

CY_ISR(ADC_COS_ISR_LOC) __attribute__ ((section(".data")));

for the Interrupt-Service for the data from the SAR-ADU.

I ignored the compiler warning and everything works ! .... until now ...

At the moment I am using PSoC Creator  4.0 Update 1 (4.0.0.432). With the latest update ignoring the warning doesn´t work.

Now I get the following messages:

cccQkAff.s:18: Warning: ignoring changed section attributes for .data

Build error: The command 'arm-none-eabi-gcc.exe' failed with exit code '1'.

Without placing the function in the .data-section the compile process is successfully.

I wonder what to do now: In AN89610 9.4 is a statement

"Functions that are to be located in SRAM must be placed in the .data section"

this is what I have done....

Now I need a workaround for this error-message ....

with regards

Stefan

0 Likes
2 Replies
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

Hello ,

Can you try the latest Creator 4.1 update1 available at this link-

PSoC® Creator™ Integrated Design Environment (IDE)

0 Likes
Anonymous
Not applicable

I tried to build the project with the latest Version Creator 4.1 update1 (PSoC Creator  4.1 Update 1 (4.1.0.3210))

There is no change in the results. I receive the same warning and error message.

0 Likes