Newer
Older
- Fixed an error in the FAT logic that can cause file corruption. The
error conditions are rare and only seen with very large files (from
Andrew Tridgell). This replaces a previous, partial fix for the same
problem.
- Fixed memory leaks in the NXFFS open() and stat() implementations
(from Lzyy).
- The interfaces include opendir(), readdir(), et al, were modified so
that errors will not be reported if you attempt to list a empty
pseudo-directory.
* Networking:
- Fix one place where the connection reference count was not being
decremented in the socket close() logic. This is really a cosmetic
change BUT when CONFIG_DEBUG_NET is enabled, it will cause assertions.
- Backed out a small part of the NuttX 6.33 write buffering changed.
David G says that this causes problems in connecting to a server.
- In DHCPD, there was a place where the logic was calling ntohl()
inappropriately; the address was already in the correct order. How
could DHCPD have worked with this bug?
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
* TI Tiva/Stellaris Drivers:
- Fixed cut'n'paste error that prevented UARTS2-7 from being used with
the LM4F120 Launchpad.
- Fixed several errors there were unmasked with UARTs > UART2 are
enabled (grom Gosha).
* Allwinner A10 Drivers:
- Fixed cut'n'paste error that prevented UARTS2-7 from being used with
the pcDuino.
* NXP LPC17xx Drivers:
- Fix an compilation error that crept into the LPC17xx USB host driver.
* STMicro STM32 Drivers:
- Fix cloned typo in the serial driver: FLOWCONTROL vs FLOWCONROL.
- Disable SPI before changing DPI CR1 register (from David Sidrane).
- stm32 TIM: Set the timer CCMR when selecting timer channel. From
David Sidrane.
- Fix typo in a Makefile: stm32_pwm.c not stm32_psm.c. Noted by Max
Kriegleder.
* Library:
- More sscanf() bug fixes from David Sidrane.
* Header files:
- cstdbool: Ignore _Bool8 if CONFIG_C99_BOOL8=y
* Configuration/Build System:
- Several changes to restore the broken native Windows build
* NuttShell (NSH):
- Use strncpy vs strcpy in the Telnet console logic to avoid
overruning the username and password buffers (from Bertold Van den
Bergh).
- Add a newline after printing the file in the 'cat' command. This
prevents the NSH prompt from be in the same line as the final line
of the file in the case where there is no newline at the end of the
file.
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
NuttX-7.2
---------
The 102nd release of NuttX, Version 7.2, was made on April 29, 2014,
and is available for download from the SourceForge website. Note
that release consists of two tarballs: nuttx-7.2.tar.gz and
apps-7.2.tar.gz. Both may be needed (see the top-level nuttx/README.txt
file for build information).
Additional new features and extended functionality:
* Core OS:
- Add support for CLOCK_REALTIME. From Macs N.
* Network Utilities:
- Add a very primitive NTP client.
- DNS resolver: Long needed major clean up for coding style and
unification of naming conventions (resolv vs dns).
* Common Drivers:
- Add a new MTD driver that can be used to contain another driver and
force its apparent sector size to be 512 bytes.
- If DCD can support queuing of stall requests, then the USB MSC stall
work around delays are not necessary.
- Redesign threading module used with the USB MSC driver. It was using
pthreads before and these were changed to a kernel thread. The reason
for this has to do with task grouping: A pthread is a memory of the
group of the task that started it. A kernel thread is independent of
the task that started in (other than knowing it as the parent). This
allows me to remove so kludge logic to "deparent" the pthread on
startup.
- Update the MIO183QT-9A LCD driver to support reading from the LCD.
From Toby Duckworth.
- Timer "upper half" driver and l"lower half" interface definition from
Bob Doiron.
* Atmel SAM4E/4S Board Support:
- All SAM4E configurations updated to run with 120MHz CPU speed and
with the CMCC enabled.
- Support for the SAM4S Xplained Pro board from Bob Doiron.
- Add watchdog driver. From Bob Doiron.
* Atmel SAM4E/4S Drivers:
- Add a USB full speed device driver (UDP) for the SAM4E.
- Add support in HSMCI and SPI drivers to invalidate cached memory if
the CMCC is enabled.
- Add logic to handle SPI word widths > 8
- Port RTC driver from SAMA5 to SAM3/4. From Bob Doiron.
- HSMCI: Extensions from Bob Doiron needed to support PDC-based HSMCI
DMA transfers. Verified on the SAM4S Xplained Pro.
* Atmel SAMA5:
- Add support for the SAMA5D36 chip.
- Add functions to calculate PLLACK, PCK, and MCK frequencies given
the main clock frequency.
- Implemented RAM functions. When booting directly into NOR flash,
reconfiguring the PLL while executing out of NOR FLASH causes
crashes. This was fixed by David Sidrane by implementing RAM
functions. The killer code is copied and executed from ISRAM and
the crash is avoided.
* Atmel SAMA5 Drivers:
- Add support for the SAMA5D3 DBGU.
* Atmel SAMA5 Board Support:
- Add a board support configuration for the Atmel SAMA5D3 Xplained
board running out of SDRAM. When booting from SDRAM, start-up logic
needd to query the PMC registers to determine the MCK, PCK, etc.
- For all SAMA5 boards, added support for 528MHz clocking.
* TI Tiva/Stellaris:
- Modify the logic to disables the interrupts and sets the default
interrupt priority so that it uses the ICTR to get the number of
interrupt lines/registers. This is instead of using some fixed
number of initializations based a priori knowledge of the number
of interrupt lines in the MCU.
* STMicro STM32
- Add support for the STM401RE. From Frank Bennett.
* STMicro STM32 Boards:
- STM32F4Discovery: Add support to register keyboard and mouse
classes if so configured. From Leo.
- Add support for the Nucleo-F401RE board. From Frank Bennett.
* STMicro STM32 Drivers:
- Add STM32 Ethernet IGMP hashing support. From Manuel Stühn.
- OTG FS Host: USB host tracing added by Leo.
* Freescale Kinetis
- Modify the logic to disables the interrupts and sets the default
interrupt priority so that it uses the ICTR to get the number of
interrupt lines/registers. This is instead of using some fixed
number of initializations based a priori knowledge of the number
of interrupt lines in the MCU.
* NXP LPC17xx
- Modify the logic to disables the interrupts and sets the default
interrupt priority so that it uses the ICTR to get the number of
interrupt lines/registers. This is instead of using some fixed
number of initializations based a priori knowledge of the number
of interrupt lines in the MCU.
* ZiLOG ZNEO Drivers
- Added ZNEO ESPI driver.
* Library:
- Finish incomplete support for ferror(). From Macs N.
* Documentation:
- UsbTrace.html: Add some discussion of the USB monitor.
* Configuration/Build System:
- compiler.h: Add macro UNUSED() that can be used to eliminate
warnings about variables that are set to values that are not
used.
* Debugging Support:
- Add a configuration option to enable dumping of the USB trace buffer
on assertion.
* Applications:
- IGMP Example: Fill out Kconfig file; update makefile so that the
IGMP example can be used as an NSH built-in application. From Manuel
Stühn.
- lcdrw Example: Fill out empty Kconfig file.
- touchscreen Example: Add a configuration option to indicate if
architecture-specific initialized is required, yes or no.
- System usbmsc: Back out the USBMSC daemon... it is no longer needed
with the recent fix to the USBMSC class driver.
- NSH: malloc/free IOBUFFER for 'cat' and 'hexdump' commands instead of
using the stack. From Bob Doiron.
- cpuhog, serialblaster, and serialrx Examples: Stress test examples
added by Bob Doiron.
Bugfixes (see the ChangeLog for details). Some of these are very important:
* Core OS:
- errno_get_errno_ptr() and getpid(): Add some checks. If these
functions are called very early in initialization before the tasking
structures are initialized, they would not behave properly.
* Networking:
- IGMP-related bug fixes from Manuel Stühn.
- In netdev_findbyaddr(), skip network devices that are in the "down"
state. It does not make sense to consider an address match with a
"down" device. From Brennan Ashton.
* Network Utilities:
- DHCPD: The correct value of the PAD option. Should be zero, not
one. From Brennan Ashton.
- Corrections to the NTP client from Manuel Stuehn.
* Common Drivers:
- usbhost.h: Fix some USB HID-related conditional compilation. From Leo.
- USB HID mouse driver: Don't include NAKs from the device in the error
count. From Leo.
* TI Tiva/Stellaris:
- Add corrected control logic for TM4C125GXL based on logic from Daniel
Carvalho with modifications. The LM4F120 also works well with this
change.
* STMicro STM32 Drivers:
- STM32 F2 SPI: Correct a mapping for SPI MOSI pin. From dlsitzer.
- OTG FS Host: Fixes related to low-speed devices and interrupt
endpoints from Leo. Necessary in order to use a USB HID mouse
device.
- STM32 SDIO: The dmaflight method must be conditioned on
CONFIG_SDIO_PREFLIGHT. Noted by Pelle Windestam.
- Sourceforge Ticket #26. up_prioritize_irq should not be called
if CONFIG_ARCH_IRQPRIO is not defined.
* Atmel SAM3/4:
- Fix some backward conditional compilation in the start-up logic.
- Fix initialization of the default interrupt priorities. This is
a critical bug fix!
- SAM4S: Fix error in macros that disable peripheral clocking. From
Bob Doiron.
* Atmel SAMA5:
- Fix double mapping of SDRAM when executing out of SDRAM. In this
case, the SDRAM was already mapping in arm_head.S.
- In clock configuration, the BMS bit handling was fixed to match
what the HW really does. From David Sidrane.
- TLB Bufferable bit did not do what I thought it was going to do.
I though I was selecting a write-through cache, but the result was
that all caching was disabled and NOR FLASH accesses were very slow.
- Move the un-definitions of __ramfuncs__ from the clock configuration
.c file to the .h file. Otherwise, the attribute will be applied
differently for the prototype and the function definition.
Sourceforge patch 38 from Luciano Neri.
* Atmel SAMA5 Drivers:
- Fix a case in the UDPHS driver where received status was not being
cleared, causing OUT SETUP commands to fail.
- TWI data sending fails to increment the number of byes transferred
on first byte sent. from David Sidrane.
- If running from SDRAM, then BOARD_MCK_FREQUENCY is not a constant
and cannot be used in conditional compilation. All drivers fixed
EXCEPT for the PWM and Timer/Counter drivers which will need some
more extensive redesign.
* Atmel SAMA5 Boards:
- SAMA5D3x-EK: The red LED is controlled by PE24 which is also the
camera/ISI interface reset line. So if the a camera is installed,
then we must avoid controlling the red LED or we inadvertently
also reset the camera module. Noted by David Sidrane.
- Header files reference type xcpt_t in certain configurations and
so must include nuttx/irq.h. This is Sourceforge bug 25 submitted
by Luciano Neri.
* NXP LPC17xx Drivers
- arm/src/lpc17xx/Kconfig and lpc17_ethernet.c: The default interrupt
priority should be default, not the highest priority (2014-4-19).
* ZiLOG ZNEO
- Fix calculation of timer reload and prescaler. The timer frequency
was way too fast.
* Library:
- strncpy(): Change ordering of test and copy. Logic would have
failed if n=0; one byte was always copying before testing
for the end of the copy.
- Fix a counting error in the return value from sscanf(). Noted by
kfrolov. Also, sscanf() should return EOF if no values were
converted.
- Fix a logic error in ftell(). It was simply using the file offset
and did not take into account data buffered in memory. From Macs N.
- sccanf(): Use stroul() vs strol() with %u format otherwise, range
of values is restricted because of sign bit. From kfrolov.
* Configuration/Build System:
- Fix a build error that occurs when only USB device tracing is enabled.
* NuttShell (NSH):
- Fix NuttShell version number display in the NSH welcome message.
version.h was not being included.
* Other Applications:
- sysinfo: CONFIG_VERSION_BUILD is a string an needs to be
printed with %s, not %d. Noted by Librae.
- nxplayer: Compilation failure in one configuration reported by
Manuel Stuhn.
- System sdcard: Remove an STM32 dependency. From Bob Doiron.
- telnetd Example: Naming is confused. In someplaces 'telnetd',
and in others 'shell.' All changes to telnetd. Noted by Pelle
Windestam.
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
NuttX-7.3
---------
The 103rd release of NuttX, Version 7.3, was made on June 25, 2014,
and is available for download from the SourceForge website. Note
that release consists of two tarballs: nuttx-7.3.tar.gz and
apps-7.3.tar.gz. Both may be needed (see the top-level nuttx/README.txt
file for build information).
Additional new features and extended functionality:
* Core OS:
- Dynamic loader: Framework to support Pascal P-Code as a binary
format that can be exec'ed from a file system.
- Dynamic Loader: Extend the binfmt interface to handle error
conditions where format-specific clean-up is needed in the event
of error conditions. This is needed by the P-Code binfmt.
* Networking
- IOB: Add a generic I/O buffer chain logic. This logic uses small,
pre-allocated buffers that can be chained together to support
transfers of any size, using fewer resources and also without
committing in advance to a TCP window size. There is now only
one I/O type used in the networking and it is these I/O buffer
chains.
- TCP Write Buffering: TCP write buffering logic converted to use
I/O buffer chains.
- TCP Read-Ahead Buffering: TCP read-ahead buffering logic converted
to use I/O buffer chains.
- Includes logic to support throttling of read-ahead buffering if
the read-ahead buffering is competing with write buffering for
I/O buffers.
- Raw Sockets: Add support for the AF_PACKET socket family. From
Daniel Lazlo Sitzer.
* Common Drivers:
- W25 Serial FLASH driver extended by Mark Whitehorn to support the
8Mbit W25Q80BV part.
- Add support for Fujitsu MB85RS1MT RAMTRON part. From Charles Ash.
- Enhancements to the generic timer interface to support capture mode
from Bob Doiron.
- Add an rxflowcontrol method to the serial interface to better
support RX flow control. This involves common changes in addition to minor updates to all MCU-specific serial drivers (only fully implemented for the STM32). From Jussi Kivilinna.
* Atmel SAM4C
- Add support for the SAM4CM family. From Max Neklyudov.
* Atmel SAM4E/4S Drivers:
- RTT driver from Bob Doiron. Also added high resolution RTC
emulation using the RTT for the sub-second counter.
* Atmel SAM4E/4S Board Support:
- The SAM4S Xplained Pro now uses the extended timer/counter
features. From Bob Doiron.
- Added a touchscreen and LCD driver for the SAM4E-EK board (the LCD,
however, not yet fully functional).
* Atmel SAMA5:
- Optimized, high performance, assembly language memcpy(). This is
the same optimized memcpy() function that Mike Smith brought in
for the ARMv7-M with minor tweaks by David Sidrane to work with
the ARMv7-A.
- Basic support added for the SAMA5D4 family.
* Atmel SAMA5 Drivers:
- SAMA5D4: New drivers unique to the SAMA5D4: XDMAC, SAIC, and
others.
* Atmel SAMA5 Board Support:
- SAMA5D4-MB: Initial board support for the SAMA5D4-MB/EK boards.
* STMicro STM32
- Add support for the STM32152 and STM32162 Medium+ density parts
(plus miscellaneous other improvements to the original STM32151
logic). From Jussi Kivilinna and Sami Pelkonen.
* STMicro STM32 Boards:
- Support for the Olimex STM32 H405 board contributed by Martin
Lederhilger.
* STMicro STM32 Drivers:
- Implement the rxflowcontrol method to the serial interface to better
support RX flow control. From Jussi Kivilinna.
* NXP LPC17xx Drivers:
- Added support for the RTC, ADC, DAC, Timers, PWM and MCPWM
drivers. From Max (himax).
* NXP LPC17xx Boards:
- Support for the RTC, ADC, DAC, Timers, PWM and MCPWM integrated
in the LPCXpresso LPC1768 board support. From Max (himax).
* Library:
- Add support for seek-able streams.
* Configuration/Build System:
- Restructured network directories, header files, and naming to
better modularize the networking and to better integrate the
networking with the rest of NuttX.
* Applications:
- prun: An NSH built-in application that can be used to run
Pascal P-Code programs either programatically or from the NSH
command line.
- netpkt: A "raw" socket test from Lazlo Sitzer.
- hex2bin: A library and built-in task to convert from
Intel HEX to binary format. It can write the binary data to a file or it can store the binary data to memory (to support, for example, a loader).
Bugfixes. Only the most critical bugfixes are listed here (see the ChangeLog for the complete list of bugfixes and for additional, more detailed bugfix information):
* Core OS:
- Dynamic Loader: Fix an error in a symbol table search function.
Noted by Pelle Windestam.
- Dynamic Loader: Fix a critical error in exec(); argv was not
being passed.
- mq_notify: Test for a valid signal number was inverted; this
function could not have been working correctly before??? From
eero.nurkkala.
- Fix typo in conditional compilation: CONFIG_CLOCK_MONOTONIC vs.
CLOCK_MONOTONIC. From Manuel Stühn.
* Graphics
- Fix typos in several RGB conversion macros.
* Networking:
- Modify TCP timout handling to provent situations where connections
may not be freed. From Max Holtzberg.
- Improved TCP fallback allocation logic from Max Holtzberg. Also,
fallback mechanism is disabled when SO_LINGER is to prevent
deadlocks.
- Write Buffering: Add checks from buffer allocation failures. From
Max/Himax.
* Network Utilities:
- webserver: httpd_fs_open() should return OK on success and ERROR on
failure, not 1 and 0.
* Common Drivers:
- Make sure that all references to up_prioritize_irq() are
conditioned on CONFIG_ARCH_IRQPRIO. Problem noted by Mike Smith.
- CC3000: Correct SPI mode for CC3000 is CPOL=0 CHPA=1. From Jussi
Kivilinna.
- CC3000: Fix a race condition in thread start-up logic. From Jussi
Kivilinna.
- CC3000: Additional fixes including a compilation failure if POLL is
enabled. From Jussi Kivilinna.
* USB Drivers:
- CDC/ACM and PL2303 device: Reset RX head to avoid resending last
serial data when USB cable disconnected/re-connected. From
Lizhuoyi.
* TI Tiva/Stellaris Boards:
- The Nucleo-F401RE has no on-board crystals and, hence, needs to run
with the PLL input from the on-chip HSI clock.
* STMicro STM32 Drivers:
- Serial: Handle configuration for the case of 8-bit data with
parity. From Freddie Chopin.
* Atmel SAM3/4 Boards:
- There was a cloned error in all SAM3/4 board configurations (and
for a few other architectures as well). Button interrupts not
being disabled after being detached. As a result, unexpected
interrupts could be received after the button interrupt was
detached.
* Atmel SAMA5:
- Fix some critical typos in the SAMA5D3 DMA definitions.
* STMicro STM32 Drivers
- I2C: Add an alternative I2C implementation for the STM32 F103 that
works around errata in that specific part. From Patrizio Simona.
- RTCC: Add retry logic to RTC initialization. It sometimes takes
longer for the RTC to initialize, at least as noted on an F2 part.
From Daniel Lazlo Sitzer.
* NXP LPC17xx Drivers
- GPDMA: Fix an error when DMA is started: The read-modify-write
fails when the DMA is started. This is because the value read is
not the same as the value set (on write it is the number of
transfers to do; on read it is the number of transfers completed).
From Lizhuoyi.
* Library:
- snprintf(): If the size passed to snprintf() is zero, then
snprintf() must write nothing, but instead return the size of the
buffer needed to hold the entire string. From Sami Pelkonen.
* Configuration/Build System:
- The alternate console device CONFIG_NSH_CONDEV must not be defined
unconditionally. This causes errors when using Telnet sessions.
This was solved by adding CONFIG_NSH_ALTCONDEV: CONFIG_NSH_ALTCONDEV enables or disables the feature then, if
enabled, CONFIG_NSH_CONDEV provides the alternative console
device name.
- Many files: Convert all old-style GCC variadic macros to the C99
form. Recent GCC changes tightens up that behavior and can cause
some problems (at least for the IAR compiler for some reason).
Noted by Bob Grimes.
- tools/configure.sh: In-place SED edit messes up permissions on
windows. From Hannes Delago.
* Build Tools:
- tools/mkfsdata.pl: Apparently, the trailing the 0x00 in http
server files is seen as a bug in javascript and images. From
Max/Himax.
* Other Applications:
- I2C Tool: Fix to show the updated register address on each
fetch (vs. showing the same starting address each time). From
Ryan VanSickle.
- CLE was not returning the terminating newline character. But
reported by Max kriegleder.
NuttX-7.4
---------
The 104th release of NuttX, Version 7.4, was made on August 15, 2014,
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
and is available for download from the SourceForge website. Note
that release consists of two tarballs: nuttx-7.4.tar.gz and
apps-7.4.tar.gz. Both may be needed (see the top-level nuttx/README.txt
file for build information).
Additional new features and extended functionality:
* Core OS:
- Beginnings of a crypto/ subsystem from Max Neklyudov
- Tickless operation: NuttX now supports a mode with no periodic
timer interrupts. Rather, timed events are handle via an interval
timer. This (1) lowers the rate of interrupt processing to timer
events, (2) gives much high timing resolution, and (3) allows lower
power modes of operation where the CPU is not constantly being
interrupted by the timer.
- Restructured the OS files under sched/ to better support the already
modular nature of the RTOS.
* Networking
- Substantial directory and header file reorganization and renaming to
make the NuttX networking implementation more modular.
- Add network device ioctl to access PHY registers. From Daniel Lazlo
Sitzer
* Binary Loader:
- Various changes associated with symbol tables from Pelle Windestam.
* Graphics:
- colorcmp(): New utility to compare two colors.
- The initial background color is now configurable. Includes logic to
eliminates multiple background updates to get the right color.
- Minor configuration changes to handle mouse X/Y and touchscreen
X/Y differently.
* File System/Block Drivers:
- SmartFS: Increase some variables from uint16_t to uint32_t to handle
larger device sizes. From Ken Pettit.
- Add configurable AES encryption support to the block-to-character
(BCH) driver. This allows any block device to be accessed as an
encrypted character device. From Max Nekludov
- Add an MTD layer that will add read-ahead or write buffering to any
MTD driver (incomplete).
- Automounter: Add support for an auto-mounter that will automatically
mount and unmount a file system a media is inserted and removed
* Audio/Audio Drivers
- WM8904 audio CODEC driver.
- PCM .WAV file decoder. Fast forward implemented with sub-sampling
(currently no rewind support).
- Add a NULL audio device that can be used to simply unit-level testing
of audio decoders.
- Audio subsystem now supports interfaces for fast-forward and rewind
needed by CMediaPlayer; add hooks for equalizer settings needed by
the WM8904 CODEC.
* Other Common Drivers:
- MTD: Extend erase block size to 18-bits in order (decrease block
size to 14-bits) to handle parts with large erase blocks. From Kosma
Moczek
- maxTouch: Add support for the Atmel maXTouch touchscreen controller.
* Host Simulation:
- Provides the timers needed to support the Tickless mode of operation.
* Atmel SAM4C:
- Add SAM4CM IPC register header file. From Max Neklyudov
- Various fixes PMC and clock configuration for the SAM4CM port from
Max Neklyudov
* Atmel SAM4E/4S Drivers:
- SAM4 AES driver. Contributed by Max Neklyudov
* Atmel SAMA5:
- Add logic to redirect all SAMA5D4 interrupts to the AIC
- Add a configuration option to reserve DRAM for a framebuffer when
executing out of DRAM. This optional was available before when
executing out of NOR, but needs to work a little differently in
this case.
- Add SAMA5 slow (32.768KHz) clock support.
- Add support for the ARM L2CC-PL310 L2 cache. The system runs with
L2CC cache enabled but there is some issues still with the LCD DMA;
I suspect that the memory timing configuration for L2CC needs to
be tuned.
- Provides the timers needed to support the Tickless mode of operation.
* Atmel SAMA5 Drivers:
- XDMAC-based HSCMI driver for the SAMA5D4
- Adapt the SAMA5D3 LCDC driver to work with the SAMA5D4 which has
no hardware cursor.
- PIO: Add a new interface sam_pio_forceclk() that can be used to
force PIO clocking on. I am afraid I was too conservative with
PIO clocking in the initial design; this is the price.
- TWI: Now supports the up_i2creset() method.
- TWI: Use sam_pio_forceclk() so that we can read the current state
of an open-drain output in the TWI reset logic.
- SSC: SCC Frame Synch Delay and Start Delay are now configurable.
- PCK: Add the slow clock and the main clocks as options for the
PCK configuration.
- Timer/Counter: Can now handle non-constant BOARD_MCK_FREQUENCY. Also
now supports methods to attach client interrupt handlers
- One shot and free-running timers. These are wrappers around the low
level timer/counter logic to provide one-shot and free-running
timers. These were developed to support the Tickless operation, but
can be used for any purpose.
* Atmel SAMA5 Board Support:
- Add a boot loader that runs from ISRAM and loads an Intel HEX file
into DRAM.
- Add a configuration that will load a bootloader into AT25 Serial
FLASH
- SAMA5D4-EK NSH configuration supports many more features: RTC, HSCMI
card detection, maXTouch touchscreen, TM7000 LCD, the command line
media player (currently using the NULL audio device), automounter,
and others.
- SAMA5D4-EK: Add an NxWM configuration using the TM7000 LCD with
the maXTouch multi-touch touchscreen.
- SAMA5D4-EK NxWM: Uses new, larger icons in configuration instead of
scaling.
- SAMA5D4-EK NxWM: The NxPlayer and audio system are now enabled in
the default configuration (but currently using the NULL audio
device). The automounter is used to automatically mount media
on an SD card.
- SAMA5D3x-EK: Add a configuration to support the command line
NxPlayer and to verify the WM8904 CODEC driver.
* STMicro STM32:
- Add support for the STM32F103RC and RD. From Kosma Moczek
- Add a procfs entry to show the state of the CCM heap usage.
From Pelle Winderstam
* STMicro STM32 Drivers:
- Unconfigure GPIO pins when closing a serial port to prevent back
effects from back-powering on the TX pin. From Kosma Moczek
* NXP LPC17xx Drivers:
- ADC: Added burstmode ADC conversion mode, with CONFIG_ADC_BURSTMODE
option in Kconfig. From Max
- Ethernet: Added option to use the kernel worker thread to do most of
the workload with CONFIG_NET_WORKER_THREAD option in Kconfig. From Max
- Ethernet: Critical bugfix: From time to time (after some hours) the
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
Ethernet receiver would lose one receive interrupt and the IP stack
never recover because there is no receive watchdog as the transmit
watchdog. From Max
* NXP LPC17xx Boards:
- mbed: Port ADC, DAC, and PWM logic from the configs/zkit-arm-1769.
From Max
- mbed: Eliminated a problem with PHY DP83848C : it doesn't need a
specific initialization on mbed. From Max
* Library:
- Adds support for localtime. From Max Neklyudov
* Configuration/Build System:
- Make variable definitions 'static const' when possible to save RAM
usage. From Kosma Moczek
* Applications:
- sysem/mdio: New PHY tool from Daniel Lazlo Sizter.
- NSH: Networking logic modified to handler the case of SLIP
transport. From Max Neklyudov.
- NSH: Add a configuration to use a USB keyboard for the stdin
device.
- NSH: Software assigned MAC address is now configurable. From Lazlo.
- NSH: Also add an option to let platform-specific logic select the
MAC address.
- NSH: There is now a configuration option that will bring up the
network on an separate thread. Since the network bring-up is
asynchronous, there are no serial console start-up delays due
to the network negotiation time.
- NxPlayer: Changes to integrate with Ken's NxWM::CMediaPlayer.
- NxPlayer: Add interfaces for fast-forward and rewind needed by
CMediaPlayer; add interface for equalizer settings needed by the
WM8904.
- NxPlayer: Supports new way of identifying the end of the audio
stream (see the Audio section above).
- Sudoku: Add a sudoku game.
Bugfixes. Only the most critical bugfixes are listed here (see the ChangeLog for the complete list of bugfixes and for additional, more detailed bugfix information):
* Graphics:
- NxConsole: Fix scrolling for the case of the framebuffer device. In
this case, the logic for clearing the vacated region at the bottom
was missing so garbage would scroll up from the last, uncleared
line.
* Networking:
- Important fix to the read-ahead buffer queue management: Consumed
bytes were being trimmed from the head of the queue, but the queue
head itself was not being updated. From Rony XLN.
- Fix an error in SLIP escaping. From Max Neklyudov
* Network Utilities:
- Fix an include file ordering problem when CONFIG_NET_STATISTICS=y.
- Move statistics from uip.h to new netstats.h to remove a circular
inclusion problem
- Various fixes for networking and tiny webserver from Max
- webclient: Fix to offset calculation from Rony Xln. Prevents 0x0a
at the beginning of lines.
- webserver: Fix some configuration usage issues. From Max.
- webserver: Missing logic to close sockets on loop termination.
* File System / Block Drivers:
- SmartFS: Fix for a bug that would show up if CONFIG_MTD_BYTE_WRITE
was not selected and the SMART sector size was larger than the MTD
device's block size (like it would be if using SMARTFS on larger
flash devices). From Ken Pettit.
* Audio:
- Change how the end of the audio stream is detected by the leaf audio
component. This used to be done by looking for the first partial
buffer. That does not work with the in-place sub-sampling performed
by the PCM decoder: That always reduces the size of the buffer so
that all buffers only partially filled by the time they get to the
leaf. Now, a flag is set in the audio buffer flags set to indicate
the final buffer in the stream.
* Common Drivers:
- RAMLOG putc() method needs to set the errno and return EOF on a
failure.
- Add missing configuration option to select the MAX11802 touchscreen
controller. From Petteri Aimonen
* Atmel SAMA5D3/4:
- Fix logic in conversion of physical and virtual DRAM addresses when
running out of DRAM. This is an important bug fix for the SAMA5D3
and 4 when running out of DRAM .
- Critical SAMA5D3 and 4 bug fix: PIO clocking must be enabled for
all input pins or else the value that is read never changes.
* Atmel SAMA5D3/4 Drivers:
- OHCI: Fix an error in a DEBUGASSERT statement. Caused an
assertion to fire inappropriately when a low- or full-speed device
was removed and CONFIG_DEBUG=y
- OHCI: Pointers to allocated port values were not being
nullified after being deallocated. This caused some assertions
to fire when debug was enabled
- SSC: Needs to account for data offset in audio buffer
* ARMv7-M:
- Correct the initial value of the BASEPRI register. This was
apparently never being initialized! From Max
* STMicro STM32 Drivers:
- I2C: Fix missing configuration of GPIO pins in I2C driver. Fix
from Alex D.
- STM32 OTGFS device: Various changes to try to reduce that amount of
time in interrupts handles and with interrupts disabled. From
Petteri Aimonen
* Atmel SAM3/4 Drivers:
- Ethernet: Wrong bits being cleared before OR-ing in new settings.
- Ethernet: Fix an error in the function that determines the number
of free TX descriptors. This is an important bugfix on busy
networks.
- I2C: Test for read or write operation was reversed. How could
this have worked before?
* Atmel SAM3/4 Boards:
- SAM4S Xplained-Pro: Correct description of LEDs and usage. From
Kosma Moczek
* Atmel SAMA5:
- PIO: Fix definitions that could disable PIO interrupt support if only
PIOE interrupts were enabled
- PIO: Macro SAM_PION_VBASE is not define-able for the SAMA5D4 and must
be replaced with a table lookup.
- PIO: Fix a typo in Schmitt trigger configuration; Configure pin as a
vanilla input first so that final pin configuration is more read-able
(i.e., easier to debug)
- PIO: Logic for Schmitt trigger selection backward
- SAMA5D4: Correct system timer frequency. Input clock is MCK/2, not MCK.
* Atmel SAMA5 Drivers:
- Ethernet: Wrong bits being cleared before OR-ing in new settings.
- Ethernet: Fix an error in the function that determines the number
of free TX descriptors. This is an important bugfix on busy
networks.
- HSMCI: The 8-byte SCR transfer was failing silently with the DMA
transfer, leaving the SD card in single bit mode. Fixed by adding
a non-DMA read transfer mode.
- HSMCI: Fix a problem on card insertion/removal callback handling.
Interrupts were being disable so that the callbacks occurred with
interrupts disabled. This resulted in loss of some interrupts and
some not-so-good behaviors. The solution is to perform all
callbacks on the work thread unconditionally
* Atmel SAMA5 Boards:
- PIO: Fix some cloned errors in SAM GPIO interrupt setup
* NXP LPC17xx Drivers:
- Ethernet: Comment out an assertion that is reported to fire
inappropriately. From Max
* Library:
- stdint.h: Correct naming of [U]INT_LEASTn_{MAX|MIN} and
[U]INT_FASTn{MAX|MIN}. From Kosma Moczek
- unistd.h: POSIX definitions should be defined to a value. rom Kosma
Moczek
- Fixes associated with rint() and related interfaces in the math
library.
* Configuration/Build System:
- NAME_MAX not available on SunOS; use FILENAME_MAX or MAXNAMELEN.
Noted by Douglas Beattie
* Applications:
- NSH: if # appears on line, need to comment ignore additional
commands on the line
- NxPlayer: Check for file read errors and end-of-file with zero
bytes read. Other error handling corrected as well.
- NxPlayer: NxPlayer needs to set curbyte field to zero before
enqueuing a buffer. Otherwise, it looks like beginning of the
buffer has already been consumed.