Hi, Use: MDK-ARM V4.14, RL-ARM V4.13 Processor: LPC2478 (MCB2470). The Code of the program:
__task void task_main (void) { finit();// =>DAbt_Handler os_itv_set(100); while(1) { os_itv_wait (); } } int main (void) { os_sys_init(task_main); while (1); }
When calling the functions processor finit() leaves in interruption DAbt_Handler. In project is connected Retarget.c., Size Heap = 2048. The Mode MicroLib out-of-work. Unless use RL-RTX, that RL-FlashFS works orderly. Soobscheniya in forum I did not help. We Ask the pardon for my english.
Investigated the source code RL-FlashFS. The program hangs when calling sequences:
finit() -> _mutex_acquire(&_stream_list_lock);( START_LOCK (int))-> mutex_rel (*mutex) ...
The reason for the error - (* _stream_list_lock) == 0; Tell me how to properly declare _stream_list_lock, so that it does not conflict with the RL-RTX.