Question about flash_X Driver

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

Question about flash_X Driver

ソリューションへジャンプ
2,131件の閲覧回数
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 解決策
1,545件の閲覧回数
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 返答(返信)
1,545件の閲覧回数
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 件の賞賛
返信
1,545件の閲覧回数
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 件の賞賛
返信
1,546件の閲覧回数
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 件の賞賛
返信
1,545件の閲覧回数
AF_Ariel
Contributor I

Thanks for the tip Davis

0 件の賞賛
返信