Section creation failed

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

cross mob
user_61992
Level 1
Level 1
First reply posted First question asked

Hello,

I've been developing a MB96F348RSBPMC using SOFTUNE V7 Workbench V70L03.

Sicne I need to put some variables in particular memory locations, I've been using pragma directives and trying to define a section in the linker option of my project.

The linker generates the following instruction: -ra _INRAM02=0x002240/0x007FFF -ro _INROM02=0xF80000/0xFFFFFF -sc APPINFO/Const/BYTE=0xF80000. However, when building the project, the following error is detected: "*** E4302L: Not found section or section group name (APPINFO)".

I'm not sure why I'm having this behavior since, by using the Softune plugin for Eclipse with the same instruction, everything seems to exit without errors (at least by checking the MAP file).

Do you have any suggestions on that?

Thanks,

Gian Marco

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

Hello,

How is the #pragma used in your code? what about using following #pragma directly in your code?

Eg.

#pragma segment CONST=const2,attr=CONST,locate=0xff10

const int var=10; //Variable definition

Best regards,

Amy Wang

View solution in original post

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

Hello,

How is the #pragma used in your code? what about using following #pragma directly in your code?

Eg.

#pragma segment CONST=const2,attr=CONST,locate=0xff10

const int var=10; //Variable definition

Best regards,

Amy Wang

0 Likes