Commit Graph

30627 Commits

Author SHA1 Message Date
Gregory Nutt c4c37239d6 Forgot to add a file in the last commit 2017-08-10 16:31:25 -06:00
Gregory Nutt 4dceea4901 Network routing table: Trivial name changes to make IPv4 and IPv6 more symmetric. Add debug logic to dump the content of the router table. 2017-08-10 16:18:06 -06:00
Gregory Nutt 5a352cacc1 Update NSH documentation to show new usage for addroute and delroute. 2017-08-10 10:32:09 -06:00
Gregory Nutt f506a49295 Networking routing table: Cosmetic naming to make IPv4 and IPv6 routing table logic symmetry. 2017-08-10 09:14:31 -06:00
Gregory Nutt c5e5cd5c0f net/icmpv6: Eliminate a warning 2017-08-10 07:27:40 -06:00
Masayuki Ishikawa 6bf399dfcb Networking: Fix a compilation issue with CONFIG_NET_ICMPv6_AUTOCONF=y 2017-08-09 18:08:28 -06:00
Gregory Nutt 9da22a8852 Networking: Fix typo for 802.11 devices in netdev_register(). Was being masked before because depended on CONFIG_NET_MULTLINK. 2017-08-09 09:20:37 -06:00
Gregory Nutt 7bb8943a9c Fix IPv6 loopback driver that depended on the removed g_ipv6_allonesaddr. Noted by Masayuki Ishikawa 2017-08-09 06:59:55 -06:00
Gregory Nutt b5f5b07b18 Another compiler error found in build testing. 2017-08-08 18:43:05 -06:00
Gregory Nutt 7c142be7ec Fix small build problems found in build testing. 2017-08-08 18:37:42 -06:00
Gregory Nutt 663f5dfbdd Update readme. Fix stray newline in shenzhou Make.defs 2017-08-08 18:21:08 -06:00
Bill Morgan 31fa65a381 Merged in awmorgan/nuttx/typo (pull request #454)
readme: fix typo Bask->Bash

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-08-08 23:11:22 +00:00
Bill Morgan d09b008951 readme: fix typo Bask->Bash 2017-08-08 17:51:02 -05:00
Gregory Nutt 78e90f0fc8 Fix a couple of problems found in build testing 2017-08-08 16:30:27 -06:00
Gregory Nutt efbb47999f Networking: Fix netdev_dev_lladdrsize. In some configurations, it could return the wrong size for the address of a packet radio. 2017-08-08 16:27:23 -06:00
Gregory Nutt 91f9e72890 Merge branch 'multinic' 2017-08-08 15:27:39 -06:00
Gregory Nutt aeb59383cf Remove CONFIG_NET_MULTILINK. This increases code size by a little, but greatly reduces the complexity of the network code. 2017-08-08 15:26:09 -06:00
Gregory Nutt 5c92c3c735 Merge branch 'multinic' 2017-08-08 14:37:51 -06:00
Gregory Nutt bd7c84b23e Remove CONFIG_NETDEV_MULTINIC. This increases code size by a little, but greatly reduces the complexity of the network code. 2017-08-08 14:24:12 -06:00
Gregory Nutt 53d8a0b557 Trivial update to a README file 2017-08-08 13:03:09 -06:00
Gregory Nutt d49d6a6aa9 Fix a couple of errors in names used in 6LoWPAN conditional compilation. 2017-08-08 12:15:58 -06:00
Gregory Nutt f3f522514e libm: Eliminate a warning from lgamma(); Update some comments; Add some logic to handle broadcast better -- Currently conditioned out because it does not work. 2017-08-08 12:08:43 -06:00
Alan Carvalho de Assis e748a43f99 STM32F4-Discovery: Add a configuration for testing libc++ 2017-08-08 10:38:42 -06:00
Gregory Nutt 09f31d1371 Spirit Radio: Add support for CSMA backoff count reached interrupt. 2017-08-08 10:34:51 -06:00
Gregory Nutt 79400ea960 B-L475-IOT01A: Enable UDP broadcast test in the spirit-starhub configuration. 2017-08-08 08:32:41 -06:00
Gregory Nutt 572cf51fa4 Networking: Rethink IPv6 all-nodes packet routing. 2017-08-08 07:48:07 -06:00
Alan Carvalho de Assiss 680368b656 libm: Port gamma() and lgamma() from FreeBSD to NuttX. 2017-08-08 07:02:39 -06:00
Gregory Nutt 814fc2049d Networking: Forgot to add a file in a previous commit. 2017-08-08 07:02:39 -06:00
Masayuki Ishikawa 7d4194686c Merged in masayuki2009/nuttx.nuttx/network_test (pull request #452)
ICMPv6: Support source link-layer address option in RA

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-08-08 12:33:21 +00:00
Masayuki Ishikawa bac67455b6 ICMPv6: Support source link-layer address option in RA 2017-08-08 16:42:34 +09:00
Gregory Nutt d5c91f9a57 C Coding Standard: Clarify the form of structures and unions declared with local variable definition. 2017-08-07 16:28:10 -06:00
Gregory Nutt 6e3ced4111 Spirit: Make error handling for discarded packets match other RX failure interrupts. 2017-08-07 13:52:42 -06:00
Gregory Nutt 835ae2999d networking: Move a little more to the inet/ subdirectory. 2017-08-07 13:03:23 -06:00
Gregory Nutt 2ada7d5892 IPv6: Remove comparisons to the address with all ones set. IPv6 does not support broadcast addresses and certainly not in that form. Replace with multicast addresses beginning with 0xff02. 2017-08-07 11:50:50 -06:00
Stefan Kolb 22dfa875fc I discovered while working on the SAMV7 mcan driver that the implementation of the CAN error handling is suboptimal. In the current implementation the following errors are implemented as pending errors:
* Receiving
  * MCAN_INT_STE (Stuff Error)
    More than 5 equal bits in a sequence occurred.
  * MCAN_INT_CRCE (CRC Error)
    Received CRC did not match the calculated CRC.
  * MCAN_INT_RF0L (Receive FIFO 0 Message Lost)
    Receive FIFO 0 message lost, also set after write attempt to Receive FIFO 0 of size zero.
  * MCAN_INT_RF1L (Receive FIFO 1 Message Lost)
    Receive FIFO 1 message lost, also set after write attempt to Receive FIFO 1 of size zero.

* Sending
  * MCAN_INT_BE (Bit Error)
    Device wanted to send a rec / dom level, but monitored bus level was dominant / recessive.
  * MCAN_INT_TEFL (Tx Event FIFO Element Lost)
    Tx Event FIFO element lost, also set after write attempt to Tx Event FIFO of size zero.

* General
  * MCAN_INT_MRAF (Message RAM Access Failure)
    The flag is set, when the Rx Handler
    * has not completed acceptance filtering or storage of an accepted message until the arbitration field of the following message has been received. In this case acceptance filtering or message storage is aborted and the Rx Handler starts processing of the following message.
    * was not able to write a message to the Message RAM. In this case message storage is aborted. In both cases the FIFO put index is not updated resp. the New Data flag for a dedicated Receive Buffer is not set, a partly stored message is overwritten when the next message is stored to this location. The flag is also set when the Tx Handler was not able to read a message from the Message RAM in time. In this case message transmission is aborted. In case of a Tx Handler access failure the MCAN is switched into Restricted Operation mode (see Section 47.5.1.5). To leave Restricted Operation mode, the processor has to reset MCAN_CCCR.ASM.
  * MCAN_INT_ELO (Error Logging Overflow)
    Overflow of CAN Error Logging Counter occurred.

The listed errors are not pending, the errors occurred and are gone directly afterwards. This commit changes the described behavior and simplifies the handling of CAN errors.
2017-08-07 10:31:04 -06:00
Jeff 4cbde22992 I'm working on bringing up USB full-speed support on STM32F405.  My board does not include a USB power switch, VBus sensing, over current detection, or ID pin.
This commit add a config STM32_OTGFS_VBUS_ CONTROL which lets us selectively disable VBus sensing and control.  I also sneaked in a change to disable the configgpio call for the ID pin, which is only used in OTG mode which isn't supported yet.  The only pins that need to be initialized should be OTGFS_DP and OTGFS_DM.

These changes let a USB mouse enumerate on my platform if it's plugged in on power-up.  Plugging, unplugging, clicking, or moving the mouse cause NSH to stop responding.  Because I'm using the ramlog, I don't have useful debug messaging yet, so there's a lot more work I have to do to troubleshoot it or get my JTAG debugging set up, but these patches shouldn't hurt anything.  I'm hoping my issue is something simple I overlooked in configuration.

I'm planning to add similar changes for the OTGHS peripheral (using integrated full speed phy) but I still need to test those changes before submitting patches.
2017-08-07 10:24:31 -06:00
Gregory Nutt 1ac4848686 Spirit bugfixes: Was hanging occasionally because there was not mechanism to restart the poll timer if poll was not performed because Spirit ws busy. Fixed by not checking if Spirit is busy. The TX poll can be performed asynchronouly while spirit is busy; any outgoing data will queued until Spirit is ready. Fixed handling of a timeout condition. Failure to transmition to the TX state would fail (timeout) if in a race condition Spirit already committed to the RX state. The driver needs to recover the state properly and avoid debug assertions in this event. 2017-08-07 09:22:16 -06:00
Gregory Nutt baf4c0d011 Minor change to last PR: errno should not be modified if no error occurred. 2017-08-07 06:33:53 -06:00
Masayuki Ishikawa 1dfed49a3c Merged in masayuki2009/nuttx.nuttx/smp_test (pull request #451)
sched/: Fix return value in sched_setaffinity()

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-08-07 09:24:09 +00:00
Masayuki Ishikawa 4530a72379 sched/: Fix return value in sched_setaffinity() 2017-08-07 15:00:31 +09:00
Gregory Nutt e57a5755cc TX timeout must also be cancelled on a TX error. TX timeout should check if we are waiting for a TXto complete. TX timeout was too short (short than the maximum number of retries). 2017-08-06 16:56:02 -06:00
Gregory Nutt bbf1ad4ea6 Spirit network driver: TX timeout was never being cancelled! Also reviewed and cleaned up all error handling logic 2017-08-06 15:40:37 -06:00
Gregory Nutt 3c6981534f Networking: Move INET socket interface out of net/sockets to its own directory net/inet 2017-08-06 14:48:19 -06:00
Gregory Nutt 48a507c0b7 6LoWPAN: When obtaining the radio MAC address from the IP address, handle the special case of broadcast and multicast address. 2017-08-06 13:50:48 -06:00
Alan Carvalho de Assis cb44833599 STM32F103-Minimum: (1) Enable CONFIG_MTD_PARTITION in Kconfig if flash partition is enabled and (2) Update the README.txt file with info needed to get SmartFS working. 2017-08-06 12:14:29 -06:00
Gregory Nutt 91cfe6c9be Spirit radio: Dropping packet size to 94 seems to fix problem with CRC failures. 2017-08-06 12:02:55 -06:00
Simon Piriou 38569d50fb b-l475e-iot01a: add basic support for external Macronix QuadSPI flash memory 2017-08-06 10:52:12 -06:00
Simon Piriou b1f50490bd MTD: Add driver for Macronix QuadSPI flash memory 2017-08-06 10:51:17 -06:00
Alan Carvalho de Assis 0a4650d1ee STM32F103-Minimum: Add support for SmartFS on Winbond W25 SPI NOR Flash 2017-08-06 10:38:55 -06:00
Gregory Nutt 9a53a2f64a Spirit: Restore the 96 byte maximum packet length. Reducing the packet length had no effect on eliminating RX FIFO errors. 2017-08-06 10:31:50 -06:00