ros2 / ros2_embedded_nuttx

This repository isn't actively being worked on. If you would like to take over maintainership please open a ticket on https://github.com/ros2/ros2
72 stars 34 forks source link

Use CCM memory #16

Open vmayoral opened 10 years ago

vmayoral commented 10 years ago

Branch https://github.com/ros2/ros2_embedded_nuttx/tree/ccm pretends to use CCM memory following http://www.nuttx.org/doku.php?id=wiki:howtos:stm32-ccm-alloc however when reseting the board:

AB�DF
up_assert: Assertion failed at file:mm_heap/mm_initialize.c line: 100
up_dumpstate: sp:         2000ced4
up_dumpstate: stack base: 2000cf94
up_dumpstate: stack size: 00001000
up_stackdump: 2000cec0: 2000ced4 2000cec0 2000cec0 2000ced4 00000000 00000000 00000000 2000cee4
up_stackdump: 2000cee0: 08001ce3 2000ced4 20002480 00001000 2000cf94 2000cf04 08001d6d 00000064
up_stackdump: 2000cf00: 68686868 00000064 080a6d3c 2000cf14 08006c8d 0000000d 00013068 2000cf98
up_stackdump: 2000cf20: 2000b050 2000cf2c 08006e01 10020000 00000000 2000cf3c 08006de5 00000000
up_stackdump: 2000cf40: 00013068 2000cf98 2000b050 00013068 0000000c 2000cf5c 08007027 00013068
up_stackdump: 2000cf60: 2000cf98 2000cf6c 08002c11 2000cf74 00013068 2000cf98 00000010 2000cf84
up_stackdump: 2000cf80: 08000565 2000227c 080b6ea8 00000000 ffffffff 68686868 68686868 68686868
vmayoral commented 10 years ago

This way CCM memory could be used to allocate statically defined variables. Seems like a dead end.

The linker script https://github.com/ros2/ros2_embedded_nuttx/commit/adb9702650f2673a9e955338a320729ea1511342 has been modified to try using this memory (following stm3240g-eval intructions) but the memory allocated in the CCM region is still not writable.