v01d commented on issue #3157:
URL: 
https://github.com/apache/incubator-nuttx/issues/3157#issuecomment-807179166


   Ok, after looking at the code I understand that "default syslog" is actually 
ver low level and choosing console output for syslog enables SYSLOG_WRITE 
support while at the same time allowing me to enable SYSLOG_BUFFER (which I 
did). However, output is still garbled:
   
   ```
   [    0.000000] Idle Task: esp32_rng_initialize: Initializing RNG
   [    0.030000] init: I (17) wifi:[    0.030000] init: wifi driver task: 4, 
prio:253, stack:6656, core=0[    0.030000] init: 
   [    0.130000] wifi: I (125) wifi:[    0.130000] wifi: wifi firmware 
version: b9e8721[    0.130000] wifi: 
   [    0.130000] wifi: I (126) wifi:[    0.130000] wifi: wifi certification 
version: v7.0[    0.130000] wifi: 
   [    0.130000] wifi: I (126) wifi:[    0.130000] wifi: config NVS flash: 
enabled[    0.130000] wifi: 
   [    0.130000] wifi: I (127) wifi:[    0.130000] wifi: config nano 
formating: disabled[    0.150000] wifi: 
   [    0.150000] wifi: I (138) wifi:[    0.150000] wifi: Init data frame 
dynamic rx buffer num: 32[    0.160000] wifi: 
   [    0.160000] wifi: I (150) wifi:[    0.160000] wifi: Init management frame 
dynamic rx buffer num: 32[    0.160000] wifi: 
   [    0.170000] wifi: I (161) wifi:[    0.170000] wifi: Init management short 
buffer num: 32[    0.170000] wifi: 
   [    0.180000] wifi: I (172) wifi:[    0.180000] wifi: Init dynamic tx 
buffer num: 32[    0.180000] wifi: 
   [    0.180000] wifi: I (173) wifi:[    0.190000] wifi: Init static rx buffer 
size: 1600[    0.190000] wifi: 
   [    0.190000] wifi: I (184) wifi:[    0.190000] wifi: Init static rx buffer 
num: 10[    0.200000] wifi: 
   [    0.200000] wifi: I (195) wifi:[    0.200000] wifi: Init dynamic rx 
buffer num: 32[    0.210000] wifi: 
   [    0.220000] init: esp_wifi_adapter_init: INFO: OK to initialize WiFi 
adapter
   [    0.220000] wifi: phy_version: 4500, 0cd6843, Sep 17 2020, 15:37:07, 0, 2
   [    0.350000] wifi: wifi_set_intr: cpu_no=0, intr_source=0, intr_num=0, 
intr_prio=1
   [    0.360000] wifi: esp_set_isr: INFO: n=0 f=0x40081f94 arg=0 irq=4
   [    0.370000] wifi: esp32_ints_on: INFO mask=00000001 irq=0
   [    0.380000] wifi: I (369) wifi:[    0.380000] wifi: mode : sta 
(a4:cf:12:1b:4c:3c)[    0.380000] wifi: 
   [    0.380000] wifi: I (370) wifi:[    0.390000] wifi: enable tsf[    
0.390000] wifi: 
   [    0.390000] wifi: esp_event_post: Event: base=WIFI_EVENT id=2 data=0 
data_size=0 ticks=4294967295
   [    0.400000] init: esp_wifi_sta_start: INFO: OK to start WiFi station
   
   NuttShell (NSH) NuttX-10.0.1
   nsh> [    0.400000] lpwork: esp_evt_work_cb: INFO: WiFi sta start
   [    0.410000] wifi: I (406) wifi:[    0.410000] wifi: Set ps type: 0
   [    0.410000] wifi: 
   ```
   
   So, I'm not following where the issue is. Maybe it is due to esp32 not 
supporting DMA for UART and thus transfers are character based? 
   
   On the other hand, I'm looking at RAMLOG and it seems it only exposes putc 
and does not use the write facility. Maybe this should also be changed so that 
SYSLOG_WRITE is available when RAMLOG is used.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to