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

Legacy microcontrollers Forum Discussions

daivc_4063651
Level 1
First reply posted First question asked First like given
Level 1

Variables defined with const volatile type qualifier are linked to the DCONST section in ROM area.

During start-up initialization these variables are copied into INIT section in RAM area from where the SW reads their values.

My intention is to avoid coping the variables into INIT section in order to reduce the RAM memory usage.

How can I make the SW to read variables directly from DCONST section and avoid allocation into RAM memory?

pastedImage_5.png

0 Likes
1 Solution
HongyanW_86
Moderator
Moderator 100 solutions authored 100 replies posted 50 solutions authored
Moderator

Hello Daniel,

I confirmed -K VCCONST is added in our latest Softune Profession pack Rev.300027 (Softune C compiler V30L22). Please kindly get in touch with Cypress local sales team or distributors for the latest version.

Best regards,

Amy Wang

View solution in original post

5 Replies