I am using codewarrior MCF54416. How can I write a file read from FTP directly into the flash memory, without storing it in RAM.

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

I am using codewarrior MCF54416. How can I write a file read from FTP directly into the flash memory, without storing it in RAM.

跳至解决方案
2,101 次查看
sumishgeorgeche
Contributor II

Currently I'm reading the file from FTP . The read file is first stored in the RAM. The file in the RAM memory is then written into the nand flash memory. But currently I have to get a bigger file and the RAM size is not sufficient. So can you please suggest some options to write directly to flash without copying it to RAM.

标签 (1)
0 项奖励
回复
1 解答
1,606 次查看
sumishgeorgeche
Contributor II

Hi Carlos,

Our [bootloader + application] has 8 MB as the rbin size. Currently we are trying to add a 13 MB external s19 to the rbin

as a tfsdata. During compilation we get the following error on the code warrior(10.6.4).

">### Error: Out of memory ###

Errors caused tool to abort." in the compiler.

error1.png

We tried increasing the heap size for eclipse to 768M from 512M [Default]. Still we get the same error.

Old Configuration-

-vmargs

-XX:+UnlockDiagnosticVMOptions

-XX:+UnsyncloadClass

-Xms256m

-Xmx512m

-XX:MaxPermSize=256m

After resizing-

-vmargs

-XX:+UnlockDiagnosticVMOptions

-XX:+UnsyncloadClass

-Xms768m

-Xmx768m

-XX:MaxPermSize=768m

Regards,

Sumish George Cherian,

Software Engineer

在原帖中查看解决方案

0 项奖励
回复
8 回复数
1,606 次查看
Carlos_Mendoza
NXP Employee
NXP Employee

Hi George,

Could you tell us which CodeWarrior version are you using?

Thanks in advance!

Best Regards,

Carlos Mendoza

Technical Support Engineer

0 项奖励
回复
1,606 次查看
sumishgeorgeche
Contributor II

Carlos,

Codewarrior version is 10.6

On 23 May 2016 20:01, "Carlos_Mendoza" <admin@community.freescale.com>

0 项奖励
回复
1,606 次查看
Carlos_Mendoza
NXP Employee
NXP Employee

Hi George,

Thanks for your response, is your project a bareboard project or are you using MQX?

Best Regards!

Carlos Mendoza

Technical Support Engineer

0 项奖励
回复
1,606 次查看
sumishgeorgeche
Contributor II

Carlos,

Its mqx. Chip is coldfire mcf54416

On 23 May 2016 20:15, "Carlos_Mendoza" <admin@community.freescale.com>

0 项奖励
回复
1,606 次查看
Carlos_Mendoza
NXP Employee
NXP Employee

Hi George,

Apologies for the delay.

Are you using a MQX example project as base for your project? Could you share your project so we can review your implementation?

Thanks in advance!

Best Regards,

Carlos Mendoza

Technical Support Engineer

0 项奖励
回复
1,606 次查看
sumishgeorgeche
Contributor II

Hi Carlos,

I'm not using mqx example project. So I'm not able to share the project.

I have another question. I'm trying to include an external executable S19 file (of another processor) to be part of mcf54416 executable.The idea is to retrieve the external executable file on bootup and store it in nand for later consumption. Since the external executable is a large file( around 13 MB) we are including the zipped or tar version of the file. Are there any api's to unzip or un- tar the file in runtime on the controller.

Regards ,

Sumish George Cherian,

Software Engineer

0 项奖励
回复
1,606 次查看
Carlos_Mendoza
NXP Employee
NXP Employee

Hi George,

Unfortunately the MQX filesystem does not support the zip/unzip functionality, but you could also take a look to the links provided by my colleague on the following thread:

MQX/MFS 4.1 unzip?

Hope it helps!

Best Regards,

Carlos Mendoza

Technical Support Engineer

0 项奖励
回复
1,607 次查看
sumishgeorgeche
Contributor II

Hi Carlos,

Our [bootloader + application] has 8 MB as the rbin size. Currently we are trying to add a 13 MB external s19 to the rbin

as a tfsdata. During compilation we get the following error on the code warrior(10.6.4).

">### Error: Out of memory ###

Errors caused tool to abort." in the compiler.

error1.png

We tried increasing the heap size for eclipse to 768M from 512M [Default]. Still we get the same error.

Old Configuration-

-vmargs

-XX:+UnlockDiagnosticVMOptions

-XX:+UnsyncloadClass

-Xms256m

-Xmx512m

-XX:MaxPermSize=256m

After resizing-

-vmargs

-XX:+UnlockDiagnosticVMOptions

-XX:+UnsyncloadClass

-Xms768m

-Xmx768m

-XX:MaxPermSize=768m

Regards,

Sumish George Cherian,

Software Engineer

0 项奖励
回复