Porting Sqlite to freertos
(1) By Mushtakh (mushtakh) on 2020-10-28 07:35:10 [source]
Hi, I want to port sqlite in freertos with STM32f4 or nRF52832. I am a newb in sqlite and it's porting. Can you please provide me any link that explains the porcedre or steps to be followed to achieve the goal?
(2.1) By Gunter Hick (gunter_hick) on 2020-10-28 08:40:29 edited from 2.0 in reply to 1 [link] [source]
I have no idea what libraries freeRTOS provides, except that Wikipedia states "next to nothing". This means you will probably have to implement your own VFS layer to provide file system, locking, timer/sleep and misceallaneous other services. There is some documentation of the VFS layer and some sample code for inserting a "shim VFS" to allow interception and debugging of VFS methods. I am using a test harness shim VFS so that VFS calls are duplicated and results compared between the standard linux VFS and my own VFS. Maybe a similar approach - developing a VFS under linux that pretends to be running under freeRTOS - would work in your case. There are also numerous compile time options to reduce SQlite footprint so that it may run in embedded environments.