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
Subseries:ATSAMD21A MCU:ATSAMD21J18A
Adaptor:J-LINK Port:SWD
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.
Hiii Amit. You can find the support on RT-Thread Studio IDE, https://www.rt-thread.io/studio.html
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
in rtconfig.h
Should compile success now
Add ( source "$BSP_DIR/drivers/Kconfig"
) in the project folder's Kconfig to load driver folder's Kconfig, such as: