I was working on the issue and got the console working but uart is still not working for the connected sensor. I have enabled Uart1 on the device. I also defined Pins in bsp file. But the uart api is not working as of now.
Regards, Ujjval On Wed, 21 Aug, 2024, 12:42 am Ujjval Rathod, <ujjwalrathod...@gmail.com> wrote: > Hi Szymon, > > I anticipated that and dropped that example and now working on creating my > own simple UART application. I still could not get UART working on > nRF52840-DK. I have set the correct BSP pca10056. > > I have enabled the UART and other requited settings in syscfg.yml > > syscfg.vals: > I2C_0: 1 > UART_1: 1 > UART_0: 1 > CONSOLE_RTT: 0 > CONSOLE_UART: 1 > > Still, First thing is that I could not print anything on the console from > the board. > > If you could help. > > Regards, > Ujjval > > > On Mon, Aug 19, 2024 at 7:21 PM Szymon Janc <szymon.j...@codecoup.pl> > wrote: > >> Hi Ujjval, >> >> Tutorials were bit outdated but air sensor should be updated. >> Please check it now >> >> >> >> On Mon, 12 Aug 2024 at 15:37, Ujjval Rathod <ujjwalrathod...@gmail.com> >> wrote: >> >> > I was following a tutorial but got some linkage errors. I tried to >> change >> > some names as well but it did not help. You could look at the logs given >> > below to help find the issue. >> > >> > Also, that tutorial has some old pkg lists. Cause nimble is not inside >> the >> > core repo now but it is in the separate repo. >> > also, why the headers are named oc instead of oic? As per the rule it >> > should be oic? >> > >> > */dev/myprj/repos/apache-mynewt-core/net/oic/include/oic/* >> > >> > >> https://mynewt.apache.org/latest/tutorials/sensors/air_quality_sensor.html >> > >> > Regards, >> > Ujjval >> > >> > >> > Error: >> > > >> > >> /home/oem/Downloads/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: >> > > >> > >> /home/oem/dev/myprj/bin/targets/air_q/app/apps/air_quality/apps_air_quality.a(main.o): >> > > in function `omgr_app_init': >> > > /home/oem/dev/myprj/apps/air_quality/src/main.c:338: undefined >> reference >> > > to `oc_new_resource' >> > > >> > >> /home/oem/Downloads/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: >> > > /home/oem/dev/myprj/apps/air_quality/src/main.c:339: undefined >> reference >> > to >> > > `oc_resource_bind_resource_type' >> > > >> > >> /home/oem/Downloads/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: >> > > /home/oem/dev/myprj/apps/air_quality/src/main.c:340: undefined >> reference >> > to >> > > `oc_resource_bind_resource_interface' >> > > >> > >> /home/oem/Downloads/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: >> > > /home/oem/dev/myprj/apps/air_quality/src/main.c:341: undefined >> reference >> > to >> > > `oc_resource_set_default_interface' >> > > >> > >> /home/oem/Downloads/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: >> > > /home/oem/dev/myprj/apps/air_quality/src/main.c:343: undefined >> reference >> > to >> > > `oc_resource_set_discoverable' >> > > >> > >> /home/oem/Downloads/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: >> > > /home/oem/dev/myprj/apps/air_quality/src/main.c:344: undefined >> reference >> > to >> > > `oc_resource_set_periodic_observable' >> > > >> > >> /home/oem/Downloads/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: >> > > /home/oem/dev/myprj/apps/air_quality/src/main.c:345: undefined >> reference >> > to >> > > `oc_resource_set_request_handler' >> > > >> > >> /home/oem/Downloads/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: >> > > /home/oem/dev/myprj/apps/air_quality/src/main.c:346: undefined >> reference >> > to >> > > `oc_resource_set_request_handler' >> > > >> > >> /home/oem/Downloads/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: >> > > /home/oem/dev/myprj/apps/air_quality/src/main.c:347: undefined >> reference >> > to >> > > `oc_resource_set_request_handler' >> > > >> > >> /home/oem/Downloads/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: >> > > /home/oem/dev/myprj/apps/air_quality/src/main.c:348: undefined >> reference >> > to >> > > `oc_add_resource' >> > > >> > >> /home/oem/Downloads/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: >> > > >> > >> /home/oem/dev/myprj/bin/targets/air_q/app/apps/air_quality/apps_air_quality.a(main.o): >> > > in function `bleprph_gap_event': >> > > /home/oem/dev/myprj/apps/air_quality/src/main.c:185: undefined >> reference >> > > to `oc_ble_coap_conn_new' >> > > >> > >> /home/oem/Downloads/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: >> > > /home/oem/dev/myprj/apps/air_quality/src/main.c:194: undefined >> reference >> > to >> > > `oc_ble_coap_conn_del' >> > > >> > >> /home/oem/Downloads/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: >> > > >> > >> /home/oem/dev/myprj/bin/targets/air_q/app/apps/air_quality/apps_air_quality.a(main.o): >> > > in function `mynewt_main': >> > > /home/oem/dev/myprj/apps/air_quality/src/main.c:377: undefined >> reference >> > > to `oc_ble_coap_gatt_srv_init' >> > > >> > >> /home/oem/Downloads/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: >> > > >> > >> /home/oem/dev/myprj/bin/targets/air_q/app/@apache-mynewt-core/mgmt/oicmgr/@apache-mynewt-core_mgmt_oicmgr.a(oicmgr.o): >> > > in function `omgr_pkg_init': >> > > >> > >> /home/oem/dev/myprj/repos/apache-mynewt-core/mgmt/oicmgr/src/oicmgr.c:262: >> > > undefined reference to `oc_new_resource' >> > > >> > >> /home/oem/Downloads/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: >> > > >> > >> /home/oem/dev/myprj/repos/apache-mynewt-core/mgmt/oicmgr/src/oicmgr.c:263: >> > > undefined reference to `oc_resource_bind_resource_type' >> > > >> > >> /home/oem/Downloads/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: >> > > >> > >> /home/oem/dev/myprj/repos/apache-mynewt-core/mgmt/oicmgr/src/oicmgr.c:265: >> > > undefined reference to `oc_resource_bind_resource_interface' >> > > >> > >> /home/oem/Downloads/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: >> > > >> > >> /home/oem/dev/myprj/repos/apache-mynewt-core/mgmt/oicmgr/src/oicmgr.c:266: >> > > undefined reference to `oc_resource_set_default_interface' >> > > >> > >> /home/oem/Downloads/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: >> > > >> > >> /home/oem/dev/myprj/repos/apache-mynewt-core/mgmt/oicmgr/src/oicmgr.c:267: >> > > undefined reference to `oc_resource_set_discoverable' >> > > >> > >> /home/oem/Downloads/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: >> > > >> > >> /home/oem/dev/myprj/repos/apache-mynewt-core/mgmt/oicmgr/src/oicmgr.c:268: >> > > undefined reference to `oc_resource_set_request_handler' >> > >> >> >> -- >> pozdrawiam >> Szymon K. Janc >> >