用于从串行接口引导DA14586的引脚

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
11 posts / 0 new
Last post
TP2017年
Offline
最后一次见到:5天13小时前
加入:2017-07-15 18:18
用于从串行接口引导DA14586的引脚

I'm confused about the pins to use to connect the DA14586 to an external device (MSP430) for booting from a serial interface (I'd like to use an SPI interface).

I read AN-B-001 "Booting from serial interfaces" and saw that the booting pin assignments (step 1/SPI Master) were P0_0/SCK, P0_3/CS, P0_5/MOSI, and P0_6/MISO. That seems clear enough, but something I read in the DA14586 datasheet has me confused. The datasheet says that "During the boot sequence, the four SPI pins of port P2 are used to access the internal Flash memory" (P2_0/CLK, P2_3/EN, P2_4/DO, P2_9/DI). This sounds a little like the same thing to me. Is the datasheet telling me about a different function?

一旦我用串行接口启动了DA14586,我想用相同的SPI接口控制DA14586。有可能吗?

关键词:
设备:
MT\u对话框
Offline
最后一次见到:2个月3周前
工作人员
加入:2015-06-08 11:34
Hi TP2017,

Hi TP2017,

The 586 comes with an embedded flash and the OTP header is preprogrammed in order to boot from the pins of the embedded flash using the "Boot specific mapping" field in the OTP header. The AN-B-001 document concerns the 580/581/583 family, the booting procedure is quite the same but not exactly the same and the 586 which comes with the embedded flash doesn't follow the same architecture as the 583 (which also comes with an embedded flash). So in the 585/586 case the booting procedure is described in the document UM-B-079 DA14585_586 SDK 6 Software Platform Reference document in Appendix G. So how exactly the 586 boots, it will check for booting from the internal flash (as the appropriate field in the OTP header instructs) after failing to boot from the internal flash it will start executing the UART sequence as it is described in the appendix figure 31 and continue with the rest of the booting protocol. After you have booted your fw then you can use the pins as you like.

谢谢你的对话

TP2017年
Offline
最后一次见到:5天13小时前
加入:2017-07-15 18:18
Thank you for your response.

谢谢你的回复。不过,我还是不确定密码的分配。UM-B-079 DA14585\ U 586 SDK 6软件平台参考的附录G列出了步骤A引导过程的P0\ U 0/SCK、P0\ U 3/CS、P0\ U 6/MISO和P0\ U 5/MOSI。我还注意到相同的引脚指定表21的DA14586数据表。然而,我在表1引脚描述(第。DA14586数据表第19页)它显示了P2\ U 0/SPI\ U CLK、P2\ U 3/SPI\ U EN、P2\ U 4/SPI\ U DO和P2\ U 9/SPI\ U DI,并有一条注释“注意:在引导过程中,端口P2的四个SPI引脚用于访问内部闪存。因此,这些引脚不得重新映射或用于任何其他目的。”。这就是让我困惑的部分。我想确保我没有误读的文件和分配错误的引脚之前,我承诺一个董事会的设计。

谢谢

MT\u对话框
Offline
最后一次见到:2个月3周前
工作人员
加入:2015-06-08 11:34
Hi TP2017,

Hi TP2017,

As mentioned above, the bootloader for the 585 and the 586 is the same, the difference between those two devices is that the 586 has an internal flash in order to store code, since its has an internal flash and most probably the user would like to store some code in it, due this OTP special flag the Boot rom code will not directly execute the serial booting procedure but it will first check the SPI interface on the special pin that are declared in that field and if it fails to boot from there it will then go and execute serial booting. When the device finds your fw from the external flash, it will mirror the code to the RAM of the 585 and the pins will be remmaped according to the your fw, but the booting procedure will be over and the mirroring procedure will be done, so you wont have to access the flash again for reading code, but in order to read any data from the flash you will need to configure the pins from your fw as SPI pins in order to access the internal flash. But be aware that if you plan to connect any external sensors on those pins you should make sure that they dont interfiere with the booting
程序。

谢谢你的对话

TP2017年
Offline
最后一次见到:5天13小时前
加入:2017-07-15 18:18
哪个串行引导引脚?

哪个串行引导引脚?

我想我理解你最后的评论,但我想在订购样板板之前确定一下。

我在寻找DA14586系列引导的具体引脚。是P0μ0/SCK、P0μ3/CS、P0μ6/MISO和P0μ5/MOSI(表21,p。或者是P2\ U 0/SPI\ U CLK、P2\ U 3/SPI\ U EN、P2\ U 4/SPI\ U DO和P2\ U 9/SPI\ U DI(表1 p。数据表第19页)?数据表似乎自相矛盾。

(from Table 1, p. 19: "Note: During the boot sequence, the four SPI pins of port P2 are used to access the internal Flash memory. Therefore these pins shall not be remapped or used for any other purpose.") Does this mean that P2 SPI pins are used for serial booting on the DA14586?

谢谢

MT\u对话框
Offline
最后一次见到:2个月3周前
工作人员
加入:2015-06-08 11:34
Hi TP2017,

Hi TP2017,

As mentioned above, the 586 uses the same bootloader as the 585, so the bootloader procedure is exactly the same, but since the 586 has an embedded flash the OTP Header field Boot specific mapping is burned from factory in order to boot first from the P2_0/SPI_CLK, P2_3/SPI_EN, P2_4/SPI_DO, and P2_9/SPI_DI and if that fails it will go and execute the standard bootloader procedure. I undertstand that the datasheet is a bit confusing since it describes the standard sequence and not the 586 option with the burned OTP field, will check it with the authors of the datasheet.

是的,这是我在整个帖子中一直提到的。

谢谢你的对话

TP2017年
Offline
最后一次见到:5天13小时前
加入:2017-07-15 18:18
非常感谢你的帮助

非常感谢你的帮助。

贾斯梅特辛格
Offline
最后一次见到:9个月1周前
加入:2020-07-15 09:46

我使用的是带内部闪存的DA14586。其中一个传感器通过spi接口与da14586相连,分别为P0\u0/SCK、P0\u3/CS、P0\u6/MISO和P0\u5/MOSI。

我正在配置这些spi引脚,就像这个GPIO\u ConfigurePin(GPIO\u PORT\u 0,GPIO\u PIN\u 3,OUTPUT,PID\u spi\u EN,true);
#如果1
arch_puts("test 1 \n\r");
#结束
GPIO\ U配置引脚(GPIO\ U端口\ U 0,GPIO\ U引脚\ U 0,输出,PID\ U SPI\ U CLK,false);
#如果1
拱形放置(“测试2\n\r”);
#结束
GPIO_ConfigurePin(GPIO_PORT_0, GPIO_PIN_6, OUTPUT, PID_SPI_DO, false);
#如果1
拱形放置(“测试3\n\r”);
#结束
GPIO\ U配置引脚(GPIO\ U端口\ U 0,GPIO\ U引脚\ U 5,输入,PID\ U SPI\ U DI,false);

but it is not booting up.

所以,我如何can make my sensor interface through spi or what is the right proccedure to do this .

谢谢& Regards

贾斯梅特辛格

PM\U对话框
Offline
最后一次见到:3天6分钟前
工作人员
加入:2018-02-08 11:03
Hi Jasmeet Singh,

Hi Jasmeet Singh,

有没有什么具体的原因,为什么你用这个GPIO的传感器?你试过在其他GPIO中连接它吗?

谢谢,下午好

贾斯梅特辛格
Offline
最后一次见到:9个月1周前
加入:2020-07-15 09:46

数据表(DA14586)第45页表21。他们给出了spi主机的外设Pin映射,这就是我们将这些gpio用作传感器spi线的原因。

不,我们没有尝试其他gpio。

谢谢& Regards

贾斯梅特辛格

PM\U对话框
Offline
最后一次见到:3天6分钟前
工作人员
加入:2018-02-08 11:03
Hi Jasmeet Singh,

Hi Jasmeet Singh,

这是引导序列,因为BootROM检查特定的gpio以便从不同的串行设备引导。一般来说,您可以将任何GPIO用作SPI—您也需要在固件中配置它。同时,能否请您用逻辑分析仪工具探测SPI信号并分享一个捕获?

谢谢,下午好