Unable to run Code on microchip on samd21

Created at 2021-12-24 19:04:38

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.

More

Follower
0
Views
177
4 Answers
davidticker
davidticker 2021-12-27

Hiii Amit. You can find the support on RT-Thread Studio IDE, https://www.rt-thread.io/studio.html

Studio.png

Frenkie Wang
Frenkie Wang 2021-12-29

uart_set.JPG
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

Frenkie Wang
Frenkie Wang 2021-12-29

Add ( source "$BSP_DIR/drivers/Kconfig" ) in the project folder's Kconfig to load driver folder's Kconfig, such as:

kconfig.JPG

Frenkie Wang
Frenkie Wang 2022-01-06

You could try new csp 0.1.2, have fix this bug, thank you!

Write Your Answer

Log in to publish your answer.,Click here to log in.

Create
Post

Share