SmartSnippets Toolbox on Raspberry

⚠️
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 https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
6 posts / 0 new
Last post
gme_johannes
Offline
Last seen: 7 months 1 week ago
Joined: 2017-12-22 10:09
SmartSnippets Toolbox on Raspberry

Dear Dialog Support,

we are setting up a programming and testing environment based on Raspberry Pi 4. Unfortunately you offer SmartSnippets only for x86_64.
Our programming procedure works with system calls of the toolbox to erase/program/verify flash.

Do you see any possibility to port this procedure to a Raspberry Pi with armv7l?

Best regards

Johannes

Device: 
PM_Dialog
Offline
Last seen: 2 days 9 hours ago
Staff
Joined: 2018-02-08 11:03
Hi gme_johannes,

Hi gme_johannes,

Thanks for your forum post. SO, if I understood your question, your requirement is to run the SS Toolbox on the Raspberry Pi to program the BLE device? Is that correct? What is the device that you are using? You could use the Command Line Interface to program it.

Thanks, PM_Dialog

gme_johannes
Offline
Last seen: 7 months 1 week ago
Joined: 2017-12-22 10:09
Correct. I want to use

Correct. I want to use Raspberry Pi 4 to programm our device (DA14585).

What are you referring to with CLI? In windows I use CLI, like

"C:/DiaSemi/SmartSnippetsStudio2.0.12/Toolbox/SmartSnippetsToolbox.exe -type spi -chip DA14585-00 -cs P0_7 -com_port 16 -baudrate 57600 -y [...]"

I want to do the same thing with the SmartSnippets CLI in Linux, but it would require binaries that can run on ARMv7. I only found SmartSnippets Toolbox for x86_64 architecture.

 

Thanks,

Johannes

gme_johannes
Offline
Last seen: 7 months 1 week ago
Joined: 2017-12-22 10:09
Dear Dialog Support,

Dear Dialog Support,
were you able to come up with an answer?

Maybe it is helpful if I rephrase it

(1) Are there ARMv7 binaries available for the SmartSnippets toolbox that would allow to execute a programming procedure on Raspberry Pi 4?
(2) Alternatively, is it possible to disclose the raw UART communication to empty, program and verify a flash attached to a DA14585?

Thanks,

Johannes

PM_Dialog
Offline
Last seen: 2 days 9 hours ago
Staff
Joined: 2018-02-08 11:03
Hi gme_johannes,

Hi gme_johannes,

Apologies for the delay. Not it is more clear. The SS Toolbox is available either for Windows or Linux OS. Please check the DA14585 and you will find all the available versions under “Development Tools” section.

https://www.dialog-semiconductor.com/products/connectivity/bluetooth-low-energy/smartbond-da14585-and-da14586

Programming the DA14585 via the Raspberry Pi 4 is not a straight-forward procedure and is not supported too. There are a couple of ways for programming our Devices via the SS Toolbox or the CLI programmer. 

In fact, the Raspberry Pi 4 should do what the SS Tollbox does in order to program the SPI Flash. The SST does not support any flash capabilities by default. When the “Connect” button is pressed through the tool, a small firmware is downloaded into the DA14585 :  flash_programmer_585.bin in case of UART and jtag_programmer_585.bin in case of JTAG.

Please check the 6.0.14.1114\utilities\flash_programmer project of the SDK and you can see the aforementioned options.

So, when this firmware has been downloaded, then the SST sends commands to the DA14585 in order to execute code and initiate the programming procedure. You could find them in the fowling document :

http://lpccs-docs.dialog-semiconductor.com/UM-B-119_DA14585-DA14531_SW_Platform_Reference/Appendix/Appendix.html#flash-programmer

A possible solution might be download the flash_programmer_585.bin to the DA14585, and start sending the commands from the Raspberry Pi 4 via UART to start programming the flash. We haven’t done this procedure with a Raspberry Pi 4, so it’s not tested or supported.

Thanks, PM_Dialog

gme_johannes
Offline
Last seen: 7 months 1 week ago
Joined: 2017-12-22 10:09
Hi PM_Dialog,

Hi PM_Dialog,

thank you, the second URL seems to be helpful to achieve a "low level" programming procedure without SST. I might try to attempt it.

In any case, with the rise of ARM and the popularity of Raspberry Pi or similar platforms, I believe there would be quite some interest for ARM binaries of SST in the future :-)

Thanks, 

Johannes