How to program image file on 32GB micro SD card using codewarrior in FRWYLS1046A development board?

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

How to program image file on 32GB micro SD card using codewarrior in FRWYLS1046A development board?

957 Views
karunakaranR
Contributor I

I need to use codewarrior IDE to program a micro SD card on FRWYLS1046A board.

In codewarrior IDE, the default SD card configuration for LS1046A_FRWY is only support 16GB. If I used a 32GB micro SD card, it throws a program error.

1) How to add a 32GB SD card configuration in codewarrior development IDE?

2) Is there any programming guide available?

0 Kudos
Reply
2 Replies

808 Views
yurijeffers
Contributor I

Thank you. Now I understand more.

0 Kudos
Reply

937 Views
Pavel
NXP Employee
NXP Employee

The size of the sd card should not be a concern. It does not affect the way the algorithm works.

To have a different config for a larger SD, customer can look into <CW install path>/Config/flash/devices/SDSP16GB_LSCH2.xml
and create a custom xml file with a different name and change  the sector count,  size and name.
Optionally he can change the id.(it's optionally because the algorithm should not fail if the device has a different id)

Below is the content of the mentioned file and bolded are the changes:

<device-file>
        <device>
                <content>
                        <device_parameters>
                                <device_type>sd</device_type>
                                <manufacturerid>0x01</manufacturerid>
                        </device_parameters>
                        <name>SDSP16GB_LSCH2</name>
                        <sectors>
                                <sector count="30618419" size="0x200"/>
                        </sectors>
                        <organizations>
                                <organization depth="1913651M" width="8">
                                        <id>0x4a54</id>
                                        <algorithm>
                                                <fpinclude href="algorithms/SD_MMC.xml"/>
                                        </algorithm>
                                </organization>
                        </organizations>
                </content>
        </device>
</device-file>

 

 

0 Kudos
Reply