完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
你好;
我们正在研究一个项目。在我们的项目中,我们使用“柏s29gl128s90fhi010”模型的并行NOR闪存芯片。我们这个芯片的ADI公司的Blackfin DSP的bf609静态存储器控制器连接(smc0 baseadress = 0xb0000000 bank0),(我分享我们的PCB原理图)。我们下载了“spansion_lld_device_v15.3.1“底层驱动程序从您的网站和我们添加到项目中。但我没能做出正确的配置。我写RAM而试图写入Flash。我们尝试运行下面的代码,但我们没有在数据表中读取ID。你能帮我看看这个配置吗? /////////////////////////////////////////////////////////////////////////////////////////////////////////// 无符号INTATA数据读取; LLD-Char Veluon STR〔9〕; LLDY-GETVIEW(VALUSTONSTR); PrtTf(“LLD版本:%sn”,VelueSnR); DATAXRead=LDLDGETDEVICID ID((Flash DATA)0xB000 000); PrtTf(“%88xn”,DATAYRADE); ////////////////////////////////////////////////////////////////////////////////////////////////// 我分享到BLASFIFM SMC功能和寄存器细节。 黑鳍SMC特征: 16位I/O宽度 •提供灵活的定时控制通过扩展定时参数 支持异步访问扩展(SMCL ARDY引脚) 支持8位数据掩码写入 支持总线请求/授权仲裁 •支持爆破与4, 8和16可编程的突发长度读 Blackfin smc_bank0寄存器:(更多细节可在附件) SMCE B0CTL银行0控制寄存器 SMCYB0tiM银行0定时寄存器 SMCE B0ETIM银行0扩展定时寄存器 施密特闪光灯 291.6 K BrimFiff-SMCKBAN00寄存器描述 821.6 K 以上来自于百度翻译 以下为原文 Hi There ; We are working on a project. In our project, we use "CYPRESS S29GL128S90FHI010" model parallel NOR FLASH chip. We connected this chip to Analog Devices' Blackfin BF609 DSP's static memory controller (SMC0 BASEADRESS=0xB0000000 Bank0),(I share the schematic of the PCB we make ). We downloaded the "Spansion_LLD_Device_v15.3.1" Low-level driver from your website and we added to the project. But I have not been able to make the right configuration.I wrote ram a while trying to write to flash. and we try to run the following code, but we have not read the ID in the datasheet. Could you help me with the configuration. /////////////////////////////////////////////////////////////////////////////////////////////////////////// unsigned int data_read; LLD_CHAR versionStr[9]; lld_GetVersion(versionStr); printf(" LLD Release Version: %s n", versionStr); data_read = lld_GetDeviceId ( (FLASHDATA)0xB0000000 ); printf ("%8.8X n", data_read ); ////////////////////////////////////////////////////////////////////////////////////////////////// I shared to Blackfin SMC Features and registers details. Blackfin SMC Features: • 16-bit I/O width • Provides flexible timing control through extended timing parameters • Supports asynchronous access extension ( SMC_ARDY pin) • Supports 8-bit data masking writes • Supports bus request/grant arbitration • Supports burst read with programmable burst length of 4, 8 and 16 Blackfin SMC_Bank0 Registers:(Additional details are available on attachment) SMC_B0CTL Bank 0 Control Register SMC_B0TIM Bank 0 Timing Register SMC_B0ETIM Bank 0 Extended Timing Register
|
|
相关推荐
8个回答
|
|
你好,亚历山德拉·海穆真,
感谢您联系柏树社区论坛。我们已经收到你的询盘,目前正在审查这个问题。我们一找到决议就回来找你。 有美好的一天 当做, 布沙拉 以上来自于百度翻译 以下为原文 Hello Ahmet, Thank you for contacting Cypress Community Forum. We have received your inquiry and currently reviewing the issue. We will get back to you as soon as we find the resolution. Have a wonderful day Regards, Bushra |
|
|
|
你好,亚历山德拉·海穆真,
Ry的/ #应该有一个上拉电阻,不是上拉和下拉,否则左三态时,控制器会在VCC / 2看它。 你是否使用LLD为GL S? 你得到什么样的设备ID? 请提供逻辑分析仪的痕迹,我们可以看看那些吗?(CEA,OEα,我们,AdR,Data)。 最好的问候, 巴塞姆 ---- 巴金达西 赛普拉斯半导体公司 客户应用工程 以上来自于百度翻译 以下为原文 Hello Ahmet, The RY/BY# should have a pull-up resistor and not both pull-up and pull-down, otherwise when left tristated, the controller will see it at VCC/2. Are you using the LLD for the GL-S? What are you getting as device ID? Please provide the Logic Analyzer traces and we can look at those? (CE#, OE#, WE#, ADDR, DATA). Best regards, Bacem ---- Bacem Daassi Cypress Semiconductor Corp. Customer Application Engineering |
|
|
|
ueutriwu 发表于 2018-8-27 19:23 我们为延误表示歉意。我们固定的Ry的/信号连接,我们试了一次,但结果并没有改变。 我们使用LLD版本153.1驱动程序 和设备驱动程序文件夹“S29 GLXXXS”。 有一张我们设计的董事会的照片。 我们只运行这个代码“Flash DATA *BASEADDR=0XB000”; DATAXRead=LDLDGETDEVICID ID(BASEADDR); printf(“% 8.8x n”,data_read);” 因此,我们读Device ID.的0x00559090 我给我的Blackfin SMC控制器图片中的设定值(coreclk = 200mhz;时钟为100MHz) 我们改变了文件“lld_target_specific。H”如图所示。 我们试图检查信号“CE #,OE #,我们#,地址,用逻辑分析仪的数据”。 然而,由于电路板的结构,我们可以不审核”地址,数据信号。 我分享的返回信号截图。 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 以上来自于百度翻译 以下为原文 We apologize for the delay. We fixed the connection of the RY / BY signal and we tried again but the result did not change. We use LLD Version 15.3.1 Driver And Device Driver Folder "S29GLxxxS". There is a picture of the board we designed. We run just this code "FLASHDATA *Baseaddr=0xb0000000 ; data_read = lld_GetDeviceId ( Baseaddr ) ; printf ("%8.8X n", data_read ) ; " as a result, we read 0x00559090 for Device ID. I give the setting values of my Blackfin SMC controller in the picture.(CoreCLK=200mhz ; Sclk=100Mhz) We changed the file "lld_target_specific.h" as shown in the picture. we tried to examine the signals "CE #, OE #, WE #, ADDR, DATA" with the logic analyzer. However, due to the board structure, we could not examine the "ADDR, DATA" signals. I share screenshots of the returning signals. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
|
|
|
zerocq 发表于 2018-8-27 19:32 你好,亚历山德拉·海穆真, 你是从哪里得到的基地址的静态0xb0000000?我在BLIMFIEN参考手册里找不到它。 的s29gl129s的初始访问时间(TACC)100ns,所以你应该考虑到这。我看到一个CS #低周期需要10ns O n跟踪你送。这在这里是行不通的。 另外,我看到两个写周期后跟一个读周期,然后一个写周期1读周期。这不符合的功能lld_getdeviceid()什么电话是意料中的事。 通常情况下,我们应该看到3圈,接着4读写周期环面。 你也回读0x00559090实际上是书面值切换到自选模式读取设备ID,所以它看起来像控制器配置不正确。 不幸的是,我不是Blackfin专家但是我建议你更深入地参考手册peorperly安装滑模控制器。 谢谢! 最好的问候, 巴塞姆 ---- 巴金达西 赛普拉斯半导体公司 客户应用工程 以上来自于百度翻译 以下为原文 Hello Ahmet, Where did you get the base address 0xB0000000 for the static from? I couldn't find it in the blackfin reference manual. The S29GL129S has an initial access time (tACC) of 100ns, so you should take this into account. I see that a CS# low cycle takes 10ns o nthe trace you sent. This will not work here. The other thing is that I see two write cycles followed by a read cycle, then 1 write cycle then 1 read cycle. This does not comply with what a call to the function lld_GetDeviceId() is expected to do. Normally, we should see 3 write cylces followed by 4 read cycles in toral. You're also reading back 0x00559090 which is actually the written values to switch to autoselect mode to read the device IDs, so it looks like the controller is not configured properly. Unfortunately, I'm not an expert of Blackfin but I would recommend that you dig deeper into its reference manual to peorperly setup the SMC controller. Thanks! Best regards, Bacem ---- Bacem Daassi Cypress Semiconductor Corp. Customer Application Engineering |
|
|
|
ueutriwu 发表于 2018-8-27 19:41 你好; 正如你所说的,我们深入研究了这个问题。我们发现SMC控制器没有直接控制复位引脚。在我们以前的实验中,重置是浮动的。现在解决这个问题。我们希望分享结果。 它们分别是 布莱克芬配置 它们分别是 “LLDAbjutoTrime.h”配置文件… 对我们来说是正确的吗? ID读取代码: 结果:0x00 FF2101 “LLDIGETDEVICIDS ID”计时… ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 我们使用下面我们共享的代码进行阅读和写作。似乎已经在阅读和写作方面取得了成功。但是ID似乎是错误的。我共享代码和代码输出。 黑鳍记忆地图… 我有几个问题。我们的ID正确吗?我们的“LDL目标特定H”设置是否正确?你有一个32位微处理器采用闪存样本项目吗? 以上来自于百度翻译 以下为原文 Hi; we studied the problem in depth as you said. and we found that the SMC controller did not directly control the reset pin. In our previous experiments, the reset was floating.now solve the problem. and we want to share the results. _________________________________________________________________________________________________________ Blackfin Config...... _______________________________________________________________________________________________________ "lld_target_specific.h" config... is it correct for us? ID Read Code: Result : 0x00FF2101 "lld_GetDeviceId" timing... ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- we used the code we shared below for reading and writing. seems to have been successful in reading and writing. but the ID seems to be wrong. I share the code and code output. Blackfin Memory MAP... I have a few questions. Is our ID correct? Is our "ldl target specific.h" setting correct?do you have a sample project made with this flash memory with 32 bit microprocessor? |
|
|
|
zerocq 发表于 2018-8-27 19:59 你好,亚历山德拉·海穆真, 设备ID应该是:07E2101 因为某些原因,在字偏移0x1 CFI数据读取的工作不适合你。 你能把完整的CFI数据转储来复查吗? 也请“挥发性”描述符变量如“base_addr”。 我想偏移和数据你想尝试在巫术,所以他们应该分别0x10000和0x1234。 我们没有LLD的样本项目。是的,LLD配置是正确的。 谢谢! 最好的问候, 巴塞姆 ---- 巴金达西 赛普拉斯半导体公司 客户应用工程 以上来自于百度翻译 以下为原文 Hello Ahmet, The device ID should be: 007E2101 For some reason, the read of the CFI data at word offset 0x1 is not working for you. Could you dump the full CFI data to double check it? Please also a "volatile" descriptor to variables like "base_addr". I guess the offset and the data you wanted to try were in hex, so they should be 0x10000 and 0x1234 respectively. We don't have sample project for the LLD. And yes, the LLD configuration you have is correct. Thanks! Best regards, Bacem ---- Bacem Daassi Cypress Semiconductor Corp. Customer Application Engineering |
|
|
|
你好; 非常感谢你的帮助。我想我们解决了这个问题。但是有一种奇怪的情况。情况是;我们写的一个文件中的“lld_s29glxxxs回路。”。系统运行正常。我把我的屏幕图像below.what可能与此相关吗? 以上来自于百度翻译 以下为原文 Hi; Thank you very much for your help. I think we solved the problem. But there is a strange situation. Situation is that ;We wrote a FOR loop in the file "lld_S29GLxxxS.c". the system is working correctly. I shared my screen image below.what could be related to this? |
|
|
|
zerocq 发表于 2018-8-27 20:25 你好,亚历山德拉·海穆真, 很高兴你能解决的问题。 它看起来像你有某种缓存/缓冲对CPU和指令启用不立即执行。 所有的指令应阻塞和不应该等到他们执行返回,否则当你看到这里,闪光灯可能不在自选模式虽然你试图读取ID。 谢谢! 最好的问候, 巴塞姆 ---- 巴金达西 赛普拉斯半导体公司 客户应用工程 以上来自于百度翻译 以下为原文 Hello Ahmet, Glad to hear that you were able to solve the issue. It looks like you have some sort of caching/buffering enabled on the CPU and instruction are not executed immediately. All the instructions should be blocking and should not return until they're executed, otherwise as you've seen here, the Flash may not be in the Autoselect mode yet while you try to read the IDs. Thanks! Best regards, Bacem ---- Bacem Daassi Cypress Semiconductor Corp. Customer Application Engineering |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2075 浏览 1 评论
1829 浏览 1 评论
3645 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1766 浏览 6 评论
1517 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
517浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
371浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
413浏览 2评论
360浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
868浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-30 01:16 , Processed in 0.993195 second(s), Total 90, Slave 75 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号