Can PA Flash Programmer write to MT25QL01GB with P1010?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Can PA Flash Programmer write to MT25QL01GB with P1010?

跳至解决方案
2,589 次查看
tkato
Contributor I
Hi, everyone.
I'm designing a board that implements the P1010.
It will implement MT25QL01GB as SPI Flash memory.
However, the PA Flash Programmer included in CodeWarrior There is no MT25QL01GB in the Add Device list.
A different capacity device of the same series, MT25QL512A, is in the list.

I don't know if I can write to SPI Flash using this different capacity setting.
Can you guide me on the correct way to do this?
Best regards
标签 (1)
0 项奖励
回复
1 解答
2,496 次查看
ufedor
NXP Employee
NXP Employee

If the firmware image size is less than half of the SPI Flash size it is possible to use available MT25QL512A.

If not - it will be needed to add new device referring the Code Warrior application note:

\Freescale\CW_PA_v10.5.1\PA\PA_Tools\FlashToolKit\Documentation\AppNote-FlashProgrammer-PowerArchitecture.pdf

在原帖中查看解决方案

0 项奖励
回复
4 回复数
2,497 次查看
ufedor
NXP Employee
NXP Employee

If the firmware image size is less than half of the SPI Flash size it is possible to use available MT25QL512A.

If not - it will be needed to add new device referring the Code Warrior application note:

\Freescale\CW_PA_v10.5.1\PA\PA_Tools\FlashToolKit\Documentation\AppNote-FlashProgrammer-PowerArchitecture.pdf

0 项奖励
回复
2,496 次查看
tkato
Contributor I
Hi ufedor
Thank you for your support!
Our customer want a very large size SPI Flash for the firmware image.
Therefore, I refered the application note, and created new Flash Device XML Configuration File.
I assume that <algorithm> and <utility> can be used without any changes.
I'll use this XML file when the board is complete.
I'll report here if it works fine.

<?xml version="1.0" encoding="UTF-8"?>
<device-file>
<device>
 <version>0.1</version>
<content>
   <name>MT25QL01GB</name>
   <device_type>spi</device_type>
   <manufacturerid>0x20</manufacturerid>
   <chiperase>true</chiperase>
<sectors>
   <sectorcount>2048</sectorcount>
   <sectorsize>0x10000</sectorsize>
</sectors>
   <ontargetverify>true</ontargetverify>
<organization>
        <name>128Mx8x1</name>
        <id>0xBA21</id>
        <algorithm>MT25QL512A_SPI.elf</algorithm>
        <utility>N25Q512A_SPI_Utility.elf</utility>
</organization>
<protecttype>spi</protecttype>
<verifyafterprogram>true</verifyafterprogram>
<autodetectprocessorinfo>true</autodetectprocessorinfo>
</content>
</device>
</device-file>

*The differences from the MT25QL512A.xml are the four places shown in bold.

0 项奖励
回复
2,496 次查看
tkato
Contributor I

Hi

I had a successful SPI flash boot.
The file of "MT25QL01GB.xml" I used are shown below.

I fixed the algorithm file name.

<?xml version="1.0" encoding="UTF-8"?>
<device-file>
<device>
    <version>0.1</version>
<content>
    <name>MT25QL01GB</name>
    <device_type>spi</device_type>
    <manufacturerid>0x20</manufacturerid>
    <chiperase>true</chiperase>
<sectors>
    <sectorcount>2048</sectorcount>
    <sectorsize>0x10000</sectorsize>
</sectors>
    <ontargetverify>true</ontargetverify>
<organization>
    <name>128Mx8x1</name>
    <id>0xBA21</id>
    <algorithm>MT25QL512AB_SPI.elf</algorithm>
    <utility>N25Q512A_SPI_Utility.elf</utility>
</organization>
<protecttype>spi</protecttype>
<verifyafterprogram>true</verifyafterprogram>
<autodetectprocessorinfo>true</autodetectprocessorinfo>
</content>
</device>
</device-file>

0 项奖励
回复
2,496 次查看
ufedor
NXP Employee
NXP Employee

Thank you for the important detail about the selected algorithm.

0 项奖励
回复