Skip to main content

构建一个闪存启动的定制板

7个月前

构建一个闪存启动的定制板

Posted byJoachimkr.0 points 11 replies
0旋转

您好,有价值的对话人员会员!

我开发了一个应用程序,在DA14531上运行,驱动SPI连接的设备。所有操作都工作正常,蓝牙BLE函数也有效,我可以连接和获取价值的通知。

所有软件设防都是使用Keil开发的,并从设备RAM运行。

Now, I want to go into production on the easiest path: Using an identical schematic as your pro development kit, but stripped down. So I want the exact same SPI flash, connected to the DA14531 for booting my software. The target hardware blocks are the DA14531, the foreign SPI device with all it's stuff and an SPI flash from Macronix. SPI shall be like a bus, with distinct chip select signals. I will use the larger pinout version of the DA14531.

On the daughter board, there is a connector, unpopulated. I understand, this is a 'common' layout for connecting to programmer tools. Following questions arise:

- can I program the development board's flash device, therefore testing the boot ? What steps are required, to program the flash with my binary? This is my first attempt to use that flash, after testing the dedicated flash sample project successfully. But that project focuses on that device' capabilities. No project shows, how to make an application persistent, so it will run after applying power.

- the Keil produces binaries, but how can or must I modify the build, so it will run, via flash storage from RAM?

- 用于生产第一个系列,我想创建一个“设备”,可能是Pro套件的一部分,以便使用10针微距连接器。我怎样才能做到这一点?我必须用这个连接器照顾什么,以便能够编程我的董事会的闪光灯,希望能够进行测试/调试?我的想法是建立线束,在一侧上的PCI-X连接器,另一端10针微距。这就是足够的吗?我的小目标力学不允许PCI-X连接器格式。交替方式:我记得另一个套件,坐在白色的平鼓中,有很多传感器,LED,按钮,其中PCB带有它,携带这样的连接器。我的希望是,这个PCB可以用于相同的目的吗?

谢谢你的帮助,joachim

7个月前

PM_DIALOG.

嗨Joachim,

感谢您的问题和您对我们的BLE解决方案的兴趣。

1. You can program the flash using the Flash Programmer from SmartSnippets Toolbox. Please see section 15. SPI Flash Programmer from theUM-B-083 SmartSnippets Toolbox User Manual (HTML)user guide.I am attaching below useful documents to check too :

You should also place the jumpers in J1 header in the “SPI Position”.

你能澄清这句话吗?我还应该构建Keil项目并使用工具箱才能使用特定二进制刻录闪光灯。您将找到一个选项来制作设备启动,因此可以从Flash启动。

3. The Pro-Dk, as all our DKs, contain a Segger J-Link device that provides SWD capability. By default the J-Link interface is connected onto target device (DA14531 daughter board in our case). However, it is possible to connect it to your own board, allowing the Pro-DK to act as a Debug Probe. In case of the DA14531 Pro-Dk, you should ensure that the jumpers are placed to the correct positions and then connect the own board to the DK using jumper wires – please see attached.

DA14531 Pro-DK – Custom board

J2 PIN4(黑色)àGND

J2引脚1(红色)®电源电压

J1 Pin 23 (blue) à SWDIO

J2 Pin 21 (yellow) à SWCLK

请注意,如果您自己的电路板已有电源,例如,电池不需要3V3(红线)。除此之外,建议使用优质的跳线。

谢谢,PM_DIALOG.

Attachment 尺寸
swd_connections.zip. 118.36 kB.

7个月前

Joachimkr. 0 points

你好,
Thanks for your answer!

What I understood is, there are only 2 signals, apart from sharing 3.3V power. So, the 10 pin header is completely unused, there is no match?

Do these 2 signals allow a debug session in my target hardware?
如果是,我如何使用电阻停用它们,以便从Macronix Flash开始启动,当没有存在Segger硬件?

What I do not fully understand: The Keil environment produces a binary file and uses the Segger hardware/software to load it into the SoC's RAM.
也许细节缺失:当我将SPI闪存设备放在我的硬件上时,我可以将其“刻录”它进入该闪存,给出,我将其附加到您的Pro开发Boardset。SmartSnippets Toolset用于此功能,并且能够到达Macronix Flash(?)
2nd point not clear: The image, which is produced by Keil for execution from RAM is identical to the image used to flash ? Address scheme is identical?
Do I have to touch/modify the boot script headerfile in some way?

If the SmartSnippets toolset takes care for me, I would assume, it takes care for programming my device's boot header and the result would be, that the image is run from SoC's RAM in identical layout - is that correct?

感谢您回答此类基本和基本问题!
I read a lot, already, but essentials are distributed over lots of material.

问候,
Joachim

7个月前

PM_DIALOG.

嗨joachimkr,

>>>So, the 10 pin header is completely unused, there is no match?

Can you please indicate in which pin on the Pro DK are you referring to ?

To use the debug your custom board via JTAG using the Por-DK, you should just follow the procedure described in the following user manual :

http://lpccs-docs.dialog-seminiondiond.com/tutorial_sdk6/debug_probe.html.

Which flash are you using? Please also see the AN-B-072 application note to see a list of supported FLASH/EEPROM memories.

https://www.dialog-seminile.com/sites/default/files/an-b-072-da14531_booting_options_v1.4.pdf.

For programming the Flash, you should just take to the binary image as created by Keil, and use the Flash Programmer of the SmartSnippets toolbox. No need to modify the binary – you should just need to make the device bootable.

Please refer to the user manual :

http://lpccs-docs.dialog-semiconductor.com/UM-B-083/index.html

谢谢,PM_DIALOG.

7个月前

Joachimkr. 0 points

你好,thanks for the swd link. I understood that now.

您让我向Pro套件上指示PIN。但我指的是DA14531女儿板上的整套10个未填充的针脚。它们看起来像,才能携带所需的针脚。我拥有一个对话框的板,名为DA14585iozmsor套件。它与Segger接口板相结交,以10个引脚结尾,2行为5个引脚,带有母连接器的细间距平板电缆。相同的连接器,男性,但在DA14531女儿上没有植入。

问题是,如果我可以使用USB到Segger板,如果我创建和填充10针连接器。如果是,您是否有此平线电缆的PIN列表?

您要求Flash设备:我打算使用Macronix,就像女儿板DA14531上的那样。

I understood, the binary file is exactly the same, for RAM and for flash, with DA14531.

非常感谢,

Joachim

7个月前

Joachimkr. 0 points

正如我们所做的单词所指的那样,我谈论J4,它被命名为“Debug”连接器。附件是图像,您将看到J4。我想用它作为蓝图。

Attachment 尺寸
daughterQfn24.zip 173.68 KB

7个月前

Joachimkr. 0 points

Here is the equivalent connector, populated on the DA14585 IoT Sensor kit. You see the same connector and I own the entire kit with (Segger) hardware. It makes sense to consolidate this connector and programmer interfaces.
Attached is the photo from that bottom side, PCB. I exchanged by mistake female / male.

Attachment 尺寸
DA14585-DebugPort.zip 441.97 KB.

7个月前

PM_DIALOG.

嗨Joachim,

对不起,但我很困惑。你有DA14585 IOT传感器套件吗?您使用过哪种母板?如果您在自己的电路板和主板之间有正确的连接,则可以使用您想要的任何连接。

谢谢,PM_DIALOG.

7个月前

Joachimkr. 0 points

我有both开发套件:DA14585的传感器套件,安装在白壳和程序员/调试器连接器中

AND

我有the DA14531 Development Kit Pro, with another connection to the target, through the PCI-X connector.

My purpose, target is,
to connect我自己的董事会, with DA14531, which is currently in development, to the 10 Pin connector.
问题是,无论是捆绑匹配电缆中所需的引脚还是使用带电缆和连接器的调试板都是更好的选择。

接受答案!

7个月前

PM_DIALOG.

嗨Joachim,

DA14585 IOT传感器套件不包含JTAG接口。请参阅嗯- b - 102: DA14585我入门指南oT Multi Sensor Development Kitand figure 6. To flash it over JTAG, you need another board named Interface Board.

由于您拥有DA14531的定制板,因此您应该是Pro-DK以闪烁。以下教程包含所有所需步骤:

http://lpccs-docs.dialog-seminiondiond.com/tutorial_sdk6/debug_probe.html.

谢谢,PM_DIALOG.

接受答案!

7个月前

Joachimkr. 0 points

OK Thanks,
我将在DA14531套件的子板上检查J4标题,并根据需要进行线束。
因此,该事实,具有2行的5个小间距连接器,并不意味着它们是相同的。
Best Regards,
Joachim

7个月前

PM_DIALOG.

Hi Joachim

谢谢你接受我的答案。如果您有后续问题,请提出一个新的论坛帖子。

谢谢,PM_DIALOG.