Discussion:
NUCLEO-F401RE port [1 Attachment]
(too old to reply)
b***@public.gmane.org
2014-04-20 14:49:29 UTC
Permalink
Attached is the initial "$ git status -v" diff, start for a port of the
ST NUCLEO-F401RE, a $15 board containing
One high-performance STM32F401RET6 microcontroller with LQFP64 package ARM Cortex-M4 CPU with FPU at 84MHz 512 KBytes Flash 12bit ADC 2.4 Msps up to 10 channels Up to 10 timers Up to 3x I2C, 3x USARTs, 4x SPIs, SDIO USB 2.0 Full Speed with on-chip PHY 96bit unique ID Arduino connectivity On-board ST-LINK/V2.1 interfacing with the PC via USB
The port configs/stm32f401/nsh builds nuttx.bin but has not been debugged yet. I'm awaiting a RS232 shield to start that effort.


ARM Cortex-M4 CPU with FPU at 84MHz
512 KBytes Flash
12bit ADC 2.4 Msps up to 10 channels
Up to 10 timers
Up to 3x I2C, 3x USARTs, 4x SPIs, SDIO
USB 2.0 Full Speed with on-chip PHY
96bit unique ID
Arduino connectivity
s***@public.gmane.org
2014-04-20 16:12:53 UTC
Permalink
Thanks! I will try to get this incorporated today.

There is one problem though. Looking through patch, I have these files:

# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# new file: nuttx/configs/stm32f401/Kconfig
# new file: nuttx/configs/stm32f401/README.txt
# new file: nuttx/configs/stm32f401/include/board.h
# new file: nuttx/configs/stm32f401/nsh/Make.defs
# new file: nuttx/configs/stm32f401/nsh/defconfig
# new file: nuttx/configs/stm32f401/nsh/setenv.sh
# new file: nuttx/configs/stm32f401/scripts/ld.script
# new file: nuttx/configs/stm32f401/src/Makefile
# new file: nuttx/configs/stm32f401/src/board_config.h
# new file: nuttx/configs/stm32f401/src/stm32f401.h
# new file: nuttx/configs/stm32f401/src/stm32f401_init.c
# new file: nuttx/configs/stm32f401/src/stm32f401_led.c
# new file: nuttx/configs/stm32f401/src/stm32f401_spi.c
# new file: nuttx/configs/stm32f401/src/up_boot.c
# new file: nuttx/configs/stm32f401/src/up_io.c
# new file: nuttx/configs/stm32f401/src/up_spi.c
# new file: nuttx/configs/stm32f401/src/up_wireless.c
#
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: nuttx/arch/arm/include/stm32/chip.h
# modified: nuttx/arch/arm/src/stm32/Kconfig
# modified: nuttx/configs/Kconfig
# modified: nuttx/configs/README.txt
# modified: nuttx/configs/stm32f401/nsh/defconfig

But these differences are not there:

# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: nuttx/arch/arm/include/stm32/chip.h
# modified: nuttx/arch/arm/src/stm32/Kconfig
# modified: nuttx/configs/Kconfig
# modified: nuttx/configs/README.txt
# modified: nuttx/configs/stm32f401/nsh/defconfig

I will need these as well before I can commit the changes.

Greg
s***@public.gmane.org
2014-04-20 16:46:32 UTC
Permalink
My response came out cryptic due to a cut'n'paste error. More simply... I still need these difference before I an do the commit:

# modified: nuttx/arch/arm/include/stm32/chip.h
# modified: nuttx/arch/arm/src/stm32/Kconfig
# modified: nuttx/configs/Kconfig
# modified: nuttx/configs/README.txt

I am also thinking that a better name for the board directory is nucleo-f401re. I try to use the recognizable board name for board support directories (rather than processor names).

Greg
Frank Bennett
2014-04-20 17:41:29 UTC
Permalink
<head>

<style type="text/css">
<!--

/* start of attachment style */
.ygrp-photo-title{
clear: both;
font-size: smaller;
height: 15px;
overflow: hidden;
text-align: center;
width: 75px;
}
div.ygrp-photo{
background-position: center;
background-repeat: no-repeat;
background-color: white;
border: 1px solid black;
height: 62px;
width: 62px;
}

div.photo-title
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;
}

div.attach-table div.attach-row {
clear: both;
}

div.attach-table div.attach-row div {
float: left;
/* margin: 2px;*/
}

p {
clear: both;
padding: 15px 0 3px 0;
overflow: hidden;
}

div.ygrp-file {
width: 30px;
valign: middle;
}
div.attach-table div.attach-row div div a {
text-decoration: none;
}

div.attach-table div.attach-row div div span {
font-weight: normal;
}

div.ygrp-file-title {
font-weight: bold;
}
/* end of attachment style */
-->
</style>
</head>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">





<div class="moz-cite-prefix">On 04/20/2014 10:46 AM,
<a class="moz-txt-link-abbreviated" href="mailto:spudarnia-/***@public.gmane.org">spudarnia-/***@public.gmane.org</a> wrote:<br>
</div>
<blockquote cite="mid:lj0tl8+1k9uqki-***@public.gmane.org" type="cite"> <span
style="display:none"> </span>

<div id="ygrp-text">
<p>My response came out cryptic due to a cut'n'paste
error.   More simply... I still need these difference
before I an do the commit:<br class="yui-cursor">
</p>
<div class="ygroups-quoted"><br>
<div id="ygrps-yiv-987009501">#    modified:  
nuttx/arch/arm/include/stm32/chip.h<br>
#    modified:   nuttx/arch/arm/src/stm32/Kconfig<br>
#    modified:   nuttx/configs/Kconfig<br>
#    modified:   nuttx/configs/README.txt<br>
<br>
I am also thinking that a better name for the board
directory is nucleo-f401re.  I try to use the
recognizable board name for board support directories
(rather than processor names).<br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
I agree but git wouldn't let me rename or delete the
configs/stm32f401<br>
dir...looked like I need to do a commit first of something.<br>
 Frank<br>
<blockquote cite="mid:lj0tl8+1k9uqki-***@public.gmane.org" type="cite">
<div id="ygrp-mlmsg" style="position:relative;">
<div id="ygrp-msg" style="z-index: 1;">
<div id="ygrp-text">
<div class="ygroups-quoted">
<div id="ygrps-yiv-987009501"><br>
Greg<br>
<br>
</div>
</div>
</div>


<!-- end group email -->
</blockquote>
<br>




<!-- |**|begin egp html banner|**| -->

<br>


<br>

<!-- |**|end egp html banner|**| -->


<div width="1" style="color: white; clear: both;"/>__._,_.___</div>





<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- |**|begin egp html banner|**| -->

<img src="http://geo.yahoo.com/serv?s=97476590/grpId=23389070/grpspId=1705006559/msgId=5718/stime=1398015710" width="1" height="1"> <br>

<!-- |**|end egp html banner|**| -->


<!-- |**|begin egp html banner|**| -->

<br>






<!-- |**|begin egp html banner|**| -->
<div id="ygrp-vital" style="background-color: #f2f2f2; font-family: Verdana; font-size: 10px; margin-bottom: 10px; padding: 10px;">

<span id="vithd" style="font-weight: bold; color: #333; text-transform: uppercase; "><a href="https://groups.yahoo.com/neo/groups/nuttx/info;_ylc=X3oDMTJmM2szOW1nBF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzEzOTgwMTU3MTA-" style="text-decoration: none;">Visit Your Group</a></span>

<ul style="list-style-type: none; margin: 0; padding: 0; display: inline;">
<li style="border-right: 1px solid #000; font-weight: 700; display: inline; padding: 0 5px; margin-left: 0;">
<span class="cat"><a href="https://groups.yahoo.com/neo/groups/nuttx/members/all;_ylc=X3oDMTJnMmxla3ZoBF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDdnRsBHNsawN2bWJycwRzdGltZQMxMzk4MDE1NzEw" style="text-decoration: none;">New Members</a></span>
<span class="ct" style="color: #ff7900;">4</span>
</li>
</ul>
</div>


<div id="ft" style="font-family: Arial; font-size: 11px; margin-top: 5px; padding: 0 2px 0 0; clear: both;">
<a href="https://groups.yahoo.com/neo;_ylc=X3oDMTJlY2xzZGozBF9TAzk3NDc2NTkwBGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTM5ODAxNTcxMA--" style="float: left;"><img src="http://l.yimg.com/ru/static/images/yg/img/email/new_logo/logo-groups-137x15.png" height="15" width="<? ol var!Pref.EmailFooterLogo.FullFeatured.Width ?>" alt="Yahoo! Groups" style="border: 0;"/></a>
<div style="color: #747575; float: right;"> &bull; <a href="https://info.yahoo.com/privacy/us/yahoo/groups/details.html" style="text-decoration: none;">Privacy</a> &bull; <a href="mailto:nuttx-unsubscribe-***@public.gmane.org?subject=Unsubscribe" style="text-decoration: none;">Unsubscribe</a> &bull; <a href="https://info.yahoo.com/legal/us/yahoo/utos/terms/" style="text-decoration: none;">Terms of Use</a> </div>
</div>

<!-- |**|end egp html banner|**| -->

</div> <!-- ygrp-msg -->




<br>

<!-- |**|end egp html banner|**| -->


<div style="color: white; clear: both;"/>__,_._,___</div>
</body>
</html>
s***@public.gmane.org
2014-04-20 18:39:00 UTC
Permalink
>> I am also thinking that a better name for the board directory is nucleo-f401re. I try to use the recognizable board name for board support directories (rather than processor names).
>
> I agree but git wouldn't let me rename or delete the configs/stm32f401 dir...looked like I need to do a commit first of something.

Maybe with the -f option to force the rename? Or maybe if you unstage the new files first. In any event, I can change the names when I do the check-in to the SourceForge repository. I still need the missing diffs before I can do that.

Greg
Frank Bennett
2014-04-20 17:38:40 UTC
Permalink
<head>

<style type="text/css">
<!--

/* start of attachment style */
.ygrp-photo-title{
clear: both;
font-size: smaller;
height: 15px;
overflow: hidden;
text-align: center;
width: 75px;
}
div.ygrp-photo{
background-position: center;
background-repeat: no-repeat;
background-color: white;
border: 1px solid black;
height: 62px;
width: 62px;
}

div.photo-title
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;
}

div.attach-table div.attach-row {
clear: both;
}

div.attach-table div.attach-row div {
float: left;
/* margin: 2px;*/
}

p {
clear: both;
padding: 15px 0 3px 0;
overflow: hidden;
}

div.ygrp-file {
width: 30px;
valign: middle;
}
div.attach-table div.attach-row div div a {
text-decoration: none;
}

div.attach-table div.attach-row div div span {
font-weight: normal;
}

div.ygrp-file-title {
font-weight: bold;
}
/* end of attachment style */
-->
</style>
</head>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">





<div class="moz-cite-prefix">On 04/20/2014 10:12 AM,
<a class="moz-txt-link-abbreviated" href="mailto:spudarnia-/***@public.gmane.org">spudarnia-/***@public.gmane.org</a> wrote:<br>
</div>
<blockquote cite="mid:lj0rm5+18te9kq-***@public.gmane.org" type="cite"> <span
style="display:none"> </span>

<div id="ygrp-text">
<p>Thanks!  I will try to get this incorporated today.<br>
<br>
There is one problem though.  Looking through patch, I
have these files:<br>
<br>
# Changes to be committed:<br>
#   (use "git reset HEAD &lt;file&gt;..." to unstage)<br>
#<br>
#    new file:   nuttx/configs/stm32f401/Kconfig<br>
#    new file:   nuttx/configs/stm32f401/README.txt<br>
#    new file:   nuttx/configs/stm32f401/include/board.h<br>
#    new file:   nuttx/configs/stm32f401/nsh/Make.defs<br>
#    new file:   nuttx/configs/stm32f401/nsh/defconfig<br>
#    new file:   nuttx/configs/stm32f401/nsh/setenv.sh<br>
#    new file:   nuttx/configs/stm32f401/scripts/ld.script<br>
#    new file:   nuttx/configs/stm32f401/src/Makefile<br>
#    new file:  
nuttx/configs/stm32f401/src/board_config.h<br>
#    new file:   nuttx/configs/stm32f401/src/stm32f401.h<br>
#    new file:  
nuttx/configs/stm32f401/src/stm32f401_init.c<br>
#    new file:  
nuttx/configs/stm32f401/src/stm32f401_led.c<br>
#    new file:  
nuttx/configs/stm32f401/src/stm32f401_spi.c<br>
#    new file:   nuttx/configs/stm32f401/src/up_boot.c<br>
#    new file:   nuttx/configs/stm32f401/src/up_io.c<br>
#    new file:   nuttx/configs/stm32f401/src/up_spi.c<br>
#    new file:   nuttx/configs/stm32f401/src/up_wireless.c<br>
#<br>
# Changes not staged for commit:<br>
#   (use "git add &lt;file&gt;..." to update what will be
committed)<br>
#   (use "git checkout -- &lt;file&gt;..." to discard
changes in working directory)<br>
#<br>
#    modified:   nuttx/arch/arm/include/stm32/chip.h<br>
#    modified:   nuttx/arch/arm/src/stm32/Kconfig<br>
#    modified:   nuttx/configs/Kconfig<br>
#    modified:   nuttx/configs/README.txt<br>
#    modified:   nuttx/configs/stm32f401/nsh/defconfig<br>
<br>
But these differences are not there:<br>
<br>
# Changes not staged for commit:<br>
#   (use "git add &lt;file&gt;..." to update what will be
committed)<br>
#   (use "git checkout -- &lt;file&gt;..." to discard
changes in working directory)<br>
#<br>
#    modified:   nuttx/arch/arm/include/stm32/chip.h<br>
#    modified:   nuttx/arch/arm/src/stm32/Kconfig<br>
#    modified:   nuttx/configs/Kconfig<br>
#    modified:   nuttx/configs/README.txt<br>
#    modified:   nuttx/configs/stm32f401/nsh/defconfig<br>
<br>
I will need these as well before I can commit the changes.<br>
<br>
Greg</p>
</div>

<div style="color: #fff; height: 0;">_<br>
</div>
</div>
</div>
</blockquote>
Yow, I guess 'git status -v' missed those files...<br>
I have attached the output from 'git diff' which only includes <br>
those ones...?? I'm a greenie with git, my background is RCS, <br>
HMS, CVS, SVN at HP and lately Mercurial.<br>
<br>
Hey nice job on Nuttx &amp; documentation...although<br>
I would like to see more:<br>
o how (high level steps) nsh causes an executable in the filesystem
<br>
  to run from typing in a telnet prompt command<br>
o how networking threads are created<br>
  -I'm trying to get dhcpc, telnetd running with CC3000<br>
o setting up thttpd<br>
  -confused why there are two pass R1[SRCS|OBJ], R2[SRC|OBJ]<br>
   in content/hello,etc. It's broke using the toolchain:<br>
   $ which arm-none-eabi-ld<br>
    /s/projects/gcc-arm-none-eabi-4_8-2013q4/bin/arm-none-eabi-ld<br>
<br>
My background is barebones and Linux and want to fill in<br>
missing experience between $$ gigs, learning RTOS, wireless
networking <br>
to provide a local home network appliance, off the cloud.<br>
<br>
How's living in Costa Rica?<br>
<br>
-Frank<br>
fellow HP-expat<br>
<a href="http://mathegraphics.com/">http://mathegraphics.com/</a><br>




<!-- |**|begin egp html banner|**| -->

<br>


<br>

<!-- |**|end egp html banner|**| -->


<div width="1" style="color: white; clear: both;"/>__._,_.___</div>

<p style="clear: both; padding: 15px 0 3px 0;"><span style="color: #628C2A; font-weight: bold; font-size: 14px;"> Attachment(s) from Frank Bennett </span> | <span style="font-size: 13px;"><a style="text-decoration:none;" href="https://groups.yahoo.com/neo/groups/nuttx/attachments/1857096363;_ylc=X3oDMTJyMnFrazl0BF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDYXR0YWNobWVudARzbGsDdmlld09uV2ViBHN0aW1lAzEzOTgwMTU1NDE-">View attachments on the web </a></span></p>



<p style="clear: both; padding: 15px 0 3px 0;"><span style="color: #628C2A; font-weight: bold;"> 1 of 1 File(s) </span>
</p>
<div class="attach-table">
<div class="attach-row">
<div>
<div class="ygrp-file"> <img src="http://l.yimg.com/kq/static/images/yg/img/doc/generic16x16.gif"></div>
<div class="ygrp-file-title"> <a href="https://xa.yimg.com/kq/groups/23389070/1171266322/name/diff%2Ep1" style="">diff.p1</a></div>
</div>
</div>
</div>


<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- |**|begin egp html banner|**| -->

<img src="http://geo.yahoo.com/serv?s=97476590/grpId=23389070/grpspId=1705006559/msgId=5717/stime=1398015541" width="1" height="1"> <br>

<!-- |**|end egp html banner|**| -->


<!-- |**|begin egp html banner|**| -->

<br>






<!-- |**|begin egp html banner|**| -->
<div id="ygrp-vital" style="background-color: #f2f2f2; font-family: Verdana; font-size: 10px; margin-bottom: 10px; padding: 10px;">

<span id="vithd" style="font-weight: bold; color: #333; text-transform: uppercase; "><a href="https://groups.yahoo.com/neo/groups/nuttx/info;_ylc=X3oDMTJmNXBrZGRpBF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzEzOTgwMTU1NDE-" style="text-decoration: none;">Visit Your Group</a></span>

<ul style="list-style-type: none; margin: 0; padding: 0; display: inline;">
<li style="border-right: 1px solid #000; font-weight: 700; display: inline; padding: 0 5px; margin-left: 0;">
<span class="cat"><a href="https://groups.yahoo.com/neo/groups/nuttx/members/all;_ylc=X3oDMTJnbGdiNHJuBF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDdnRsBHNsawN2bWJycwRzdGltZQMxMzk4MDE1NTQx" style="text-decoration: none;">New Members</a></span>
<span class="ct" style="color: #ff7900;">4</span>
</li>
</ul>
</div>


<div id="ft" style="font-family: Arial; font-size: 11px; margin-top: 5px; padding: 0 2px 0 0; clear: both;">
<a href="https://groups.yahoo.com/neo;_ylc=X3oDMTJlZmozcW1pBF9TAzk3NDc2NTkwBGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTM5ODAxNTU0MQ--" style="float: left;"><img src="http://l.yimg.com/ru/static/images/yg/img/email/new_logo/logo-groups-137x15.png" height="15" width="<? ol var!Pref.EmailFooterLogo.FullFeatured.Width ?>" alt="Yahoo! Groups" style="border: 0;"/></a>
<div style="color: #747575; float: right;"> &bull; <a href="https://info.yahoo.com/privacy/us/yahoo/groups/details.html" style="text-decoration: none;">Privacy</a> &bull; <a href="mailto:nuttx-unsubscribe-***@public.gmane.org?subject=Unsubscribe" style="text-decoration: none;">Unsubscribe</a> &bull; <a href="https://info.yahoo.com/legal/us/yahoo/utos/terms/" style="text-decoration: none;">Terms of Use</a> </div>
</div>

<!-- |**|end egp html banner|**| -->

</div> <!-- ygrp-msg -->




<br>

<!-- |**|end egp html banner|**| -->


<div style="color: white; clear: both;"/>__,_._,___</div>
</body>
</html>
s***@public.gmane.org
2014-04-20 18:53:49 UTC
Permalink
Hi, Frank,

> Yow, I guess 'git status -v' missed those files...
> I have attached the output from 'git diff' which only includes those ones...?? I'm a greenie with git, my background is RCS, HMS, CVS, SVN at HP and lately Mercurial.

> o how (high level steps) nsh causes an executable in the filesystem to run from typing in a telnet prompt command

Magic. Well, the magic of Unix I/O redirection. There is a character driver that wraps a telnet session at apps/netutils/telnetd. stdin, stdout, and stderr get re-directed to the telnetd character dirver. So all printf's go out the telnet session and all incoming telnet data looks like stdin.

And when you create new tasks from NSH, they just inherit stdin, stdout, and stderr from their parent and are then also a part of the same telnet session.

> o how networking threads are created -I'm trying to get dhcpc, telnetd running with CC3000

The CC3000 is completely separate from the normal NuttX TCP/IP networking (because the stacks are off chip). I didn't do that work and don't know very much about it. But other people in this group might be able to help me.

> o setting up thttpd
> -confused why there are two pass R1[SRCS|OBJ], R2[SRC|OBJ]
> in content/hello,etc. It's broke using the toolchain:
> $ which arm-none-eabi-ld>
> /s/projects/gcc-arm-none-eabi-4_8-2013q4/bin/arm-none-eabi-ld

It builds a separate ROMFS file system with the CGI executables in it NXFLAT format. Some of the more recent GCC tools have broken the ARM PIC model and, heance, have broken NXFLAT (see http://www.nuttx.org/doku.php?id=wiki:vfs:nxflat http://www.nuttx.org/doku.php?id=wiki:vfs:nxflat I had hoped that they might have fixed that in later version).

That bug blows NXFLAT out of the water. if 4.8.2 has the same issue as 4.6.3, then the only options are use ELF instead of NXFLAT or to fall back to a pre 4.6.3 toolchain (perhaps just for the NXFLAT builds?).

> My background is barebones and Linux and want to fill in missing experience between $$ gigs, learning RTOS, wireless networking to provide a local home network appliance, off the cloud.
>
> How's living in Costa Rica?

I have lived here for pushing 14 years, so I don't really have a point of reference anymore. I haven't been in the states since 2010 (I think). I certainly don't miss winter.

> fellow HP-expat
I noticed that you were with HP for almost the same years that I was. I was there from 87 to 2002 (working remotely from Costa Rica the last few years). I did work with the HP-Costa Rica networking division doing ASIC-related work for a couple of years too. I notice that you were on the Agilent side.

Greg
s***@public.gmane.org
2014-04-20 20:27:07 UTC
Permalink
> Attached is the initial "$ git status -v" diff, start for a port of the ST NUCLEO-F401RE ...

All of the code is checked in, but there are still a lot of issues and some more TLC is needed. Here are some notes:

1. As we discussed, I change the configuration directory name from stm32f401 to nucleo-f401re
2. I also renamed some of the files in nucleo-f401re/src/ to following some of the naming conventions: http://nuttx.org/doku.php?id=wiki:nxinternal:naming http://nuttx.org/doku.php?id=wiki:nxinternal:naming
3. You had two SPI files in in the patch: stm32f401_spi.c and up_spi.c These had the same functions in them so I was not sure that do do with them. They are now merged together in one stm32_spi.c
4. I don't understand why all of the PX4 stuff in is there. You must be interfacing the STM32F401 with a PX4 is some way? The logic probably should be conditioned on some variable since many Nucleo users are not going to have the PX4 stuff attached.
5. There are two board definition files in the src/sub-directory: board_config.h and the F401RE board file. There should be only one and it should be called nucleo-f401re.h by the current conventions. These two header files also contain some incompatible definitions (like GPIO_LED1).
6. There are lots of warnings when NuttX builds. This is because the Make.defs file uses the PX4 warning setup instead of the standard NuttX warnings.
7. Finally... although the compilation worked with many warnings, the final link failed. This was due to issues with libgcc from the toolchain. I really didn't look into the details.

Thanks for the contribution. Now I am inspired to by a Nucleo board!
Greg
Frank Bennett
2014-04-21 00:50:27 UTC
Permalink
<head>

<style type="text/css">
<!--

/* start of attachment style */
.ygrp-photo-title{
clear: both;
font-size: smaller;
height: 15px;
overflow: hidden;
text-align: center;
width: 75px;
}
div.ygrp-photo{
background-position: center;
background-repeat: no-repeat;
background-color: white;
border: 1px solid black;
height: 62px;
width: 62px;
}

div.photo-title
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;
}

div.attach-table div.attach-row {
clear: both;
}

div.attach-table div.attach-row div {
float: left;
/* margin: 2px;*/
}

p {
clear: both;
padding: 15px 0 3px 0;
overflow: hidden;
}

div.ygrp-file {
width: 30px;
valign: middle;
}
div.attach-table div.attach-row div div a {
text-decoration: none;
}

div.attach-table div.attach-row div div span {
font-weight: normal;
}

div.ygrp-file-title {
font-weight: bold;
}
/* end of attachment style */
-->
</style>
</head>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">





<div class="moz-cite-prefix">On 04/20/2014 02:27 PM,
<a class="moz-txt-link-abbreviated" href="mailto:spudarnia-/***@public.gmane.org">spudarnia-/***@public.gmane.org</a> wrote:<br>
</div>
<blockquote cite="mid:lj1air+p0sv1r-***@public.gmane.org" type="cite"> <span
style="display:none"> </span>

<div id="ygrp-text">
<p>&gt; Attached is the initial "$ git status -v" diff,
start for a port of the ST NUCLEO-F401RE ...<br>
<br>
All of the code is checked in, but there are still a lot
of issues and some more TLC is needed.  Here are some
notes:<br>
<br>
1. As we discussed, I change the configuration directory
name from stm32f401 to nucleo-f401re<br>
2. I also renamed some of the files in nucleo-f401re/src/
to following some of the naming conventions: <a
moz-do-not-send="true" rel="nofollow" target="_blank"
href="http://nuttx.org/doku.php?id=wiki:nxinternal:naming">http://nuttx.org/doku.php?id=wiki:nxinternal:naming</a><br>
3. You had two SPI files in in the patch:  stm32f401_spi.c
and up_spi.c  These had the same functions in them so I
was not sure that do do with them.  They are now merged
together in one stm32_spi.c<br>
4. I don't understand why all of the PX4 stuff in is
there.  You must be interfacing the STM32F401 with a PX4
is some way?  The logic probably should be conditioned on
some variable since many Nucleo users are not going to
have the PX4 stuff attached.<br>
5. There are two board definition files in the
src/sub-directory:  board_config.h and the F401RE board
file.  There should be only one and it should be called
nucleo-f401re.h by the current conventions.  These two
header files also contain some incompatible definitions
(like GPIO_LED1).<br>
6. There are lots of warnings when NuttX builds.  This is
because the Make.defs file uses the PX4 warning setup
instead of the standard NuttX warnings.<br>
7. Finally... although the compilation worked with many
warnings, the final link failed.  This was due to issues
with libgcc from the toolchain.  I really didn't look into
the details.<br>
</p>
</div>
</div>
</div>
</blockquote>
Yeah, you caught me...I started with the PX4 since it looked like
the <br>
closest target to the stm32f401...just to get something to build,
then <br>
I tried to rename the config files...pretty sloppy cleanup on my
part!<br>
<br>
Checked in? Now how do I get in sync with <br>
    git://git.code.sf.net/p/nuttx/git ?<br>
Override my changes &amp; perform what I'm more use too like "svn
up"?<br>
<br>
My SCM days go back to using Scott Kramer's HMS in 1989, he created
as a <br>
G job at HP, that we used in the Computer Graphics Lab for history <br>
management for some i860 Firmware before the software folks adopted
it. <br>
   <a href="www.linkedin.com/pub/scott-kramer/1/609/966">www.linkedin.com/pub/scott-kramer/1/609/966</a><br>
<br>
-Frank<br>
<blockquote cite="mid:lj1air+p0sv1r-***@public.gmane.org" type="cite">
<div id="ygrp-mlmsg" style="position:relative;">
<div id="ygrp-msg" style="z-index: 1;">
<div id="ygrp-text">
<p><br>
Thanks for the contribution.  Now I am inspired to by a
Nucleo board!<br>
Greg</p>
</div>


<!-- end group email -->
</blockquote>
<br>




<!-- |**|begin egp html banner|**| -->

<br>


<br>

<!-- |**|end egp html banner|**| -->


<div width="1" style="color: white; clear: both;"/>__._,_.___</div>





<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- |**|begin egp html banner|**| -->

<img src="http://geo.yahoo.com/serv?s=97476590/grpId=23389070/grpspId=1705006559/msgId=5722/stime=1398041448" width="1" height="1"> <br>

<!-- |**|end egp html banner|**| -->


<!-- |**|begin egp html banner|**| -->

<br>






<!-- |**|begin egp html banner|**| -->
<div id="ygrp-vital" style="background-color: #f2f2f2; font-family: Verdana; font-size: 10px; margin-bottom: 10px; padding: 10px;">

<span id="vithd" style="font-weight: bold; color: #333; text-transform: uppercase; "><a href="https://groups.yahoo.com/neo/groups/nuttx/info;_ylc=X3oDMTJmcmZkbWIyBF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzEzOTgwNDE0NDg-" style="text-decoration: none;">Visit Your Group</a></span>

<ul style="list-style-type: none; margin: 0; padding: 0; display: inline;">
<li style="border-right: 1px solid #000; font-weight: 700; display: inline; padding: 0 5px; margin-left: 0;">
<span class="cat"><a href="https://groups.yahoo.com/neo/groups/nuttx/members/all;_ylc=X3oDMTJnb2RlNmdrBF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDdnRsBHNsawN2bWJycwRzdGltZQMxMzk4MDQxNDQ4" style="text-decoration: none;">New Members</a></span>
<span class="ct" style="color: #ff7900;">3</span>
</li>
</ul>
</div>


<div id="ft" style="font-family: Arial; font-size: 11px; margin-top: 5px; padding: 0 2px 0 0; clear: both;">
<a href="https://groups.yahoo.com/neo;_ylc=X3oDMTJldTVxbjNhBF9TAzk3NDc2NTkwBGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTM5ODA0MTQ0OA--" style="float: left;"><img src="http://l.yimg.com/ru/static/images/yg/img/email/new_logo/logo-groups-137x15.png" height="15" width="<? ol var!Pref.EmailFooterLogo.FullFeatured.Width ?>" alt="Yahoo! Groups" style="border: 0;"/></a>
<div style="color: #747575; float: right;"> &bull; <a href="https://info.yahoo.com/privacy/us/yahoo/groups/details.html" style="text-decoration: none;">Privacy</a> &bull; <a href="mailto:nuttx-unsubscribe-***@public.gmane.org?subject=Unsubscribe" style="text-decoration: none;">Unsubscribe</a> &bull; <a href="https://info.yahoo.com/legal/us/yahoo/utos/terms/" style="text-decoration: none;">Terms of Use</a> </div>
</div>

<!-- |**|end egp html banner|**| -->

</div> <!-- ygrp-msg -->




<br>

<!-- |**|end egp html banner|**| -->


<div style="color: white; clear: both;"/>__,_._,___</div>
</body>
</html>
Gregory Nutt
2014-04-21 14:19:40 UTC
Permalink
Hi, Frank,


> Yeah, you caught me...I started with the PX4 since it looked like the closest target to the stm32f401...just to get something to build, thenI tried to rename the config files...pretty sloppy cleanup on my part!

We will need to at least remove all of the GPIO pins that are configured for the PX4.

> Checked in? Now how do I get in sync with   git://git.code.sf.net/p/nuttx/git ? Override my changes & perform what I'm more use too like "svn
up"?

I am not GIT expert but I usually do this:

git status

Remove and unstage as many  files as possible.  You can either discard your changes with "git checkou --"  or you can choose to stash them with 'git stash'

Then you can do 'git pull --rebase' to synchronize (like 'svn up')

if you stashed you an either discard the changes with 'git stash drop' or try to merge them back in with 'git stash pop'.  The final pop will probably create mess as it


Greg
Frank Bennett
2014-04-21 14:44:35 UTC
Permalink
<head>

<style type="text/css">
<!--

/* start of attachment style */
.ygrp-photo-title{
clear: both;
font-size: smaller;
height: 15px;
overflow: hidden;
text-align: center;
width: 75px;
}
div.ygrp-photo{
background-position: center;
background-repeat: no-repeat;
background-color: white;
border: 1px solid black;
height: 62px;
width: 62px;
}

div.photo-title
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;
}

div.attach-table div.attach-row {
clear: both;
}

div.attach-table div.attach-row div {
float: left;
/* margin: 2px;*/
}

p {
clear: both;
padding: 15px 0 3px 0;
overflow: hidden;
}

div.ygrp-file {
width: 30px;
valign: middle;
}
div.attach-table div.attach-row div div a {
text-decoration: none;
}

div.attach-table div.attach-row div div span {
font-weight: normal;
}

div.ygrp-file-title {
font-weight: bold;
}
/* end of attachment style */
-->
</style>
</head>
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">





<div class="moz-cite-prefix">On 04/21/2014 08:19 AM, Gregory Nutt
wrote:<br>
</div>
<blockquote
cite="mid:1398089980.50141.YahooMailNeo-fadwCHANpKmvrfWm4H71L5EhsgyP+***@public.gmane.org"
type="cite"> <span style="display:none">&nbsp;</span>

<div id="ygrp-text">
<div
style="color:#000;background-color:#fff;font-family:HelveticaNeue,
Helvetica Neue, Helvetica, Arial, Lucida Grande,
sans-serif;font-size:12pt;">Hi, Frank,<br>
<div><span><br>
</span></div>
<div class="yahoo_quoted">
<div style="font-family: HelveticaNeue, Helvetica Neue,
Helvetica, Arial, Lucida Grande, sans-serif;font-size:
12pt;">
<div style="font-family: HelveticaNeue, Helvetica
Neue, Helvetica, Arial, Lucida Grande,
sans-serif;font-size: 12pt;"><font size="2"><font
face="Arial">&gt; </font></font>Yeah, you
caught me...I started with the PX4 since it looked
like the closest target to the stm32f401...just to
get something to build, thenI tried to rename the
config files...pretty sloppy cleanup on my part!<br>
<br>
We will need to at least remove all of the GPIO pins
that are configured for the PX4.<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
ok, I will work on that while I'm waiting shipment on a RS232 shield<br>
for debug....after my morning tennis for exercise...<br>
&nbsp;Frank<br>
<blockquote
cite="mid:1398089980.50141.YahooMailNeo-fadwCHANpKmvrfWm4H71L5EhsgyP+***@public.gmane.org"
type="cite">
<div id="ygrp-mlmsg" style="position:relative;">
<div id="ygrp-msg" style="z-index: 1;">
<div id="ygrp-text">
<div
style="color:#000;background-color:#fff;font-family:HelveticaNeue,
Helvetica Neue, Helvetica, Arial, Lucida Grande,
sans-serif;font-size:12pt;">
<div class="yahoo_quoted">
<div style="font-family: HelveticaNeue, Helvetica Neue,
Helvetica, Arial, Lucida Grande, sans-serif;font-size:
12pt;">
<div style="font-family: HelveticaNeue, Helvetica
Neue, Helvetica, Arial, Lucida Grande,
sans-serif;font-size: 12pt;"><br>
&gt; Checked in? Now how do I get in sync with&nbsp;&nbsp;
git://git.code.sf.net/p/nuttx/git ? Override my
changes &amp; perform what I'm more use too like
"svn up"?<br>
<br>
I am not GIT expert but I usually do this:<br>
<br>
git status<br>
<br>
Remove and unstage as many&nbsp; files as possible.&nbsp; You
can either discard your changes with "git checkou
--"&nbsp; or you can choose to stash them with 'git
stash'<br>
<br>
Then you can do 'git pull --rebase' to synchronize
(like 'svn up')<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
$ git stash<br>
$ git pull --rebase<br>
seemed to work since<br>
$ git status is clean<br>
<blockquote
cite="mid:1398089980.50141.YahooMailNeo-fadwCHANpKmvrfWm4H71L5EhsgyP+***@public.gmane.org"
type="cite">
<div id="ygrp-mlmsg" style="position:relative;">
<div id="ygrp-msg" style="z-index: 1;">
<div id="ygrp-text">
<div
style="color:#000;background-color:#fff;font-family:HelveticaNeue,
Helvetica Neue, Helvetica, Arial, Lucida Grande,
sans-serif;font-size:12pt;">
<div class="yahoo_quoted">
<div style="font-family: HelveticaNeue, Helvetica Neue,
Helvetica, Arial, Lucida Grande, sans-serif;font-size:
12pt;">
<div style="font-family: HelveticaNeue, Helvetica
Neue, Helvetica, Arial, Lucida Grande,
sans-serif;font-size: 12pt;"><br>
if you stashed you an either discard the changes
with 'git stash drop' or try to merge them back in
with 'git stash pop'.&nbsp; The final pop will probably
create mess as it <br clear="none">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
or I guess, just abandon old directory and:<br>
&nbsp;&nbsp;&nbsp; git clone <a class="moz-txt-link-freetext" href="http://git.code.sf.net/p/nuttx/git">http://git.code.sf.net/p/nuttx/git</a> nuttx-code<br>
<blockquote
cite="mid:1398089980.50141.YahooMailNeo-fadwCHANpKmvrfWm4H71L5EhsgyP+***@public.gmane.org"
type="cite">
<div id="ygrp-mlmsg" style="position:relative;">
<div id="ygrp-msg" style="z-index: 1;">
<div id="ygrp-text">
<div
style="color:#000;background-color:#fff;font-family:HelveticaNeue,
Helvetica Neue, Helvetica, Arial, Lucida Grande,
sans-serif;font-size:12pt;">
<div class="yahoo_quoted">
<div style="font-family: HelveticaNeue, Helvetica Neue,
Helvetica, Arial, Lucida Grande, sans-serif;font-size:
12pt;">
<div style="font-family: HelveticaNeue, Helvetica
Neue, Helvetica, Arial, Lucida Grande,
sans-serif;font-size: 12pt;">
<div class="y_msg_container"><br>
Greg<br>
</div>
</div>
</div>
</div>
</div>
</div>


<!-- end group email -->
</blockquote>
<br>




<!-- |**|begin egp html banner|**| -->

<br>


<br>

<!-- |**|end egp html banner|**| -->


<div width="1" style="color: white; clear: both;"/>__._,_.___</div>





<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- |**|begin egp html banner|**| -->

<img src="http://geo.yahoo.com/serv?s=97476590/grpId=23389070/grpspId=1705006559/msgId=5724/stime=1398091495" width="1" height="1"> <br>

<!-- |**|end egp html banner|**| -->


<!-- |**|begin egp html banner|**| -->

<br>






<!-- |**|begin egp html banner|**| -->
<div id="ygrp-vital" style="background-color: #f2f2f2; font-family: Verdana; font-size: 10px; margin-bottom: 10px; padding: 10px;">

<span id="vithd" style="font-weight: bold; color: #333; text-transform: uppercase; "><a href="https://groups.yahoo.com/neo/groups/nuttx/info;_ylc=X3oDMTJmb3VuZTZjBF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzEzOTgwOTE0OTU-" style="text-decoration: none;">Visit Your Group</a></span>

<ul style="list-style-type: none; margin: 0; padding: 0; display: inline;">
<li style="border-right: 1px solid #000; font-weight: 700; display: inline; padding: 0 5px; margin-left: 0;">
<span class="cat"><a href="https://groups.yahoo.com/neo/groups/nuttx/members/all;_ylc=X3oDMTJnMG4xcjMwBF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDdnRsBHNsawN2bWJycwRzdGltZQMxMzk4MDkxNDk1" style="text-decoration: none;">New Members</a></span>
<span class="ct" style="color: #ff7900;">3</span>
</li>
</ul>
</div>


<div id="ft" style="font-family: Arial; font-size: 11px; margin-top: 5px; padding: 0 2px 0 0; clear: both;">
<a href="https://groups.yahoo.com/neo;_ylc=X3oDMTJlYXRhdmUxBF9TAzk3NDc2NTkwBGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTM5ODA5MTQ5NQ--" style="float: left;"><img src="http://l.yimg.com/ru/static/images/yg/img/email/new_logo/logo-groups-137x15.png" height="15" width="<? ol var!Pref.EmailFooterLogo.FullFeatured.Width ?>" alt="Yahoo! Groups" style="border: 0;"/></a>
<div style="color: #747575; float: right;"> &bull; <a href="https://info.yahoo.com/privacy/us/yahoo/groups/details.html" style="text-decoration: none;">Privacy</a> &bull; <a href="mailto:nuttx-unsubscribe-***@public.gmane.org?subject=Unsubscribe" style="text-decoration: none;">Unsubscribe</a> &bull; <a href="https://info.yahoo.com/legal/us/yahoo/utos/terms/" style="text-decoration: none;">Terms of Use</a> </div>
</div>

<!-- |**|end egp html banner|**| -->

</div> <!-- ygrp-msg -->




<br>

<!-- |**|end egp html banner|**| -->


<div style="color: white; clear: both;"/>__,_._,___</div>
</body>
</html>
s***@public.gmane.org
2014-04-22 19:14:43 UTC
Permalink
Hi, Frank,

I want to let you know that I did the following:

1. I removed all traces of PX4 stuff from the Nucleo F401RE configuration. I think you will find that that cleans up a lot of stuff.

2. I removed the PX4 style LED controls with the standard, NuttX LED controls.

3. I also added standard, NuttX button interfaces as well.

I still don't have my Nucleo board yet, so it you could give this a try, it would be much appreciated.

Greg
Frank Bennett
2014-04-22 19:52:44 UTC
Permalink
<head>

<style type="text/css">
<!--

/* start of attachment style */
.ygrp-photo-title{
clear: both;
font-size: smaller;
height: 15px;
overflow: hidden;
text-align: center;
width: 75px;
}
div.ygrp-photo{
background-position: center;
background-repeat: no-repeat;
background-color: white;
border: 1px solid black;
height: 62px;
width: 62px;
}

div.photo-title
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;
}

div.attach-table div.attach-row {
clear: both;
}

div.attach-table div.attach-row div {
float: left;
/* margin: 2px;*/
}

p {
clear: both;
padding: 15px 0 3px 0;
overflow: hidden;
}

div.ygrp-file {
width: 30px;
valign: middle;
}
div.attach-table div.attach-row div div a {
text-decoration: none;
}

div.attach-table div.attach-row div div span {
font-weight: normal;
}

div.ygrp-file-title {
font-weight: bold;
}
/* end of attachment style */
-->
</style>
</head>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">





<div class="moz-cite-prefix">On 04/22/2014 01:14 PM,
<a class="moz-txt-link-abbreviated" href="mailto:spudarnia-/***@public.gmane.org">spudarnia-/***@public.gmane.org</a> wrote:<br>
</div>
<blockquote cite="mid:lj6f33+15tsc1r-***@public.gmane.org" type="cite"> <span
style="display:none"> </span>

<div id="ygrp-text">
<p>Hi, Frank,<br>
<br>
I want to let you know that I did the following:<br>
<br>
1. I removed all traces of PX4 stuff from the Nucleo
F401RE configuration.  I think you will find that that
cleans up a lot of stuff.<br>
<br>
2. I removed the PX4 style LED controls with the standard,
NuttX LED controls.<br>
<br>
3. I also added standard, NuttX button interfaces as well.<br>
<br>
I still don't have my Nucleo board yet, so it you could
give this a try, it would be much appreciated.<br>
<br>
Greg</p>
</div>
</div>
</div>
</blockquote>
Me too, merge in the following diff. Looking for a <br>
simple example of hello. that blinks the LED1 or LED2...<br>
-Frank<br>
<br>
$ git status<br>
# On branch master<br>
# Changes to be committed:<br>
#   (use "git reset HEAD &lt;file&gt;..." to unstage)<br>
#<br>
#    deleted:    nuttx/configs/nucleo-f401re/src/nucleo-f401re.h<br>
#<br>
# Changes not staged for commit:<br>
#   (use "git add &lt;file&gt;..." to update what will be committed)<br>
#   (use "git checkout -- &lt;file&gt;..." to discard changes in
working directory)<br>
#<br>
#    modified:   nuttx/configs/nucleo-f401re/README.txt<br>
#    modified:   nuttx/configs/nucleo-f401re/src/board_config.h<br>
#    modified:   nuttx/configs/nucleo-f401re/src/stm32_boot.c<br>
#    modified:   nuttx/configs/nucleo-f401re/src/stm32_init.c<br>
#    modified:   nuttx/configs/nucleo-f401re/src/stm32_io.c<br>
#    modified:   nuttx/configs/nucleo-f401re/src/stm32_led.c<br>
#    modified:   nuttx/configs/nucleo-f401re/src/stm32_spi.c<br>
#    modified:   nuttx/configs/nucleo-f401re/src/stm32_wireless.c<br>
#<br>
# Untracked files:<br>
#   (use "git add &lt;file&gt;..." to include in what will be
committed)<br>
#<br>
#    diff140422.p1<br>
<br>
<blockquote cite="mid:lj6f33+15tsc1r-***@public.gmane.org" type="cite">
<div id="ygrp-mlmsg" style="position:relative;">
<div id="ygrp-msg" style="z-index: 1;">
<div id="ygrp-text"> </div>


<!-- end group email -->
</blockquote>
<br>




<!-- |**|begin egp html banner|**| -->

<br>


<br>

<!-- |**|end egp html banner|**| -->


<div width="1" style="color: white; clear: both;"/>__._,_.___</div>

<p style="clear: both; padding: 15px 0 3px 0;"><span style="color: #628C2A; font-weight: bold; font-size: 14px;"> Attachment(s) from Frank Bennett </span> | <span style="font-size: 13px;"><a style="text-decoration:none;" href="https://groups.yahoo.com/neo/groups/nuttx/attachments/167701325;_ylc=X3oDMTJyODM0bmFpBF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDYXR0YWNobWVudARzbGsDdmlld09uV2ViBHN0aW1lAzEzOTgxOTYzODY-">View attachments on the web </a></span></p>



<p style="clear: both; padding: 15px 0 3px 0;"><span style="color: #628C2A; font-weight: bold;"> 1 of 1 File(s) </span>
</p>
<div class="attach-table">
<div class="attach-row">
<div>
<div class="ygrp-file"> <img src="http://l.yimg.com/kq/static/images/yg/img/doc/generic16x16.gif"></div>
<div class="ygrp-file-title"> <a href="https://xa.yimg.com/kq/groups/23389070/749191690/name/diff140422%2Ep1" style="">diff140422.p1</a></div>
</div>
</div>
</div>


<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- |**|begin egp html banner|**| -->

<img src="http://geo.yahoo.com/serv?s=97476590/grpId=23389070/grpspId=1705006559/msgId=5730/stime=1398196386" width="1" height="1"> <br>

<!-- |**|end egp html banner|**| -->


<!-- |**|begin egp html banner|**| -->

<br>






<!-- |**|begin egp html banner|**| -->
<div id="ygrp-vital" style="background-color: #f2f2f2; font-family: Verdana; font-size: 10px; margin-bottom: 10px; padding: 10px;">

<span id="vithd" style="font-weight: bold; color: #333; text-transform: uppercase; "><a href="https://groups.yahoo.com/neo/groups/nuttx/info;_ylc=X3oDMTJmOHU1bmg4BF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzEzOTgxOTYzODY-" style="text-decoration: none;">Visit Your Group</a></span>

<ul style="list-style-type: none; margin: 0; padding: 0; display: inline;">
<li style="border-right: 1px solid #000; font-weight: 700; display: inline; padding: 0 5px; margin-left: 0;">
<span class="cat"><a href="https://groups.yahoo.com/neo/groups/nuttx/members/all;_ylc=X3oDMTJncThjNzh2BF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDdnRsBHNsawN2bWJycwRzdGltZQMxMzk4MTk2Mzg2" style="text-decoration: none;">New Members</a></span>
<span class="ct" style="color: #ff7900;">2</span>
</li>
</ul>
</div>


<div id="ft" style="font-family: Arial; font-size: 11px; margin-top: 5px; padding: 0 2px 0 0; clear: both;">
<a href="https://groups.yahoo.com/neo;_ylc=X3oDMTJldHB2NWU1BF9TAzk3NDc2NTkwBGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTM5ODE5NjM4Ng--" style="float: left;"><img src="http://l.yimg.com/ru/static/images/yg/img/email/new_logo/logo-groups-137x15.png" height="15" width="<? ol var!Pref.EmailFooterLogo.FullFeatured.Width ?>" alt="Yahoo! Groups" style="border: 0;"/></a>
<div style="color: #747575; float: right;"> &bull; <a href="https://info.yahoo.com/privacy/us/yahoo/groups/details.html" style="text-decoration: none;">Privacy</a> &bull; <a href="mailto:nuttx-unsubscribe-***@public.gmane.org?subject=Unsubscribe" style="text-decoration: none;">Unsubscribe</a> &bull; <a href="https://info.yahoo.com/legal/us/yahoo/utos/terms/" style="text-decoration: none;">Terms of Use</a> </div>
</div>

<!-- |**|end egp html banner|**| -->

</div> <!-- ygrp-msg -->




<br>

<!-- |**|end egp html banner|**| -->


<div style="color: white; clear: both;"/>__,_._,___</div>
</body>
</html>
s***@public.gmane.org
2014-04-22 20:40:10 UTC
Permalink
This is going to be difficult to merge since it is against the repository before my changes. I'll get it a try but you will need to retest.

Greg
s***@public.gmane.org
2014-04-22 22:06:04 UTC
Permalink
Okay. I think I have everything in place and checked in. It builds but may require another iteration. I don't plan in mucking in the board code again ... at least not until by Nucleo shows up.

Greg
s***@public.gmane.org
2014-04-22 22:39:54 UTC
Permalink
Hi, Frank,

One other thing that you might note in the changes...

The board SPI interfaces require a SPIDEV_ value from include/nuttx/spi/spi.h. I don't know what this MPU device is so I created an SPIDEV_EXTDEV for now. We probably should clarify that later.

Greg
Frank Bennett
2014-04-25 14:28:23 UTC
Permalink
<head>

<style type="text/css">
<!--

/* start of attachment style */
.ygrp-photo-title{
clear: both;
font-size: smaller;
height: 15px;
overflow: hidden;
text-align: center;
width: 75px;
}
div.ygrp-photo{
background-position: center;
background-repeat: no-repeat;
background-color: white;
border: 1px solid black;
height: 62px;
width: 62px;
}

div.photo-title
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;
}

div.attach-table div.attach-row {
clear: both;
}

div.attach-table div.attach-row div {
float: left;
/* margin: 2px;*/
}

p {
clear: both;
padding: 15px 0 3px 0;
overflow: hidden;
}

div.ygrp-file {
width: 30px;
valign: middle;
}
div.attach-table div.attach-row div div a {
text-decoration: none;
}

div.attach-table div.attach-row div div span {
font-weight: normal;
}

div.ygrp-file-title {
font-weight: bold;
}
/* end of attachment style */
-->
</style>
</head>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">





<div class="moz-cite-prefix">On 04/22/2014 04:39 PM,
<a class="moz-txt-link-abbreviated" href="mailto:spudarnia-/***@public.gmane.org">spudarnia-/***@public.gmane.org</a> wrote:<br>
</div>
<blockquote cite="mid:lj6r3q+9i7rn5-***@public.gmane.org" type="cite"> <span
style="display:none"> </span>

<div id="ygrp-text">
<p>Hi, Frank,<br>
<br>
One other thing that you might note in the changes...<br>
<br>
The board SPI interfaces require a SPIDEV_ value from
include/nuttx/spi/spi.h.  I don't know what this MPU
device is so I created an SPIDEV_EXTDEV for now.  We
probably should clarify that later.<br>
</p>
</div>
</div>
</div>
</blockquote>
I didn't either so I left it.<br>
I'm getting CONFIG confused....How do I simple add USART2<br>
so I can have a Nuttx console output?<br>
with:<br>
CONFIG_DEV_CONSOLE=y<br>
CONFIG_SERIAL=y<br>
#<br>
# USART Configuration<br>
#<br>
CONFIG_USART2_ISUART=y<br>
CONFIG_MCU_SERIAL=y<br>
CONFIG_STANDARD_SERIAL=y<br>
CONFIG_USART2_SERIAL_CONSOLE=y<br>
#<br>
# Graphics Support<br>
#<br>
CONFIG_NX=y<br>
CONFIG_NXCONSOLE=y<br>
CONFIG_NX_MULTIUSER=y<br>
CONFIG_NX_BLOCKING=y<br>
feels like a rat hole<br>
Some of these don't show up in make qconfig<br>
 Frank<br>
<blockquote cite="mid:lj6r3q+9i7rn5-***@public.gmane.org" type="cite">
<div id="ygrp-mlmsg" style="position:relative;">
<div id="ygrp-msg" style="z-index: 1;">
<div id="ygrp-text">
<p><br>
Greg</p>
</div>


<!-- end group email -->
</blockquote>
<br>




<!-- |**|begin egp html banner|**| -->

<br>


<br>

<!-- |**|end egp html banner|**| -->


<div width="1" style="color: white; clear: both;"/>__._,_.___</div>





<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- |**|begin egp html banner|**| -->

<img src="http://geo.yahoo.com/serv?s=97476590/grpId=23389070/grpspId=1705006559/msgId=5755/stime=1398436125" width="1" height="1"> <br>

<!-- |**|end egp html banner|**| -->


<!-- |**|begin egp html banner|**| -->

<br>






<!-- |**|begin egp html banner|**| -->
<div id="ygrp-vital" style="background-color: #f2f2f2; font-family: Verdana; font-size: 10px; margin-bottom: 10px; padding: 10px;">

<span id="vithd" style="font-weight: bold; color: #333; text-transform: uppercase; "><a href="https://groups.yahoo.com/neo/groups/nuttx/info;_ylc=X3oDMTJmOXBsdGY4BF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzEzOTg0MzYxMjU-" style="text-decoration: none;">Visit Your Group</a></span>

<ul style="list-style-type: none; margin: 0; padding: 0; display: inline;">
<li style="border-right: 1px solid #000; font-weight: 700; display: inline; padding: 0 5px; margin-left: 0;">
<span class="cat"><a href="https://groups.yahoo.com/neo/groups/nuttx/members/all;_ylc=X3oDMTJnN3FobGxtBF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDdnRsBHNsawN2bWJycwRzdGltZQMxMzk4NDM2MTI1" style="text-decoration: none;">New Members</a></span>
<span class="ct" style="color: #ff7900;">1</span>
</li>
</ul>
</div>


<div id="ft" style="font-family: Arial; font-size: 11px; margin-top: 5px; padding: 0 2px 0 0; clear: both;">
<a href="https://groups.yahoo.com/neo;_ylc=X3oDMTJlM3B2aTNvBF9TAzk3NDc2NTkwBGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTM5ODQzNjEyNQ--" style="float: left;"><img src="http://l.yimg.com/ru/static/images/yg/img/email/new_logo/logo-groups-137x15.png" height="15" width="<? ol var!Pref.EmailFooterLogo.FullFeatured.Width ?>" alt="Yahoo! Groups" style="border: 0;"/></a>
<div style="color: #747575; float: right;"> &bull; <a href="https://info.yahoo.com/privacy/us/yahoo/groups/details.html" style="text-decoration: none;">Privacy</a> &bull; <a href="mailto:nuttx-unsubscribe-***@public.gmane.org?subject=Unsubscribe" style="text-decoration: none;">Unsubscribe</a> &bull; <a href="https://info.yahoo.com/legal/us/yahoo/utos/terms/" style="text-decoration: none;">Terms of Use</a> </div>
</div>

<!-- |**|end egp html banner|**| -->

</div> <!-- ygrp-msg -->




<br>

<!-- |**|end egp html banner|**| -->


<div style="color: white; clear: both;"/>__,_._,___</div>
</body>
</html>
s***@public.gmane.org
2014-04-25 14:48:39 UTC
Permalink
Hi, Frank,

>> The board SPI interfaces require a SPIDEV_ value from include/nuttx/spi/spi.h. I don't know what this MPU device is so I created an SPIDEV_EXTDEV for now. We probably should clarify that later.
>
> I didn't either so I left it.

Starting with the PX4 was a bad idea because it brought a lot of questionable kruft into the configuration. My philosophy when taking code from a different configuration is that is it doesn't make sense in the new board configuration, it is wrong and should be removed.

I want to remove that PX4 configuration from the repository. No one uses it, it has never been tested, and no one maintains it. So it is a ticking time bomb in the board configurations. I have asked the creator if it is okay to eliminate it. I am still waiting for a response.

> I'm getting CONFIG confused....How do I simple add USART2 so I can have a Nuttx console output?

You have to use one of the kconfig-frontends tools (it looks like you are using qconf):

System Type -> XYZ Peripheral Selection
Enable the UART

Device Drivers -> Serial Driver Support
Configure the UART (and select one to be the console).

Look at the comments in arch/arm/src/stm32/chip/stm32f4xxxx-pinmap.h
Add the disambiguating pin definitions in configs/nucleo-f401re/include/board.h

Greg
s***@public.gmane.org
2014-04-25 14:55:49 UTC
Permalink
>>> The board SPI interfaces require a SPIDEV_ value from include/nuttx/spi/spi.h. I don't know what this MPU device is so I created an SPIDEV_EXTDEV for now. We probably should clarify that later.
>>
>> I didn't either so I left it.
>
> Starting with the PX4 was a bad idea because it brought a lot of questionable kruft into the configuration. My philosophy when taking code from a different configuration is that is it doesn't make sense in the new board configuration, it is wrong and should be removed.

Based on your comments, I removed all references to this MPU. According to the schematic the pins just go off board. So if you are not using them, it is guaranteed that they do not belong in the configuration.

Greg
s***@public.gmane.org
2014-04-25 14:59:13 UTC
Permalink
I presume that the references to the PX4's FRAM should also be removed?
Frank Bennett
2014-04-25 16:53:27 UTC
Permalink
<head>

<style type="text/css">
<!--

/* start of attachment style */
.ygrp-photo-title{
clear: both;
font-size: smaller;
height: 15px;
overflow: hidden;
text-align: center;
width: 75px;
}
div.ygrp-photo{
background-position: center;
background-repeat: no-repeat;
background-color: white;
border: 1px solid black;
height: 62px;
width: 62px;
}

div.photo-title
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;
}

div.attach-table div.attach-row {
clear: both;
}

div.attach-table div.attach-row div {
float: left;
/* margin: 2px;*/
}

p {
clear: both;
padding: 15px 0 3px 0;
overflow: hidden;
}

div.ygrp-file {
width: 30px;
valign: middle;
}
div.attach-table div.attach-row div div a {
text-decoration: none;
}

div.attach-table div.attach-row div div span {
font-weight: normal;
}

div.ygrp-file-title {
font-weight: bold;
}
/* end of attachment style */
-->
</style>
</head>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">





<div class="moz-cite-prefix">On 04/25/2014 08:59 AM,
<a class="moz-txt-link-abbreviated" href="mailto:spudarnia-/***@public.gmane.org">spudarnia-/***@public.gmane.org</a> wrote:<br>
</div>
<blockquote cite="mid:ljdt81+15tncr9-***@public.gmane.org" type="cite"> <span
style="display:none"> </span>

<div id="ygrp-text">
<p>I presume that the references to the PX4's FRAM should
also be removed?</p>
</div>
</div>
</div>
</blockquote>
Yes, I assume this is an External Fast SRAM for only FX4???<br>
 -Frank<br>
<blockquote cite="mid:ljdt81+15tncr9-***@public.gmane.org" type="cite">
<div id="ygrp-mlmsg" style="position:relative;">
<div id="ygrp-msg" style="z-index: 1;">
<div id="ygrp-text"> </div>


<!-- end group email -->
</blockquote>
<br>




<!-- |**|begin egp html banner|**| -->

<br>


<br>

<!-- |**|end egp html banner|**| -->


<div width="1" style="color: white; clear: both;"/>__._,_.___</div>





<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- |**|begin egp html banner|**| -->

<img src="http://geo.yahoo.com/serv?s=97476590/grpId=23389070/grpspId=1705006559/msgId=5760/stime=1398444830" width="1" height="1"> <br>

<!-- |**|end egp html banner|**| -->


<!-- |**|begin egp html banner|**| -->

<br>






<!-- |**|begin egp html banner|**| -->
<div id="ygrp-vital" style="background-color: #f2f2f2; font-family: Verdana; font-size: 10px; margin-bottom: 10px; padding: 10px;">

<span id="vithd" style="font-weight: bold; color: #333; text-transform: uppercase; "><a href="https://groups.yahoo.com/neo/groups/nuttx/info;_ylc=X3oDMTJmYTIxb2N1BF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzEzOTg0NDQ4MzA-" style="text-decoration: none;">Visit Your Group</a></span>

<ul style="list-style-type: none; margin: 0; padding: 0; display: inline;">
<li style="border-right: 1px solid #000; font-weight: 700; display: inline; padding: 0 5px; margin-left: 0;">
<span class="cat"><a href="https://groups.yahoo.com/neo/groups/nuttx/members/all;_ylc=X3oDMTJnajQyMG1lBF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDdnRsBHNsawN2bWJycwRzdGltZQMxMzk4NDQ0ODMw" style="text-decoration: none;">New Members</a></span>
<span class="ct" style="color: #ff7900;">1</span>
</li>
</ul>
</div>


<div id="ft" style="font-family: Arial; font-size: 11px; margin-top: 5px; padding: 0 2px 0 0; clear: both;">
<a href="https://groups.yahoo.com/neo;_ylc=X3oDMTJlbmw3MTNxBF9TAzk3NDc2NTkwBGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTM5ODQ0NDgzMA--" style="float: left;"><img src="http://l.yimg.com/ru/static/images/yg/img/email/new_logo/logo-groups-137x15.png" height="15" width="<? ol var!Pref.EmailFooterLogo.FullFeatured.Width ?>" alt="Yahoo! Groups" style="border: 0;"/></a>
<div style="color: #747575; float: right;"> &bull; <a href="https://info.yahoo.com/privacy/us/yahoo/groups/details.html" style="text-decoration: none;">Privacy</a> &bull; <a href="mailto:nuttx-unsubscribe-***@public.gmane.org?subject=Unsubscribe" style="text-decoration: none;">Unsubscribe</a> &bull; <a href="https://info.yahoo.com/legal/us/yahoo/utos/terms/" style="text-decoration: none;">Terms of Use</a> </div>
</div>

<!-- |**|end egp html banner|**| -->

</div> <!-- ygrp-msg -->




<br>

<!-- |**|end egp html banner|**| -->


<div style="color: white; clear: both;"/>__,_._,___</div>
</body>
</html>
Frank Bennett
2014-04-28 22:30:14 UTC
Permalink
<head>

<style type="text/css">
<!--

/* start of attachment style */
.ygrp-photo-title{
clear: both;
font-size: smaller;
height: 15px;
overflow: hidden;
text-align: center;
width: 75px;
}
div.ygrp-photo{
background-position: center;
background-repeat: no-repeat;
background-color: white;
border: 1px solid black;
height: 62px;
width: 62px;
}

div.photo-title
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;
}

div.attach-table div.attach-row {
clear: both;
}

div.attach-table div.attach-row div {
float: left;
/* margin: 2px;*/
}

p {
clear: both;
padding: 15px 0 3px 0;
overflow: hidden;
}

div.ygrp-file {
width: 30px;
valign: middle;
}
div.attach-table div.attach-row div div a {
text-decoration: none;
}

div.attach-table div.attach-row div div span {
font-weight: normal;
}

div.ygrp-file-title {
font-weight: bold;
}
/* end of attachment style */
-->
</style>
</head>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">





<div class="moz-cite-prefix">On 04/25/2014 08:48 AM,
<a class="moz-txt-link-abbreviated" href="mailto:spudarnia-/***@public.gmane.org">spudarnia-/***@public.gmane.org</a> wrote:<br>
</div>
<blockquote cite="mid:ljdsk7+k9gcop-***@public.gmane.org" type="cite"> <span
style="display:none"> </span>

<div id="ygrp-text">
<p>Hi, Frank,<br>
<br>
&gt;&gt; The board SPI interfaces require a SPIDEV_ value
from include/nuttx/spi/spi.h.  I don't know what this MPU
device is so I created an SPIDEV_EXTDEV for now.  We
probably should clarify that later.<br>
&gt;<br>
&gt; I didn't either so I left it.<br>
<br>
Starting with the PX4 was a bad idea because it brought a
lot of questionable kruft into the configuration.  My
philosophy when taking code from a different configuration
is that is it doesn't make sense in the new board
configuration, it is wrong and should be removed.<br>
</p>
</div>
</div>
</div>
</blockquote>
Greg:<br>
<br>
Ok, I've reviewed, updated GPIO code using:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Description" content="Copy-Paste Buffer">
<meta name="Generator" content="Zim">
<br>
  <a class="moz-txt-link-freetext" href="https://mbed.org/platforms/ST-Nucleo-F401RE/">https://mbed.org/platforms/ST-Nucleo-F401RE/</a><br>
as a reference and have attached a diff for your review.<br>
Did you intend to buy one of these boards?<br>
<br>
I've been trying to get a RS232 shield talking nuttx console but <br>
using "st-flash write nuttx.bin 0x08000000" I'm seeing a lot:<br>
  unknown chip id! 0xe0042000 error messages....but tying<br>
Boot0 to VDD (CN7-5 to CN7-7) helps, so debug is going slow...<br>
...mainly just wanted to forward the gpio.p1.<br>
-Frank<br>
<blockquote cite="mid:ljdsk7+k9gcop-***@public.gmane.org" type="cite">
<div id="ygrp-mlmsg" style="position:relative;">
<div id="ygrp-msg" style="z-index: 1;">
<div id="ygrp-text">
<p><br>
I want to remove that PX4 configuration from the
repository.  No one uses it, it has never been tested, and
no one maintains it.  So it is a ticking time bomb in the
board configurations.  I have asked the creator if it is
okay to eliminate it.  I am still waiting for a response.<br>
<br>
&gt; I'm getting CONFIG confused....How do I simple add
USART2 so I can have a Nuttx console output?<br>
<br>
You have to use one of the kconfig-frontends tools (it
looks like you are using qconf):<br>
<br>
System Type -&gt; XYZ Peripheral Selection<br>
  Enable the UART<br>
<br>
Device Drivers -&gt; Serial Driver Support<br>
  Configure the UART (and select one to be the console).<br>
<br>
Look at the comments in
arch/arm/src/stm32/chip/stm32f4xxxx-pinmap.h<br>
Add the disambiguating pin definitions in
configs/nucleo-f401re/include/board.h<br>
<br>
Greg</p>
</div>


<!-- end group email -->
</blockquote>
<br>




<!-- |**|begin egp html banner|**| -->

<br>


<br>

<!-- |**|end egp html banner|**| -->


<div width="1" style="color: white; clear: both;"/>__._,_.___</div>

<p style="clear: both; padding: 15px 0 3px 0;"><span style="color: #628C2A; font-weight: bold; font-size: 14px;"> Attachment(s) from Frank Bennett </span> | <span style="font-size: 13px;"><a style="text-decoration:none;" href="https://groups.yahoo.com/neo/groups/nuttx/attachments/138203224;_ylc=X3oDMTJyY291cXB2BF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDYXR0YWNobWVudARzbGsDdmlld09uV2ViBHN0aW1lAzEzOTg3MjQyMzk-">View attachments on the web </a></span></p>



<p style="clear: both; padding: 15px 0 3px 0;"><span style="color: #628C2A; font-weight: bold;"> 1 of 1 File(s) </span>
</p>
<div class="attach-table">
<div class="attach-row">
<div>
<div class="ygrp-file"> <img src="http://l.yimg.com/kq/static/images/yg/img/doc/generic16x16.gif"></div>
<div class="ygrp-file-title"> <a href="https://xa.yimg.com/kq/groups/23389070/630658468/name/gpio%2Ep1" style="">gpio.p1</a></div>
</div>
</div>
</div>


<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- |**|begin egp html banner|**| -->

<img src="http://geo.yahoo.com/serv?s=97476590/grpId=23389070/grpspId=1705006559/msgId=5767/stime=1398724239" width="1" height="1"> <br>

<!-- |**|end egp html banner|**| -->


<!-- |**|begin egp html banner|**| -->

<br>






<!-- |**|begin egp html banner|**| -->
<div id="ygrp-vital" style="background-color: #f2f2f2; font-family: Verdana; font-size: 10px; margin-bottom: 10px; padding: 10px;">

<span id="vithd" style="font-weight: bold; color: #333; text-transform: uppercase; "><a href="https://groups.yahoo.com/neo/groups/nuttx/info;_ylc=X3oDMTJmMWtlbGgxBF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzEzOTg3MjQyMzk-" style="text-decoration: none;">Visit Your Group</a></span>

<ul style="list-style-type: none; margin: 0; padding: 0; display: inline;">
</ul>
</div>


<div id="ft" style="font-family: Arial; font-size: 11px; margin-top: 5px; padding: 0 2px 0 0; clear: both;">
<a href="https://groups.yahoo.com/neo;_ylc=X3oDMTJlaXNibmRtBF9TAzk3NDc2NTkwBGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTM5ODcyNDIzOQ--" style="float: left;"><img src="http://l.yimg.com/ru/static/images/yg/img/email/new_logo/logo-groups-137x15.png" height="15" width="<? ol var!Pref.EmailFooterLogo.FullFeatured.Width ?>" alt="Yahoo! Groups" style="border: 0;"/></a>
<div style="color: #747575; float: right;"> &bull; <a href="https://info.yahoo.com/privacy/us/yahoo/groups/details.html" style="text-decoration: none;">Privacy</a> &bull; <a href="mailto:nuttx-unsubscribe-***@public.gmane.org?subject=Unsubscribe" style="text-decoration: none;">Unsubscribe</a> &bull; <a href="https://info.yahoo.com/legal/us/yahoo/utos/terms/" style="text-decoration: none;">Terms of Use</a> </div>
</div>

<!-- |**|end egp html banner|**| -->

</div> <!-- ygrp-msg -->




<br>

<!-- |**|end egp html banner|**| -->


<div style="color: white; clear: both;"/>__,_._,___</div>
</body>
</html>
Librae
2014-04-29 12:56:42 UTC
Permalink
Guys,

I got a nucleo-f401re board, either.
With current upstream code, as well as Frank's patch "gpio.p1", I could
successfully run it with stlink command line tool from:

https://github.com/texane/stlink

While still not able to see nsh prompt yet.
Did you notice that nucleo-f401re uses virtual com port by default? And if
on linux, it seems we need to use /dev/ttyACM* for serial port.

=============================== Quote from "UM1724"
By default the USART
communication between the target MCU and ST-LINK MCU is enabled in order to
support
Virtual Com Port for mbed (SB13 and SB14 ON, SB62 and SB63 OFF). If the
communication between the target MCU and shield or extension board is
required, SB62
and SB63 should be ON, SB13 and SB14 should be OFF.
===============================

Will it cause any difference to normal nsh config?
Or is it necessary to follow ST doc above to change SB13, SB14, SB62, SB63
soldering?

Thanks,
Librae



On Tue, Apr 29, 2014 at 6:30 AM, Frank Bennett <bennett78-***@public.gmane.org> wrote:

>
> [Attachment(s) <#145aa762a3cfd252_TopText> from Frank Bennett included
> below]
>
> On 04/25/2014 08:48 AM, spudarnia-/***@public.gmane.org wrote:
>
>
>
> Hi, Frank,
>
> >> The board SPI interfaces require a SPIDEV_ value from
> include/nuttx/spi/spi.h. I don't know what this MPU device is so I created
> an SPIDEV_EXTDEV for now. We probably should clarify that later.
> >
> > I didn't either so I left it.
>
> Starting with the PX4 was a bad idea because it brought a lot of
> questionable kruft into the configuration. My philosophy when taking code
> from a different configuration is that is it doesn't make sense in the new
> board configuration, it is wrong and should be removed.
>
> Greg:
>
> Ok, I've reviewed, updated GPIO code using:
> https://mbed.org/platforms/ST-Nucleo-F401RE/
> as a reference and have attached a diff for your review.
> Did you intend to buy one of these boards?
>
> I've been trying to get a RS232 shield talking nuttx console but
> using "st-flash write nuttx.bin 0x08000000" I'm seeing a lot:
> unknown chip id! 0xe0042000 error messages....but tying
> Boot0 to VDD (CN7-5 to CN7-7) helps, so debug is going slow...
> ...mainly just wanted to forward the gpio.p1.
> -Frank
>
>
> I want to remove that PX4 configuration from the repository. No one uses
> it, it has never been tested, and no one maintains it. So it is a ticking
> time bomb in the board configurations. I have asked the creator if it is
> okay to eliminate it. I am still waiting for a response.
>
> > I'm getting CONFIG confused....How do I simple add USART2 so I can have
> a Nuttx console output?
>
> You have to use one of the kconfig-frontends tools (it looks like you are
> using qconf):
>
> System Type -> XYZ Peripheral Selection
> Enable the UART
>
> Device Drivers -> Serial Driver Support
> Configure the UART (and select one to be the console).
>
> Look at the comments in arch/arm/src/stm32/chip/stm32f4xxxx-pinmap.h
> Add the disambiguating pin definitions in
> configs/nucleo-f401re/include/board.h
>
> Greg
>
>
>
>
Ken Pettit
2014-04-29 13:29:06 UTC
Permalink
Hi Librae,

All the boards I have used that have STM32F4 on them (stm32f4discovery,
stm32f429-disco, mikroe-stm32f4) have all used the /dev/ttyACM0 device on
Linux. I didn't need any special configuration changes in NuttX to get it
working.

I don't have a nucleo-f401re board, but it sounds like that soldering
change is needed only if you want to disconnect the "/dev/ttyACM0" serial
port and route it instead to the expansion board / shield to communicate
with some serial based part there.

Ken


On Tue, Apr 29, 2014 at 5:56 AM, Librae <librae8226-***@public.gmane.org> wrote:

>
>
> Guys,
>
> I got a nucleo-f401re board, either.
> With current upstream code, as well as Frank's patch "gpio.p1", I could
> successfully run it with stlink command line tool from:
>
> https://github.com/texane/stlink
>
> While still not able to see nsh prompt yet.
> Did you notice that nucleo-f401re uses virtual com port by default? And if
> on linux, it seems we need to use /dev/ttyACM* for serial port.
>
> =============================== Quote from "UM1724"
> By default the USART
> communication between the target MCU and ST-LINK MCU is enabled in order
> to support
> Virtual Com Port for mbed (SB13 and SB14 ON, SB62 and SB63 OFF). If the
> communication between the target MCU and shield or extension board is
> required, SB62
> and SB63 should be ON, SB13 and SB14 should be OFF.
> ===============================
>
> Will it cause any difference to normal nsh config?
> Or is it necessary to follow ST doc above to change SB13, SB14, SB62, SB63
> soldering?
>
> Thanks,
> Librae
>
>
>
> On Tue, Apr 29, 2014 at 6:30 AM, Frank Bennett <bennett78-***@public.gmane.org>wrote:
>
>>
>> [Attachment(s) <#145ad8f16ec3cac6_145aa762a3cfd252_TopText> from Frank
>> Bennett included below]
>>
>> On 04/25/2014 08:48 AM, spudarnia-/***@public.gmane.org wrote:
>>
>>
>>
>> Hi, Frank,
>>
>> >> The board SPI interfaces require a SPIDEV_ value from
>> include/nuttx/spi/spi.h. I don't know what this MPU device is so I created
>> an SPIDEV_EXTDEV for now. We probably should clarify that later.
>> >
>> > I didn't either so I left it.
>>
>> Starting with the PX4 was a bad idea because it brought a lot of
>> questionable kruft into the configuration. My philosophy when taking code
>> from a different configuration is that is it doesn't make sense in the new
>> board configuration, it is wrong and should be removed.
>>
>> Greg:
>>
>> Ok, I've reviewed, updated GPIO code using:
>> https://mbed.org/platforms/ST-Nucleo-F401RE/
>> as a reference and have attached a diff for your review.
>> Did you intend to buy one of these boards?
>>
>> I've been trying to get a RS232 shield talking nuttx console but
>> using "st-flash write nuttx.bin 0x08000000" I'm seeing a lot:
>> unknown chip id! 0xe0042000 error messages....but tying
>> Boot0 to VDD (CN7-5 to CN7-7) helps, so debug is going slow...
>> ...mainly just wanted to forward the gpio.p1.
>> -Frank
>>
>>
>> I want to remove that PX4 configuration from the repository. No one uses
>> it, it has never been tested, and no one maintains it. So it is a ticking
>> time bomb in the board configurations. I have asked the creator if it is
>> okay to eliminate it. I am still waiting for a response.
>>
>> > I'm getting CONFIG confused....How do I simple add USART2 so I can have
>> a Nuttx console output?
>>
>> You have to use one of the kconfig-frontends tools (it looks like you are
>> using qconf):
>>
>> System Type -> XYZ Peripheral Selection
>> Enable the UART
>>
>> Device Drivers -> Serial Driver Support
>> Configure the UART (and select one to be the console).
>>
>> Look at the comments in arch/arm/src/stm32/chip/stm32f4xxxx-pinmap.h
>> Add the disambiguating pin definitions in
>> configs/nucleo-f401re/include/board.h
>>
>> Greg
>>
>>
>>
>
>
s***@public.gmane.org
2014-04-29 14:13:11 UTC
Permalink
Hi, Frank,

> Ok, I've reviewed, updated GPIO code using:
> https://mbed.org/platforms/ST-Nucleo-F401RE/
> as a reference and have attached a diff for your review.

Okay. Your changes have been checked in. You probably should resync with the repository to make sure we are together.

> Did you intend to buy one of these boards?

Yes, I bought one on eBay but it won't be here for probably two more weeks. It takes nearly a month total to get things from the US to Costa Rica (using low cost shipping).

I also have a RS-232 shield that I will use. I prefer using RS-232 vs a USB COM port because I don't have to keep restarting my host terminal each time the USB is unplugged and re-plugged.

Greg
Frank Bennett
2014-04-29 23:27:11 UTC
Permalink
<head>

<style type="text/css">
<!--

/* start of attachment style */
.ygrp-photo-title{
clear: both;
font-size: smaller;
height: 15px;
overflow: hidden;
text-align: center;
width: 75px;
}
div.ygrp-photo{
background-position: center;
background-repeat: no-repeat;
background-color: white;
border: 1px solid black;
height: 62px;
width: 62px;
}

div.photo-title
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;
}

div.attach-table div.attach-row {
clear: both;
}

div.attach-table div.attach-row div {
float: left;
/* margin: 2px;*/
}

p {
clear: both;
padding: 15px 0 3px 0;
overflow: hidden;
}

div.ygrp-file {
width: 30px;
valign: middle;
}
div.attach-table div.attach-row div div a {
text-decoration: none;
}

div.attach-table div.attach-row div div span {
font-weight: normal;
}

div.ygrp-file-title {
font-weight: bold;
}
/* end of attachment style */
-->
</style>
</head>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">





<div class="moz-cite-prefix">On 04/29/2014 08:13 AM,
<a class="moz-txt-link-abbreviated" href="mailto:spudarnia-/***@public.gmane.org">spudarnia-/***@public.gmane.org</a> wrote:<br>
</div>
<blockquote cite="mid:ljoc1n+u5leu6-***@public.gmane.org" type="cite"> <span
style="display:none"> </span>

<div id="ygrp-text">
<p><br class="yui-cursor">
</p>
<div class="ygroups-quoted">Hi, Frank,<br>
<br>
&gt; Ok, I've reviewed, updated GPIO code using:<br>
&gt;  <a class="moz-txt-link-freetext" href="https://mbed.org/platforms/ST-Nucleo-F401RE/">https://mbed.org/platforms/ST-Nucleo-F401RE/</a><br>
&gt; as a reference and have attached a diff for your
review.<br>
<br>
Okay.  Your changes have been checked in.  You probably
should resync with the repository to make sure we are
together.<br>
<br>
&gt; Did you intend to buy one of these boards?<br>
<br>
Yes, I bought one on eBay but it won't be here for
probably two more weeks.  It takes nearly a month total to
get things from the US to Costa Rica (using low cost
shipping).<br>
<br>
I also have a RS-232 shield that I will use.  I prefer
using RS-232 vs a USB COM port because I don't have to
keep restarting my host terminal each time the USB is
unplugged and re-plugged.<br>
<br>
Greg<br>
</div>
</div>
</div>
</div>
</blockquote>
I've decided to debug with a minimal config: no CC3000, no SDI2, no
SDCARD, just USART2:<br>
$ arm-none-eabi-gdb nuttx<br>
target extended-remote :4242
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Description" content="Copy-Paste Buffer">
<meta name="Generator" content="Zim">
<br>
load<br>
c<br>
^C<br>
I get....<br>
(gdb) bt<br>
#0  uart_takesem (sem=0x40020000, errout=false) at
serial/serial.c:117<br>
#1  0x080019aa in up_assert (filename=0xfa "", lineno=0) at
armv7-m/up_assert.c:360<br>
#2  0x00000012 in ?? ()<br>
seem to be spinning forever on sem<br>
<br>
I attached the .config, any suggestions?<br>
-Frank<br>
<blockquote cite="mid:ljoc1n+u5leu6-***@public.gmane.org" type="cite">
<div id="ygrp-mlmsg" style="position:relative;">
<div id="ygrp-msg" style="z-index: 1;">
<div id="ygrp-text">
<div class="ygroups-quoted"><br>
</div>
</div>


<!-- end group email -->
</blockquote>
<br>




<!-- |**|begin egp html banner|**| -->

<br>


<br>

<!-- |**|end egp html banner|**| -->


<div width="1" style="color: white; clear: both;"/>__._,_.___</div>

<p style="clear: both; padding: 15px 0 3px 0;"><span style="color: #628C2A; font-weight: bold; font-size: 14px;"> Attachment(s) from Frank Bennett </span> | <span style="font-size: 13px;"><a style="text-decoration:none;" href="https://groups.yahoo.com/neo/groups/nuttx/attachments/1483835769;_ylc=X3oDMTJyOTFydXE2BF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDYXR0YWNobWVudARzbGsDdmlld09uV2ViBHN0aW1lAzEzOTg4MTQwNTg-">View attachments on the web </a></span></p>



<p style="clear: both; padding: 15px 0 3px 0;"><span style="color: #628C2A; font-weight: bold;"> 1 of 1 File(s) </span>
</p>
<div class="attach-table">
<div class="attach-row">
<div>
<div class="ygrp-file"> <img src="http://l.yimg.com/kq/static/images/yg/img/doc/generic16x16.gif"></div>
<div class="ygrp-file-title"> <a href="https://xa.yimg.com/kq/groups/23389070/1624248217/name/%2Econfig" style="">.config</a></div>
</div>
</div>
</div>


<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- |**|begin egp html banner|**| -->

<img src="http://geo.yahoo.com/serv?s=97476590/grpId=23389070/grpspId=1705006559/msgId=5778/stime=1398814058" width="1" height="1"> <br>

<!-- |**|end egp html banner|**| -->


<!-- |**|begin egp html banner|**| -->

<br>






<!-- |**|begin egp html banner|**| -->
<div id="ygrp-vital" style="background-color: #f2f2f2; font-family: Verdana; font-size: 10px; margin-bottom: 10px; padding: 10px;">

<span id="vithd" style="font-weight: bold; color: #333; text-transform: uppercase; "><a href="https://groups.yahoo.com/neo/groups/nuttx/info;_ylc=X3oDMTJmbWpvbHE0BF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzEzOTg4MTQwNTg-" style="text-decoration: none;">Visit Your Group</a></span>

<ul style="list-style-type: none; margin: 0; padding: 0; display: inline;">
</ul>
</div>


<div id="ft" style="font-family: Arial; font-size: 11px; margin-top: 5px; padding: 0 2px 0 0; clear: both;">
<a href="https://groups.yahoo.com/neo;_ylc=X3oDMTJlN3N0ZDh1BF9TAzk3NDc2NTkwBGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTM5ODgxNDA1OA--" style="float: left;"><img src="http://l.yimg.com/ru/static/images/yg/img/email/new_logo/logo-groups-137x15.png" height="15" width="<? ol var!Pref.EmailFooterLogo.FullFeatured.Width ?>" alt="Yahoo! Groups" style="border: 0;"/></a>
<div style="color: #747575; float: right;"> &bull; <a href="https://info.yahoo.com/privacy/us/yahoo/groups/details.html" style="text-decoration: none;">Privacy</a> &bull; <a href="mailto:nuttx-unsubscribe-***@public.gmane.org?subject=Unsubscribe" style="text-decoration: none;">Unsubscribe</a> &bull; <a href="https://info.yahoo.com/legal/us/yahoo/utos/terms/" style="text-decoration: none;">Terms of Use</a> </div>
</div>

<!-- |**|end egp html banner|**| -->

</div> <!-- ygrp-msg -->




<br>

<!-- |**|end egp html banner|**| -->


<div style="color: white; clear: both;"/>__,_._,___</div>
</body>
</html>
Gregory Nutt
2014-04-29 23:36:23 UTC
Permalink
> (gdb) bt

> #0  uart_takesem (sem=0x40020000, errout=false) at serial/serial.c:117
> #1  0x080019aa in up_assert (filename=0xfa "", lineno=0) at
armv7-m/up_assert.c:360
> #2  0x00000012 in ?? ()
> seem to be spinning forever on sem

Being in up_assert means that you failed an assertion.  Perhaps the one after at line 117 of drivers/serial/serial.c???  At line 126 is:

     ASSERT(get_errno() == EINTR);

the address 0x00000012  is the DBGMONITOR vector address and so probably not really very interesting.


 Greg
Frank Bennett
2014-04-30 00:11:32 UTC
Permalink
<head>

<style type="text/css">
<!--

/* start of attachment style */
.ygrp-photo-title{
clear: both;
font-size: smaller;
height: 15px;
overflow: hidden;
text-align: center;
width: 75px;
}
div.ygrp-photo{
background-position: center;
background-repeat: no-repeat;
background-color: white;
border: 1px solid black;
height: 62px;
width: 62px;
}

div.photo-title
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;
}

div.attach-table div.attach-row {
clear: both;
}

div.attach-table div.attach-row div {
float: left;
/* margin: 2px;*/
}

p {
clear: both;
padding: 15px 0 3px 0;
overflow: hidden;
}

div.ygrp-file {
width: 30px;
valign: middle;
}
div.attach-table div.attach-row div div a {
text-decoration: none;
}

div.attach-table div.attach-row div div span {
font-weight: normal;
}

div.ygrp-file-title {
font-weight: bold;
}
/* end of attachment style */
-->
</style>
</head>
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">





<div class="moz-cite-prefix">On 04/29/2014 05:36 PM, Gregory Nutt
wrote:<br>
</div>
<blockquote
cite="mid:1398814583.70235.YahooMailNeo-fadwCHANpKkeBhY5O9xny5EhsgyP+***@public.gmane.org"
type="cite"> <span style="display:none">&nbsp;</span>
How about this one? How do I
figure out irq=3 ?<br>
</div>
</div>
</blockquote>
(gdb) bt<br>
#0&nbsp; 0x08001998 in up_mdelay (milliseconds=250) at
common/up_mdelay.c:86<br>
#1&nbsp; 0x0800194e in _up_assert (errorcode=1) at
armv7-m/up_assert.c:334<br>
#2&nbsp; 0x08001982 in up_assert (filename=0x80234b8
"irq_unexpectedisr.c", lineno=86) at armv7-m/up_assert.c:371<br>
#3&nbsp; 0x080032f6 in irq_unexpected_isr (irq=3, context=0x20003758) at
irq_unexpectedisr.c:86<br>
#4&nbsp; 0x080032cc in irq_dispatch (irq=3, context=0x20003758) at
irq_dispatch.c:103<br>
#5&nbsp; 0x08001346 in up_doirq (irq=3, regs=0x20003758) at
armv7-m/up_doirq.c:102<br>
#6&nbsp; 0x08000486 in exception_common () at chip/stm32_vectors.S:331<br>
<br>
thanks,<br>
Frank<br>
<blockquote
cite="mid:1398814583.70235.YahooMailNeo-fadwCHANpKkeBhY5O9xny5EhsgyP+***@public.gmane.org"
type="cite">
<div id="ygrp-mlmsg" style="position:relative;">
<div id="ygrp-msg" style="z-index: 1;">
<div style="clear:both"> </div>
<table style="margin-top: 20px; margin-bottom: 10px; color:
#2D50FD;" cellspacing="4px">
<tbody>
<tr>
<td style="font-size: 12px; font-family: arial;
font-weight: bold; padding: 7px 5px 5px;"> <a
moz-do-not-send="true" style="text-decoration: none;
color: #2D50FD"
href="https://groups.yahoo.com/neo/groups/nuttx/conversations/messages/5779;_ylc=X3oDMTJxOGcwaDZoBF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRtc2dJZAM1Nzc5BHNlYwNmdHIEc2xrA3JwbHkEc3RpbWUDMTM5ODgxNDU4NQ--?act=reply&amp;messageNum=5779">Reply
via web post</a> </td>
<td>&#8226;</td>
<td style="font-size: 12px; font-family: arial; padding:
7px 5px 5px;"> <a moz-do-not-send="true"
href="mailto:spudarnia-/***@public.gmane.org?subject=Re%3A%20%5Bnuttx%5D%20Re%3A%20NUCLEO-F401RE%20port%20%5B1%20Attachment%5D"
style="text-decoration: none; color: #2D50FD;">
Reply to sender </a> </td>
<td>&#8226;</td>
<td style="font-size: 12px; font-family: arial; padding:
7px 5px 5px;"> <a moz-do-not-send="true"
href="mailto:nuttx-***@public.gmane.org?subject=Re%3A%20%5Bnuttx%5D%20Re%3A%20NUCLEO-F401RE%20port%20%5B1%20Attachment%5D"
style="text-decoration: none; color: #2D50FD"> Reply
to group </a> </td>
<td>&#8226;</td>
<td style="font-size: 12px; font-family: arial; padding:
7px 5px 5px;"> <a moz-do-not-send="true"
href="https://groups.yahoo.com/neo/groups/nuttx/conversations/newtopic;_ylc=X3oDMTJmOGtuZHE1BF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDZnRyBHNsawNudHBjBHN0aW1lAzEzOTg4MTQ1ODU-"
style="text-decoration: none; color: #2D50FD">Start
a New Topic</a> </td>
<td>&#8226;</td>
<td style="font-size: 12px; font-family: arial; padding:
7px 5px 5px;color: #2D50FD;"> <a
moz-do-not-send="true"
href="https://groups.yahoo.com/neo/groups/nuttx/conversations/topics/5714;_ylc=X3oDMTM1OWxiMDF1BF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRtc2dJZAM1Nzc5BHNlYwNmdHIEc2xrA3Z0cGMEc3RpbWUDMTM5ODgxNDU4NQR0cGNJZAM1NzE0"
style="text-decoration: none; color: #2D50FD;">Messages
in this topic</a> (27) </td>
</tr>
</tbody>
</table>
<div id="megaphoneModule">
<hr style="height:2px ; border-width:0; color:#E3E3E3;
background-color:#E3E3E3;">
<div>
<div class="feature_intro">
<div style="background-color:white;padding:0px 10px;">
<div class="header"
style="margin-right:10px;display:inline-block;width:400px;">
<a moz-do-not-send="true" rel="nofollow"
style="text-decoration:none;" target="_blank"
href="https://groups.yahoo.com/neo;_ylc=X3oDMTExc2JuanI3BF9TAzk3MzU5NzE0BGNmMTADQ1AEc2VjA21lZ2FwaG9uZQ--">
<div
style="font-size:15px;line-height:20px;color:blue;">Now
you can search Photos &amp; Files in your Group
!</div>
</a>
<div class="snippet" style="margin-top:5px;">You can
now search not only your archive of conversations,
but also photos and files stored in your Yahoo
Group. Give it a try!</div>
</div>
<div
style="display:inline-block;vertical-align:top;margin-top:10px;">
<a moz-do-not-send="true" rel="nofollow"
target="_blank"
href="http://yahoogroups.tumblr.com/post/79361353100/photo-and-files-search-launched"
name="lm_btn_url" style="text-decoration:none;"> <input
class="lm-btn" value="Learn more"
style="font-size:14px;vertical-align:middle;height:30px;line-height:30px;cursor:pointer;margin-bottom:10px;width:100px;background-color:rgb(250,
250, 250);margin-right:10px;" name="lm_btn"
type="button"> </a> <a moz-do-not-send="true"
rel="nofollow" target="_blank"
href="https://groups.yahoo.com/neo;_ylc=X3oDMTExc2JuanI3BF9TAzk3MzU5NzE0BGNmMTADQ1AEc2VjA21lZ2FwaG9uZQ--"
name="try_btn_url" style="text-decoration:none;">
<input class="try-btn" value="Try it now"
style="font-size:14px;vertical-align:middle;height:30px;line-height:30px;cursor:pointer;margin-bottom:10px;width:100px;background-color:rgb(250,
250, 250);" name="try_btn" type="button"> </a>
</div>
</div>
</div>
</div>
<hr style="height:2px ; border-width:0; color:#E3E3E3;
background-color:#E3E3E3;">
</div>
<!------- Start Nav Bar ------>

</div>
<!-- ygrp-msg -->
<!-- Sponsor -->

<div style="clear:both; color: #FFF; font-size:1px;">.</div>
</div>
<img moz-do-not-send="true"
src="http://geo.yahoo.com/serv?s=97359714/grpId=23389070/grpspId=1705006559/msgId=5779/stime=1398814585"
height="1" width="1"> <br>
<img moz-do-not-send="true"
src="http://y.analytics.yahoo.com/fpc.pl?ywarid=515FB27823A7407E&amp;a=10001310322279&amp;js=no&amp;resp=img&amp;cf10=CP"
height="1" width="1">
<div style="color: #fff; height: 0;"></div>


<!-- end group email -->
</blockquote>
<br>




<!-- |**|begin egp html banner|**| -->

<br>


<br>

<!-- |**|end egp html banner|**| -->


<div width="1" style="color: white; clear: both;"/>__._,_.___</div>

<p style="clear: both; padding: 15px 0 3px 0;"><span style="color: #628C2A; font-weight: bold; font-size: 14px;"> Attachment(s) from Frank Bennett </span> | <span style="font-size: 13px;"><a style="text-decoration:none;" href="https://groups.yahoo.com/neo/groups/nuttx/attachments/1254328215;_ylc=X3oDMTJydnZyb3JkBF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDYXR0YWNobWVudARzbGsDdmlld09uV2ViBHN0aW1lAzEzOTg4MTY3MTc-">View attachments on the web </a></span></p>



<p style="clear: both; padding: 15px 0 3px 0;"><span style="color: #628C2A; font-weight: bold;"> 1 of 1 File(s) </span>
</p>
<div class="attach-table">
<div class="attach-row">
<div>
<div class="ygrp-file"> <img src="http://l.yimg.com/kq/static/images/yg/img/doc/generic16x16.gif"></div>
<div class="ygrp-file-title"> <a href="https://xa.yimg.com/kq/groups/23389070/1498328048/name/%2Econfig" style="">.config</a></div>
</div>
</div>
</div>


<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- |**|begin egp html banner|**| -->

<img src="http://geo.yahoo.com/serv?s=97476590/grpId=23389070/grpspId=1705006559/msgId=5780/stime=1398816717" width="1" height="1"> <br>

<!-- |**|end egp html banner|**| -->


<!-- |**|begin egp html banner|**| -->

<br>






<!-- |**|begin egp html banner|**| -->
<div id="ygrp-vital" style="background-color: #f2f2f2; font-family: Verdana; font-size: 10px; margin-bottom: 10px; padding: 10px;">

<span id="vithd" style="font-weight: bold; color: #333; text-transform: uppercase; "><a href="https://groups.yahoo.com/neo/groups/nuttx/info;_ylc=X3oDMTJmcDFrOWdyBF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzEzOTg4MTY3MTc-" style="text-decoration: none;">Visit Your Group</a></span>

<ul style="list-style-type: none; margin: 0; padding: 0; display: inline;">
</ul>
</div>


<div id="ft" style="font-family: Arial; font-size: 11px; margin-top: 5px; padding: 0 2px 0 0; clear: both;">
<a href="https://groups.yahoo.com/neo;_ylc=X3oDMTJlZWVlZWYxBF9TAzk3NDc2NTkwBGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTM5ODgxNjcxNw--" style="float: left;"><img src="http://l.yimg.com/ru/static/images/yg/img/email/new_logo/logo-groups-137x15.png" height="15" width="<? ol var!Pref.EmailFooterLogo.FullFeatured.Width ?>" alt="Yahoo! Groups" style="border: 0;"/></a>
<div style="color: #747575; float: right;"> &bull; <a href="https://info.yahoo.com/privacy/us/yahoo/groups/details.html" style="text-decoration: none;">Privacy</a> &bull; <a href="mailto:nuttx-unsubscribe-***@public.gmane.org?subject=Unsubscribe" style="text-decoration: none;">Unsubscribe</a> &bull; <a href="https://info.yahoo.com/legal/us/yahoo/utos/terms/" style="text-decoration: none;">Terms of Use</a> </div>
</div>

<!-- |**|end egp html banner|**| -->

</div> <!-- ygrp-msg -->




<br>

<!-- |**|end egp html banner|**| -->


<div style="color: white; clear: both;"/>__,_._,___</div>
</body>
</html>
s***@public.gmane.org
2014-04-30 14:33:49 UTC
Permalink
Hi, Frank,

> (gdb) bt
> #0 0x08001998 in up_mdelay (milliseconds=250) at common/up_mdelay.c:86
> #1 0x0800194e in _up_assert (errorcode=1) at armv7-m/up_assert.c:334
> #2 0x08001982 in up_assert (filename=0x80234b8 "irq_unexpectedisr.c", lineno=86) at armv7-m/up_assert.c:371
> #3 0x080032f6 in irq_unexpected_isr (irq=3, context=0x20003758) at irq_unexpectedisr.c:86
> #4 0x080032cc in irq_dispatch (irq=3, context=0x20003758) at irq_dispatch.c:103
> #5 0x08001346 in up_doirq (irq=3, regs=0x20003758) at armv7-m/up_doirq.c:102
> #6 0x08000486 in exception_common () at chip/stm32_vectors.S:331

This is not very interesting. Here you can see that the CPU took hardfault and crashed (irq=3 is a hard fault. See arch/arm/include/stm32/irq.h).

This only means that your board port is not right yet. The usual cause is because of memory usage. And, reviewing the code, I can see that you are still trying to use the default STM32F405/7 SRAM configuration. That, of course, is not going to work for you and you will get (obviously) hard faults.

I made the change to adjust to the F401's 96KiB of memory and you can see those changes here: http://sourceforge.net/p/nuttx/git/ci/94874d4bffa1ccc45e75c99425107098b98a3186/ . Of course, since I do not have the hardware, I cannot test it.

Can you please re-synchronize with the GIT repository and see if this helps anything. I am afraid that your port may be incomplete in other ways too. The F401 is different from other family members and if you do not do a careful line-by-line comparison with other STM32's, you are going to discovery all of these differences the hard way.

Greg
Frank Bennett
2014-04-30 15:58:22 UTC
Permalink
<head>

<style type="text/css">
<!--

/* start of attachment style */
.ygrp-photo-title{
clear: both;
font-size: smaller;
height: 15px;
overflow: hidden;
text-align: center;
width: 75px;
}
div.ygrp-photo{
background-position: center;
background-repeat: no-repeat;
background-color: white;
border: 1px solid black;
height: 62px;
width: 62px;
}

div.photo-title
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;
}

div.attach-table div.attach-row {
clear: both;
}

div.attach-table div.attach-row div {
float: left;
/* margin: 2px;*/
}

p {
clear: both;
padding: 15px 0 3px 0;
overflow: hidden;
}

div.ygrp-file {
width: 30px;
valign: middle;
}
div.attach-table div.attach-row div div a {
text-decoration: none;
}

div.attach-table div.attach-row div div span {
font-weight: normal;
}

div.ygrp-file-title {
font-weight: bold;
}
/* end of attachment style */
-->
</style>
</head>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">





<div class="moz-cite-prefix">On 04/30/2014 08:33 AM,
<a class="moz-txt-link-abbreviated" href="mailto:spudarnia-/***@public.gmane.org">spudarnia-/***@public.gmane.org</a> wrote:<br>
</div>
<blockquote cite="mid:ljr1kd+lq2u4j-***@public.gmane.org" type="cite"> <span
style="display:none"> </span>

<div id="ygrp-text">
<p>Hi, Frank,<br>
<br>
&gt; (gdb) bt<br>
&gt; #0  0x08001998 in up_mdelay (milliseconds=250) at
common/up_mdelay.c:86<br>
&gt; #1  0x0800194e in _up_assert (errorcode=1) at
armv7-m/up_assert.c:334<br>
&gt; #2  0x08001982 in up_assert (filename=0x80234b8
"irq_unexpectedisr.c", lineno=86) at
armv7-m/up_assert.c:371<br>
&gt; #3  0x080032f6 in irq_unexpected_isr (irq=3,
context=0x20003758) at irq_unexpectedisr.c:86<br>
&gt; #4  0x080032cc in irq_dispatch (irq=3,
context=0x20003758) at irq_dispatch.c:103<br>
&gt; #5  0x08001346 in up_doirq (irq=3, regs=0x20003758)
at armv7-m/up_doirq.c:102<br>
&gt; #6  0x08000486 in exception_common () at
chip/stm32_vectors.S:331<br>
<br>
This is not very interesting.  Here you can see that the
CPU took hardfault and crashed (irq=3 is a hard fault. 
See arch/arm/include/stm32/irq.h).<br>
</p>
</div>
</div>
</div>
</blockquote>
Where is info on IRQ vectors? stm32_vectors.S? STM info?<br>
<blockquote cite="mid:ljr1kd+lq2u4j-***@public.gmane.org" type="cite">
<div id="ygrp-mlmsg" style="position:relative;">
<div id="ygrp-msg" style="z-index: 1;">
<div id="ygrp-text">
<p><br>
This only means that your board port is not right yet. 
The usual cause is because of memory usage.  And,
reviewing the code, I can see that you are still trying to
use the default STM32F405/7 SRAM configuration.  That, of
course, is not going to work for you and you will get
(obviously) hard faults.<br>
</p>
</div>
</div>
</div>
</blockquote>
other than the ld.script, which I had set at 96Kb?<br>
<blockquote cite="mid:ljr1kd+lq2u4j-***@public.gmane.org" type="cite">
<div id="ygrp-mlmsg" style="position:relative;">
<div id="ygrp-msg" style="z-index: 1;">
<div id="ygrp-text">
<p><br>
I made the change to adjust to the F401's 96KiB of memory
and you can see those changes here: 
<a class="moz-txt-link-freetext" href="http://sourceforge.net/p/nuttx/git/ci/94874d4bffa1ccc45e75c99425107098b98a3186/">http://sourceforge.net/p/nuttx/git/ci/94874d4bffa1ccc45e75c99425107098b98a3186/</a>
.  Of course, since I do not have the hardware, I cannot
test it.<br>
<br>
Can you please re-synchronize with the GIT repository and
see if this helps anything.  I am afraid that your port
may be incomplete in other ways too.  The F401 is
different from other family members and if you do not do a
careful line-by-line comparison with other STM32's, you
are going to discovery all of these differences the hard
way.<br>
</p>
</div>
</div>
</div>
</blockquote>
Yeah, STMicro doesn't seem to provide much help with any
side-by-side<br>
comparison that I can find...part of this adventure is evaluating
STM<br>
verses TI, Freescale, etc...my Marvel work has been exceedly
disapointing<br>
in the past...<br>
thanks,<br>
-Frank<br>
<blockquote cite="mid:ljr1kd+lq2u4j-***@public.gmane.org" type="cite">
<div id="ygrp-mlmsg" style="position:relative;">
<div id="ygrp-msg" style="z-index: 1;">
<div id="ygrp-text">
<p><br>
Greg<img moz-do-not-send="true"
src="http://geo.yahoo.com/serv?s=97359714/grpId=23389070/grpspId=1705006559/msgId=5779/stime=1398814585"
height="1" width="1"> <br>
</p>
<div class="ygroups-quoted">
<div id="ygrps-yiv-790199183"><img moz-do-not-send="true"
src="http://y.analytics.yahoo.com/fpc.pl?ywarid=515FB27823A7407E&amp;a=10001310322279&amp;js=no&amp;resp=img&amp;cf10=CP"
height="1" width="1">
<br>
</div>
</div>
</div>


<!-- end group email -->
</blockquote>
<br>




<!-- |**|begin egp html banner|**| -->

<br>


<br>

<!-- |**|end egp html banner|**| -->


<div width="1" style="color: white; clear: both;"/>__._,_.___</div>





<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- |**|begin egp html banner|**| -->

<img src="http://geo.yahoo.com/serv?s=97476590/grpId=23389070/grpspId=1705006559/msgId=5783/stime=1398873527" width="1" height="1"> <br>

<!-- |**|end egp html banner|**| -->


<!-- |**|begin egp html banner|**| -->

<br>






<!-- |**|begin egp html banner|**| -->
<div id="ygrp-vital" style="background-color: #f2f2f2; font-family: Verdana; font-size: 10px; margin-bottom: 10px; padding: 10px;">

<span id="vithd" style="font-weight: bold; color: #333; text-transform: uppercase; "><a href="https://groups.yahoo.com/neo/groups/nuttx/info;_ylc=X3oDMTJmamljbjU0BF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzEzOTg4NzM1Mjc-" style="text-decoration: none;">Visit Your Group</a></span>

<ul style="list-style-type: none; margin: 0; padding: 0; display: inline;">
<li style="border-right: 1px solid #000; font-weight: 700; display: inline; padding: 0 5px; margin-left: 0;">
<span class="cat"><a href="https://groups.yahoo.com/neo/groups/nuttx/members/all;_ylc=X3oDMTJnZjJjczhjBF9TAzk3MzU5NzE0BGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDdnRsBHNsawN2bWJycwRzdGltZQMxMzk4ODczNTI3" style="text-decoration: none;">New Members</a></span>
<span class="ct" style="color: #ff7900;">1</span>
</li>
</ul>
</div>


<div id="ft" style="font-family: Arial; font-size: 11px; margin-top: 5px; padding: 0 2px 0 0; clear: both;">
<a href="https://groups.yahoo.com/neo;_ylc=X3oDMTJlam5sY3Q5BF9TAzk3NDc2NTkwBGdycElkAzIzMzg5MDcwBGdycHNwSWQDMTcwNTAwNjU1OQRzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTM5ODg3MzUyNw--" style="float: left;"><img src="http://l.yimg.com/ru/static/images/yg/img/email/new_logo/logo-groups-137x15.png" height="15" width="<? ol var!Pref.EmailFooterLogo.FullFeatured.Width ?>" alt="Yahoo! Groups" style="border: 0;"/></a>
<div style="color: #747575; float: right;"> &bull; <a href="https://info.yahoo.com/privacy/us/yahoo/groups/details.html" style="text-decoration: none;">Privacy</a> &bull; <a href="mailto:nuttx-unsubscribe-***@public.gmane.org?subject=Unsubscribe" style="text-decoration: none;">Unsubscribe</a> &bull; <a href="https://info.yahoo.com/legal/us/yahoo/utos/terms/" style="text-decoration: none;">Terms of Use</a> </div>
</div>

<!-- |**|end egp html banner|**| -->

</div> <!-- ygrp-msg -->




<br>

<!-- |**|end egp html banner|**| -->


<div style="color: white; clear: both;"/>__,_._,___</div>
</body>
</html>
s***@public.gmane.org
2014-04-30 16:05:23 UTC
Permalink
> Where is info on IRQ vectors? stm32_vectors.S? STM info?

Yes. Also arch/arm/src/stm32/chip/stm32f40xx_vectors.h (which is included by stm32_vectors.S) and arch/arm/include/stm32stm32f40xxx_irq.h.

> Other than the ld.script, which I had set at 96Kb?

Yes.. see the chagnes: http://sourceforge.net/p/nuttx/git/ci/94874d4bffa1ccc45e75c99425107098b98a3186/ http://sourceforge.net/p/nuttx/git/ci/94874d4bffa1ccc45e75c99425107098b98a3186/
Greg
s***@public.gmane.org
2014-04-30 21:21:31 UTC
Permalink
Another that should eventually be removed from the Nucleo-F401RE configuration is the granule allocator built in the CONFIG_GRAN=y option and all of the DMA-related stuff in stm32_nsh. Like the stuff turned on with CONFIG_FAT_DMAMEMORY.

That logic is required if you are working with an F405 or F407 that has CCM memory. You cannot perform DMA from the CCM memory so it you want to include it in the heap, then you have to do all of this nonsense to avoid failed DMAs from CCM memory.

But the F401 has no CCM memory had so it just adds confusion to the board support.

When I get my board and can do soem testing, I will help with this clean-up.

Greg
s***@public.gmane.org
2014-04-30 22:52:39 UTC
Permalink
Frank,

Anther F401 incompatibility is that it has no CCM memory. I just checked in another change that should make the configuration and memory initialization logic cognizant of that fact.

Greg
Librae
2014-05-03 03:32:28 UTC
Permalink
Frank & Greg,

With current code base, I modify a bit following Greg's suggestion, and
removed features other than usart and nsh related stuffs, but not sure
cleanly enough. Attached my .config file.

I was trying to get serial output from nsh but still failed.

Ps: The hardware link should be ok since I downloaded a mbed code sample
binary and it just prints well.
In my understanding, according to the hardware, it makes the usart2 data
flow go like this:

STM32F401 USART -> ST-LINK USART -> ST-LINK USB CDCACM

While I plug in the board, st link will register a /dev/ttyACM0 there. So
then I tried to open it with minicom. I did see some output from it, but it
seemed to be garbage.
After that, I did hexdump with /dev/ttyACM0, it always shows below content:

[***@fedora ~]$ cat hexdump_ttyACM0
0000000 0c00 70fc 0c7c 0c80 8c80 707c fc00 7c7c
0000010 8c8c 0c7c 8cfc 0c00 0cf0 0cfc 70fc 0c70
0000020 7c0c fc80 f00c f08c 7c8c 0070 7c8c 7c8c
0000030 8cfc 7c0c 7cf0 7c0c fc80 708c 008c 7c0c
0000040 7c0c 8c70 0c0c 70fc 7070 f08c 008c 0c0c
0000050 70fc f070 fc0c 008c f00c fc0c fc8c f070
0000060 7070 7070 70f0 70f0 8c0c 0c80 f070 708c
0000070 fc0c 0c8c fc8c 7070 708c 70f0 007c 7c70
0000080 0070 7c8c 7c8c 8cfc 0c0c 0cf0 0cf0 8cf0
0000090 8c0c 8cf0 8c70 f07c 707c 7070 8c70 8c0c
00000a0 8cf0 8c70 f07c 007c 8070 fc70 7070 8c80
00000b0 8c00 8cf0 8c0c 70fc 70f0 7070 f070 f070
00000c0 0c70 808c 700c 8cf0 0c70 8cfc 8c0c 70fc
00000d0 8c70 f070 7c70 7c80 008c 0070 7c8c 7c8c
00000e0 8cfc 7c8c 0c0c 807c fc7c 7c7c fc0c 7070
00000f0 0c00 807c fc7c 7c7c 008c fc0c 0c8c f00c
0000100 700c 70f0 7070 7c70 7c80 f0f0 700c 000c
0000110 f070 708c fc0c 0c8c 700c 007c 7c70 008c
0000120 0070 7c8c 7c8c 8cfc 7c8c 0c0c 807c fc7c
0000130 7c7c fc0c 7070 0c00 807c fc7c 7c7c 008c
0000140 fc0c 0c8c f00c 700c 70f0 7070 7c70 7c8c
0000150 7070 0c70 7000 8cf0 0c70 8cfc 0c0c 7c70
0000160 7000 8c7c 7000 8c00 8c7c fc7c 8c8c 0c7c
0000170 7c0c 7c80 7cfc 0c7c 70fc 0070 7c0c 7c80
0000180 7cfc 8c7c 0c00 8cfc 0c0c 0cf0 f070 7070
0000190 7070 8c7c 8c7c 007c 0c70 7000 8cf0 0c70
00001a0 8cfc 0c0c 7c70 7000 8c7c 7000 fc00 7c7c
00001b0 8c8c 0c70 8cf0 0c70 fc7c 8cf0 0c8c fc0c
00001c0 7070 0c70 8cfc 0c00 0cf0 8cfc 0c70 fc7c
00001d0 0cf0 7c70 7c0c f0fc 7c0c 0c8c 0c00 8cf0
00001e0 8c70 707c 708c fc0c f08c 700c 8c8c 0c0c
00001f0 0cf0 8c7c 0cf0 007c fc70 7c8c 8c70 8c8c
0000200 0c0c 0cf0 fc70 7c0c 8c70 8c0c 0c00 8cf0
0000210 8c7c 7000 8c00 8c7c fc7c 8c8c 0c7c 7c0c
0000220 7c80 7cfc 0c7c 70fc 0070 7c0c 7c80 7cfc
0000230 8c7c 0c00 8cfc 0c0c 0cf0 f070 7070 7070
0000240 8c7c 007c 7070 000c f070 708c fc0c 0c8c
0000250 700c 70f0 7070 8c7c 7000 8c00 8c7c fc7c
0000260 8c8c 0c7c 7c0c 7c80 7cfc 0c7c 70fc 0070
0000270 7c0c 7c80 7cfc 8c7c 0c00 8cfc 0c0c 0cf0
0000280 f070 7070 7070 f07c 0c7c 700c 000c f070
0000290 708c fc0c 0c8c 700c 7080 7070 7c70 008c
00002a0 0070 7c8c 7c8c 8cfc 7c8c 0c0c 807c fc7c
00002b0 7c7c fc0c 7070 0c00 807c fc7c 7c7c 008c
00002c0 fc0c 0c8c f00c 700c 70f0 7070 7c70 8c0c
00002d0 70f0 0c70 7000 8cf0 0c70 8cfc 0c0c 7c70
00002e0 7000 8c7c 7000 8c00 8c7c fc7c 8c8c 0c7c
00002f0 7c0c 7c80 7cfc 0c7c 70fc 0070 7c0c 7c80
0000300 7cfc 8c7c 0c00 8cfc 0c0c 0cf0 f070 7070
0000310 7070 0c7c 808c 700c 000c f070 708c fc0c
0000320 0c8c 700c 007c 7c70 008c 0070 7c8c 7c8c
0000330 8cfc 7c8c 0c0c 807c fc7c 7c7c fc0c 7070
0000340 0c00 807c fc7c 7c7c 008c fc0c 0c8c f00c
0000350 700c 70f0 7070 7c70 0c0c 0cf0 0c70 7000
0000360 8cf0 0c70 8cfc 0c0c 7c70 7000 8c7c 7000
0000370 8c00 8c7c fc7c 8c8c 0c7c 7c0c 7c80 7cfc
0000380 0c7c 70fc 0070 7c0c 7c80 7cfc 8c7c 0c00
0000390 8cfc 0c0c 0cf0 f070 7070 7070 707c f00c
00003a0 7070 000c f070 708c fc0c 0c8c 700c 007c
00003b0 8070 7c70 008c 008c 0070 7cfc 8c7c 708c
00003c0 f00c 708c 7c0c f0fc 8c8c 0c0c 70fc 7070
00003d0 fc0c 008c f00c fc0c 708c 7c0c f0fc 700c
00003e0 fc7c fc7c 8cfc 707c f00c 708c 7c8c 8c70
00003f0 0c70 8cfc 0cf0 8c70 0c8c f00c 7c0c f08c
0000400 7c0c 7000 8cfc 707c 8c8c 0c8c f00c 700c
0000410 0cfc 707c 0c8c 008c f00c 7c8c 008c 0070
0000420 7c8c 7c8c 8cfc 7c8c 0c0c 807c fc7c 7c7c
0000430 fc0c 7070 0c00 807c fc7c 7c7c 008c fc0c
0000440 0c8c f00c 700c 70f0 7070 8c70 0070 f00c
0000450 700c 000c f070 708c fc0c 0c8c 700c 70f0
0000460 7070 8c7c 7000 8c00 8c7c fc7c 8c8c 0c7c
0000470 7c0c 7c80 7cfc 0c7c 70fc 0070 7c0c 7c80
0000480 7cfc 8c7c 0c00 8cfc 0c0c 0cf0 f070 7070
0000490 7070 708c 0c80 0cf0 0c70 7000 8cf0 0c70
00004a0 8cfc 0c0c 8070 7070 7070 8c7c 7000 8c00
00004b0 8c7c fc7c 8c8c 0c7c 7c0c 7c80 7cfc 0c7c
00004c0 70fc 0070 7c0c 7c80 7cfc 8c7c 0c00 8cfc
00004d0 0c0c 0cf0 f070 7070 7070 708c 8cf0 0c0c
00004e0 0c70 7000 8cf0 0c70 8cfc 0c0c 7c70 7000
00004f0 8c7c 7000 8c00 8c7c fc7c 8c8c 0c7c 7c0c
0000500 7c80 7cfc 0c7c 70fc 0070 7c0c 7c80 7cfc
0000510 8c7c 0c00 8cfc 0c0c 0cf0 f070 7070 7070
0000520 007c 8070 7070 000c f070 708c fc0c 0c8c
0000530 700c 007c 7c70 008c 0070 7c8c 7c8c 8cfc
0000540 7c8c 0c0c 807c fc7c 7c7c fc0c 7070 0c00
0000550 807c fc7

Any suggestions?

Thanks,
Yiran Liao
s***@public.gmane.org
2014-05-05 20:05:39 UTC
Permalink
Franke, Librae,

I did get my Nucleo board today and I spent a few hours wth it. I did check in lots of files, mostly to simply the configuration as much as possible. (Frank... you might want to save your CC3000 settings before taking the current code). In studying the schematics and files I have discovered the following:

1. There is no crystal available to the F401RE. There are three crystals in the schematic: X1, X2, and X3. X1 is an 8MHz crystall that is used only by the onboard STM32F103. X2 and X3 go to the STM32F401RE: One is the 32.768 LSE xtal and the other is the HSE oscillator. But neither X2 nor X3 is populated. I think that this means that the F401RE has to run from an internal clock source. Isn't that right?

The configs/nucleo-f401re/include/board.h seems think that there is 24MHz on board crystal and sets up the PLL to use that crystal. Is that right? If so, then that is a big problem. I believe that the clocking will have to be completely rethought.

2. Of course, if the clocking is hosed, you are never going to get any serial output.

3. The serial output is currently configured to be UART2. UART2 can either go to the TXD/RXD Arduino pins or it can go to the STM32F103 for the virtual COM port. However, there are solder bridges that have to be set to use the Arduino pins: SB 13,14, 62, and 63. As shipped, the solder bridges are setup to use only the virtual COM port with USART2.

The problem with using the virtual COM port is that you won't see any output unless the BAUD is just right.

Once we figure out how the clocking was supposed to be configured, I suggest we use one of the other two USARTs (USART1 or USART6) at least for the duration of the bringup.

Greg
s***@public.gmane.org
2014-05-06 17:17:32 UTC
Permalink
Hi, Frank, Librae,

The basic Nucleo-F401RE port is now working. The most critical problem was the setup of the clocking.

> I did get my Nucleo board today and I spent a few hours wth it. I did check in lots of files, mostly to simply the configuration as much as possible. (Frank... you might want to save your CC3000 settings before taking the current code). In studying the schematics and files I have discovered the following:
>
> 1. There is no crystal available to the F401RE. There are three crystals in the schematic: X1, X2, and X3. X1 is an 8MHz crystall that is used only by the onboard STM32F103. X2 and X3 go to the STM32F401RE: One is the 32.768 LSE xtal and the other is the HSE oscillator. But neither X2 nor X3 is populated. I think that this means that the F401RE has to run from an internal clock source. Isn't that right?
>
> The configs/nucleo-f401re/include/board.h seems think that there is 24MHz on board crystal and sets up the PLL to use that crystal. Is that right? If so, then that is a big problem. I believe that the clocking will have to be completely rethought.

I modified the RCC configuration and the board.h file so that is now uses the 16MHz HSI as the PLL input clock. This seems to work perfectly.

> 2. Of course, if the clocking is hosed, you are never going to get any serial output.

No longer an issue

> 3. The serial output is currently configured to be UART2. UART2 can either go to the TXD/RXD Arduino pins or it can go to the STM32F103 for the virtual COM port. However, there are solder bridges that have to be set to use the Arduino pins: SB 13,14, 62, and 63. As shipped, the solder bridges are setup to use only the virtual COM port with USART2.
>
> The problem with using the virtual COM port is that you won't see any output unless the BAUD is just right.
>
> Once we figure out how the clocking was supposed to be configured, I suggest we use one of the other two USARTs (USART1 or USART6) at least for the duration of the bringup.

I did not try using the Virtual COM port. I enabled USART1 as the serial console and connected a TTL-to-RS-232 converter. That serial console seems to work fine.

To configure USART1 as the console:

CONFIG_STM32_USART2 is not set
CONFIG_STM32_USART1=y
CONFIG_USART1_ISUART=y
CONFIG_USART1_SERIAL_CONSOLE=y
CONFIG_USART2_SERIAL_CONSOLE is not set
CONFIG_USART1_RXBUFSIZE=256
CONFIG_USART1_TXBUFSIZE=256
CONFIG_USART1_BAUD=115200
CONFIG_USART1_BITS=8
CONFIG_USART1_PARITY=0
CONFIG_USART1_2STOP=0

TTL to RS-232 converter connection:

Nucleo CN10 STM32F401RE
----------- ------------
Pin 21 PA9 USART2_RX
Pin 33 PA10 USART2_TX
Pin 20 GND
Pin 8 U5V

Greg
Librae
2014-05-07 09:28:25 UTC
Permalink
Tried with current upstream code on my platform, it works perfectly, thanks
Greg!

BTW, based on current defconfig, if I'd like to enabled verbose debug log
in ram, could you please point out how many config items need to be enabled
and what are they?
Thank you in advance.

Best regards,
Librae


On Wed, May 7, 2014 at 1:17 AM, <spudarnia-/***@public.gmane.org> wrote:

>
>
> Hi, Frank, Librae,
>
> The basic Nucleo-F401RE port is now working. The most critical problem
> was the setup of the clocking.
>
>
> > I did get my Nucleo board today and I spent a few hours wth it. I did
> check in lots of files, mostly to simply the configuration as much as
> possible. (Frank... you might want to save your CC3000 settings before
> taking the current code). In studying the schematics and files I have
> discovered the following:
> >
> > 1. There is no crystal available to the F401RE. There are three
> crystals in the schematic: X1, X2, and X3. X1 is an 8MHz crystall that is
> used only by the onboard STM32F103. X2 and X3 go to the STM32F401RE: One
> is the 32.768 LSE xtal and the other is the HSE oscillator. But neither X2
> nor X3 is populated. I think that this means that the F401RE has to run
> from an internal clock source. Isn't that right?
> >
> > The configs/nucleo-f401re/include/board.h seems think that there is
> 24MHz on board crystal and sets up the PLL to use that crystal. Is that
> right? If so, then that is a big problem. I believe that the clocking
> will have to be completely rethought.
>
> I modified the RCC configuration and the board.h file so that is now uses
> the 16MHz HSI as the PLL input clock. This seems to work perfectly.
>
>
> > 2. Of course, if the clocking is hosed, you are never going to get any
> serial output.
>
> No longer an issue
>
>
> > 3. The serial output is currently configured to be UART2. UART2 can
> either go to the TXD/RXD Arduino pins or it can go to the STM32F103 for the
> virtual COM port. However, there are solder bridges that have to be set to
> use the Arduino pins: SB 13,14, 62, and 63. As shipped, the solder
> bridges are setup to use only the virtual COM port with USART2.
> >
> > The problem with using the virtual COM port is that you won't see any
> output unless the BAUD is just right.
> >
> > Once we figure out how the clocking was supposed to be configured, I
> suggest we use one of the other two USARTs (USART1 or USART6) at least for
> the duration of the bringup.
>
> I did not try using the Virtual COM port. I enabled USART1 as the serial
> console and connected a TTL-to-RS-232 converter. That serial console seems
> to work fine.
>
> To configure USART1 as the console:
>
> CONFIG_STM32_USART2 is not set
> CONFIG_STM32_USART1=y
> CONFIG_USART1_ISUART=y
> CONFIG_USART1_SERIAL_CONSOLE=y
> CONFIG_USART2_SERIAL_CONSOLE is not set
> CONFIG_USART1_RXBUFSIZE=256
> CONFIG_USART1_TXBUFSIZE=256
> CONFIG_USART1_BAUD=115200
> CONFIG_USART1_BITS=8
> CONFIG_USART1_PARITY=0
> CONFIG_USART1_2STOP=0
>
> TTL to RS-232 converter connection:
>
> Nucleo CN10 STM32F401RE
> ----------- ------------
> Pin 21 PA9 USART2_RX
> Pin 33 PA10 USART2_TX
> Pin 20 GND
> Pin 8 U5V
>
> Greg
>
>
>
Gregory Nutt
2014-05-07 13:52:06 UTC
Permalink
Try this: Logging to a RAM Buffer - NuttX Real-Time Operating System

Logging to a RAM Buffer - NuttX Real-Time Operating System
This Wiki page addresses the setup for one configuration: Using a RAMLOG as the syslog device. A RAMLOG is a circular buffer in memory.
View on www.nuttx.org Preview by Yahoo
 Is that what you are looking for? If so, also look at

pic32-starterkit/README.txt
stm3220g-eval/README.txt
stm3240g-eval/README.txt
sure-pic32mx/README.txt

Greg

On Wednesday, May 7, 2014 4:33 AM, Librae <librae8226-***@public.gmane.org> wrote:

 
Tried with current upstream code on my platform, it works perfectly, thanks Greg!


BTW, based on current defconfig, if I'd like to enabled verbose debug log in ram, could you please point out how many config items need to be enabled and what are they?

Thank you in advance.


Best regards,

Librae




On Wed, May 7, 2014 at 1:17 AM, <spudarnia-/***@public.gmane.org> wrote:


> 
>Hi, Frank, Librae,
>
>The basic Nucleo-F401RE port is now working.  The most critical problem was the setup of the clocking.
>
>
>> I did get my Nucleo board today and I spent a few hours wth it.  I did check in lots of files, mostly to simply the configuration as much as possible.  (Frank... you might want to save your CC3000 settings before taking the current code).   In studying the schematics and files I have discovered the following:
>>
>> 1. There is no crystal available to the F401RE.  There are three crystals in the schematic:  X1, X2, and X3.  X1 is an 8MHz crystall that is used only by the onboard STM32F103.  X2 and X3 go to the STM32F401RE:  One is the 32.768 LSE xtal and the other is the HSE oscillator.  But neither X2 nor X3 is populated.  I think that this means that the F401RE has to run from an internal clock source.  Isn't that right?
>>
>> The configs/nucleo-f401re/include/board.h seems think that there is 24MHz on board crystal and sets up the PLL to use that crystal.  Is that right?  If so, then that is a big problem.  I believe that the clocking will have to be completely rethought.
>
>I modified the RCC configuration and the board.h file so that is now uses the 16MHz HSI as the PLL input clock.  This seems to work perfectly.
>
>
>> 2. Of course, if the clocking is hosed, you are never going to get any serial output.
>
>No longer an issue
>
>
>> 3. The serial output is currently configured to be UART2.  UART2 can either go to the TXD/RXD Arduino pins or it can go to the STM32F103 for the virtual COM port.  However, there are solder bridges that have to be set to use the Arduino pins:  SB 13,14, 62, and 63.  As shipped, the solder bridges are setup to use only the virtual COM port with USART2.
>>
>> The problem with using the virtual COM port is that you won't see any output unless the BAUD is just right.
>>
>> Once we figure out how the clocking was supposed to be configured, I suggest we use one of the other two USARTs (USART1 or USART6) at least for the duration of the bringup.
>
>I did not try using the Virtual COM port.  I enabled USART1 as the serial console and connected a TTL-to-RS-232 converter.  That serial console seems to work fine.
>
>  To configure USART1 as the console:
>
>    CONFIG_STM32_USART2 is not set
>    CONFIG_STM32_USART1=y
>    CONFIG_USART1_ISUART=y
>    CONFIG_USART1_SERIAL_CONSOLE=y
>    CONFIG_USART2_SERIAL_CONSOLE is not set
>    CONFIG_USART1_RXBUFSIZE=256
>    CONFIG_USART1_TXBUFSIZE=256
>    CONFIG_USART1_BAUD=115200
>    CONFIG_USART1_BITS=8
>    CONFIG_USART1_PARITY=0
>    CONFIG_USART1_2STOP=0
>
>  TTL to RS-232 converter connection:
>
>    Nucleo CN10 STM32F401RE
>    ----------- ------------
>    Pin 21 PA9  USART2_RX
>    Pin 33 PA10 USART2_TX
>    Pin 20 GND
>    Pin 8  U5V
>
>Greg
Librae librae8226-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [nuttx]
2014-05-11 04:04:15 UTC
Permalink
Thanks Greg!
It is working just as what I'd like to.

I updated the defconfig like this:

CONFIG_DEBUG=y
CONFIG_DEBUG_MM=y
CONFIG_DEBUG_SCHED=y
CONFIG_DEBUG_FS=y

CONFIG_RAMLOG=y
CONFIG_RAMLOG_SYSLOG=y
CONFIG_RAMLOG_CONSOLE=y
CONFIG_RAMLOG_CONSOLE_BUFSIZE=8192
CONFIG_RAMLOG_NONBLOCKING=y

CONFIG_SYSLOG=y
# CONFIG_SYSLOG_CHAR is not set

Best regards,
Librae




On Wed, May 7, 2014 at 9:52 PM, Gregory Nutt <spudarnia-/***@public.gmane.org> wrote:

>
>
> Try this: Logging to a RAM Buffer - NuttX Real-Time Operating System<http://www.nuttx.org/doku.php?id=wiki:howtos:ramlog>
> Logging to a RAM Buffer - NuttX Real-Time Operating System<http://www.nuttx.org/doku.php?id=wiki:howtos:ramlog>
> This Wiki page addresses the setup for one configuration: Using a RAMLOG
> as the syslog device. A RAMLOG is a circular buffer in memory.
> View on www.nuttx.org<http://www.nuttx.org/doku.php?id=wiki:howtos:ramlog>
> Preview by Yahoo
>
> Is that what you are looking for? If so, also look at
>
> pic32-starterkit/README.txt
> stm3220g-eval/README.txt
> stm3240g-eval/README.txt
> sure-pic32mx/README.txt
>
> Greg
> On Wednesday, May 7, 2014 4:33 AM, Librae <librae8226-***@public.gmane.org> wrote:
>
> Tried with current upstream code on my platform, it works perfectly,
> thanks Greg!
>
> BTW, based on current defconfig, if I'd like to enabled verbose debug log
> in ram, could you please point out how many config items need to be enabled
> and what are they?
> Thank you in advance.
>
> Best regards,
> Librae
>
>
> On Wed, May 7, 2014 at 1:17 AM, <spudarnia-/***@public.gmane.org> wrote:
>
>
> Hi, Frank, Librae,
>
> The basic Nucleo-F401RE port is now working. The most critical problem
> was the setup of the clocking.
>
>
> > I did get my Nucleo board today and I spent a few hours wth it. I did
> check in lots of files, mostly to simply the configuration as much as
> possible. (Frank... you might want to save your CC3000 settings before
> taking the current code). In studying the schematics and files I have
> discovered the following:
> >
> > 1. There is no crystal available to the F401RE. There are three
> crystals in the schematic: X1, X2, and X3. X1 is an 8MHz crystall that is
> used only by the onboard STM32F103. X2 and X3 go to the STM32F401RE: One
> is the 32.768 LSE xtal and the other is the HSE oscillator. But neither X2
> nor X3 is populated. I think that this means that the F401RE has to run
> from an internal clock source. Isn't that right?
> >
> > The configs/nucleo-f401re/include/board.h seems think that there is
> 24MHz on board crystal and sets up the PLL to use that crystal. Is that
> right? If so, then that is a big problem. I believe that the clocking
> will have to be completely rethought.
>
> I modified the RCC configuration and the board.h file so that is now uses
> the 16MHz HSI as the PLL input clock. This seems to work perfectly.
>
>
> > 2. Of course, if the clocking is hosed, you are never going to get any
> serial output.
>
> No longer an issue
>
>
> > 3. The serial output is currently configured to be UART2. UART2 can
> either go to the TXD/RXD Arduino pins or it can go to the STM32F103 for the
> virtual COM port. However, there are solder bridges that have to be set to
> use the Arduino pins: SB 13,14, 62, and 63. As shipped, the solder
> bridges are setup to use only the virtual COM port with USART2.
> >
> > The problem with using the virtual COM port is that you won't see any
> output unless the BAUD is just right.
> >
> > Once we figure out how the clocking was supposed to be configured, I
> suggest we use one of the other two USARTs (USART1 or USART6) at least for
> the duration of the bringup.
>
> I did not try using the Virtual COM port. I enabled USART1 as the serial
> console and connected a TTL-to-RS-232 converter. That serial console seems
> to work fine.
>
> To configure USART1 as the console:
>
> CONFIG_STM32_USART2 is not set
> CONFIG_STM32_USART1=y
> CONFIG_USART1_ISUART=y
> CONFIG_USART1_SERIAL_CONSOLE=y
> CONFIG_USART2_SERIAL_CONSOLE is not set
> CONFIG_USART1_RXBUFSIZE=256
> CONFIG_USART1_TXBUFSIZE=256
> CONFIG_USART1_BAUD=115200
> CONFIG_USART1_BITS=8
> CONFIG_USART1_PARITY=0
> CONFIG_USART1_2STOP=0
>
> TTL to RS-232 converter connection:
>
> Nucleo CN10 STM32F401RE
> ----------- ------------
> Pin 21 PA9 USART2_RX
> Pin 33 PA10 USART2_TX
> Pin 20 GND
> Pin 8 U5V
>
> Greg
>
>
>
>
>
>
Continue reading on narkive:
Loading...