Skip to main content

Posts

Showing posts from June, 2019

An Ada Client & Server on the STM32WB55

Ada WB55 Client & Server Following on from the last blog posting, I now have a client and server implementation in Ada. Mine is not quite as fancy as ST's, ST's allows role reversal where the client can run on the larger board (MB1355C) and the server on the USB dongle (MB1293C). I only support server on MB1355C and client on MB1293C. Getting the code & building You will need gnat2018 or gnat2019 from AdaCore: https://www.adacore.com/download Once that's installed, you will need some library code and the STM32 dir I use: git clone https://github.com/morbos/Ada_Drivers_Library.git git clone https://github.com/morbos/embedded-runtimes.git git clone https://github.com/morbos/STM32.git mv ../embedded-runtimes Ada_Drivers_Library cd STM32/WB/WB55/cli_serv_wb55 make Once make finishes you get 2 ELF32 files in the obj/Debug dir. admin@ubuntu_1604:/tmp/STM32/WB/WB55/cli_serv_wb55$ make rm -f obj/Debug/client_wb55x (export LOADER=ROM_WB55x; gprb...

Ada on the STM32WB

STM32WB This is a new part family that merges an L series microcontroller with the BlueNRG-MS controller realized now as a single die. The microcontroller can run at 64Mhz has 1MB of flash and 256KB of ram. The wireless portion (I say wireless since its not limited to BT/BLE but also supports Thread and Zigbee), runs on a Cortex-M0+ controller and shares the top of the 1MB of flash for its (encrypted) FW. The M0's FW size seems about 256KB or so. The CM4F and CM0+ communicate by using some of the 256KB of ram as a mailbox. This is supported by HW (IPCC) that signals interrupts from one side to the other when data is ready. In the past, as on the SensorTile, the BlueNRG-MS was connected by SPI and that was the transport, now its done by mailbox and hw signalling. Ada Can we do it again? Can we get Ada running usefully on an WB series part with the added burden of the new control over BT/BLE? I will save the readers time here to say, yes, its possible! further, its working. He...