Will FreeRTOS viewer work with S32 Design Studio

cancel
Showing results for 
Search instead for 
Did you mean: 

Will FreeRTOS viewer work with S32 Design Studio

230 Views
Contributor I

My current IDE is

S32 Design Studio for ARM

Version: 2018.R1
Build id: 180815

The FreeRTOS version I use is 10.2.1

I can't get FreeRTOS plugin to work properly. I have also applied update 10 and still no help.

I get an empty task list and I get exceptions when I try to view the queues. I can view the heap usage though.

Below is some of the log output

"FreeRTOS Task Aware Debugger for GDB" version 1.0.2 (201704260904)
(c) 2016 NXP Semiconductors, Inc.
==================================
15:56:40.294 INFO: [TadModel] DSF session ID 0 has started.
15:56:42.360 INFO: [TadState] TAD state changed: DEBUG_STARTED -> DEBUG_INIT_0 (SUSPENDED, USER_REQUEST)
15:56:42.895 INFO: [TadState] TAD state changed: DEBUG_INIT_0 -> DEBUG_INIT_1 (RESUMED, USER_REQUEST)
15:56:42.933 INFO: [TadState] TAD state changed: DEBUG_INIT_1 -> DEBUG_SUSPENDED (SUSPENDED, BREAKPOINT)
15:56:45.697 INFO: [TadState] TAD state changed: DEBUG_SUSPENDED -> DEBUG_RESUMED (RESUMED, USER_REQUEST)
15:56:47.731 INFO: [TadState] TAD state changed: DEBUG_RESUMED -> READY (SUSPENDED, SIGNAL)
15:57:52.31 INFO: [TadState] TAD state changed: READY -> DEBUG_RESUMED (RESUMED, USER_REQUEST)
15:57:56.680 INFO: [TadState] TAD state changed: DEBUG_RESUMED -> READY (SUSPENDED, SIGNAL)
15:58:35.36 INFO: [Benchmark] Loading data for "Task List" has started.
15:58:36.147 EXCEPTION: [QueueFactory] ReadingException in class "com.nxp.freertos.gdb.tad.controller.queuelist.QueueFactory" at 167. line when calling method "readLongAtAddress(0x1ffff0d8, QueueDefinition, pcTail)"
com.nxp.freertos.gdb.tad.controller.TadFactory.readLongAtAddress(TadFactory.java:160)
com.nxp.freertos.gdb.tad.controller.queuelist.QueueFactory.getQueue(QueueFactory.java:167)
com.nxp.freertos.gdb.tad.controller.queuelist.QueueFactory.getData(QueueFactory.java:109)
com.nxp.freertos.gdb.tad.model.TadModel$2.execute(TadModel.java:223)
com.nxp.freertos.gdb.tad.model.TadModel$3.run(TadModel.java:352)
15:58:36.149 ERROR: [TadFactoryData] Could not load data for "Queue List" view! For more information check TAD log
15:58:37.184 INFO: [FreeRTOS] FreeRTOS macro "configGENERATE_RUN_TIME_STATS" is disabled.
15:58:38.243 INFO: [FreeRTOS] FreeRTOS macro "configUSE_MUTEXES" is disabled.
15:58:39.303 INFO: [FreeRTOS] FreeRTOS macro "configUSE_TRACE_FACILITY" is disabled.
15:58:40.305 ERROR: [TaskFactory] Cannot read information from "pxReadyTasksLists[0]".
15:58:41.532 ERROR: [TaskFactory] Cannot read information from "xSuspendedTaskList".
15:58:42.646 ERROR: [TaskFactory] Cannot read information from "xDelayedTaskList1".
15:58:42.666 INFO: [Benchmark] Loading data for "Task List" took 7629 ms.
15:58:48.247 INFO: [Benchmark] Loading data for "Task List" has started.
15:58:49.345 EXCEPTION: [QueueFactory] ReadingException in class "com.nxp.freertos.gdb.tad.controller.queuelist.QueueFactory" at 167. line when calling method "readLongAtAddress(0x1ffff0d8, QueueDefinition, pcTail)"
com.nxp.freertos.gdb.tad.controller.TadFactory.readLongAtAddress(TadFactory.java:160)
com.nxp.freertos.gdb.tad.controller.queuelist.QueueFactory.getQueue(QueueFactory.java:167)
com.nxp.freertos.gdb.tad.controller.queuelist.QueueFactory.getData(QueueFactory.java:109)
com.nxp.freertos.gdb.tad.model.TadModel$2.execute(TadModel.java:223)
com.nxp.freertos.gdb.tad.model.TadModel$3.run(TadModel.java:352)
15:58:49.346 ERROR: [TadFactoryData] Could not load data for "Queue List" view! For more information check TAD log

Will there be an update to this plugin?

I believe it works with MCUXpresso and I tried importing my project there but it would not debug.

Thanks

Adam Hamilton

0 Kudos
1 Reply

7 Views
NXP Employee
NXP Employee

Hi Adam, 

I'm trying reproduce your issue, but no success.  I used FreeRTOS example from SDK RTM v3.0.0. - SDK supports FreeRTOS version 10.0.1 - that's may be cause of your issue. 

Anyway - I slightly modified FreeRTOSConfig.h (in attachment) and enabled FreeRTOS in Debug Configurations -> OS Awareness.

pastedImage_1.png

Task list: 

pastedImage_2.png

Queue list: 

pastedImage_3.png

And here is TAD log from my machine: 

"FreeRTOS Task Aware Debugger for GDB" version 1.0.1 (201610061345)
(c) 2016 NXP Semiconductors, Inc.
==================================
14:13:32.785 INFO: [TadModel] DSF session ID 2 has started.
14:13:36.786 INFO: [TadState] TAD state changed: DEBUG_STARTED -> DEBUG_INIT_0 (SUSPENDED, USER_REQUEST)
14:13:39.202 INFO: [TadState] TAD state changed: DEBUG_INIT_0 -> DEBUG_INIT_1 (RESUMED, USER_REQUEST)
14:13:39.237 INFO: [TadState] TAD state changed: DEBUG_INIT_1 -> DEBUG_SUSPENDED (SUSPENDED, BREAKPOINT)
14:14:58.802 INFO: [TadState] TAD state changed: DEBUG_SUSPENDED -> DEBUG_RESUMED (RESUMED, USER_REQUEST)
14:15:00.749 INFO: [TadState] TAD state changed: DEBUG_RESUMED -> READY (SUSPENDED, SIGNAL)
14:15:04.354 INFO: [Benchmark] Loading data for "Task List" has started.
14:15:04.919 INFO: [FreeRTOS] FreeRTOS macro "configGENERATE_RUN_TIME_STATS" is disabled.
14:15:05.889 INFO: [Benchmark] Loading data for "Task List" took 1535 ms.
14:16:07.618 INFO: [Benchmark] Loading data for "Task List" has started.
14:17:58.109 INFO: [Benchmark] Loading data for "Task List" has started.
14:17:58.109 INFO: [Benchmark] Loading data for "Task List" took 1 ms.
14:18:07.533 INFO: [Benchmark] Loading data for "Queue List" has started.
14:18:15.305 INFO: [TadState] TAD state changed: READY -> DEBUG_RESUMED (RESUMED, USER_REQUEST)
14:18:19.163 INFO: [TadState] TAD state changed: DEBUG_RESUMED -> READY (SUSPENDED, SIGNAL)
14:18:19.164 INFO: [Benchmark] Loading data for "Queue List" has started.
14:18:19.789 INFO: [Benchmark] Loading data for "Queue List" took 625 ms.
14:18:24.420 INFO: [Benchmark] Loading data for "Task List" has started.
14:18:25.405 INFO: [Benchmark] Loading data for "Task List" took 985 ms.
14:18:46.42 INFO: [Benchmark] Loading data for "Heap Usage" has started.
14:18:47.50 INFO: [HeapFactory] Heap variable ucHeap is equal to "0x2000000c".
14:18:47.50 INFO: [HeapFactory] Heap variable xHeapStructSize is equal to "0xffffffffffffffff".
14:18:47.50 INFO: [HeapFactory] TAD will try to determine heap type (memory scheme) from available variables.
Please add "static const uint8_t freeRTOSMemoryScheme = <heap_type_used>;" (or use macro configFRTOS_MEMORY_SCHEME, if defined)
variable into your project for TAD to know which heap type is used.
14:18:47.60 INFO: [HeapFactory] Application is using Heap type (memory scheme) "2".
14:18:47.159 INFO: [Benchmark] Loading data for "Heap Usage" took 1117 ms.
14:18:56.752 INFO: [Benchmark] Loading data for "Timer List" has started.
14:18:56.800 INFO: [Benchmark] Loading data for "Timer List" took 49 ms.
14:19:03.297 INFO: [Benchmark] Loading data for "Queue List" has started.
14:19:04.470 INFO: [Benchmark] Loading data for "Heap Usage" has started.
14:19:04.470 INFO: [Benchmark] Loading data for "Heap Usage" took 1 ms.
14:19:06.196 INFO: [Benchmark] Loading data for "Task List" has started.
14:19:19.764 INFO: [TadModel] DSF session ID 2 has ended.

0 Kudos