This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf52 Bootloader_secure_ble

Hello, I am using nrf52 with sdk 13.0.0. Bootloader_secure_ble gives error while compiling. What should I do ?

        Error[Lt009]: Inconsistent wchar_t size 
        micro_ecc_lib_uECC.c.o(micro_ecc_lib_nrf52.a) has wchar_t size 16 bits 
        app_error_weak.o and 66 other objects have wchar_t size 32 bits 
Parents
  • @hhuseyin: I apologize for my late reply, I was out of office on travel last week. Are you using the IAR v8.10 or v8.11? If so you need to modify the Makefile in external\micro-ecc\nrf52_iar\armgcc to not use the -fshort-wchar flag, i.e. line 32 in the Makefile should look like this

    CFLAGS += -fno-builtin --short-enums 
    

    This is because IAR v7.x set wchar_t size 2 bytes(16bits), but v8.x sets it to 4 bytes(32bits) so by removing the -fshort-wchar flag you set the size to 4 bytes.

Reply
  • @hhuseyin: I apologize for my late reply, I was out of office on travel last week. Are you using the IAR v8.10 or v8.11? If so you need to modify the Makefile in external\micro-ecc\nrf52_iar\armgcc to not use the -fshort-wchar flag, i.e. line 32 in the Makefile should look like this

    CFLAGS += -fno-builtin --short-enums 
    

    This is because IAR v7.x set wchar_t size 2 bytes(16bits), but v8.x sets it to 4 bytes(32bits) so by removing the -fshort-wchar flag you set the size to 4 bytes.

Children
No Data
Related