Question about flash_X Driver

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

Question about flash_X Driver

跳至解决方案
2,647 次查看
AF_Ariel
Contributor I

Hello:
I'm working on a project that used the MQX flash_x driver on a MCF52259 procesor. The default configuration of the driver have 4 sector of 4kbytes of size. My application need more space than that. So, is it posible to expand the flash_x memory of the driver?. If it is, could you provide an example?

Yours sincerely

0 项奖励
回复
1 解答
2,061 次查看
DavidS
NXP Employee
NXP Employee

Hello,

I found that you can modify the twrmcf52259.h header that define the BSPCFG_FLASHX_SIZE from 0x4000 to (FLASHX_END_ADDR - FLASHX_START_ADDR)

This macros are defined in the intflash.lcf file at the bottom.

When I made that change and recompiled the RTOS and FSLMQX/mqx/examples/flashx application my total available flash space was 0x70000.

Regards,

David

在原帖中查看解决方案

0 项奖励
回复
4 回复数
2,061 次查看
PetrM
Senior Contributor I

Hello,

 

you cannot change the sector size, so you need to align the overall size according the sector size. It's controlled by BSP macro BSPCFG_FLASHX_SIZE.

Anyway, the actual size you'll get is dependant on the available free flash after your code. If your requested size doesn't fit there, you'll get runtime error during installation of flashx.

 

PetrM

0 项奖励
回复
2,061 次查看
AF_Ariel
Contributor I

hello:
Thank you for your responce PetrM. Certainly, I realy need more number of sectors, I'm not intrested in change the size of the sectors. So, there is a procedure to extend the number of sectors of the flash X driver?
Thank you in advanced

0 项奖励
回复
2,062 次查看
DavidS
NXP Employee
NXP Employee

Hello,

I found that you can modify the twrmcf52259.h header that define the BSPCFG_FLASHX_SIZE from 0x4000 to (FLASHX_END_ADDR - FLASHX_START_ADDR)

This macros are defined in the intflash.lcf file at the bottom.

When I made that change and recompiled the RTOS and FSLMQX/mqx/examples/flashx application my total available flash space was 0x70000.

Regards,

David

0 项奖励
回复
2,061 次查看
AF_Ariel
Contributor I

Thanks for the tip Davis

0 项奖励
回复