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

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

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

Jump to solution
1,583 Views
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.

Labels (1)
0 Kudos
1 Solution
1,088 Views
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

View solution in original post

0 Kudos
8 Replies
1,088 Views
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 Kudos
1,088 Views
sumishgeorgeche
Contributor II

Carlos,

Codewarrior version is 10.6

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

0 Kudos
1,088 Views
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 Kudos
1,088 Views
sumishgeorgeche
Contributor II

Carlos,

Its mqx. Chip is coldfire mcf54416

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

0 Kudos
1,088 Views
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 Kudos
1,088 Views
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 Kudos
1,088 Views
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 Kudos
1,089 Views
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 Kudos