Where do I find note_c_hooks

Hi All,

I have just resurrected an old project that uses Zephyr and updated the note-c libraries. However, I can’t find updated versions of note_c_hooks.c and note_c_hooks.h. I am getting a number of errors from note_c_hooks.c. It is not compatible with Zephyr 4.4.

Any help finding these would be appreciated.

Thanks in advance,

Rob

Hi @rlkeith

Are you using the note-zephyr project?

Thanks,

Alex

Hi Alex,

Thanks for the reply. I am not using the note-zephyr project. Are there some instructions on how to add it to my west installation. Apert from adding the lines described to the .yml manifest, do I need to run a command within the venv?

Regards,

Rob

Rob,

Yes, you can find the usage information here GitHub - blues/note-zephyr: Zephyr West module & examples for Notecard · GitHub. This has instructions for how to integrate it with your west installation.

There are a couple of configs specified there that you’ll need to add to your prj.conf file:

# Required by `note-c`
CONFIG_NEWLIB_LIBC=y
CONFIG_BLUES_NOTECARD=y
# Optional: Enable logging
CONFIG_BLUES_NOTECARD_LOGGING=y

This has been tests up to Zephyr 3.7 (the current LTS) but I’m confident it should still work with 4.4. Let me know if that is not the case.

Thanks,

Alex

Thanks again. I am wondering whether it is the right thing to use. The old project runs on the ESP32 architecture. I am moving it to the Ezurio/Nordic SOM. My very old project ran on the Swan, programmed with PlatformIO, but It used an external BLE module that didn’t work well.

I’ll give it a go. There are changes between 3.7 and 4.4, particularly with the cryptographic libraries, but that shouldn’t affect the I2C communications. There is an obvious change between 4.1 and 4.4 because the old note_c_hooks.c, which worked with 4.1, now throws numerous errors.

Regards,

Rob