I am trying to use serialization to connect an STM32F4 to an ISP1705. My goal is too connect to other BLE devices and read some measurements. I have tried a few of the examples (uart over ble etc) and got them working on the ISP itself. I have tried the BLE AT commands and got them working after some time as well. This doesn't have enough functionality for me to read measurements though. I have the connectivity firmware flashed on the nRF52, and can talk to it over UART from my STM. I have a basic code example working for this allowing me to send RAW uart messages and get a response. The binary message is the mesage from UART RAW protocol
uint8_t buff[] = {0x04, 0x00, 0x00, 0x78, 0x41, 0x03}; ble_send_raw(buff, 6);
which gives me the following response:
0x06 0x00 0x01 0x78 0x01 0x30 0x00 0x00
So the communication between the STM32 and nRF52 is working.
The next step is to get the serialization library working on the host chip (STM32) so that i can use all API calls. This is where i am stuck, i have seen the Serialization page and Running a serialized application . I tried to look at the Heart rate application and base the files that i need on that. I copied the /components/serialization folder to my STM32 project, and the softdevice/s132/headers since it looked like it needed some of those files. But after this i dont know where to continue, how i need to compile all files correctly, where i need to start porting, what files to include to start using functions. I see the API functions in the middleware files. For example 'sd_ble_gap_appearance_set' in 'serialization/application/codecs/ble/middlewares/app_mw_ble_gap.c' yet i dont see where these functions are included from since the file doesnt have a corresponding header. When i try to call that function and go to its defenition it goes to the 'SVCALL(SD_BLE_GAP_APPEARANCE_SET, uint32_t, sd_ble_gap_appearance_set(uint16_t appearance))' line in ble_gap.h and doesn't reach the function implementation in the middleware.
I would love some direction in where to start actually porting the serialization library to a different processor and what needs to be done to compile and include everything correctly. Or maybe there an STM32 port that's already available?
Greetings