1 | Description: Avnet MCF5282 |
---|
2 | ============ |
---|
3 | CPU: MCF5282, 59MHz |
---|
4 | RAM: 16M |
---|
5 | ROM: 8M |
---|
6 | |
---|
7 | This is an evaluation board that uses the MCF5282 Coldfire CPU. It runs at about 59MHz scaled |
---|
8 | from a 7.372MHz crystal and is integrated with the Avnet designed AvBus. |
---|
9 | |
---|
10 | ACKNOWLEDGEMENTS: |
---|
11 | ================= |
---|
12 | This BSP is based on the work of: |
---|
13 | D. Peter Siddons |
---|
14 | Brett Swimley |
---|
15 | Jay Monkman |
---|
16 | Eric Norum |
---|
17 | Mike Bertosh |
---|
18 | |
---|
19 | BSP NAME: av5282 |
---|
20 | BOARD: Avnet MCF5282 |
---|
21 | CPU FAMILY: ColdFire 5282 |
---|
22 | CPU: MCF5282 |
---|
23 | COPROCESSORS: N/A |
---|
24 | |
---|
25 | DEBUG MONITOR: AVMON |
---|
26 | |
---|
27 | PERIPHERALS |
---|
28 | =========== |
---|
29 | TIMERS: Four PIT (RTEMS clock is PIT3), Four Timers |
---|
30 | RESOLUTION: 10 microsecond |
---|
31 | SERIAL PORTS: Internal UART 1, 2 and 3 |
---|
32 | REAL-TIME CLOCK: none |
---|
33 | DMA: none |
---|
34 | VIDEO: none |
---|
35 | SCSI: none |
---|
36 | NETWORKING: Internal 10/100MHz FEC |
---|
37 | |
---|
38 | DRIVER INFORMATION |
---|
39 | ================== |
---|
40 | CLOCK DRIVER: PIT3 |
---|
41 | IOSUPP DRIVER: none |
---|
42 | SHMSUPP: none |
---|
43 | TIMER DRIVER: TIMER3 |
---|
44 | TTY DRIVER: UART1, 2 and 3 |
---|
45 | |
---|
46 | STDIO |
---|
47 | ===== |
---|
48 | PORT: UART1 Terminal |
---|
49 | ELECTRICAL: RS-232 |
---|
50 | BAUD: 19200 |
---|
51 | BITS PER CHARACTER: 8 |
---|
52 | PARITY: None |
---|
53 | STOP BITS: 1 |
---|
54 | |
---|
55 | |
---|
56 | Memory map as set up by AVMON bootstrap and BSP initialization |
---|
57 | |
---|
58 | +--------------------------------------------------+ |
---|
59 | 0000 0000 | 16 MByte SDRAM | 00FF FFFF |
---|
60 | 0100 0000 | --------------------------------------------- | |
---|
61 | | Address space for future SDRAM expansion | |
---|
62 | . . |
---|
63 | . . |
---|
64 | . . |
---|
65 | | | 0FFF FFFF |
---|
66 | +--------------------------------------------------+ |
---|
67 | 1000 0000 | | |
---|
68 | . . |
---|
69 | . . |
---|
70 | . . |
---|
71 | | | 1FFF FFFF |
---|
72 | +--------------------------------------------------+ |
---|
73 | 2000 0000 | 64 kByte on-chip SRAM (RAMBAR) | |
---|
74 | . . |
---|
75 | . . |
---|
76 | . . |
---|
77 | | | 2FFF FFFF |
---|
78 | +--------------------------------------------------+ |
---|
79 | 3000 0000 | | 30FF FFFF |
---|
80 | . . |
---|
81 | . . |
---|
82 | . . |
---|
83 | | | 3FFF FFFF |
---|
84 | +--------------------------------------------------+ |
---|
85 | 4000 0000 | Internal peripheral system (IPSBAR) | |
---|
86 | . . |
---|
87 | | | |
---|
88 | . . |
---|
89 | . . |
---|
90 | . . |
---|
91 | | | 4FFF FFFF |
---|
92 | +--------------------------------------------------+ |
---|
93 | . . |
---|
94 | . . |
---|
95 | . . |
---|
96 | +--------------------------------------------------+ |
---|
97 | F000 0000 | 512 kByte on-chip flash (FLASHBAR) | |
---|
98 | . . |
---|
99 | FF80 0000 | External 8 MByte Flash memory . |
---|
100 | . . |
---|
101 | | | FFFF FFFF |
---|
102 | +--------------------------------------------------+ |
---|
103 | |
---|
104 | ============================================================================ |
---|
105 | |
---|
106 | Interrupt map |
---|
107 | |
---|
108 | +-----+-----------------------------------------------------------------------+ |
---|
109 | | | PRIORITY | |
---|
110 | +-----+--------+--------+--------+--------+--------+--------+--------+--------+ |
---|
111 | |LEVEL| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
---|
112 | +-----+--------+--------+--------+--------+--------+--------+--------+--------+ |
---|
113 | | 7 | | | | | | | | | |
---|
114 | +-----+--------+--------+--------+--------+--------+--------+--------+--------+ |
---|
115 | | 6 | | | | | | | | | |
---|
116 | +-----+--------+--------+--------+--------+--------+--------+--------+--------+ |
---|
117 | | 5 | | | | | | | | | |
---|
118 | +-----+--------+--------+--------+--------+--------+--------+--------+--------+ |
---|
119 | | 4 | FEC RX | FEC TX | | | | | | PIT | |
---|
120 | +-----+--------+--------+--------+--------+--------+--------+--------+--------+ |
---|
121 | | 3 | UART 0 | UART 1 | UART 2 | | | | | | |
---|
122 | +-----+--------+--------+--------+--------+--------+--------+--------+--------+ |
---|
123 | | 2 | | | | | | | | | |
---|
124 | +-----+--------+--------+--------+--------+--------+--------+--------+--------+ |
---|
125 | | 1 | | | | | | | | | |
---|
126 | +-----+--------+--------+--------+--------+--------+--------+--------+--------+ |
---|
127 | |
---|
128 | ============================================================================ |
---|
129 | |
---|
130 | TIMING TESTS |
---|
131 | ************************** |
---|
132 | |
---|
133 | |
---|
134 | *** TIME TEST 1 *** |
---|
135 | rtems_semaphore_create 28 |
---|
136 | rtems_semaphore_delete 31 |
---|
137 | rtems_semaphore_obtain: available 6 |
---|
138 | rtems_semaphore_obtain: not available -- NO_WAIT 7 |
---|
139 | rtems_semaphore_release: no waiting tasks 14 |
---|
140 | *** END OF TEST 1 *** |
---|
141 | |
---|
142 | *** TIME TEST 2 *** |
---|
143 | rtems_semaphore_obtain: not available -- caller blocks 57 |
---|
144 | *** END OF TEST 2 *** |
---|
145 | |
---|
146 | *** TIME TEST 3 *** |
---|
147 | rtems_semaphore_release: task readied -- preempts caller 39 |
---|
148 | *** END OF TEST 3 *** |
---|
149 | |
---|
150 | *** TIME TEST 4 *** |
---|
151 | rtems_task_restart: blocked task -- preempts caller 86 |
---|
152 | rtems_task_restart: ready task -- preempts caller 82 |
---|
153 | rtems_semaphore_release: task readied -- returns to caller 28 |
---|
154 | rtems_task_create 139 |
---|
155 | rtems_task_start 32 |
---|
156 | rtems_task_restart: suspended task -- returns to caller 42 |
---|
157 | rtems_task_delete: suspended task 99 |
---|
158 | rtems_task_restart: ready task -- returns to caller 44 |
---|
159 | rtems_task_restart: blocked task -- returns to caller 59 |
---|
160 | rtems_task_delete: blocked task 104 |
---|
161 | *** END OF TEST 4 *** |
---|
162 | |
---|
163 | *** TIME TEST 5 *** |
---|
164 | rtems_task_suspend: calling task 36 |
---|
165 | rtems_task_resume: task readied -- preempts caller 33 |
---|
166 | *** END OF TEST 5 *** |
---|
167 | |
---|
168 | *** TIME TEST 6 *** |
---|
169 | rtems_task_restart: calling task 45 |
---|
170 | rtems_task_suspend: returns to caller 12 |
---|
171 | rtems_task_resume: task readied -- returns to caller 15 |
---|
172 | rtems_task_delete: ready task 106 |
---|
173 | *** END OF TEST 6 *** |
---|
174 | |
---|
175 | *** TIME TEST 7 *** |
---|
176 | rtems_task_restart: suspended task -- preempts caller 68 |
---|
177 | *** END OF TEST 7 *** |
---|
178 | |
---|
179 | *** TIME TEST 8 *** |
---|
180 | rtems_task_set_priority: obtain current priority 9 |
---|
181 | rtems_task_set_priority: returns to caller 21 |
---|
182 | rtems_task_mode: obtain current mode 4 |
---|
183 | rtems_task_mode: no reschedule 4 |
---|
184 | rtems_task_mode: reschedule -- returns to caller 13 |
---|
185 | rtems_task_mode: reschedule -- preempts caller 35 |
---|
186 | rtems_task_set_note 7 |
---|
187 | rtems_task_get_note 9 |
---|
188 | rtems_clock_set 30 |
---|
189 | rtems_clock_get 0 |
---|
190 | *** END OF TEST 8 *** |
---|
191 | |
---|
192 | *** TIME TEST 9 *** |
---|
193 | rtems_message_queue_create 81 |
---|
194 | rtems_message_queue_send: no waiting tasks 30 |
---|
195 | rtems_message_queue_urgent: no waiting tasks 31 |
---|
196 | rtems_message_queue_receive: available 30 |
---|
197 | rtems_message_queue_flush: no messages flushed 12 |
---|
198 | rtems_message_queue_flush: messages flushed 18 |
---|
199 | rtems_message_queue_delete 42 |
---|
200 | *** END OF TEST 9 *** |
---|
201 | |
---|
202 | *** TIME TEST 10 *** |
---|
203 | rtems_message_queue_receive: not available -- NO_WAIT 16 |
---|
204 | rtems_message_queue_receive: not available -- caller blocks 58 |
---|
205 | *** END OF TEST 10 *** |
---|
206 | |
---|
207 | *** TIME TEST 11 *** |
---|
208 | rtems_message_queue_send: task readied -- preempts caller 53 |
---|
209 | *** END OF TEST 11 *** |
---|
210 | |
---|
211 | *** TIME TEST 12 *** |
---|
212 | rtems_message_queue_send: task readied -- returns to caller 35 |
---|
213 | *** END OF TEST 12 *** |
---|
214 | |
---|
215 | *** TIME TEST 13 *** |
---|
216 | rtems_message_queue_urgent: task readied -- preempts caller 51 |
---|
217 | *** END OF TEST 13 *** |
---|
218 | |
---|
219 | *** TIME TEST 14 *** |
---|
220 | rtems_message_queue_urgent: task readied -- returns to caller 33 |
---|
221 | *** END OF TEST 14 *** |
---|
222 | |
---|
223 | *** TIME TEST 15 *** |
---|
224 | rtems_event_receive: obtain current events 0 |
---|
225 | rtems_event_receive: not available -- NO_WAIT 9 |
---|
226 | rtems_event_receive: not available -- caller blocks 46 |
---|
227 | rtems_event_send: no task readied 7 |
---|
228 | rtems_event_receive: available 13 |
---|
229 | rtems_event_send: task readied -- returns to caller 19 |
---|
230 | *** END OF TEST 15 *** |
---|
231 | |
---|
232 | *** TIME TEST 16 *** |
---|
233 | rtems_event_send: task readied -- preempts caller 35 |
---|
234 | *** END OF TEST 16 *** |
---|
235 | |
---|
236 | *** TIME TEST 17 *** |
---|
237 | rtems_task_set_priority: preempts caller 56 |
---|
238 | *** END OF TEST 17 *** |
---|
239 | |
---|
240 | *** TIME TEST 18 *** |
---|
241 | rtems_task_delete: calling task 124 |
---|
242 | *** END OF TEST 18 *** |
---|
243 | |
---|
244 | *** TIME TEST 19 *** |
---|
245 | rtems_signal_catch 8 |
---|
246 | rtems_signal_send: returns to caller 17 |
---|
247 | rtems_signal_send: signal to self 29 |
---|
248 | exit ASR overhead: returns to calling task 23 |
---|
249 | exit ASR overhead: returns to preempting task 26 |
---|
250 | *** END OF TEST 19 *** |
---|
251 | |
---|
252 | *** TIME TEST 20 *** |
---|
253 | rtems_partition_create 29 |
---|
254 | rtems_region_create 59 |
---|
255 | rtems_partition_get_buffer: available 15 |
---|
256 | rtems_partition_get_buffer: not available 8 |
---|
257 | rtems_partition_return_buffer 16 |
---|
258 | rtems_partition_delete 14 |
---|
259 | rtems_region_get_segment: available 38 |
---|
260 | rtems_region_get_segment: not available -- NO_WAIT 41 |
---|
261 | rtems_region_return_segment: no waiting tasks 42 |
---|
262 | rtems_region_get_segment: not available -- caller blocks 80 |
---|
263 | rtems_region_return_segment: task readied -- preempts caller 108 |
---|
264 | rtems_region_return_segment: task readied -- returns to caller 86 |
---|
265 | rtems_region_delete 36 |
---|
266 | rtems_io_initialize 1 |
---|
267 | rtems_io_open 2 |
---|
268 | rtems_io_close 2 |
---|
269 | rtems_io_read 1 |
---|
270 | rtems_io_write 1 |
---|
271 | rtems_io_control 1 |
---|
272 | *** END OF TEST 20 *** |
---|
273 | |
---|
274 | *** TIME TEST 21 *** |
---|
275 | rtems_task_ident 73 |
---|
276 | rtems_message_queue_ident 74 |
---|
277 | rtems_semaphore_ident 85 |
---|
278 | rtems_partition_ident 73 |
---|
279 | rtems_region_ident 75 |
---|
280 | rtems_port_ident 73 |
---|
281 | rtems_timer_ident 76 |
---|
282 | rtems_rate_monotonic_ident 72 |
---|
283 | *** END OF TEST 21 * |
---|
284 | |
---|
285 | *** TIME TEST 22 *** |
---|
286 | rtems_message_queue_broadcast: task readied -- returns to caller 48 |
---|
287 | rtems_message_queue_broadcast: no waiting tasks 18 |
---|
288 | rtems_message_queue_broadcast: task readied -- preempts caller 58 |
---|
289 | *** END OF TEST 22 *** |
---|
290 | |
---|
291 | *** TIME TEST 23 *** |
---|
292 | rtems_timer_create 10 |
---|
293 | rtems_timer_fire_after: inactive 20 |
---|
294 | rtems_timer_fire_after: active 24 |
---|
295 | rtems_timer_cancel: active 8 |
---|
296 | rtems_timer_cancel: inactive 8 |
---|
297 | rtems_timer_reset: inactive 16 |
---|
298 | rtems_timer_reset: active 17 |
---|
299 | rtems_timer_fire_when: inactive 35 |
---|
300 | rtems_timer_fire_when: active 35 |
---|
301 | rtems_timer_delete: active 16 |
---|
302 | rtems_timer_delete: inactive 14 |
---|
303 | rtems_task_wake_when 53 |
---|
304 | *** END OF TEST 23 *** |
---|
305 | |
---|
306 | *** TIME TEST 24 *** |
---|
307 | rtems_task_wake_after: yield -- returns to caller 5 |
---|
308 | rtems_task_wake_after: yields -- preempts caller 30 |
---|
309 | *** END OF TEST 24 *** |
---|
310 | |
---|
311 | *** TIME TEST 25 *** |
---|
312 | rtems_clock_tick 11 |
---|
313 | *** END OF TEST 25 *** |
---|
314 | |
---|
315 | *** TIME TEST 26 *** |
---|
316 | _ISR_Disable 0 |
---|
317 | _ISR_Flash 0 |
---|
318 | _ISR_Enable 0 |
---|
319 | _Thread_Disable_dispatch 0 |
---|
320 | _Thread_Enable_dispatch 3 |
---|
321 | _Thread_Set_state 12 |
---|
322 | _Thread_Disptach (NO FP) 23 |
---|
323 | context switch: no floating point contexts 19 |
---|
324 | context switch: self 3 |
---|
325 | context switch: to another task 2 |
---|
326 | fp context switch: restore 1st FP task 19 |
---|
327 | fp context switch: save idle, restore initialized 4 |
---|
328 | fp context switch: save idle, restore idle 17 |
---|
329 | fp context switch: save initialized, restore initialized 4 |
---|
330 | _Thread_Resume 11 |
---|
331 | _Thread_Unblock 8 |
---|
332 | _Thread_Ready 7 |
---|
333 | _Thread_Get 4 |
---|
334 | _Semaphore_Get 2 |
---|
335 | _Thread_Get: invalid id 0 |
---|
336 | *** END OF TEST 26 *** |
---|
337 | |
---|
338 | *** TIME TEST 27 *** |
---|
339 | interrupt entry overhead: returns to interrupted task 5 |
---|
340 | interrupt exit overhead: returns to interrupted task 4 |
---|
341 | interrupt entry overhead: returns to nested interrupt 3 |
---|
342 | interrupt exit overhead: returns to nested interrupt 3 |
---|
343 | interrupt entry overhead: returns to preempting task 6 |
---|
344 | interrupt exit overhead: returns to preempting task 30 |
---|
345 | *** END OF TEST 27 *** |
---|
346 | |
---|
347 | *** TIME TEST 28 *** |
---|
348 | rtems_port_create 18 |
---|
349 | rtems_port_external_to_internal 6 |
---|
350 | rtems_port_internal_to_external 7 |
---|
351 | rtems_port_delete 18 |
---|
352 | *** END OF TEST 28 *** |
---|
353 | |
---|
354 | *** TIME TEST 29 *** |
---|
355 | rtems_rate_monotonic_create 18 |
---|
356 | rtems_rate_monotonic_period: initiate period -- returns to caller 29 |
---|
357 | rtems_rate_monotonic_period: obtain status 15 |
---|
358 | rtems_rate_monotonic_cancel 19 |
---|
359 | rtems_rate_monotonic_delete: inactive 22 |
---|
360 | rtems_rate_monotonic_delete: active 24 |
---|
361 | rtems_rate_monotonic_period: conclude periods -- caller blocks 36 |
---|
362 | *** END OF TEST 29 *** |
---|
363 | |
---|
364 | *** TIME CHECKER *** |
---|
365 | Units may not be in microseconds for this test!!! |
---|
366 | 0 100000 |
---|
367 | Total time = 0 |
---|
368 | Average time = 0 |
---|
369 | <pause> |
---|
370 | NULL timer stopped at 0 |
---|
371 | LOOP (1000) timer stopped at 225 |
---|
372 | LOOP (10000) timer stopped at 2242 |
---|
373 | LOOP (50000) timer stopped at 11207 |
---|
374 | LOOP (100000) timer stopped at 22414 |
---|
375 | *** END OF TIME CHECKER *** |
---|
376 | |
---|
377 | *** TIME TEST OVERHEAD *** |
---|
378 | rtems_initialize_executive 0 |
---|
379 | rtems_shutdown_executive 0 |
---|
380 | rtems_task_create 1 |
---|
381 | rtems_task_ident 0 |
---|
382 | rtems_task_start 0 |
---|
383 | rtems_task_restart 0 |
---|
384 | rtems_task_delete 0 |
---|
385 | rtems_task_suspend 0 |
---|
386 | rtems_task_resume 0 |
---|
387 | rtems_task_set_priority 0 |
---|
388 | rtems_task_mode 0 |
---|
389 | rtems_task_get_note 0 |
---|
390 | rtems_task_set_note 0 |
---|
391 | rtems_task_wake_when 1 |
---|
392 | rtems_task_wake_after 0 |
---|
393 | rtems_interrupt_catch 0 |
---|
394 | rtems_clock_get 1 |
---|
395 | rtems_clock_set 1 |
---|
396 | rtems_clock_tick 0 |
---|
397 | <pause> |
---|
398 | rtems_timer_create 0 |
---|
399 | rtems_timer_delete 0 |
---|
400 | rtems_timer_ident 0 |
---|
401 | rtems_timer_fire_after 0 |
---|
402 | rtems_timer_fire_when 1 |
---|
403 | rtems_timer_reset 0 |
---|
404 | rtems_timer_cancel 0 |
---|
405 | rtems_semaphore_create 1 |
---|
406 | rtems_semaphore_delete 0 |
---|
407 | rtems_semaphore_ident 0 |
---|
408 | rtems_semaphore_obtain 0 |
---|
409 | rtems_semaphore_release 0 |
---|
410 | rtems_message_queue_create 0 |
---|
411 | rtems_message_queue_ident 0 |
---|
412 | rtems_message_queue_delete 0 |
---|
413 | rtems_message_queue_send 0 |
---|
414 | rtems_message_queue_urgent 0 |
---|
415 | rtems_message_queue_broadcast 0 |
---|
416 | rtems_message_queue_receive 0 |
---|
417 | rtems_message_queue_flush 0 |
---|
418 | <pause> |
---|
419 | rtems_event_send 0 |
---|
420 | rtems_event_receive 0 |
---|
421 | rtems_signal_catch 0 |
---|
422 | rtems_signal_send 0 |
---|
423 | rtems_partition_create 1 |
---|
424 | rtems_partition_ident 0 |
---|
425 | rtems_partition_delete 0 |
---|
426 | rtems_partition_get_buffer 0 |
---|
427 | rtems_partition_return_buffer 0 |
---|
428 | rtems_region_create 1 |
---|
429 | rtems_region_ident 0 |
---|
430 | rtems_region_delete 0 |
---|
431 | rtems_region_get_segment 1 |
---|
432 | rtems_region_return_segment 0 |
---|
433 | rtems_port_create 1 |
---|
434 | rtems_port_ident 0 |
---|
435 | rtems_port_delete 0 |
---|
436 | rtems_port_external_to_internal 0 |
---|
437 | rtems_port_internal_to_external 0 |
---|
438 | <pause> |
---|
439 | rtems_io_initialize 0 |
---|
440 | rtems_io_open 0 |
---|
441 | rtems_io_close 0 |
---|
442 | rtems_io_read 0 |
---|
443 | rtems_io_write 0 |
---|
444 | rtems_io_control 0 |
---|
445 | rtems_fatal_error_occurred 0 |
---|
446 | rtems_rate_monotonic_create 0 |
---|
447 | rtems_rate_monotonic_ident 0 |
---|
448 | rtems_rate_monotonic_delete 0 |
---|
449 | rtems_rate_monotonic_cancel 0 |
---|
450 | rtems_rate_monotonic_period 0 |
---|
451 | rtems_multiprocessing_announce 0 |
---|
452 | *** END OF TIME OVERHEAD *** |
---|