Flash Memory has a partition in KL25z?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Flash Memory has a partition in KL25z?

2,158件の閲覧回数
arthshah
Contributor II

hello

i am new in kinetis kl25z.

i want to know about flash memory partition.

actually i need create file and store in flash memory of kl25z,so my question is that in which location i create my file?

in flash memory some memory is used for my code that i had written in kinetis design studio.

so in kl25z some memory is free? if yes then which memory?

please give me some solution.

thank you..!! 

0 件の賞賛
返信
15 返答(返信)

1,765件の閲覧回数
arthshah
Contributor II

hello mark..

i have another question.i want to create file in USB mass storage device.

so what i do In my Ksdk 1.3.0 example code of USB msdfsfat  ?

here is the my main code of this example

int main(void)
#endif
{
hardware_init();
OSA_Init();
dbg_uart_init();

#if !(USE_RTOS)
APP_init();
#endif

OS_Task_create(Task_Start, NULL, 4L, 4000L, "task_start", NULL);
OSA_Start();
#if !defined(FSL_RTOS_MQX)
return 1;
#endif
}

so i ask you that in which place i add my function of  create file?

thank you ..!!

0 件の賞賛
返信

1,765件の閲覧回数
mjbcswitzerland
Specialist V

Hi

1. The KL25 has a single plane of flash with 2k sector sizes. I don't know that there is any such concept as a "partition" involved.
2. uTasker is a project that allows a single code base to work on almost all Kinetis parts, to simulate the operation and thus achieve rapid product development. It includes many additional methods that have been developed for real product requirements that traditional frameworks do not have.
3. I don't think that KSDK 1.3.0 supports USB-MSD in the KL25 memory (based on various other questions in the forums)
4. In the uTasker KL25 project there is this option, as well as emulated FAT techniques - you can simply download binaries to see this being done from http://www.utasker.com/kinetis/FRDM-KL25Z.html
5. If you are an experienced embedded developer it should be possible to modify the KSDK 1.3.0 (I think it uses a RAM example that shows the basics but can't yet be used for practical work without an extension) to allow it to use internal Flash with about 2 days of effort. To add FAT emulation it may take one or two weeks of further development time.
6. Since I don't use KSDK I can't give help - you could look at the KSDK forum in case your need to use KSDK for your developments.

Regards

Mark


Professional support for Kinetis: http://www.utasker.com/index.html
Remote desktop one-on-one coaching: http://www.utasker.com/services.html
Getting started to expert videos: https://www.youtube.com/results?search_query=utasker+shorts

0 件の賞賛
返信

1,765件の閲覧回数
arthshah
Contributor II

thanks for reply.

i want to use ksdk1.3.0  and in it some release note is available, in it i found the file system in which this type of writing is there.

A FAT file system is integrated with Kinetis SDK and can be used to access either the SD card or the USB memory stick when the SD card driver or the USB Mass Storage Device class implementation is used.

it means we use USB MSD and access the file system using fopen.fclose,... etc command.

Do you have any idea about that ?

if yes, please tell me in which place i edit my code in MAIN() function.
 

0 件の賞賛
返信

1,765件の閲覧回数
mjbcswitzerland
Specialist V

Hi

USB-MSD device does not use FAT but you may need to interface the processor to an SPI based SD card interface if you want the USB host to be able to read/write the SD card. Memory stick is a different operation so I don't know that you will find a ready-made solution.

uTasker will allow you to have complete operation in a few minutes (SD card, internal Flash or emulated USB-MSD). KSDK may take a few weeks of learning and additional development so you could be advised to find someone in the KSDK group who is willing to help you through this process and plan on a few weeks of effort, or request NXP support if it is an urgent project.

As I said, I don't use KSDK so I can't help more if you need to use it as base for developments.

Regards

Mark

0 件の賞賛
返信

1,765件の閲覧回数
arthshah
Contributor II

hii

do you have any idea about that?

how can i achieve this ?

any help would be appreciate.

thank you..!!

0 件の賞賛
返信

1,765件の閲覧回数
mjbcswitzerland
Specialist V

Hi

You could try these:
https://community.nxp.com/message/838483?commentID=838483#comment-838483
https://community.nxp.com/message/476026
to get some ideas about what work is involved to do what you need.

If you understand low level USB operation, the USB-MSD class and low level SD card SPI interfacing (and it helps to know some FAT details as well) you will be able to develop this based on the KSDK examples. Since the examples tend to be only available for some processors you may also need knowledge of porting to different processors.

To show that the operation can be achieved I have attached FRDM-KL25Z USB-MSD device on SD card. Connection is
        // - SPI1_CS   PTD-4 (J1-6) [VDD J9-4 / 0V J9-14]
        // - SPI1_SCK  PTD-5 (J2-4)
        // - SPI1_MOSI PTD-6 (J2-17)
        // - SPI1_MISO PTD-7 (J2-19)
as well as a version for the TWR-KL25Z48M tower kit (same pins used for SD card interface).

Regards

Mark

1,765件の閲覧回数
arthshah
Contributor II

hello Mark,

Here you attached two documents of utasker but i didn't get any idea about that and it's .bin file, so what i do for this?

0 件の賞賛
返信

1,765件の閲覧回数
mjbcswitzerland
Specialist V

The attached files are software which already does what you are attempting to develop. This allows you to have a working solution directly if that is you aim by just loading them to one of the development boards. I can build it in a few minutes for any Kinetis part using the open source uTasker project.

If you aim is to develop it with KSDK you can possibly check its behavior with a logic and USB analyser and try to work out what is needed to do the same. Since you don't have much experience yet I think that you will need to budget between 2 and 6 weeks of work still to get basic operation. Once you have finished you could contribute a report and solution back to the KSDK community specific to the KL25 so that the effort required and solution needed is made clear to subsequent developers that need to repeat the exercise.

Regards

Mark

0 件の賞賛
返信

1,765件の閲覧回数
arthshah
Contributor II

thanks for the Help..!!
In kl25z SD card slot is not available in this development Board.

so in my case what i do? connect SD manually to the SPI pin?

and one more question is that in my KSDK1.3.0 usb_host_msd_fatfs example code is available so this code is right for me to add SD as a MSD?  

0 件の賞賛
返信

1,765件の閲覧回数
mjbcswitzerland
Specialist V

Hi

There is no SD card holder on these development boards so it is necessary to wire it it to an external one via the SPI interface.

USB-Hot USB-MSD is not the same as device so it probably won't help much. It may however give an idea how to interface the low level SD card .

Regards

Mark

0 件の賞賛
返信

1,765件の閲覧回数
arthshah
Contributor II

thank you Mark..!

0 件の賞賛
返信

1,765件の閲覧回数
arthshah
Contributor II

hii

thank you for supporting.

now i think that use of SD card interfacing with KL25z as a MSD.

is it possibal?

0 件の賞賛
返信

1,765件の閲覧回数
arthshah
Contributor II

thank you mark..!!

0 件の賞賛
返信

1,765件の閲覧回数
mjbcswitzerland
Specialist V

Hi

The KL25 has 2k Flash sector size and so these can be individually written and erased for file system use.

See the following for KL25 flash file system, parameter system and FAT emulation: http://www.utasker.com/kinetis/FRDM-KL25Z.html

Regards

Mark


Professional support for Kinetis: http://www.utasker.com/index.html
Remote desktop one-on-one coaching: http://www.utasker.com/services.html
Getting started to expert videos: https://www.youtube.com/results?search_query=utasker+shorts

1,765件の閲覧回数
arthshah
Contributor II

thanks for the reply.

but i didn't get what is utasker?

KL25Z has 128KB flash.In this flash, extra partition is there or not?

0 件の賞賛
返信