MC9S12XEP100MAL Dflash

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

MC9S12XEP100MAL Dflash

Jump to solution
1,810 Views
ltx
Contributor II

Hello

Currently, I'm facing a problem. I have already sought help in the community before. Let me describe the background.
1. We are the manufacturer. Our R&D partner has terminated the cooperation with us. Currently, we only have the bin file.
2. I used the Xeltek programmer (a commercial programmer) to burn the bin file into the microcontroller. The program on the chip can run normally, but the parameters within the program cannot be modified. After modification, they will be reset upon power-off.
3. According to the reply from the community technicians, I didn't partition the D Flash. I made a slight modification to the XEP100 - Initial data in Emulated EEPROM - CW47 sample program (changed FCLKDIV = 0x13; the crystal oscillator of my circuit board is 20 MHz) and burned it in the partition. However, the program stopped working. Here are my detailed steps:
Step 1: Erase the chip
Step 2: Use CodeWarrior and BDM to burn the modified XEP100 - Initial data in Emulated EEPROM - CW47 program with the changed crystal oscillator
Step 3: Use the Xeltek programmer (a commercial programmer) to burn the program (1024KB P flash program)
Step 4: The test failed.

May I ask what the current issue is? I sincerely request the community technicians to provide an answer. Thank you very much.

0 Kudos
Reply
1 Solution
1,615 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

On S12XEP100, you can program D‑Flash during burning, but do not place any bytes into the EEE backup area created by the partition. Only write to the user D‑Flash region.

 

After you run the Partition D-Flash command, the device pre-programs EEE metadata pages in D‑Flash. So a “Blank check” will report non‑blank—that’s normal.

To know exactly which addresses you must avoid in your S‑record, read the EEE configuration after partitioning. You can use either EEPROM Emulation Query command or you can read DFPART and ERPART fields directly  in IFR at global address 0x12_0000. This IFR is hidden by default, you need to enable the visibility by EEEIFRON in MMCCTL1 register. Just search for “EEEIFRON” in the manual for details.

 

You can also take a look at EEE.xls file in this package:

https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/16-bit/14941/1/EEPROM-XEP100-Example+des...

 

Partitioning does not affect P-Flash, you can program P-Flash as usual.

View solution in original post

0 Kudos
Reply
5 Replies
1,783 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @ltx 

Everything depends on your application. It’s very difficult to propose anything without knowing exactly how the application works, how it handles data, and how it uses the EEPROM partition. I don’t think we can suggest a solution without further details. We have no problem assisting with the MCU itself, but we cannot provide support for your application — especially since you only have it as a binary file, not as a project.

Regards,

Lukas

0 Kudos
Reply
1,761 Views
ltx
Contributor II

hi   lukaszadrapa

 Thank you very much for your reply. I would like to know a few more issues that you can help me solve.
Can this chip be partitioned first and then have the bin program burned onto it? Is the burning process I described in the previous question correct?

Tags (1)
0 Kudos
Reply
1,712 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Yes, you can use this approach, I can see no problem here. The s-record or binary file just should not contain data in area which is reserved for EEE backup memory. 

0 Kudos
Reply
1,670 Views
ltx
Contributor II

Thank you very much for your reply. But I'm sorry to say that I still have some questions to trouble you with.
Does your reply, "The s-record or binary file just should not contain data in area which is reserved for EEE backup memory," mean that I cannot write data to the completed D flash partition during the burning process?
After I completed the partition program burning, when I used the commercial burner "Blank check", it showed that the chip memory was not empty. After the partition configuration is completed, will data be stored in P FLASH and D FLASH?

Tags (1)
0 Kudos
Reply
1,616 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

On S12XEP100, you can program D‑Flash during burning, but do not place any bytes into the EEE backup area created by the partition. Only write to the user D‑Flash region.

 

After you run the Partition D-Flash command, the device pre-programs EEE metadata pages in D‑Flash. So a “Blank check” will report non‑blank—that’s normal.

To know exactly which addresses you must avoid in your S‑record, read the EEE configuration after partitioning. You can use either EEPROM Emulation Query command or you can read DFPART and ERPART fields directly  in IFR at global address 0x12_0000. This IFR is hidden by default, you need to enable the visibility by EEEIFRON in MMCCTL1 register. Just search for “EEEIFRON” in the manual for details.

 

You can also take a look at EEE.xls file in this package:

https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/16-bit/14941/1/EEPROM-XEP100-Example+des...

 

Partitioning does not affect P-Flash, you can program P-Flash as usual.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2292369%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMC9S12XEP100MAL%20Dflash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2292369%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%3C%2FP%3E%3CP%3ECurrently%2C%20I'm%20facing%20a%20problem.%20I%20have%20already%20sought%20help%20in%20the%20community%20before.%20Let%20me%20describe%20the%20background.%3CBR%20%2F%3E1.%20We%20are%20the%20manufacturer.%20Our%20R%26amp%3BD%20partner%20has%20terminated%20the%20cooperation%20with%20us.%20Currently%2C%20we%20only%20have%20the%20bin%20file.%3CBR%20%2F%3E2.%20I%20used%20the%20Xeltek%20programmer%20(a%20commercial%20programmer)%20to%20burn%20the%20bin%20file%20into%20the%20microcontroller.%20The%20program%20on%20the%20chip%20can%20run%20normally%2C%20but%20the%20parameters%20within%20the%20program%20cannot%20be%20modified.%20After%20modification%2C%20they%20will%20be%20reset%20upon%20power-off.%3CBR%20%2F%3E3.%20According%20to%20the%20reply%20from%20the%20community%20technicians%2C%20I%20didn't%20partition%20the%20D%20Flash.%20I%20made%20a%20slight%20modification%20to%20the%20XEP100%20-%20Initial%20data%20in%20Emulated%20EEPROM%20-%20CW47%20sample%20program%20(changed%20FCLKDIV%20%3D%200x13%3B%20the%20crystal%20oscillator%20of%20my%20circuit%20board%20is%2020%20MHz)%20and%20burned%20it%20in%20the%20partition.%20However%2C%20the%20program%20stopped%20working.%20Here%20are%20my%20detailed%20steps%3A%3CBR%20%2F%3EStep%201%3A%20Erase%20the%20chip%3CBR%20%2F%3EStep%202%3A%20Use%20CodeWarrior%20and%20BDM%20to%20burn%20the%20modified%20XEP100%20-%20Initial%20data%20in%20Emulated%20EEPROM%20-%20CW47%20program%20with%20the%20changed%20crystal%20oscillator%3CBR%20%2F%3EStep%203%3A%20Use%20the%20Xeltek%20programmer%20(a%20commercial%20programmer)%20to%20burn%20the%20program%20(1024KB%20P%20flash%20program)%3CBR%20%2F%3EStep%204%3A%20The%20test%20failed.%3C%2FP%3E%3CP%3EMay%20I%20ask%20what%20the%20current%20issue%20is%3F%20I%20sincerely%20request%20the%20community%20technicians%20to%20provide%20an%20answer.%20Thank%20you%20very%20much.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2292861%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MC9S12XEP100MAL%20Dflash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2292861%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%26nbsp%3B%26nbsp%3B%3CSPAN%20class%3D%22%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F37795%22%20target%3D%22_self%22%3E%3CSPAN%20class%3D%22%22%3Elukaszadrapa%3C%2FSPAN%3E%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3BThank%20you%20very%20much%20for%20your%20reply.%20I%20would%20like%20to%20know%20a%20few%20more%20issues%20that%20you%20can%20help%20me%20solve.%3CBR%20%2F%3ECan%20this%20chip%20be%20partitioned%20first%20and%20then%20have%20the%20bin%20program%20burned%20onto%20it%3F%20Is%20the%20burning%20process%20I%20described%20in%20the%20previous%20question%20correct%3F%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2292573%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MC9S12XEP100MAL%20Dflash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2292573%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%2F258345%22%20target%3D%22_blank%22%3E%40ltx%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEverything%20depends%20on%20your%20application.%20It%E2%80%99s%20very%20difficult%20to%20propose%20anything%20without%20knowing%20exactly%20how%20the%20application%20works%2C%20how%20it%20handles%20data%2C%20and%20how%20it%20uses%20the%20EEPROM%20partition.%20I%20don%E2%80%99t%20think%20we%20can%20suggest%20a%20solution%20without%20further%20details.%20We%20have%20no%20problem%20assisting%20with%20the%20MCU%20itself%2C%20but%20we%20cannot%20provide%20support%20for%20your%20application%20%E2%80%94%20especially%20since%20you%20only%20have%20it%20as%20a%20binary%20file%2C%20not%20as%20a%20project.%3C%2FP%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3ELukas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2293308%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MC9S12XEP100MAL%20Dflash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2293308%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EYes%2C%20you%20can%20use%20this%20approach%2C%20I%20can%20see%20no%20problem%20here.%20The%20s-record%20or%20binary%20file%20just%20should%20not%20contain%20data%20in%20area%20which%20is%20reserved%20for%20EEE%20backup%20memory.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2294009%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MC9S12XEP100MAL%20Dflash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2294009%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20very%20much%20for%20your%20reply.%20But%20I'm%20sorry%20to%20say%20that%20I%20still%20have%20some%20questions%20to%20trouble%20you%20with.%3CBR%20%2F%3EDoes%20your%20reply%2C%20%22The%20s-record%20or%20binary%20file%20just%20should%20not%20contain%20data%20in%20area%20which%20is%20reserved%20for%20EEE%20backup%20memory%2C%22%20mean%20that%20I%20cannot%20write%20data%20to%20the%20completed%20D%20flash%20partition%20during%20the%20burning%20process%3F%3CBR%20%2F%3EAfter%20I%20completed%20the%20partition%20program%20burning%2C%20when%20I%20used%20the%20commercial%20burner%20%22Blank%20check%22%2C%20it%20showed%20that%20the%20chip%20memory%20was%20not%20empty.%20After%20the%20partition%20configuration%20is%20completed%2C%20will%20data%20be%20stored%20in%20P%20FLASH%20and%20D%20FLASH%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2294719%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MC9S12XEP100MAL%20Dflash%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2294719%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EOn%20S12XEP100%2C%20you%20can%20program%20D%E2%80%91Flash%20during%20burning%2C%20but%20do%20not%20place%20any%20bytes%20into%20the%20EEE%20backup%20area%20created%20by%20the%20partition.%20Only%20write%20to%20the%20user%20D%E2%80%91Flash%20region.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EAfter%20you%20run%20the%20Partition%20D-Flash%20command%2C%20the%20device%20pre-programs%20EEE%20metadata%20pages%20in%20D%E2%80%91Flash.%20So%20a%20%E2%80%9CBlank%20check%E2%80%9D%20will%20report%20non%E2%80%91blank%E2%80%94that%E2%80%99s%20normal.%3C%2FP%3E%0A%3CP%3ETo%20know%20exactly%20which%20addresses%20you%20must%20avoid%20in%20your%20S%E2%80%91record%2C%20read%20the%20EEE%20configuration%20after%20partitioning.%20You%20can%20use%20either%20EEPROM%20Emulation%20Query%20command%20or%20you%20can%20read%20DFPART%20and%20ERPART%20fields%20directly%20%26nbsp%3Bin%20IFR%20at%20global%20address%200x12_0000.%20This%20IFR%20is%20hidden%20by%20default%2C%20you%20need%20to%20enable%20the%20visibility%20by%20EEEIFRON%20in%20MMCCTL1%20register.%20Just%20search%20for%20%E2%80%9CEEEIFRON%E2%80%9D%20in%20the%20manual%20for%20details.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EYou%20can%20also%20take%20a%20look%20at%20EEE.xls%20file%20in%20this%20package%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fpwmxy87654%2Fattachments%2Fpwmxy87654%2F16-bit%2F14941%2F1%2FEEPROM-XEP100-Example%2Bdescription.zip%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Fpwmxy87654%2Fattachments%2Fpwmxy87654%2F16-bit%2F14941%2F1%2FEEPROM-XEP100-Example%2Bdescription.zip%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EPartitioning%20does%20not%20affect%20P-Flash%2C%20you%20can%20program%20P-Flash%20as%20usual.%3C%2FP%3E%3C%2FLINGO-BODY%3E