Picon

uClibc++ linker errors

Hi,

I have added the uClibc++ from bitbucket and now I am trying to compile in a C++ app I have created.


I keep getting linker errors like:

/home/kim/repo/nuttx/lib/libapps.a(streamtester_main.o): In function `streamtester_main':

/home/kim/repo//apps/streamtester/streamtester_main.cpp:36: undefined reference to `__cxa_end_cleanup'

/home/kim/repo/nuttx/lib/libapps.a(streamtester_main.o):(.ARM.extab+0x0): undefined reference to `__gxx_personality_v0'

/home/kim/repo/nuttx/lib/libapps.a(streamtester.o): In function `Cstreamtester::Run()':

/home/kim/repo//apps/streamtester/streamtester.cpp:179: undefined reference to `__cxa_end_cleanup'

/home/kim/repo/nuttx/lib/l ibapps.a(streamtester.o):(.ARM.extab+0x0): undefined reference to `__gxx_personality_v0'

/home/kim/repo/nuttx/lib/libapps.a(writer.o): In function `CWriter::~CWriter()':

/home/kim/repo//apps/streamtester/writer.cpp:99: undefined reference to `__cxa_end_cleanup'

/home/kim/repo/nuttx/lib/libapps.a(writer.o): In function `CWriter::Error(char const*, ...)':

/home/kim/repo//apps/streamtester/writer.cpp:243: undefined reference to `__cxa_end_cleanup'

/home/kim/repo/nuttx/lib/libapps.a(writer.o): In function `CWriter::CWriter(int, char**)':

/home/kim/repo//apps/streamtester/writer.cpp:96: undefined reference to `__cxa_end_cleanup'

/home/kim/repo/nuttx/lib/libapps.a(writer.o): In function `CWriter::AddVersion()':

/ho me/kim/repo//apps/streamtester/writer.cpp:369: undefined reference to `__cxa_end_cleanup'

/home/kim/repo/nuttx/lib/libapps.a(writer.o): In function `CWriter::Open(std::string const&)':

/home/kim/repo//apps/streamtester/writer.cpp:418: undefined reference to `__cxa_end_cleanup'

/home/kim/repo/nuttx/lib/libapps.a(writer.o):/home/kim/repo//apps/streamtester/writer.cpp:339: more undefined references to `__cxa_end_cleanup' follow

/home/kim/repo/nuttx/lib/libapps.a(writer.o):(.ARM.extab+0x0): undefined reference to `__gxx_personality_v0'

/home/kim/repo/nuttx/lib/libapps.a(writer.o):(.ARM.extab+0x64): undefined reference to `__gxx_personality_v0'

/home/kim/repo/nuttx/lib/libapps.a(writer.o):(.ARM.extab+0x84): undefined reference to `__gxx_personality_v0'


found a few places that mention that a fix could be to add -luClibc++ to the LDFLAGS but that does not work as I do not have a lib with that name. 

Can anyone help me in the right direction to get this fixed ? 



__._,_.___
Posted by: kim-ppvRghqR8ddaa/9Udqfwiw@public.gmane.org



__,_._,___
Picon

SAMA5D4 dependencies on apps includes and OS/APP violations

Hello

I had a look at why sama4d5 requires some apps/ includes.

That's because of at25_main.c and dram_main.c that do system things, then load
an INTELHEX file from somewhere.

These two files extensively use applicative APIs such as printf and open and etc...

They have nothing to do in configs/

They should be in apps/platform

I tried to do that but these apps also requires chip/ inclusions, which are
obviously not available in apps.

But I dont think we want an INTELHEX parser in nuttx either.

So my proposals are

- to find a solution to give system information to these "pseudo apps" (via
boardctl? via symbols defined in ldscript?)

- to remove them completely since they violate the OS/App interface in a very
serious way.

make[2]: Entering directory `/home/joe/mynut/apps/platform'
CC:  board/at25_main.c
board/at25_main.c: In function 'at25_main':
board/at25_main.c:161:46: error: 'SAM_DDRCS_VSECTION' undeclared (first use in
this function)
   lib_memsostream(&memoutstream, (FAR char *)SAM_DDRCS_VSECTION,
                                              ^
board/at25_main.c:161:46: note: each undeclared identifier is reported only once
for each function it appears in
board/at25_main.c:175:27: error: 'SAM_ISRAM_VSECTION' undeclared (first use in
this function)
                 (uint32_t)SAM_ISRAM_VSECTION,
                           ^
make[2]: *** [bin/at25_main.o] Error 1

-- 
Sébastien Lorquet

------------------------------------
Posted by: Sebastien Lorquet <sebastien@...>
------------------------------------

------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/nuttx/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/nuttx/join
    (Yahoo! ID required)

<*> To change settings via email:
    nuttx-digest@... 
    nuttx-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    nuttx-unsubscribe@...

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/

Picon

SPI CMDDATA

Hello,

I am trying to build a driver for an ST7565/ST7567 based LCD - I am using the st7567 as a starting point.  My LCD device requires a separate pin for CMD/DATA.  I see that Nuttx has a SPI_CMDDATA (which I will enable via config), so I am just trying to understand how to configure a GPIO to be used as the SPI_CMDDATA signal.  I looked at a couple pinmaps (arch/arm/src/stm32/chip/*) and board configs (config/*/include/board.h) but couldn't find any references.   Any pointers?

Thank you in advance!
Phy


__._,_.___
Posted by: Phy Prabab <phyprabab-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>



__,_._,___
Picon

LPC43xx ethernet: correct auto-negotiation [1 Attachment]

Please apply a path to correct auto-negotiation mode in the LPC43xx ethernet.




__._,_.___

Attachment(s) from alexander.vasiljev-/E1597aS9LQAvxtiuMwx3w@public.gmane.org [nuttx] | View attachments on the web

1 of 1 File(s)

Posted by: alexander.vasiljev-/E1597aS9LQAvxtiuMwx3w@public.gmane.org



__,_._,___
Picon

Turn OFF nsh

Dear Nuttx Community

My NSH is running on a UART Port. At a certain Point i'd like to use that UART Port for sth different than. Is
there a way to turn of nsh on runtime? 
(I can open the UART port as usual, but the shell usually steals every second character i receive on the UART
line ...)

Thanks a lot for your Help!

Best, Markus

------------------------------------
Posted by: "m-zahner@..." <m-zahner@...>
------------------------------------

------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/nuttx/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/nuttx/join
    (Yahoo! ID required)

<*> To change settings via email:
    nuttx-digest@... 
    nuttx-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    nuttx-unsubscribe@...

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/

Picon

Fix minmea Makefile to find the libapp at the apps/ [1 Attachment]

<*>[Attachment(s) from Alan Carvalho de Assis included below]

Hi Greg,

The minmea library is creating a libapps.a at gpsutils/ instead of
archiving the symbols inside the apps/libapps.a

Please apply the attached patch to fix it.

BR,

Alan

<*>Attachment(s) from Alan Carvalho de Assis:

<*> 1 of 1 File(s)
https://groups.yahoo.com/neo/groups/nuttx/attachments/1512166748;_ylc=X3oDMTJyYzFtM2E2BF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDYXR0YWNobWVudARzbGsDdmlld09uV2ViBHN0aW1lAzE0NjY3MjAyMzY- 
  <*> 0001-Fix-minmea-Makefile-to-find-the-libapp-at-the-root-o.patch

------------------------------------
Posted by: Alan Carvalho de Assis <acassis@...>
------------------------------------

------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/nuttx/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/nuttx/join
    (Yahoo! ID required)

<*> To change settings via email:
    nuttx-digest@... 
    nuttx-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    nuttx-unsubscribe@...

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/

Picon

toggling a port bit

Hi
I'm wondering is there a defined way of toggling a port bit from the App level efficiently.

I submitted a PR yesterday for the Olimex-STM32-H407 board that I am sponsoring and Greg responded with
"This change exposes internal OS interfaces via configs/olimex-stm32-h407/include/stm32_utils.h.
I do not permit invention of on non-standard OS interfaces.
The basic rule is that you may not create any new interfaces anywhere under the nuttx/ directory that can be called from an application, say in apps/.
That is a violation of my strict OS/application interface rules"

So I need to be able to define some bits at the app level to toggle the hw to demonstrate a problem that is occurring.
I use the bits in a saleae.com logic analyzer to bracket the processing  - pretty standard debug.


The problem that I found was that on outputing  a packet on RS485,through the serial interface the first time the output was mysteriously suspended mid message, for a period of some mS - which caused a timeout on the receiving side. The 2nd attempt of packet send was successful - ie no mysterious suspend.



__._,_.___
Posted by: NeilH20-F6KuQPxDEZkP7C3xziwOQw@public.gmane.org



__,_._,___
Picon

Fix apps/examples/can [1 Attachment]

<*>[Attachment(s) from Sebastien Lorquet included below]

Greg,

Some variables were not declared in all required cases. This is fixed in the
attached patch.

Moreover this example, in read-write mode, should allow the user to transmit
first or to receive first with a command line option, because at the moment, the
example only transmits first, which fails when the first CAN node is started,
since no other node can ACK the messages.

This remark could be added in a TODO list.

-- 
Sébastien Lorquet

<*>Attachment(s) from Sebastien Lorquet:

<*> 1 of 1 File(s)
https://groups.yahoo.com/neo/groups/nuttx/attachments/103998380;_ylc=X3oDMTJyYTQ1NDBvBF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDYXR0YWNobWVudARzbGsDdmlld09uV2ViBHN0aW1lAzE0NjY2ODk2NTk- 
  <*> apps-examples-can-undeclared-vars.patch

------------------------------------
Posted by: Sebastien Lorquet <sebastien@...>
------------------------------------

------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/nuttx/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/nuttx/join
    (Yahoo! ID required)

<*> To change settings via email:
    nuttx-digest@... 
    nuttx-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    nuttx-unsubscribe@...

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/

Picon

CAN IOCTL API extension [1 Attachment]

<*>[Attachment(s) from Sebastien Lorquet included below]

Hello Greg,

Please find attached a proposal to add some mode CAN IOCTL calls: These will be
useful for device autotest when the application boots.

It is redundant with the CONFIG_CAN_LOOPBACK option, which can just be
interpreted as a default setting.

If you are okay with it, can you please apply it?

Thanks,
-- 
Sébastien Lorquet

<*>Attachment(s) from Sebastien Lorquet:

<*> 1 of 1 File(s)
https://groups.yahoo.com/neo/groups/nuttx/attachments/1318013091;_ylc=X3oDMTJyM2ZydXZrBF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDYXR0YWNobWVudARzbGsDdmlld09uV2ViBHN0aW1lAzE0NjY1OTIzOTk- 
  <*> can-bus-modes-ioctls.patch

------------------------------------
Posted by: Sebastien Lorquet <sebastien@...>
------------------------------------

------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/nuttx/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/nuttx/join
    (Yahoo! ID required)

<*> To change settings via email:
    nuttx-digest@... 
    nuttx-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    nuttx-unsubscribe@...

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/

Picon

Are you on Skype?

Hi Greg,

 

Are you on Skype?

 

I would like to discuss

 

 

https://bitbucket.org/nuttx/nuttx/commits/951c71041dff1f94c631aeea47888a0ae39ef160

It just seems wrong and infact breaks resonable code.

 

#if !defined(CCASSERT)

#if defined(static_assert)

#                  define CCASSERT(pr edicate) static_assert(predicate)

#         else

#                   define CCASSERT(predicate) _x_CCASSERT_LINE(predicate, __LINE__)

#&nbsp ;                 if !defined(_x_CCASSERT_LINE)

#                            define _x_CCASSERT_LINE(predicate, line) typedef char CAT(constraint _violated_on_line_,line)[2*((predicate)!=0)-1] __attribute__ ((unused)) ;

#                  endif

#  & nbsp;      endif

#endif

 

Syslog

 Changes what to use when - How do I get an assertion failure to the console if I have one and how do I stop the linkage of syslog on constrained cpu?

 

David

 

 



__._,_.___
Posted by: "David Sidrane" <david_s5-Jdbf3xiKgS8@public.gmane.org>



__,_._,___
Picon

Online debug an application with gdb [1 Attachment]

Hello,


I am now modifying the Nuttx based project called pixhawk (http://px4.io/). Somehow I came across the core dump in the console output as shown in the attached screenshot. I have followed the debugging method with both Blackmagic and ST-Link, and somehow cannot trace the culprit. Whatever the culprit triggers the crash, the core dump information on the console seems all the same. Basically, I want to see the line exactly when the program crashed at. However, my current Nuttx development environment configuration cannot satisfy the online debugging purpose. Appreciate the kind explanations on the confusing points:


The pixhawk whole software stack is quite big and is flashed onto the STM32F427 processor which is 2MB flash, so the pixhawk software compilation turns on some optimization flags to reduce the size, and this may be the reason that cannot debug normally online? Then how should I debug the software module in this case? 


Thank you,

Eric



__._,_.___

Attachment(s) from eric.dongxx-/E1597aS9LS+ZvmcBgLQeg@public.gmane.org [nuttx] | View attachments on the web

1 of 1 Photo(s)

Posted by: eric.dongxx-/E1597aS9LS+ZvmcBgLQeg@public.gmane.org



__,_._,___

Gmane