Clean-up some miscellaneous kruft
This commit is contained in:
parent
d9a041349e
commit
f9a7898bd4
1
configs/misoc/include/.gitignore
vendored
Normal file
1
configs/misoc/include/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/generated
|
@ -1,56 +0,0 @@
|
|||||||
- implement flash driver
|
|
||||||
- see arch/arm/src/stm32/stm32_flash.c and related
|
|
||||||
- both banks could be mapped with care taken not to erase the active code.
|
|
||||||
- perhaps the MPU could block code corruption?
|
|
||||||
|
|
||||||
- once implemented, the free() cmd replacement can show flash information.
|
|
||||||
|
|
||||||
- Seen crashes when running serial ports below 921600
|
|
||||||
|
|
||||||
- COM34 (UART1, ttyS1) runs the smoothest with 'serialblaster' test...
|
|
||||||
the other two (UART0, USART1) seem to stutter...
|
|
||||||
|
|
||||||
- created a cpuhog test. Each instance takes a semaphore, burns cpu for 6ms and then releases
|
|
||||||
the sem to exercises semaphores passing and a busy cpu. The first two instances become a
|
|
||||||
producer/consumer pair using a pipe (FIFO) to exercise the fileio data passing.
|
|
||||||
-> no crashes with 8 instances running. (No MMU, No BASEPRI)
|
|
||||||
-> no crashes with 8 instances running. (MMU + BASEPRI)
|
|
||||||
-> not however that the serial ports are very finicky with BASEPRI enabled!
|
|
||||||
This setup sends single charactes for each produced or consumed block,
|
|
||||||
and doesn't seem to have any issues:
|
|
||||||
NuttShell (NSH)
|
|
||||||
nsh> cpuhog > /dev/ttyS1 &
|
|
||||||
cpuhog [5:50]
|
|
||||||
nsh> cpuhog > /dev/ttyS2 &
|
|
||||||
cpuhog [7:50]
|
|
||||||
nsh> cpuhog &
|
|
||||||
cpuhog [8:50]
|
|
||||||
nsh> cpuhog 2
|
|
||||||
cpuhog &
|
|
||||||
cpuhog [9:50]
|
|
||||||
nsh> cpuhog 3
|
|
||||||
cpuhog &
|
|
||||||
cpuhog [10:50]
|
|
||||||
nsh> cpuhog 4
|
|
||||||
cpuhog &
|
|
||||||
cpuhog [11:50]
|
|
||||||
nsh> cpuhog 5
|
|
||||||
|
|
||||||
nsh> cpuhog &
|
|
||||||
cpuhog [12:50]
|
|
||||||
nsh> cpuhog 6
|
|
||||||
|
|
||||||
nsh> cpuhog &
|
|
||||||
cpuhog [13:50]
|
|
||||||
nsh> cpuhog 7
|
|
||||||
|
|
||||||
- USB serial not quite stable when pushing lots of data
|
|
||||||
|
|
||||||
- UARTs don't use DMA. We may need this for high baudrates.
|
|
||||||
- Inbound hardware flow control requires dma.
|
|
||||||
|
|
||||||
Current Test:
|
|
||||||
|
|
||||||
40mA: 120Mhz (240 MHz PLL) with SDCard mounted, UART0+UART1+USART1 enabled, USB Device availible (but nothing plugged in)
|
|
||||||
37.8mA: 120Mhz (120 MHz PLL) with SDCard mounted, UART0+UART1+USART1 enabled
|
|
||||||
16.9mA: "" with WFI added to up_idle()
|
|
@ -3,7 +3,8 @@
|
|||||||
# tools/showsize.sh
|
# tools/showsize.sh
|
||||||
#
|
#
|
||||||
# Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
||||||
# Author: Lorenz Meier
|
# Author: Lorenz Meier (Original concept)
|
||||||
|
# Gregory Nutt (This instantiation)
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
@ -37,7 +38,8 @@
|
|||||||
# set -x
|
# set -x
|
||||||
|
|
||||||
# Host nm should always work
|
# Host nm should always work
|
||||||
#NM=arm-none-eabi-nm
|
# vs. NM=arm-none-eabi-nm
|
||||||
|
|
||||||
NM=nm
|
NM=nm
|
||||||
|
|
||||||
# This should be executed from the top-level NuttX directory
|
# This should be executed from the top-level NuttX directory
|
||||||
@ -60,8 +62,10 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Show what we were asked for
|
||||||
|
|
||||||
echo "TOP 10 BIG DATA"
|
echo "TOP 10 BIG DATA"
|
||||||
$NM --print-size --size-sort --radix dec -C $NUTTX | grep ' [DdBb] ' | tail -20
|
$NM --print-size --size-sort --radix dec -C $NUTTX | grep ' [DdBb] ' | tail -20
|
||||||
|
|
||||||
echo "TOP 10 BIG CODE"
|
echo "TOP 10 BIG CODE"
|
||||||
$NM --print-size --size-sort --radix dec -C $NUTTX | grep ' [TtWw] ' | tail -20
|
$NM --print-size --size-sort --radix dec -C $NUTTX | grep ' [TtWw] ' | tail -20
|
||||||
|
Loading…
Reference in New Issue
Block a user