logo elektroda
logo elektroda
X
logo elektroda

Undefined Reference Issues in Firmware of BK7231T Sample from OBK: Debug, Role_Launch, Ethernetif

Fluez 444 3
ADVERTISEMENT
  • #1 20737350
    Fluez
    Level 2  
    Hello first Post here..
    i run in some issues with my Firmware.
    maybe someone can help me.

    
    31_ota.ld
    Debug/obj/uart_bk.o: In function `bk_printf':
    C:CodeProjectsOpenBK7231Tsdkplatformsbk7231tbk7231t_os/beken378/driver/uart/uart_bk.c:119: undefined reference to `__wrap_vsnprintf'
    Debug/obj/role_launch.o: In function `rl_write_bssid_info':
    C:CodeProjectsOpenBK7231Tsdkplatformsbk7231tbk7231t_os/beken378/func/joint_up/role_launch.c:60: undefined reference to `__wrap_sprintf'
    Debug/obj/ethernetif.o: In function `low_level_init':
    C:CodeProjectsOpenBK7231Tsdkplatformsbk7231tbk7231t_os/beken378/func/lwip_intf/lwip-2.1.3/port/ethernetif.c:140: undefined reference to `CFG_GetOpenBekenHostName'
    C:CodeProjectsOpenBK7231Tsdkplatformsbk7231tbk7231t_os/beken378/func/lwip_intf/lwip-2.1.3/port/ethernetif.c:144: undefined reference to `__wrap_sprintf'
    Debug/obj/mem.o: In function `mem_overflow_check_raw':
    C:CodeProjectsOpenBK7231Tsdkplatformsbk7231tbk7231t_os/beken378/func/lwip_intf/lwip-2.1.3/src/core/mem.c:108: undefined reference to `__wrap_snprintf'
    C:CodeProjectsOpenBK7231Tsdkplatformsbk7231tbk7231t_os/beken378/func/lwip_intf/lwip-2.1.3/src/core/mem.c:119: undefined reference to `__wrap_snprintf'
    Debug/obj/str_arch.o: In function `os_snprintf':
    C:CodeProjectsOpenBK7231Tsdkplatformsbk7231tbk7231t_os/beken378/os/str_arch.c:79: undefined reference to `__wrap_vsnprintf'
    collect2.exe: error: ld returned 1 exit status
    make[1]: *** [application.mk:778: application] Error 1
    make[1]: Leaving directory '/cygdrive/c/CodeProjects/OpenBK7231Tsdk/platforms/bk7231t/bk7231t_os'
    make: *** [Makefile:5: mp] Error 2
    make: Leaving directory '/cygdrive/c/CodeProjects/OpenBK7231Tsdk/platforms/bk7231t/bk7231t_os'
    


    Should be the right folder.

    Screenshot of a folder containing files from the OpenBK7231Tsdk project. Screenshot of a Windows file manager displaying the contents of the apps folder in the CodeProjects/OpenBK7231Tsdk path.


    I'm on Windows 11. Cygwin installed with following packages:
    Screenshot showing installed Cygwin packages.

    tried the the demo app and the clean App install from git.

    Also i tried and the
     ./build_app.sh apps/template_demo template_demo 1.0.0 
    method.
  • ADVERTISEMENT
  • #2 20737397
    p.kaczmarek2
    Moderator Smart Home
    This is because we migrated to the lowweight sprintf wrapper and didn't update the obsolete Beken samples. Why are you trying to compile the template_demo?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #4 20737759
    p.kaczmarek2
    Moderator Smart Home
    Hello, as I said - this will not build at the moment, unless you define a stub for sprintf. It's not maintained currently.

    If you want to build something, you should rather try building the main OpenBeken project, which should compile without errors.

    If you need to compile that little sample code, let me know, I can fix it for you, if that's really needed.
    Helpful post? Buy me a coffee.
ADVERTISEMENT