stm32f4 pjsip

161 views
Skip to first unread message

Александр Фатеев

unread,
Aug 3, 2017, 6:26:15 AM8/3/17
to embox-devel
Добрый день, у меня не получается собрать рабочий проект на stm32f4 с pjsip. Можно ли попросить у вас помощи, что б вы это сделали? на каких условиях это можно сделать?

Alex Kalmuk

unread,
Aug 3, 2017, 6:45:26 AM8/3/17
to embox...@googlegroups.com
Добрый день,

Да, конечно, мы и сами заинтересованы в работающих темплейтах :) Попробуем починить. Сложно пока сказать сколько времени займет, возможно пару дней. Отпишемся Вам по мере получения результатов.

3 августа 2017 г., 13:26 пользователь Александр Фатеев <luse...@gmail.com> написал:
Добрый день, у меня не получается собрать рабочий проект на stm32f4 с pjsip. Можно ли попросить у вас помощи, что б вы это сделали? на каких условиях это можно сделать?

--
You received this message because you are subscribed to the Google Groups "embox-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to embox-devel+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Александр Фатеев

unread,
Aug 3, 2017, 6:56:10 AM8/3/17
to embox-devel
Я собрал ветку мастер с настройками arm/stm32f4cube. Портировал туда embox.driver.audio.stm32f4_pa и include third_party.pjproject.simpleua, могу выложить на гитхаб в отдельную ветку. Всё собирается, прошивается. Камень у меня STM32F429VI, у которого 256кб озу и 2мб флеша, впаяный в плату stm32f4-discovery. Проект запускаю - hard_fault и перезагрузка.

embox>pjsip_simpleua sip:te...@192.168.1.4                                       
00:01:38.150        critsec !..................................................d
00:01:38.163 os_core_unix.c !pjlib 2.2.1 for POSIX initialized
00:01:38.169 sip_endpoint.c  Creating endpoint instance...
00:01:38.190  ept0x10000824  Mutex created
00:01:38.195 edpt0x10006a64  Mutex created
00:01:38.200  mtx0x10006e64  Mutex created
00:01:38.205  mtx0x10007064  Mutex created
00:01:38.209  mtx0x10007264  Mutex created
00:01:38.214  mtx0x10007464  Mutex created
00:01:38.219  mtx0x10007664  Mutex created
00:01:38.224  mtx0x10007864  Mutex created
00:01:38.228  mtx0x10007a64  Mutex created
00:01:38.233  mtx0x10007c64  Mutex created
00:01:38.238  mtx0x10007e64  Mutex created
00:01:38.243  ioq0x10007f24  Mutex created
00:01:38.247          pjlib  select() I/O Queue created (0x10006b24)
00:01:38.255 sip_endpoint.c  Module "mod-msg-print" registered
00:01:38.261        hashtbl  hash table 0x100083d4 created from pool pooldbg
00:01:38.270 tmgr0x10008524  Mutex created
00:01:38.274  atm0x100085e4  Mutex created
00:01:38.279 sip_transport.  Transport manager created.
 
hard_fault

Александр Фатеев

unread,
Aug 3, 2017, 6:58:43 AM8/3/17
to embox-devel
Я имел ввиду заказать у вас работу по написанию кода под F4, мне нужен sip телефон на f4 с wifi. Может ли ваша команда этим занятся и на каких условиях?

четверг, 3 августа 2017 г., 13:45:26 UTC+3 пользователь Александр Калмук написал:
Добрый день,

Да, конечно, мы и сами заинтересованы в работающих темплейтах :) Попробуем починить. Сложно пока сказать сколько времени займет, возможно пару дней. Отпишемся Вам по мере получения результатов.
3 августа 2017 г., 13:26 пользователь Александр Фатеев <luse...@gmail.com> написал:
Добрый день, у меня не получается собрать рабочий проект на stm32f4 с pjsip. Можно ли попросить у вас помощи, что б вы это сделали? на каких условиях это можно сделать?

--
You received this message because you are subscribed to the Google Groups "embox-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to embox-devel...@googlegroups.com.

Anton Bondarev

unread,
Aug 3, 2017, 7:02:39 AM8/3/17
to embox...@googlegroups.com
Выкладывайте конечно! Если это конечно не закрытый код.

--

Anton Bondarev

unread,
Aug 3, 2017, 7:05:51 AM8/3/17
to embox...@googlegroups.com
Сейчас в личку напишу.

3 августа 2017 г., 13:58 пользователь Александр Фатеев <luse...@gmail.com> написал:
To unsubscribe from this group and stop receiving emails from it, send an email to embox-devel+unsubscribe@googlegroups.com.

Александр Фатеев

unread,
Aug 3, 2017, 7:46:48 AM8/3/17
to embox-devel
Не могу в ваш репозиторий свою ветку залить. Выдает ошибку Authentication using OAuth failed.
Сделал свой репозиторий https://github.com/FateevAlexandr/test_rep

Александр Фатеев

unread,
Aug 3, 2017, 7:48:32 AM8/3/17
to embox-devel
make confload-platform/pjsip/stm32f4discovery

четверг, 3 августа 2017 г., 14:46:48 UTC+3 пользователь Александр Фатеев написал:

Александр Фатеев

unread,
Aug 3, 2017, 8:27:18 AM8/3/17
to embox-devel
Я сделал новый репозиторий через форк https://github.com/FateevAlexandr/embox. Ветка pjsip_stm32f4discovery.

Alex Kalmuk

unread,
Aug 3, 2017, 9:51:10 AM8/3/17
to embox...@googlegroups.com
Попробуйте ветку fix-pjsip, у меня на ней pjsip не падает.
Нужно собрать новым компилятор типа 5.4.1, темплейт все тот же, менять ничего не нужно (мб только lds.conf под вашу железку).

2017-08-03 15:27 GMT+03:00 Александр Фатеев <luse...@gmail.com>:
Я сделал новый репозиторий через форк https://github.com/FateevAlexandr/embox. Ветка pjsip_stm32f4discovery.

Александр Фатеев

unread,
Aug 4, 2017, 5:02:07 AM8/4/17
to embox-devel
Да, действительно на этой ветке собирается и запускается, но при звонке вываливается.

00:00:22.453  tsx0x1000f6a4  ....Error sending Response msg 180/INVITE/cseq=15770 (tdta%p): Out of memoy

При чем пробывал увеличивать
include embox.net.skbuff_data(amount_skb_data=6,data_size=1600)
include embox.kernel.thread.core(thread_pool_size=4,thread_stack_size=6000)
include embox.mem.static_heap2(heap_size=90000)

ниче не помогает, ошибка та же.

embox>pjsip_simpleua
of fun!00:00:08.655        critsec !...................................................................d
00:00:08.666 os_core_unix.c !pjlib 2.2.1 for POSIX initialized
00:00:08.672 sip_endpoint.c  Creating endpoint instance...
00:00:08.681  ept0x100004a4  Mutex created
00:00:08.685 edpt0x10006664  Mutex created
00:00:08.689  mtx0x10006a64  Mutex created
00:00:08.693  mtx0x10006c64  Mutex created
00:00:08.697  mtx0x10006e64  Mutex created
00:00:08.701  mtx0x10007064  Mutex created
00:00:08.704  mtx0x10007264  Mutex created
00:00:08.708  mtx0x10007464  Mutex created
00:00:08.712  mtx0x10007664  Mutex created
00:00:08.716  mtx0x10007864  Mutex created
00:00:08.720  mtx0x10007a64  Mutex created
00:00:08.724  ioq0x10007b24  Mutex created
00:00:08.727          pjlib  select() I/O Queue created (0x10006724)
00:00:08.733 sip_endpoint.c  Module "mod-msg-print" registered
00:00:08.739        hashtbl  hash table 0x10007fd4 created from pool pooldbg
00:00:08.746 tmgr0x10008124  Mutex created
00:00:08.750  atm0x100081e4  Mutex created
00:00:08.753 sip_transport.  Transport manager created.
00:00:08.759  atm0x10008424  Mutex created
00:00:08.763  udp0x100084e4  Mutex created
00:00:08.767        hashtbl  0x10007fd4: New p_entry 0x100085fc created, pool used=0, cap=2147483647
00:00:08.776        hashtbl  0x10007fd4: p_entry 0x100085fc value set to 0x100082a4
00:00:08.783          udp%p  SIP UDP transport started, published address is 192.168.1.128:5060
00:00:08.792        hashtbl  hash table 0x100080dc created from pool pooldbg
00:00:08.798       tsxlayer  Mutex created
00:00:08.802 sip_endpoint.c  Module "mod-tsx-layer" registered
00:00:08.808 sip_endpoint.c  Module "mod-stateful-util" registered
00:00:08.814   ua0x1000a9a4  Mutex created
00:00:08.817        hashtbl  hash table 0x1000aa1c created from pool pooldbg
00:00:08.824 sip_endpoint.c  Module "mod-ua" registered
00:00:08.829 sip_endpoint.c  Module "mod-invite" registered
00:00:08.835 sip_endpoint.c  Module "mod-100rel" registered
00:00:08.840 sip_endpoint.c  Module "mod-simpleua" registered
00:00:08.845 sip_endpoint.c  Module "mod-msg-log" registered
Pa_Initialize
00:00:08.852       pa_dev.c  PortAudio sound library initialized, status=0
00:00:08.859       pa_dev.c  PortAudio host api count=1
00:00:08.864       pa_dev.c  Sound device count=1
Pa_GetDeviceInfo: 0 = 0x080542e8
00:00:08.871      codec-mgr  Mutex created
00:00:08.875  mtx0x1000c5e4  Mutex created
00:00:08.879  mtx0x1000c7e4  Mutex created
00:00:08.883  mtx0x1000c9e4  Mutex created
00:00:08.887  mtx0x1000cbe4  Mutex created
00:00:08.891  mtx0x1000cde4  Mutex created
00:00:08.894  mtx0x1000cfe4  Mutex created
00:00:08.898  mtx0x1000d1e4  Mutex created
00:00:08.902  mtx0x1000d3e4  Mutex created
00:00:08.906  mtx0x1000d5e4  Mutex created
00:00:08.910  ioq0x1000d6a4  Mutex created
00:00:08.914          pjlib  select() I/O Queue created (0x1000c2a4)
000:00:08.920    00:00:08.920          media !Thread started
0d started
!Thr      media !Thread started
00:00:08.925           g611 !Mutex created
00:00:08.931     simpleua.c  Ready to accept incoming calls...
00:00:21.794 sip_endpoint.c  Processing incoming message: Request msg INVITE/cseq=15770 (rdata0x1000866)
00:00:21.804     simpleua.c  .RX 759 bytes Request msg INVITE/cseq=15770 (rdata0x10008664) from UDP 192:
INVITE sip:te...@192.168.1.128 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.152:5060;rport;branch=z9hG4bKPj1d7dd351-d526-4ea3-8785-7b86409bf5df
Max-Forwards: 70
From: <sip:simp...@192.168.1.152>;tag=68b1f61d-d849-4553-9f94-b78f4d9d6fbd
To: sip:te...@192.168.1.128
Contact: <sip:simp...@192.168.1.152:5060>
Call-ID: a96b59b3-2d61-49ad-af56-72574d8de265
CSeq: 15770 INVITE
Allow: INVITE, ACK, BYE, CANCEL, UPDATE
Supported:
Content-Type: application/sdp
Content-Length:   278

v=0
o=- 3710825906 3710825906 IN IP4 192.168.1.152
s=pjmedia
t=0 0
m=audio 4000 RTP/AVP 0 8 96
c=IN IP4 192.168.1.152
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.1.152
a=sendrecv
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-16

--end msg--
00:00:21.885  dlg0x1000eae4  .Mutex created
00:00:21.890  atm0x1000f9a4  .Mutex created
00:00:21.894 glck0x1000fa64  .Mutex created
00:00:21.898  tsx0x1000f6a4  .Mutex created
00:00:21.902  tsx0x1000f6a4  .tsx_key=s$z9hG4bKPj1d7dd351-d526-4ea3-8785-7b86409bf5df
00:00:21.910        hashtbl  .0x100080dc: New p_entry 0x1000f3a4 created, pool used=0, cap=2147483647
00:00:21.919        hashtbl  .0x100080dc: p_entry 0x1000f3a4 value set to 0x1000f6a4
00:00:21.927  tsx0x1000f6a4  ..Transaction created for Request msg INVITE/cseq=15770 (rdata0x10008664)
00:00:21.936  dlg0x1000eae4  .Entering pjsip_dlg_inc_lock(), sess_count=0
00:00:21.942  dlg0x1000eae4  .Leaving pjsip_dlg_inc_lock(), sess_count=1
00:00:21.949  dlg0x1000eae4  .Entering pjsip_dlg_inc_lock(), sess_count=1
00:00:21.955  dlg0x1000eae4  .Leaving pjsip_dlg_inc_lock(), sess_count=2
00:00:21.962  dlg0x1000eae4  .Entering pjsip_dlg_inc_lock(), sess_count=2
00:00:21.968  dlg0x1000eae4  .Leaving pjsip_dlg_inc_lock(), sess_count=3
00:00:21.975  dlg0x1000eae4  .Entering pjsip_dlg_dec_lock(), sess_count=3
00:00:21.981   sip_dialog.c  .Leaving pjsip_dlg_dec_lock() (dlg=0x1000eae4)
00:00:21.988  dlg0x1000eae4  .Entering pjsip_dlg_dec_lock(), sess_count=2
00:00:21.994   sip_dialog.c  .Leaving pjsip_dlg_dec_lock() (dlg=0x1000eae4)
00:00:22.001  dlg0x1000eae4  .Entering pjsip_dlg_inc_lock(), sess_count=1
00:00:22.007  dlg0x1000eae4  .Leaving pjsip_dlg_inc_lock(), sess_count=2
00:00:22.014  dlg0x1000eae4  .Entering pjsip_dlg_inc_lock(), sess_count=2
00:00:22.020  dlg0x1000eae4  .Leaving pjsip_dlg_inc_lock(), sess_count=3
00:00:22.027  dlg0x1000eae4  .Entering pjsip_dlg_dec_lock(), sess_count=3
00:00:22.033   sip_dialog.c  .Leaving pjsip_dlg_dec_lock() (dlg=0x1000eae4)
00:00:22.040  dlg0x1000eae4  .Entering pjsip_dlg_dec_lock(), sess_count=2
00:00:22.047   sip_dialog.c  .Leaving pjsip_dlg_dec_lock() (dlg=0x1000eae4)
00:00:22.053  dlg0x1000eae4  .Entering pjsip_dlg_inc_lock(), sess_count=1
00:00:22.060  dlg0x1000eae4  .Leaving pjsip_dlg_inc_lock(), sess_count=2
00:00:22.066  dlg0x1000eae4  .Entering pjsip_dlg_inc_lock(), sess_count=2
00:00:22.073  dlg0x1000eae4  .Leaving pjsip_dlg_inc_lock(), sess_count=3
00:00:22.079  dlg0x1000eae4  .Entering pjsip_dlg_dec_lock(), sess_count=3
00:00:22.086   sip_dialog.c  .Leaving pjsip_dlg_dec_lock() (dlg=0x1000eae4)
00:00:22.092  dlg0x1000eae4  .Entering pjsip_dlg_dec_lock(), sess_count=2
00:00:22.099   sip_dialog.c  .Leaving pjsip_dlg_dec_lock() (dlg=0x1000eae4)
00:00:22.106  dlg0x1000eae4  .Entering pjsip_dlg_dec_lock(), sess_count=1
00:00:22.112   sip_dialog.c  .Leaving pjsip_dlg_dec_lock() (dlg=0x1000eae4)
00:00:22.119        hashtbl  .0x1000aa1c: p_entry 0x2001372c value set to 0x20013724
00:00:22.126  tsx0x1000f6a4  .Incoming Request msg INVITE/cseq=15770 (rdata0x10008664) in state Null
00:00:22.135  tsx0x1000f6a4  ..State changed from Null to Trying, event=RX_MSG
00:00:22.142  dlg0x1000eae4  ...Transaction tsx0x1000f6a4 state changed to Trying
00:00:22.149  dlg0x1000eae4  ....Entering pjsip_dlg_inc_lock(), sess_count=0
00:00:22.156  dlg0x1000eae4  ....Leaving pjsip_dlg_inc_lock(), sess_count=1
00:00:22.163  dlg0x1000eae4  ....Entering pjsip_dlg_dec_lock(), sess_count=1
00:00:22.170   sip_dialog.c  ....Leaving pjsip_dlg_dec_lock() (dlg=0x1000eae4)
00:00:22.177  dlg0x1000eae4  .UAS dialog created
00:00:22.182  dlg0x1000eae4  .Entering pjsip_dlg_inc_lock(), sess_count=0
00:00:22.188  dlg0x1000eae4  .Leaving pjsip_dlg_inc_lock(), sess_count=1
00:00:22.201  dlg0x1000eae4  .Module mod-invite added as dialog usage, data=0x20013d24
00:00:22.209  dlg0x1000eae4  .Entering pjsip_dlg_inc_lock(), sess_count=1
00:00:22.215  dlg0x1000eae4  .Leaving pjsip_dlg_inc_lock(), sess_count=2
00:00:22.222  dlg0x1000eae4  .Entering pjsip_dlg_dec_lock(), sess_count=2
00:00:22.228   sip_dialog.c  .Leaving pjsip_dlg_dec_lock() (dlg=0x1000eae4)
00:00:22.235  dlg0x1000eae4  ..Entering pjsip_dlg_inc_lock(), sess_count=1
00:00:22.241  dlg0x1000eae4  ..Leaving pjsip_dlg_inc_lock(), sess_count=2
00:00:22.248  dlg0x1000eae4  ..Entering pjsip_dlg_dec_lock(), sess_count=3
00:00:22.255   sip_dialog.c  ..Leaving pjsip_dlg_dec_lock() (dlg=0x1000eae4)
00:00:22.261  dlg0x1000eae4  ..Session count inc to 2 by mod-invite
00:00:22.267  dlg0x1000eae4  .Entering pjsip_dlg_dec_lock(), sess_count=2
00:00:22.274   sip_dialog.c  .Leaving pjsip_dlg_dec_lock() (dlg=0x1000eae4)
00:00:22.281  inv0x1000eae4  .UAS invite session created for dialog dlg0x1000eae4
00:00:22.288  dlg0x1000eae4  ..Entering pjsip_dlg_inc_lock(), sess_count=1
00:00:22.294  dlg0x1000eae4  ..Leaving pjsip_dlg_inc_lock(), sess_count=2
00:00:22.301  atm0x20015524  ..Mutex created
00:00:22.307       endpoint  ..Response msg 180/INVITE/cseq=15770 (tdta%p) created
00:00:22.314  dlg0x1000eae4  ..Entering pjsip_dlg_inc_lock(), sess_count=2
00:00:22.320  dlg0x1000eae4  ..Leaving pjsip_dlg_inc_lock(), sess_count=3
00:00:22.327  dlg0x1000eae4  ..Entering pjsip_dlg_dec_lock(), sess_count=3
00:00:22.334   sip_dialog.c  ..Leaving pjsip_dlg_dec_lock() (dlg=0x1000eae4)
00:00:22.340  dlg0x1000eae4  ..Initial answer Response msg 180/INVITE/cseq=15770 (tdta%p)
00:00:22.348  dlg0x1000eae4  ..Entering pjsip_dlg_dec_lock(), sess_count=2
00:00:22.355   sip_dialog.c  ..Leaving pjsip_dlg_dec_lock() (dlg=0x1000eae4)
00:00:22.362  inv0x1000eae4  ..Sending Response msg 180/INVITE/cseq=15770 (tdta%p)
00:00:22.369  dlg0x1000eae4  ...Sending Response msg 180/INVITE/cseq=15770 (tdta%p)
00:00:22.376  dlg0x1000eae4  ...Entering pjsip_dlg_inc_lock(), sess_count=1
00:00:22.383  dlg0x1000eae4  ...Leaving pjsip_dlg_inc_lock(), sess_count=2
00:00:22.390  tsx0x1000f6a4  ...Sending Response msg 180/INVITE/cseq=15770 (tdta%p) in state Trying
00:00:22.399     simpleua.c  ....TX 472 bytes Response msg 180/INVITE/cseq=15770 (tdta%p) to UDP 192.16:
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.1.152:5060;rport=5060;received=192.168.1.152;branch=z9hG4bKPj1d7dd351-d526-4eaf
Call-ID: a96b59b3-2d61-49ad-af56-72574d8de265
From: <sip:simp...@192.168.1.152>;tag=68b1f61d-d849-4553-9f94-b78f4d9d6fbd
To: <sip:te...@192.168.1.128>;tag=GAx0rK924Dd0nCy4EnQ2gI332Oh57Wn0
CSeq: 15770 INVITE
Contact: <sip:simp...@192.168.1.128:5060>
Allow: INVITE, ACK, BYE, CANCEL, UPDATE, PRACK
Content-Length:  0


--end msg--
00:00:22.453  tsx0x1000f6a4  ....Error sending Response msg 180/INVITE/cseq=15770 (tdta%p): Out of memoy
00:00:22.462  sip_resolve.c  ....Target '192.168.1.152:5060' type=UDP resolved to '192.168.1.152:5060' )
00:00:22.474     simpleua.c  ....TX 472 bytes Response msg 180/INVITE/cseq=15770 (tdta%p) to UDP 192.16:
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.1.152:5060;rport=5060;received=192.168.1.152;branch=z9hG4bKPj1d7dd351-d526-4eaf
Call-ID: a96b59b3-2d61-49ad-af56-72574d8de265
From: <sip:simp...@192.168.1.152>;tag=68b1f61d-d849-4553-9f94-b78f4d9d6fbd
To: <sip:te...@192.168.1.128>;tag=GAx0rK924Dd0nCy4EnQ2gI332Oh57Wn0
CSeq: 15770 INVITE
Contact: <sip:simp...@192.168.1.128:5060>
Allow: INVITE, ACK, BYE, CANCEL, UPDATE, PRACK
Content-Length:  0


--end msg--
00:00:22.528  tsx0x1000f6a4  ....Failed to send Response msg 180/INVITE/cseq=15770 (tdta%p)! err=120012)
00:00:22.538  tsx0x1000f6a4  ....State changed from Trying to Terminated, event=TRANSPORT_ERROR
00:00:22.547  dlg0x1000eae4  .....Transaction tsx0x1000f6a4 state changed to Terminated
00:00:22.554  dlg0x1000eae4  ......Entering pjsip_dlg_inc_lock(), sess_count=2
00:00:22.561  dlg0x1000eae4  ......Leaving pjsip_dlg_inc_lock(), sess_count=3
00:00:22.568     simpleua.c  ......Call DISCONNECTED [reason=503 (Service Unavailable)]
00:00:22.576     simpleua.c  ......One call completed, application quitting...
00:00:22.583  dlg0x1000eae4  .......Session count dec to 2 by mod-invite
00:00:22.589  dlg0x1000eae4  .......Entering pjsip_dlg_inc_lock(), sess_count=3
00:00:22.596  dlg0x1000eae4  .......Leaving pjsip_dlg_inc_lock(), sess_count=4
00:00:22.603  dlg0x1000eae4  .......Entering pjsip_dlg_dec_lock(), sess_count=3
00:00:22.610   sip_dialog.c  .......Leaving pjsip_dlg_dec_lock() (dlg=0x1000eae4)
00:00:22.617  dlg0x1000eae4  ......Entering pjsip_dlg_dec_lock(), sess_count=2
00:00:22.624   sip_dialog.c  ......Leaving pjsip_dlg_dec_lock() (dlg=0x1000eae4)
00:00:22.632         tdta%p  ...Destroying txdata Response msg 180/INVITE/cseq=15770 (tdta%p)
00:00:22.640  atm0x20015524  ...Mutex destroyed by thread thr0x2000c900
00:00:22.646 sip_endpoint.c  ...Releasing pool pooldbg
00:00:22.651  dlg0x1000eae4  ...Entering pjsip_dlg_dec_lock(), sess_count=1
00:00:22.658        hashtbl  ...0x1000aa1c: p_entry 0x2001372c deleted
00:00:22.664  dlg0x1000eae4  ...Dialog destroyed
00:00:22.669  dlg0x1000eae4  ...Mutex destroyed by thread thr0x2000c900
00:00:22.675 sip_endpoint.c  ...Releasing pool pooldbg
00:00:22.681   sip_dialog.c  ...Leaving pjsip_dlg_dec_lock() (dlg=0x1000eae4)


  ______
 |  ____|                                            __          __
 | |___  _ __ ___            ____  ____  ____  _____/ /   _____ / /
 |  ___|| '_ ` _ \          / __ \/ __ \/ __ \/ ___/ /   |_____| |
 | |____| | | | | |_ _ _   / /_/ / /_/ / /_/ (__  )_/    |_____| |
 |______|_| |_| |_(_|_|_)  \____/\____/ .___/____(_)           | |
                                     /_/                        \_\
 ASSERTION FAILED on CPU 0
        at ../src/samples/simpleua.c:760
        in function on_rx_request

status == PJ_SUCCESS
Embox kernel start
runlevel: init level is 0
        unit: initializing embox.driver.serial.stm_usart: done
        unit: initializing embox.driver.clock.cortexm_systick: done

Александр Фатеев

unread,
Aug 4, 2017, 5:13:45 AM8/4/17
to embox-devel
Странный глюк, каким то образом получилось и оно включалось. Делал сброс всё работало. Прошил заново эту же прошивку и снова вываливается. Сброс кнопкой и сброс питания не помогают.

Александр Фатеев

unread,
Aug 4, 2017, 5:19:05 AM8/4/17
to embox-devel
Если запустить пинг с одного компа, и пытатся звонить на плату с другого компа - получаем вот такую проблему, что вылетает. Если убрать пинг, либо пинг и звонок с одного компа, то всё ок.

пятница, 4 августа 2017 г., 12:13:45 UTC+3 пользователь Александр Фатеев написал:

anton.bon...@gmail.com

unread,
Aug 4, 2017, 5:59:07 AM8/4/17
to embox...@googlegroups.com
Да все правильно. К сожалению пакетов хватило только на один вызов, нужно больше памяти что бы это исправить!
--
You received this message because you are subscribed to the Google Groups "embox-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to embox-devel...@googlegroups.com.

Александр Фатеев

unread,
Aug 4, 2017, 6:21:50 AM8/4/17
to embox-devel
После звонка если ничего не менять, то вываливается.
Помогает увеличить include embox.kernel.thread.core(thread_pool_size=2,thread_stack_size=6000)

Александр Фатеев

unread,
Aug 4, 2017, 6:22:22 AM8/4/17
to embox-devel
Подскажите как добавить микрофон?

Anton Bondarev

unread,
Aug 4, 2017, 7:26:24 AM8/4/17
to embox...@googlegroups.com
В stm32f4 не влезет, пока думаем как добавить в stm32f7. И наверное все аудио перевести на bsp из cube.

2017-08-04 13:22 GMT+03:00 Александр Фатеев <luse...@gmail.com>:
Подскажите как добавить микрофон?

--
You received this message because you are subscribed to the Google Groups "embox-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to embox-devel+unsubscribe@googlegroups.com.

Александр Фатеев

unread,
Aug 4, 2017, 8:36:39 AM8/4/17
to embox-devel
Да, cube это правильное решение. У меня камень с 256К ОЗУ и 2мб памяти, поэтому должно влезть, просто скажите где заглушки для микрофона, куда вставлять фунции получения данных с микрофона.

Александр Фатеев

unread,
Aug 11, 2017, 12:52:27 PM8/11/17
to embox-devel
Здравствуйте. На ветке попробовал импортировать элементы проекта с статьи  http://we.easyelectronics.ru/STM32/usb-mikrofon-na-baze-stm32f4-discovery.htmlдля работы с микрофоном. Возникают ряд проблем с импортировавшем файлов,  конфликтов 

Вывод один, надо переписывать под текущую структуру stm32f4_pa.c. Если можно подскажите, пожалуйста, какой методикой лучше идти? Необходимо под STM32F4

Спасибо.


In file included from build/base/include/drivers/audio/mic_main.h:27:0,
                 
from src/drivers/audio/portaudio/waverecorder.c:3:
./build/extbld/third_party/bsp/st_f4/core/STM32F4xx_Ethernet_Example/Utilities/STM32F4-Discovery/stm32f4_discovery.h:277:40: error: unknown type name 'USART_InitTypeDef'
 
void STM_EVAL_COMInit(COM_TypeDef COM, USART_InitTypeDef* USART_InitStruct);
                                       
^
src
/drivers/audio/portaudio/waverecorder.c: In function 'WaveRecorderInit':
src
/drivers/audio/portaudio/waverecorder.c:108:5: error: implicit declaration of function 'NVIC_PriorityGroupConfig' [-Werror=implicit-function-declaration]
     NVIC_PriorityGroupConfig
(NVIC_PriorityGroup_4);
     
^
src
/drivers/audio/portaudio/waverecorder.c:108:30: error: 'NVIC_PriorityGroup_4' undeclared (first use in this function)
     NVIC_PriorityGroupConfig
(NVIC_PriorityGroup_4);
                             
^
src
/drivers/audio/portaudio/waverecorder.c:108:30: note: each undeclared identifier is reported only once for each function it appears in
src
/drivers/audio/portaudio/waverecorder.c: In function 'WaveRecorderStart':
src
/drivers/audio/portaudio/waverecorder.c:134:5: error: implicit declaration of function 'I2S_Cmd' [-Werror=implicit-function-declaration]
     I2S_Cmd
(SPI2, ENABLE);
     
^
src
/drivers/audio/portaudio/waverecorder.c: In function 'WaveRecorder_DMA_Init':
src
/drivers/audio/portaudio/waverecorder.c:149:3: error: unknown type name 'NVIC_InitTypeDef'
   NVIC_InitTypeDef NVIC_InitStructure
;
   
^
src
/drivers/audio/portaudio/waverecorder.c:151:3: error: implicit declaration of function 'RCC_AHB1PeriphClockCmd' [-Werror=implicit-function-declaration]
   RCC_AHB1PeriphClockCmd
(RCC_AHB1Periph_DMA1, ENABLE);
   
^
src
/drivers/audio/portaudio/waverecorder.c:151:26: error: 'RCC_AHB1Periph_DMA1' undeclared (first use in this function)
   RCC_AHB1PeriphClockCmd
(RCC_AHB1Periph_DMA1, ENABLE);
                         
^
src
/drivers/audio/portaudio/waverecorder.c:177:21: error: request for member 'NVIC_IRQChannel' in something not a structure or union
   NVIC_InitStructure
.NVIC_IRQChannel = DMA1_Stream3_IRQn;
                     
^
src
/drivers/audio/portaudio/waverecorder.c:178:21: error: request for member 'NVIC_IRQChannelPreemptionPriority' in something not a structure or union
   NVIC_InitStructure
.NVIC_IRQChannelPreemptionPriority = 10;
                     
^
src
/drivers/audio/portaudio/waverecorder.c:179:21: error: request for member 'NVIC_IRQChannelSubPriority' in something not a structure or union
   NVIC_InitStructure
.NVIC_IRQChannelSubPriority = 10;
                     
^
src
/drivers/audio/portaudio/waverecorder.c:180:21: error: request for member 'NVIC_IRQChannelCmd' in something not a structure or union
   NVIC_InitStructure
.NVIC_IRQChannelCmd = ENABLE;
                     
^
src
/drivers/audio/portaudio/waverecorder.c:181:3: error: implicit declaration of function 'NVIC_Init' [-Werror=implicit-function-declaration]
   NVIC_Init
(&NVIC_InitStructure);
   
^
src
/drivers/audio/portaudio/waverecorder.c: In function 'WaveRecorder_GPIO_Init':
src
/drivers/audio/portaudio/waverecorder.c:194:3: error: unknown type name 'GPIO_InitTypeDef'
   GPIO_InitTypeDef GPIO_InitStructure
;
   
^
In file included from src/drivers/audio/portaudio/waverecorder.c:5:0:
build
/base/include/drivers/audio/waverecorder.h:36:43: error: 'RCC_AHB1Periph_GPIOB' undeclared (first use in this function)
 
#define SPI_SCK_GPIO_CLK                  RCC_AHB1Periph_GPIOB
                                           
^
src
/drivers/audio/portaudio/waverecorder.c:197:26: note: in expansion of macro 'SPI_SCK_GPIO_CLK'
   RCC_AHB1PeriphClockCmd
(SPI_SCK_GPIO_CLK | SPI_MOSI_GPIO_CLK, ENABLE);
                         
^
build
/base/include/drivers/audio/waverecorder.h:42:43: error: 'RCC_AHB1Periph_GPIOC' undeclared (first use in this function)
 
#define SPI_MOSI_GPIO_CLK                 RCC_AHB1Periph_GPIOC
                                           
^
src
/drivers/audio/portaudio/waverecorder.c:197:45: note: in expansion of macro 'SPI_MOSI_GPIO_CLK'
   RCC_AHB1PeriphClockCmd
(SPI_SCK_GPIO_CLK | SPI_MOSI_GPIO_CLK, ENABLE);
                                             
^
src
/drivers/audio/portaudio/waverecorder.c:202:21: error: request for member 'GPIO_Mode' in something not a structure or union
   GPIO_InitStructure
.GPIO_Mode = GPIO_Mode_AF;
                     
^
src
/drivers/audio/portaudio/waverecorder.c:202:34: error: 'GPIO_Mode_AF' undeclared (first use in this function)
   GPIO_InitStructure
.GPIO_Mode = GPIO_Mode_AF;
                                 
^
src
/drivers/audio/portaudio/waverecorder.c:203:21: error: request for member 'GPIO_OType' in something not a structure or union
   GPIO_InitStructure
.GPIO_OType = GPIO_OType_PP;
                     
^
src
/drivers/audio/portaudio/waverecorder.c:203:35: error: 'GPIO_OType_PP' undeclared (first use in this function)
   GPIO_InitStructure
.GPIO_OType = GPIO_OType_PP;
                                   
^
src
/drivers/audio/portaudio/waverecorder.c:204:21: error: request for member 'GPIO_PuPd' in something not a structure or union
   GPIO_InitStructure
.GPIO_PuPd  = GPIO_PuPd_NOPULL;
                     
^
src
/drivers/audio/portaudio/waverecorder.c:204:35: error: 'GPIO_PuPd_NOPULL' undeclared (first use in this function)
   GPIO_InitStructure
.GPIO_PuPd  = GPIO_PuPd_NOPULL;
                                   
^
src
/drivers/audio/portaudio/waverecorder.c:205:21: error: request for member 'GPIO_Speed' in something not a structure or union
   GPIO_InitStructure
.GPIO_Speed = GPIO_Speed_50MHz;
                     
^
src
/drivers/audio/portaudio/waverecorder.c:205:35: error: 'GPIO_Speed_50MHz' undeclared (first use in this function)
   GPIO_InitStructure
.GPIO_Speed = GPIO_Speed_50MHz;
                                   
^
src
/drivers/audio/portaudio/waverecorder.c:208:21: error: request for member 'GPIO_Pin' in something not a structure or union
   GPIO_InitStructure
.GPIO_Pin = SPI_SCK_PIN;
                     
^
In file included from src/drivers/audio/portaudio/waverecorder.c:5:0:
build
/base/include/drivers/audio/waverecorder.h:34:43: error: 'GPIO_Pin_10' undeclared (first use in this function)
 
#define SPI_SCK_PIN                       GPIO_Pin_10
                                           
^
src
/drivers/audio/portaudio/waverecorder.c:208:33: note: in expansion of macro 'SPI_SCK_PIN'
   GPIO_InitStructure
.GPIO_Pin = SPI_SCK_PIN;
                                 
^
src
/drivers/audio/portaudio/waverecorder.c:209:3: error: implicit declaration of function 'GPIO_Init' [-Werror=implicit-function-declaration]
   GPIO_Init
(SPI_SCK_GPIO_PORT, &GPIO_InitStructure);
   
^
src
/drivers/audio/portaudio/waverecorder.c:212:3: error: implicit declaration of function 'GPIO_PinAFConfig' [-Werror=implicit-function-declaration]
   GPIO_PinAFConfig
(SPI_SCK_GPIO_PORT, SPI_SCK_SOURCE, SPI_SCK_AF);
   
^
In file included from src/drivers/audio/portaudio/waverecorder.c:5:0:
build
/base/include/drivers/audio/waverecorder.h:37:43: error: 'GPIO_PinSource10' undeclared (first use in this function)
 
#define SPI_SCK_SOURCE                    GPIO_PinSource10
                                           
^
src
/drivers/audio/portaudio/waverecorder.c:212:39: note: in expansion of macro 'SPI_SCK_SOURCE'
   GPIO_PinAFConfig
(SPI_SCK_GPIO_PORT, SPI_SCK_SOURCE, SPI_SCK_AF);
                                       
^
build
/base/include/drivers/audio/waverecorder.h:38:43: error: 'GPIO_AF_SPI2' undeclared (first use in this function)
 
#define SPI_SCK_AF                        GPIO_AF_SPI2
                                           
^
src
/drivers/audio/portaudio/waverecorder.c:212:55: note: in expansion of macro 'SPI_SCK_AF'
   GPIO_PinAFConfig
(SPI_SCK_GPIO_PORT, SPI_SCK_SOURCE, SPI_SCK_AF);
                                                       
^
src
/drivers/audio/portaudio/waverecorder.c:215:21: error: request for member 'GPIO_Pin' in something not a structure or union
   GPIO_InitStructure
.GPIO_Pin =  SPI_MOSI_PIN;
                     
^
In file included from src/drivers/audio/portaudio/waverecorder.c:5:0:
build
/base/include/drivers/audio/waverecorder.h:40:43: error: 'GPIO_Pin_3' undeclared (first use in this function)
 
#define SPI_MOSI_PIN                      GPIO_Pin_3
                                           
^
src
/drivers/audio/portaudio/waverecorder.c:215:34: note: in expansion of macro 'SPI_MOSI_PIN'
   GPIO_InitStructure
.GPIO_Pin =  SPI_MOSI_PIN;
                                 
^
build
/base/include/drivers/audio/waverecorder.h:43:43: error: 'GPIO_PinSource3' undeclared (first use in this function)
 
#define SPI_MOSI_SOURCE                   GPIO_PinSource3
                                           
^
src
/drivers/audio/portaudio/waverecorder.c:217:40: note: in expansion of macro 'SPI_MOSI_SOURCE'
   GPIO_PinAFConfig
(SPI_MOSI_GPIO_PORT, SPI_MOSI_SOURCE, SPI_MOSI_AF);
                                       
^
src
/drivers/audio/portaudio/waverecorder.c: In function 'WaveRecorder_SPI_Init':
src
/drivers/audio/portaudio/waverecorder.c:227:3: error: unknown type name 'I2S_InitTypeDef'
   I2S_InitTypeDef I2S_InitStructure
;
   
^
src
/drivers/audio/portaudio/waverecorder.c:230:3: error: implicit declaration of function 'RCC_APB1PeriphClockCmd' [-Werror=implicit-function-declaration]
   RCC_APB1PeriphClockCmd
(RCC_APB1Periph_SPI2,ENABLE);
   
^
src
/drivers/audio/portaudio/waverecorder.c:230:26: error: 'RCC_APB1Periph_SPI2' undeclared (first use in this function)
   RCC_APB1PeriphClockCmd
(RCC_APB1Periph_SPI2,ENABLE);
                         
^
src
/drivers/audio/portaudio/waverecorder.c:233:3: error: implicit declaration o
Введите код...

f
function 'SPI_I2S_DeInit' [-Werror=implicit-function-declaration]
   SPI_I2S_DeInit
(SPI2);
   
^
src
/drivers/audio/portaudio/waverecorder.c:234:20: error: request for member 'I2S_AudioFreq' in something not a structure or union
   I2S_InitStructure
.I2S_AudioFreq = Freq/2;//i2s two channel mode
                   
^
src
/drivers/audio/portaudio/waverecorder.c:235:20: error: request for member 'I2S_Standard' in something not a structure or union
   I2S_InitStructure
.I2S_Standard = I2S_Standard_LSB;
                   
^
src
/drivers/audio/portaudio/waverecorder.c:235:36: error: 'I2S_Standard_LSB' undeclared (first use in this function)
   I2S_InitStructure
.I2S_Standard = I2S_Standard_LSB;
                                   
^
src
/drivers/audio/portaudio/waverecorder.c:236:20: error: request for member 'I2S_DataFormat' in something not a structure or union
   I2S_InitStructure
.I2S_DataFormat = I2S_DataFormat_16b;
                   
^
src
/drivers/audio/portaudio/waverecorder.c:236:38: error: 'I2S_DataFormat_16b' undeclared (first use in this function)
   I2S_InitStructure
.I2S_DataFormat = I2S_DataFormat_16b;
                                     
^
src
/drivers/audio/portaudio/waverecorder.c:237:20: error: request for member 'I2S_CPOL' in something not a structure or union
   I2S_InitStructure
.I2S_CPOL = I2S_CPOL_High;
                   
^
src
/drivers/audio/portaudio/waverecorder.c:237:32: error: 'I2S_CPOL_High' undeclared (first use in this function)
   I2S_InitStructure
.I2S_CPOL = I2S_CPOL_High;
                               
^
src
/drivers/audio/portaudio/waverecorder.c:238:20: error: request for member 'I2S_Mode' in something not a structure or union
   I2S_InitStructure
.I2S_Mode = I2S_Mode_MasterRx;
                   
^
src
/drivers/audio/portaudio/waverecorder.c:238:32: error: 'I2S_Mode_MasterRx' undeclared (first use in this function)
   I2S_InitStructure
.I2S_Mode = I2S_Mode_MasterRx;
                               
^
src
/drivers/audio/portaudio/waverecorder.c:239:20: error: request for member 'I2S_MCLKOutput' in something not a structure or union
   I2S_InitStructure
.I2S_MCLKOutput = I2S_MCLKOutput_Disable;
                   
^
src
/drivers/audio/portaudio/waverecorder.c:239:38: error: 'I2S_MCLKOutput_Disable' undeclared (first use in this function)
   I2S_InitStructure
.I2S_MCLKOutput = I2S_MCLKOutput_Disable;
                                     
^
src
/drivers/audio/portaudio/waverecorder.c:241:3: error: implicit declaration of function 'I2S_Init' [-Werror=implicit-function-declaration]
   I2S_Init
(SPI2, &I2S_InitStructure);
   
^
src
/drivers/audio/portaudio/waverecorder.c:243:3: error: implicit declaration of function 'SPI_I2S_DMACmd' [-Werror=implicit-function-declaration]
   SPI_I2S_DMACmd
(SPI2, SPI_I2S_DMAReq_Rx, ENABLE);//enable DMA
   
^
src
/drivers/audio/portaudio/waverecorder.c:243:24: error: 'SPI_I2S_DMAReq_Rx' undeclared (first use in this function)
   SPI_I2S_DMACmd
(SPI2, SPI_I2S_DMAReq_Rx, ENABLE);//enable DMA
                       
^
src
/drivers/audio/portaudio/waverecorder.c: In function 'WaveRecorderStop':
src
/drivers/audio/portaudio/waverecorder.c:282:5: error: implicit declaration of function 'TIM_Cmd' [-Werror=implicit-function-declaration]
     TIM_Cmd
(TIM6, DISABLE);
     
^
src
/drivers/audio/portaudio/waverecorder.c: At top level:
cc1
: error: unrecognized command line option '-Wno-nonnull-compare' [-Werror]
cc1
: error: unrecognized command line option '-Wno-misleading-indentation' [-Werror]
Введите код...


Anton Bondarev

unread,
Aug 11, 2017, 2:28:54 PM8/11/17
to embox...@googlegroups.com
Добрый день. Судя по ошибкам вы включили полую инициализацию оборудования. В Embox большинство уже инициализировано в соответствующих модулях. Просто удалите эти вызовы Например NVIC_Init(&NVIC_InitStructure); точно не нужно

Reply all
Reply to author
Forward
0 new messages