hci_lpuart - v290 - 91x - RAM overflowed

Hello,

hci_lpuart builds fine in VS v290 with thingy91/nrf52840.

If trying with thingy91x/nrf5340/cpuapp/ns,
build is going ok until the very end when RAM overflowed message stops the build,

region `RAM' overflowed by 267184 bytes
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

This case mentions Case ID's of ongoing hci_lpuart issues, maybe its 91x:
339543
338886
(not sure how to search for Case ID, in search box or by URL string)
The docs for hci_lpuart mentions thingy91, maybe ok for 91x too.

thank-you,

  • Made the recommended change to board.cmake and thingy91x/nrf5340/cpuapp/ns has still the ram overflow problem,
    but thingy91x/nrf5340/cpuapp is now flashing ok.
    But just before flashing I had to recover the board ("nrfutil: Flashing failed because the target must be recovered", if Erase Board first before Erase and Flash the Board), and tried again without the fix and flashed ok as well.

    Now when trying to get ble going with lte_ble_gateway on VS v290, running into this error,

    [00:00:00.265,350] <inf> lte_ble_gw: Initializing Bluetooth..
    [00:00:00.265,350] <err> bt_hci_core: No HCI driver registered
    [00:00:00.265,380] <err> lte_ble_gw: Bluetooth init failed (err -19)

    Where this ticket explains a few fixes.
    One fix is to remove disable-rx in the overlay,  but there is no overlay for thingy91x in hci_lpuart.
    Checked v3.0.0-preview1 for a thingy91x board and overlay for lte_ble_gateway and hci_lpuart, but none there either.
    How then to get VS to generate these specific board and overlay files as is done for 9160dk & thingy91?

    thank-you,

  • Simon said:
    But just before flashing I had to recover the board

    If the chips are erased and then reset they will activate readback protection. This feature is by default turned on, and needs to be turned off from SW (which it does in most of our samples). 

    You can copy one of the overlays from e.g. nrf\applications\connectivity_bridge\boards, and do any adjustments if needed.

    Best regards,

    Edvin

Related