how i develope s32k314 bootloader?

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

how i develope s32k314 bootloader?

545 Views
rlaxortn
Contributor IV

i use s32k314 on s32ds IDE. 

i am developing s32k314 bootloader. i need advice.

so i wanna know how to write hex file to flash memory on low lever driver

 

1. do i have to use C40_IP?

if i have to use, do i get example?

2. how do i move flash memory address for starting application?

3. what i fix to .ld file? do i have to example?

i don't know what i fix, how i d.

 

thanks for regard.

 

Tags (2)
0 Kudos
Reply
1 Reply

521 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @rlaxortn 

First, let me summarize what we have:

We have basic OTA demo “SW32K3_OTADEMO_0.8.0_D2203” for S32K344 - it shows how to write new application to passive block and then request AB SWAP (this is a feature of HSE firmware). RTD 1.0.0 is used in this demo.

Next more advanced demo is “S32K396 OTA Demo version 0.4.0” which shows how to update firmware via ethernet. This one uses RTD 3.0.0 P07.

Both demos can be found in S32K3 Reference Software:

https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=SW32K3-REFSW-D

Click on the link and then search for “Automotive SW - S32K3 - OTA Demo”.

 

It’s only reference software, it’s up to users to migrate it to other derivatives or to newer RTD packages.It's not production code. 

 

Then we have Unified bootloader:

https://community.nxp.com/t5/S32K-Knowledge-Base/Unified-bootloader-Demo/ta-p/1423099

This is unofficial demo only shared on the community, provided AS IS with no guarantees and no support. It’s not production code. Notice that this bootloader does not use HSE firmware - it does not take advantage of AB Swap feature. There are examples for S32K312/314/324/344.

 

If you are looking for production code, take a look at third parties like:

https://www.vector.com/int/en/products/products-a-z/embedded-software/flash-bootloader/

 

So, the question is - do you plan to use HSE and AB SWAP feature? This is important to know because the approach to linker files etc. is then very different. 

You can take a look at "S32K3XX HSE and OTA Advance Training" (pages 59 - 86) which can be found in section Documentation -> Secure files on S32K3 page:
https://www.nxp.com/products/S32K3

 

Regards,

Lukas

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2317472%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ehow%20i%20develope%20s32k314%20bootloader%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2317472%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ei%20use%20s32k314%20on%20s32ds%20IDE.%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20am%20developing%20s32k314%20bootloader.%20i%20need%20advice.%3C%2FP%3E%3CP%3Eso%20i%20wanna%20know%20how%20to%20write%20hex%20file%20to%20flash%20memory%20on%20low%20lever%20driver%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E1.%20do%20i%20have%20to%20use%20C40_IP%3F%3C%2FP%3E%3CP%3Eif%20i%20have%20to%20use%2C%20do%20i%20get%20example%3F%3C%2FP%3E%3CP%3E2.%20how%20do%20i%20move%20flash%20memory%20address%20for%20starting%20application%3F%3C%2FP%3E%3CP%3E3.%20what%20i%20fix%20to%20.ld%20file%3F%20do%20i%20have%20to%20example%3F%3C%2FP%3E%3CP%3Ei%20don't%20know%20what%20i%20fix%2C%20how%20i%20d.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ethanks%20for%20regard.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2317827%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20how%20i%20develope%20s32k314%20bootloader%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2317827%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F249289%22%20target%3D%22_blank%22%3E%40rlaxortn%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFirst%2C%20let%20me%20summarize%20what%20we%20have%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EWe%20have%20basic%20OTA%20demo%20%E2%80%9C%3C%2FSPAN%3ESW32K3_OTADEMO_0.8.0_D2203%E2%80%9D%3CSPAN%3E%20for%20S32K344%20-%20it%20shows%20how%20to%20write%20new%20application%20to%20passive%20block%20and%20then%20request%20AB%20SWAP%20(this%20is%20a%20feature%20of%20HSE%20firmware).%20RTD%201.0.0%20is%20used%20in%20this%20demo.%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ENext%20more%20advanced%20demo%20is%20%E2%80%9C%3C%2FSPAN%3ES32K396%20OTA%20Demo%20version%200.4.0%E2%80%9D%20which%20shows%20how%20to%20update%20firmware%20via%20ethernet.%20This%20one%20uses%20RTD%203.0.0%20P07.%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EBoth%20demos%20can%20be%20found%20in%20S32K3%20Reference%20Software%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fwebapp%2Fswlicensing%2Fsso%2FdownloadSoftware.sp%3Fcatid%3DSW32K3-REFSW-D%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fwebapp%2Fswlicensing%2Fsso%2FdownloadSoftware.sp%3Fcatid%3DSW32K3-REFSW-D%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EClick%20on%20the%20link%20and%20then%20search%20for%20%E2%80%9CAutomotive%20SW%20-%20S32K3%20-%20OTA%20Demo%E2%80%9D.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EIt%E2%80%99s%20only%20reference%20software%2C%20it%E2%80%99s%20up%20to%20users%20to%20migrate%20it%20to%20other%20derivatives%20or%20to%20newer%20RTD%20packages.It's%20not%20production%20code.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThen%20we%20have%20Unified%20bootloader%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FUnified-bootloader-Demo%2Fta-p%2F1423099%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FUnified-bootloader-Demo%2Fta-p%2F1423099%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EThis%20is%20unofficial%20demo%20only%20shared%20on%20the%20community%2C%20provided%20AS%20IS%20with%20no%20guarantees%20and%20no%20support.%20It%E2%80%99s%20not%20production%20code.%20Notice%20that%20this%20bootloader%20does%20not%20use%20HSE%20firmware%20-%20%3CSPAN%3Eit%20does%20not%20take%20advantage%20of%20AB%20Swap%20feature.%20There%20are%20examples%20for%20S32K312%2F314%2F324%2F344.%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EIf%20you%20are%20looking%20for%20production%20code%2C%20take%20a%20look%20at%20third%20parties%20like%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.vector.com%2Fint%2Fen%2Fproducts%2Fproducts-a-z%2Fembedded-software%2Fflash-bootloader%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.vector.com%2Fint%2Fen%2Fproducts%2Fproducts-a-z%2Fembedded-software%2Fflash-bootloader%2F%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ESo%2C%20the%20question%20is%20-%20do%20you%20plan%20to%20use%20HSE%20and%20AB%20SWAP%20feature%3F%20This%20is%20important%20to%20know%20because%20the%20approach%20to%20linker%20files%20etc.%20is%20then%20very%20different.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20take%20a%20look%20at%20%22S32K3XX%20HSE%20and%20OTA%20Advance%20Training%22%20(pages%2059%20-%2086)%20which%20can%20be%20found%20in%20section%20Documentation%20-%26gt%3B%20Secure%20files%20on%20S32K3%20page%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fproducts%2FS32K3%3F_gl%3D1*qm8c7*_ga*MTEzMjI4OTEzMC4xNzcwOTYyMDE0*_ga_WM5LE0KMSH*czE3NzA5ODI3NjQkbzQkZzEkdDE3NzA5ODMwOTckajQxJGwwJGgxNzYyNjU1NzAw%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fproducts%2FS32K3%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3ELukas%3C%2FP%3E%3C%2FLINGO-BODY%3E