how could I use release with s32ds

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how could I use release with s32ds

3,053 Views
yongwan
Contributor III

Hi
When i use s32ds(version is 2018.R1) create a project,I want to build the project using release,1.png

It can build successful


11:32:50 **** Incremental Build of configuration Release for project wheel4 ****
make -j4 all
Building target: wheel4.elf
Executing target #78 wheel4.elf
Invoking: Standard S32DS C Linker
arm-none-eabi-gcc -o "wheel4.elf" "@wheel4.args"
Finished building target: wheel4.elf

Executing target #79 wheel4.siz
Invoking: Standard S32DS Print Size
arm-none-eabi-size --format=berkeley wheel4.elf
text data bss dec hex filename
39296 700 16560 56556 dcec wheel4.elf
Finished building: wheel4.siz

11:32:59 Build Finished (took 9s.322ms)


But when i download the file to the mcu(s32k144) with release,it can’t run .see the picture

2.png

3.png

How could i use release with s32ds?

0 Kudos
Reply
7 Replies

2,787 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

release version of .elf file doesn't contain symbols and debug info. You can normally run it, but for debugging you can see only disassembly. 

If you need debug release version - you can load symbols from Debug .elf: 

pastedImage_1.png

Jiri

0 Kudos
Reply

2,787 Views
yongwan
Contributor III

only load symbols select debug. elf   is not ok

load executable use debug. elf  is ok

the thing I want to know is the debugging file is debug. elf  or release. elf 

0 Kudos
Reply

2,787 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

forgot mention that you  need to use same optimization level for both confugurations. By default Debug has -O0  and Release -O3

pastedImage_1.png

Anyway, the only difference between Release and Debug .elf is the -g option. The binary code is same. So, you can normally use for "Release" debugging Debug output with optimization level of your choice. Technically there is no Reason for debugging Release version. 

Jiri 

0 Kudos
Reply

2,787 Views
yongwan
Contributor III

hi  jiri 

I faced another problem with s32ds

I want to make a boot loader project and an application project. I set the application's s32k144_64_flash. ld  file m_text as Origin=0x0000c400,length=0x00073bf0

when I download the elf file to the MCU it can running automatically. and it cover the boot loader's elf file (the boot loader file is downlod before)

how do I set application project as application project? 

can you help me? 

0 Kudos
Reply

2,787 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

I don't get your question. Anyway - please create new thread for your boot loader question thread  and share more details - which bootloader are using and what's the issue? . 

Jiri 

0 Kudos
Reply

2,787 Views
yongwan
Contributor III

thank you very much 

0 Kudos
Reply

2,787 Views
yongwan
Contributor III

debug is ok

0 Kudos
Reply