I have atsamd21j18a board but while running the code,my code is not running and it displaying error which is like this:
in the setting i have done like this:
.Base on MCU
RT Thread: 4.0.4
Vendor :Microchip Series:ATSAMD21
Unable to run this code and I am getting error like this:
drivers/drv_common.c:171: undefined reference to `rt_hw_usart_init'
collect2.exe: error: ld returned 1 exit status
make: * [makefile:59: rtthread.elf] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.
You should open the setting, un-click & click the Enable SERCOM3 USART checkbox. Save setting, it will add
#define BSP_USING_UART #define BSP_USING_SERCOM3_USART
Should compile success now
source "$BSP_DIR/drivers/Kconfig" ) in the project folder's Kconfig to load driver folder's Kconfig, such as: