FX3/CX3(CYUSB3065) 如何配置外部FLASH

公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
YaXi_4492421
Level 2
Level 2
10 replies posted 10 questions asked 5 replies posted

我这边使用的(CYUSB3065) ,然后芯片外部挂了一个16M的FLASH,目前烧录启动,都没有问题,但是当我修改空间配置的时候,不能实现,烧录进去的时候都启动不起来。 修改的内容包含两个方面: 1. 编译的配置文件:C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\/firmware/common/fx3.ld 修改前为: I-TCM : ORIGIN = 0x100 LENGTH = 0x3F00 SYS_MEM : ORIGIN = 0x40003000 LENGTH = 0x2D000 DATA : ORIGIN = 0x40030000 LENGTH = 0x8000 修改后为: I-TCM : ORIGIN = 0x100 LENGTH = 0x3F00 SYS_MEM : ORIGIN = 0x40003000 LENGTH = 0x2E000 DATA : ORIGIN = 0x40031000 LENGTH = 0x8000 2. cyxtx.c 修改前:#define CY_U3P_MEM_HEAP_BASE        ((uint8_t *)0x40038000) 修改后:#define CY_U3P_MEM_HEAP_BASE        ((uint8_t *)0x40039000)

0 点赞
1 解答
GuSc_293616
Level 3
Level 3
5 likes given First like given

If google understand you right, than it looks not bad what you have changed.

Your adaption reduce the max. available memory for buffers allocated by

CyU3PDmaBufferAlloc or CyU3PMemAlloc. If your application tries to use

more than the available memory this functions return a "zero" pointer, what may

cause your boot problem.

在原帖中查看解决方案

0 点赞
3 回复数
GuSc_293616
Level 3
Level 3
5 likes given First like given

It is possible to write your question in english?

0 点赞
GuSc_293616
Level 3
Level 3
5 likes given First like given

If google understand you right, than it looks not bad what you have changed.

Your adaption reduce the max. available memory for buffers allocated by

CyU3PDmaBufferAlloc or CyU3PMemAlloc. If your application tries to use

more than the available memory this functions return a "zero" pointer, what may

cause your boot problem.

0 点赞
YaXi_4492421
Level 2
Level 2
10 replies posted 10 questions asked 5 replies posted

Thanks for the answer!

I got the answer by FAE.But thank you all th same!

0 点赞