Hi,
I am hoping to get some guidance on implementing a HAL driver for the b5som. I intend to add an SPI based CAN driver to the b5som device OS build. To start off I am attempting to simply add an “empty” can_hal.cpp (form template) + slight modification of can_hal.h such that the application code can compile and run using the CANChannel class. I have however gotten into a state where using the CANChannel Class now causes an SOS hardfault.
What I have done so far
- Added can_hal.cpp source file to nRF hal src.
- added hal_dynalib_can.h to dynalib export header in nRF hal src
- modified hal_duynalib_can.h to not exclude the nRF chip.
- added PROVIDE ( dynalib_location_hal_can = system_part1_module_table + 116 ); to module export linker file.
All of this has let me build the application code but it hardfaults on the instantiation of the CANChannel class. possibly a linker issue?
Thanks in advance for any help.