1937 views|3 replies

282

Posts

2

Resources
The OP
 

【Smart Sports Watch】3. Build Development Environment 2 [Copy link]

 

In the previous post, we set up the development environment and downloaded and ran the first program.

In this post we will develop software using freeRtos of RSL10 and use RTT to display PRINT debug data.

Still use the official software ON Semiconductor IDE.

If you want to use FreeRTOS, you also need to install a pack package RAM.CMSIS.xxx.pack and ARM.CMSIS-FreeRTOS.xxx.pack.

ARM.CMSIS-FreeRTOS.xxx.pack is in the official resource package, just install it in ON Semiconductor IDE.

RAM.CMSIS.xxx.pack can be downloaded from the KEIL official website. It is 110M in size. It is not convenient to provide attachments. The download link is ( click here to download ).

Install both packs. Note that you should install them on ON Semiconductor IDE. Do not double-click the pack to install it. This will install it directly under KEIL, which cannot be used by ON Semiconductor IDE.

After everything is installed, copy the following project in Manage Packs:

Then you can use FreeRTOS. If you can't use it, it means that the RAM.CMSIS package is not installed properly. I got an error message at the beginning because this package was not installed.

Next, if you use PRINTF to redefine as RTT, you can also redefine it as UART. The method is the same. RTT is more convenient because ON Semiconductor IDE comes with an RTT viewer.

Add the two attached files (app_trace.c and app_trace.h) to the project, as shown in the figure below.

Then modify app_trace.h

#define RSL10_DEBUG    DBG_NO

for

#define RSL10_DEBUG     DBG_RTT

I have already modified the attached file, so there is no need to modify it again.

Finally, you need to add an initialization function in app.c

TRACE_INIT();

As shown in the following figure:

Then compile the software and download it. When downloading, you need to add an elf file in the debug interface. After the file is mutated, it will exist under the Debug folder.

Then click Debug to download and run.

The next step is to open the RTT window.

Just turn on RTT in Window->Show view->other, as shown below:

The effect after running is as follows. The output of the PRINT() function can be displayed through the RTT window, which is helpful for debugging.

Latest reply

The tutorial is pretty good and detailed!   Details Published on 2021-4-19 11:48

赞赏

1

查看全部赞赏

 
 

6555

Posts

0

Resources
2
 

This project requires the official IDE

Comments

That's right, it's more convenient to use the official IDE  Details Published on 2021-4-18 20:52
 
 
 

282

Posts

2

Resources
3
 
Jacktang posted on 2021-4-18 17:04 This project needs to use the official IDE

That's right, it's more convenient to use the official IDE

 
 
 

1942

Posts

2

Resources
4
 

The tutorial is pretty good and detailed!

 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list