How to adapt KEA128 applications of S32 Design studio for CAN bootloader

cancel
Showing results for 
Search instead for 
Did you mean: 

How to adapt KEA128 applications of S32 Design studio for CAN bootloader

525 Views
Contributor I

Hello:

I would like to download my KEA128 App of S32 Design studio to flash by CAN bootloader. The documentation about KEA128_CAN_bootloader_v7 is based on CodeWarrior Applications. According to the documentation, I tried to change the link file of my S32 application. Then make the srec file and download it to the flash by CAN bootloader. The downloading failed because of the flashing error (I checked the details by debugging the bootloader project). Would you please help me to find out what is the problem?

I  attach the link file which I modified

pastedImage_2.png

BRs

Jackey

Tags (1)
0 Kudos
8 Replies

92 Views
NXP Employee
NXP Employee

Hi Jackey,

Yes, could you please attach your .map/.elf?

This will help to resolve the issue much faster.

Stan

0 Kudos

92 Views
Contributor I

Hi Stan,

Please find attached .map/.elf files and link file of my App.

Many thanks for your help.

Best regards

Jackey

发件人: stanish

发送时间: 2017年3月14日 0:11

收件人: 洲 洪 <zhou.hong@qiangsong-sh.com>

主题: Re: - Re: How to adapt KEA128 applications of S32 Design studio for CAN bootloader

<https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg> NXP Community

Re: How to adapt KEA128 applications of S32 Design studio for CAN bootloader

reply from Stanislav Sliva <https://community.nxp.com/people/stanish?et=watches.email.thread> in S32 Design Studio - View the full discussion <https://community.nxp.com/message/886222?commentID=886222&et=watches.email.thread#comment-886222>

0 Kudos

92 Views
NXP Employee
NXP Employee

Hi,

Thanks for the files.

Your elf indeed includes 10 bytes in the flash section below: 

  FLASH_CONFIG     (RX)  : ORIGIN = 0x00000400, LENGTH = 0x00000010

see the map file snippet:

pastedImage_1.png

I'd suggest you to remove .FlashConfig section ./Project_Settings/Startup_Code/startup_SKEAZ1284.s :

pastedImage_2.png

Hope it helps.

Stan

0 Kudos

92 Views
Contributor I

Hi Stan,

Have you tested my project that I send to you?

Looking forward your feedback. Many thanks.

Regards

Jackey

发件人: stanish

发送时间: 2017年3月14日 22:20

收件人: 洲 洪 <zhou.hong@qiangsong-sh.com>

主题: Re: - Re: How to adapt KEA128 applications of S32 Design studio for CAN bootloader

<https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg> NXP Community

Re: How to adapt KEA128 applications of S32 Design studio for CAN bootloader

reply from Stanislav Sliva <https://community.nxp.com/people/stanish?et=watches.email.thread> in S32 Design Studio - View the full discussion <https://community.nxp.com/message/886643?commentID=886643&et=watches.email.thread#comment-886643>

0 Kudos

92 Views
Contributor I

Hi Stan,

Thanks for your advice.

I followed your suggestion to remove “FlashConfig” section in file “./Project_Settings/Startup_Code/startup_SKEAZ1284.s”. But the App didn’t start to run yet.

I try to debug my App. But it stopped at the beginning as following screenshot.

The problem is my App didn’t run with the “SKEAZ_flash.ld” that I modified to adapt BootLoader while the App can run with the default “SKEAZ_flash.ld”.

I attached the project of my App. Would you please help to check?

Many thanks.

Jackey

发件人: stanish

发送时间: 2017年3月14日 22:20

收件人: 洲 洪 <zhou.hong@qiangsong-sh.com>

主题: Re: - Re: How to adapt KEA128 applications of S32 Design studio for CAN bootloader

<https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg> NXP Community

Re: How to adapt KEA128 applications of S32 Design studio for CAN bootloader

reply from Stanislav Sliva <https://community.nxp.com/people/stanish?et=watches.email.thread> in S32 Design Studio - View the full discussion <https://community.nxp.com/message/886643?commentID=886643&et=watches.email.thread#comment-886643>

0 Kudos

92 Views
NXP Employee
NXP Employee

Hi,

Your App should not overlap with bootloader if Flash memory.

I noticed there is a memory region FLASH_CONFIG that starts at 0x400.

I suspect this may cause flash programming issue if your app has some data at this address. You can find this info in .map file generated by the linker.

Hope it helps.

Stan

0 Kudos

92 Views
Contributor I

Hi Stan,

Thanks for your feedback.

I know FLASH_CONFIG is the region of flash configuration. It starts from address 0x400 to 0x40F. I suppose that this address is not allowed to change, is it right?

I checked the map file of My APP and can't find anything of data at this address. If possible, I can send you the map file. Would you please help to check?

Best regards

Jackey

0 Kudos

92 Views
Contributor I

Hello:

anybody can help me? it's urgent.

0 Kudos