ReleaseNotes 1015 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787
  1. NuttX Release Notes
  2. ===================
  3. This file contains are the release notes for the NuttX (and apps) packages
  4. for every release. The text is just as was written at the time of release
  5. (with perhaps some corrected typos). Over the course of time, NuttX has
  6. used several different repositories: CVS, two SVN repositories, and
  7. currently a GIT repository. Therefore, revision information specific to an
  8. older repository may not be meaningful today.
  9. To make it easier to track there older versions in the current GIT
  10. repository, a GIT lightweight tag has been applied for each release. The
  11. tag name is the release name (for example, the release 6.27 has tag name
  12. "nuttx-6.27").
  13. NuttX-0.1.0
  14. -----------
  15. This is the initial. This initial includes the complete NuttX RTOS
  16. with support for the Linux user mode simulation and the TI TMS320C5471
  17. (Arm7) processor. Partial support for the 87C52 is included.
  18. This release has been verified on both the Linux user-mode and C5471
  19. platforms using the test program under examples/ostest. Test results
  20. for the C5471 can be found in arch/c5471/doc/test-results.txt.
  21. This tarball contains a complete CVS snapshot from March 9,2007.
  22. NuttX-0.1.1
  23. -----------
  24. This is the second release of NuttX. This release includes the following.
  25. See the ChangeLog for more detailed description of the changes.
  26. (1) General OS bugfixes (see the ChangeLog for details),
  27. (2) bugfixes for the TI TMS320C5471 (Arm7) platform (see
  28. the ChangeLog)
  29. (3) Complete support for the 87C52. (However, the 87C52
  30. release is not stable enough for general usage).
  31. (4) Added the beginning of a shell call NuttShell (nsh)
  32. This release has been verified on the Linux user-mode platform, the
  33. Spectrum Digital TMS320C5471 EVM, and the PJRC 87C52 development board
  34. using the test program under examples/ostest.
  35. STATUS: The development status remains as ALPHA until further testing
  36. is performed.
  37. This tarball contains a complete CVS snapshot from March 14, 2007.
  38. NuttX-0.1.2
  39. -----------
  40. This is the third release of NuttX. This release is
  41. primarily a bugfix release with minimal new features. See
  42. the ChangeLog for a more detailed description of the
  43. changes.
  44. (1) Several important OS and ARM7 bugfixes,
  45. (2) opendir(), closedir(), readdir(), etc. added
  46. (3) Added C5471 watchdog timer.
  47. (4) Created a shareable, serial driver.
  48. (5) Added 'ls' command to NuttShell (nsh)
  49. (6) Added a test of the round robin scheduler
  50. This release has been verified on the Linux user-mode
  51. platform, the Spectrum Digital TMS320C5471 EVM using the
  52. test program under examples/ostest.
  53. This tarball contains a CVS snapshot from March 19, 2007.
  54. NuttX-0.2.1
  55. -----------
  56. This is the fourth release of NuttX. This release adds adds
  57. support for a new platform, restructures many header files,
  58. and adds a few new features:
  59. (1) Support for Neuros OSD / DM320
  60. (2) Restructuring of header files for better POSIX compliance
  61. (3) Added kill()
  62. (4) Added POSIX timers
  63. (5) bugfixes and documentation updates
  64. This release has been verified on the Linux user-mode
  65. platform, the Spectrum Digital TMS320C5471 EVM, and the
  66. Neuros OSD using the test program under examples/ostest. Because
  67. of the stability of these tests, the project status
  68. has been upgraded to 'beta.'
  69. This tarball contains a complete CVS snapshot from March 22, 2007.
  70. NuttX-0.2.2
  71. ------------
  72. This is the fifth release of NuttX. There is no major new
  73. functionality in this release. This release adds support
  74. for new pthread barrier APIs, changes the directory
  75. structure, to better handle different board configurations
  76. using the same processor architecture, and corrects a few
  77. defects.
  78. See the ChangeLog for a complete list of changes.
  79. This release has been verified on the Linux user-mode
  80. platform and the Neuros OSD using the test program under
  81. examples/ostest. There are no known, critical defects but
  82. the project development status remains at 'beta' status
  83. pending further test and evaluation.
  84. This tarball contains a complete CVS snapshot from
  85. March 26, 2007.
  86. NuttX-0.2.3
  87. ------------
  88. This is the sixth release of NuttX. This release is
  89. primarily a bugfix release. Numerous problems were fixed
  90. as detailed in the change log. New functionality includes
  91. support for timed message queues.
  92. See the ChangeLog for a complete list of changes.
  93. This release has been verified on the Linux user-mode
  94. platform and the Neuros OSD using the test program under
  95. examples/ostest. The results of the testing is available in
  96. the source tree under configs/ntosd-dm320/doc/test-results.
  97. There are no known, critical defects but the project
  98. development status remains at 'beta' status pending further
  99. test and evaluation.
  100. This tarball contains a complete CVS snapshot from March 29,
  101. 2007.
  102. NuttX-0.2.4
  103. ------------
  104. This is the 7th release of NuttX. This release is only to roll out
  105. build changes to better support different SoC's that use the same
  106. processor architecture. In particular, the two existing ARM architectures,
  107. c5471 and DM320 were combined into a single ARM directory. This was done
  108. in preparation for an LPC2148 port that is currently in progress. There
  109. is NO new functionality or significant bugfixes in this release.
  110. See the ChangeLog for a complete list of changes.
  111. This release has been verified on the Linux user-mode platform
  112. and the Neuros OSD using the test program under examples/ostest.
  113. The results of the testing is available in the source tree under
  114. configs/ntosd-dm320/doc/test-results and under configs/sim/doc/test-results.
  115. There are no known, critical defects but the project development status
  116. remains at 'beta' status pending further test and evaluation.
  117. This tarball contains a complete CVS snapshot from April 28, 2007.
  118. NuttX-0.2.5
  119. ------------
  120. This is the 8th release of NuttX. This release includes:
  121. (1) Several bug fixes
  122. (2) Initial support for FAT filesystems. Testing has not
  123. been exhaustive and some functionality is missing
  124. (mkdir, stat, unlink chmod, and rename functionality is
  125. not yet implemented).
  126. (3) Support for the NXP lpc2148 processor is included but
  127. is untested as of this writing. The current
  128. implementation includes only support for serial console
  129. and timer interrupt.
  130. See the ChangeLog for a complete list of changes.
  131. This release has been verified only on the Linux user-mode
  132. platform.
  133. This tarball contains a complete CVS snapshot from May 19,
  134. 2007.
  135. NuttX-0.2.6
  136. -----------
  137. This is the 9th release of NuttX. This is primarily a
  138. bugfix release to correct a number of problems introduced
  139. with the 0.2.5 release. This release does include some FAT
  140. filesystem extensions including unlink(), mkdir(), rmdir(),
  141. rename(), opendir(), closedir(), readdir(), seekdir(),
  142. telldir(), rewindir(). There are some pending FAT changes
  143. that did not make it into this release including stat(),
  144. truncate(), and long file names.
  145. See the ChangeLog for a complete list of changes.
  146. This release has been verified only on the Linux user-mode platform.
  147. This tarball contains a complete CVS snapshot from May 26, 2007.
  148. NuttX-0.2.7
  149. -----------
  150. This is the 10th release of NuttX. This is primarily a bugfix
  151. release to correct a number of problems reported to me (thanks
  152. Didier!). This release does include the final changes complete the
  153. FAT filesystem logic including stat(), statfs(), and non-standard
  154. APIs to manage FAT attributes. At present, FAT long file names and
  155. file truncate() are still not supported.
  156. See the ChangeLog for a complete list of changes.
  157. This release has been verified only on the Linux user-mode platform.
  158. This tarball contains a complete CVS snapshot from June 9, 2007.
  159. NuttX-0.2.8
  160. -----------
  161. This is the 11th release of NuttX. This release:
  162. (1) corrects important bugs in opendir() and realloc()
  163. (2) adds support for environment variables
  164. (3) adds several new C library interfaces
  165. (4) extends several example programs
  166. See the ChangeLog for a complete list of changes.
  167. This release has been verified only on the Linux user-mode platform.
  168. This tarball contains a complete CVS snapshot from July 2, 2007.
  169. NuttX-0.3.0
  170. -----------
  171. This is the 12th release of NuttX. This release includes the initial
  172. integration of a network subsystem and the uIP TCP/IP stack into NuttX
  173. (see http://www.sics.se/~adam/uip/index.php/Main_Page). Also included
  174. is a device driver for the Davicom DM90x0 Ethernet controller.
  175. This integration is very preliminary. Only a small portion of the
  176. network functionality has been integrated and there are a number of
  177. open issues (see the TODO file). The network subsystem is pre-alpha
  178. at this point in time. I expect that it will stabilize and mature
  179. over the next few releases.
  180. The baseline functionality of NuttX continues to mature and remains at
  181. post-beta (as long as the network is not used).
  182. See the ChangeLog for a complete list of changes.
  183. This release has been verified only on the Neuros OSD (DM320 ARM9)
  184. platform using the DM90x0 driver.
  185. This tarball contains a complete CVS snapshot from November 6, 2007.
  186. NuttX-0.3.1
  187. -----------
  188. This is the 13th release of NuttX and the second release containing
  189. the integration of a network subsystem and the uIP TCP/IP, UDP, and
  190. ICMP stacks into NuttX (see http://www.sics.se/~adam/uip/index.php/Main_Page).
  191. Many network-related problems have been fixed and the implementation
  192. has matured significantly. However, the level of network reliability
  193. is probably still at the pre-alpha or early level. It is sufficiently
  194. complete that you may begin to perform some network integration and
  195. is expected to achieve beta level of reliability over the next few
  196. releases.
  197. The baseline functionality of NuttX continues to mature and remains at
  198. post-beta (as long as the network is not used).
  199. See the ChangeLog for a complete list of changes.
  200. This release has been verified only on the Neuros OSD (DM320 ARM9)
  201. platform using the DM90x0 driver.
  202. This tarball contains a complete CVS snapshot from November 19, 2007.
  203. NuttX-0.3.2
  204. -----------
  205. This is the 14th release of NuttX and the 3rd release containing
  206. the integration of a network subsystem and the uIP TCP/IP, UDP, and
  207. ICMP stacks into NuttX (see http://www.sics.se/~adam/uip/index.php/Main_Page).
  208. Many network-related problems have been fixed and the implementation
  209. has matured significantly. This release consists of:
  210. o TCP-related bug-fixes
  211. o TCP performance improvements
  212. o Initial UDP integration
  213. o Initial uIP micro webserver integration
  214. See the ChangeLog for a complete list of changes.
  215. The level of network reliability is at alpha level is expected to
  216. achieve beta level of reliability over the next few releases.
  217. The baseline functionality of NuttX continues to mature and remains at
  218. post-beta.
  219. This release has been verified only on the Neuros OSD (DM320 ARM9)
  220. platform using the DM90x0 driver.
  221. This tarball contains a complete CVS snapshot from November 23, 2007.
  222. NuttX-0.3.3
  223. -----------
  224. This is the 15th release of NuttX and the 4th release containing
  225. the integration of a network subsystem and the uIP TCP/IP, UDP, and
  226. ICMP stacks into NuttX (see http://www.sics.se/~adam/uip/index.php/Main_Page).
  227. Many network-related problems have been fixed and the implementation
  228. has matured significantly. This release consists of:
  229. o TCP-related bug-fixes for disconnecting sockets
  230. o Correction of some TCP read-ahead logic
  231. o TCP performance improvements
  232. o Misc. additions and cleanup (See the ChangeLog for a complete list of
  233. changes).
  234. The level of network reliability is at an early beta release level. The
  235. baseline functionality of NuttX continues to mature and remains at
  236. post-beta. Open network-related issues include only:
  237. o Some minor unimplemented BSD socket functionality,
  238. o Thread safety issues: the same socket cannot be used concurrently on
  239. different threads.
  240. o Pending design changes necessary to support multiple network interfaces.
  241. o IPv6 support is incomplete.
  242. This release has been verified only on the Neuros OSD (DM320 ARM9)
  243. platform using the DM90x0 driver. Any feedback for improving the network
  244. reliability/performance would be greatly appreciated.
  245. This tarball contains a complete CVS snapshot from November 28, 2007.
  246. NuttX-0.3.4
  247. -----------
  248. This is the 16th release of NuttX and the 5th release containing
  249. the integration of a network subsystem and the uIP TCP/IP, UDP, and
  250. ICMP stacks into NuttX (see http://www.sics.se/~adam/uip/index.php/Main_Page).
  251. This release is primarily a bug-fix release. New features include
  252. only:
  253. o TELNET front-end to NSH,
  254. o DHCPC server functionality, and
  255. o C5471 Ethernet driver.
  256. Numerous network related problems were fixed related to DHCPC, UDP
  257. input processing, UDP broadcast, send timeouts, and bad compilation when
  258. uIP is compiled at high levels of optimization.
  259. The level of network reliability is at a strong beta release level. The
  260. baseline functionality of NuttX continues to mature and remains at
  261. post-beta or production level.
  262. Parts of this release were verified only on the Neuros OSD (DM320 ARM9)
  263. platform using the DM90x0 Ethernet driver and other parts on the Spectrum
  264. Digital C5471 EVM using the C5471 Ethernet driver. Any feedback about bugs
  265. or suggestions for improving the network reliability/performance would be
  266. greatly appreciated.
  267. This tarball contains a complete CVS snapshot from December 10, 2007.
  268. NuttX-0.3.5
  269. -----------
  270. This is the 17th release of NuttX this release is primarily a bug-fix
  271. release and intended to synchronize with the current CVS contents. See
  272. the ChangeLog for a detailed list of changes and fixes.
  273. This release were verified only on the Spectrum Digital C5471 EVM using
  274. the C5471 Ethernet driver. Any feedback about bugs or suggestions for
  275. improvement would be greatly appreciated.
  276. This tarball contains a complete CVS snapshot from December 18, 2007.
  277. NuttX-0.3.6
  278. -----------
  279. This is the 18th release of NuttX. This release contains on a few
  280. changes. The primary purpose of this release is to synchronize with
  281. the release of the pascal-0.1.0 add-on package.
  282. This release of NuttX includes the following changes:
  283. * Fixes for use with SDCC compiler
  284. * Added a simulated z80 target (arch/z80)
  285. * Fix deadlock errors when using stdio but with no buffering
  286. * Add support for the add-on Pascal P-Code interpreter (pcode/)
  287. (see the pascal-0.1.0 package)
  288. This release were verified only on the simulated Z80 and and host
  289. simulation targets. As usual, any feedback about bugs or suggestions
  290. for improvement would be greatly appreciated.
  291. This tarball contains a complete CVS snapshot from January 6, 2007.
  292. ====
  293. There was an error in the initial 0.3.6 release that prevented
  294. a successful build unless the Pascal add-on was present. The
  295. tarball was patched to include the fix. Make sure that you download
  296. the nuttx-0.3.6.1.tar.gz version to avoid this problem.
  297. NuttX-0.3.7
  298. -----------
  299. This is the 19th release of NuttX. This release includes the
  300. preliminary port of NuttX to the ZiLOG z16f 16-bit microcontroller.
  301. This port was verified using the ZiLOG z16f2800100zcog Development
  302. and the ZiLOG ZDS-II toolchain. See http://www.zilog.com for
  303. further information.
  304. I emphasize that this is a preliminary release of the z16f port and
  305. is only alpha or, perhaps, pre-alpha quality as of this writing.
  306. There are a list of known issues in the TODO file in the root of
  307. the NuttX directory. The overall quality of NuttX (excluding the
  308. z16f port) continues to improve beyond the late beta level.
  309. The z16f port required numerous changes to NuttX to handle:
  310. * NEAR and FAR addressing, and
  311. * Use of a Windows native toolchain in a Cygwin build environment.
  312. In addition to the z16f port, at least one very critical bug was
  313. found and corrected in NuttX: The thread-specific errno value of one
  314. task was being randomly trashed when a different thread exited.
  315. This release were verified on the ZiLOG z16f2800100zcog, Neuros OSD
  316. (ARM9), and the simulation platforms. As usual, any feedback about bugs
  317. or suggestions for improvement would be greatly appreciated.
  318. This tarball contains a complete CVS snapshot from January 31, 2008.
  319. NuttX-0.3.8
  320. -----------
  321. This is the 20th release of NuttX. This is a minor bugfix release.
  322. It corrects a few minor problems, adds a few minor features, and
  323. continues the integration of the ZiLOG Z18F and of the Pascal P-Code
  324. add-on. This release is synchronized with the release of Pascal-0.1.2.
  325. This tarball contains a complete CVS snapshot from February 10, 2008.
  326. NuttX-0.3.9
  327. -----------
  328. This is the 21st release of NuttX. This is a minor future enhancement
  329. release. This release includes support for the ZiLOG Z8Encore! micro-
  330. controller. Also included is the initial framework for support for
  331. the Z80, XTRS platform (http://www.tim-mann.org/xtrs.html).
  332. This released has been verified only on the ZiLOG ZDS-II Z8Encore!
  333. chip simulation.
  334. This tarball contains a complete CVS snapshot from March 9, 2008.
  335. NuttX-0.3.10
  336. ------------
  337. This is the 22nd release of NuttX. This is an important bug fix
  338. release. This release incorporates fixes to correct critical list
  339. handling errors in task shutdown logic: One in timer deletion logic
  340. (timer_delete.c) and one in stream logic (lib_init.c). This release
  341. also includes support to ZiLOG EZ80Acclaim microcontroller (EZ80F91
  342. chip) and configurations for the ZiLOG z8f64200100kit (Z8F6423) and
  343. ez80f0910200kitg (EZ80F091) development kit.
  344. NuttX-0.3.11
  345. ------------
  346. This is the 23rd release of NuttX. This is another important bugfix
  347. release. This releases fixes several bugs:
  348. * Two POSIX timer bugs: a memory leak as well a fatal sequencing error.
  349. * Several FAT filesystem errors.
  350. * A deadlock that can occur in opendir()
  351. A few new features were also added:
  352. * Support for recursive mutexes
  353. * Added a RAM disk block driver
  354. * The host simulator no longer uses direct Linux system calls and
  355. now also works on Cygwin.
  356. * The OS test was strengthen and now runs as an endurance test
  357. These changes were verified only on the Host simulator under Cygwin.
  358. Please report any errors to me.
  359. This tarball contains a complete CVS snapshot from June 1, 2008.
  360. NuttX-0.3.12
  361. ------------
  362. This is the 24th release of NuttX. This release includes some minor
  363. bugfixes as well as a few new features. Bugs fixed include:
  364. * Corrected an error in recursive mutex implementation.
  365. * task_create() was only dup()ing the first three file descriptors.
  366. * Fixed driver open reference counting errors in dup(), dup2(), and exit().
  367. * Fixed error handling logic in fflush().
  368. New features were also added:
  369. * Pipes and pipe() API
  370. * FIFOs and mkfifo() API
  371. * mkfatfs() API can be used to format FAT file systems.
  372. These changes were verified only on the Host simulator under Cygwin.
  373. Please report any errors to me.
  374. This tarball contains a complete CVS snapshot from August 10, 2008.
  375. NuttX-0.3.13
  376. ------------
  377. This is the 25th release of NuttX. This release includes some
  378. important bugfixes as well as a few new features. Bugs fixed
  379. include:
  380. * Fixed problems with Cygwin-based console input. NSH now works
  381. with the Cygwin simulator.
  382. * sched_get_priority_max/min returned error on SCHED_RR
  383. * Corrected detection of End-of-File in fgets()
  384. * Fixed an error in opendir() that could cause an assertion to fail
  385. inappropriately.
  386. * Corrected an error in the FAT that caused files opened for writing
  387. with O_APPEND to fail.
  388. * Fix error in getopt() when called with argc==1
  389. * Fix error in stat() when used on the root directory
  390. * Fixed a critical bug that effects the way that environment variables
  391. are shared among pthreads.
  392. * uIP port now supports multi-threaded, concurrent socket access.
  393. So, for example, one thread can be reading from a socket while
  394. another is writing to the socket.
  395. New features were also added:
  396. * New OS APIs: chdir() and getcwd()
  397. * The Nuttx shell (NSH) has been extended in many ways.
  398. - New commands: mkfatfs, mkfifo, sleep, usleep, nice, sh, cd, and pwd
  399. - New memory inspection commands and heap usage commands
  400. - New capabilities:
  401. - Execution of commands in background
  402. - Execution of simple scripts
  403. - Redirection of command output
  404. - Last command status ($?)
  405. - Now supports if-then[-else]-fi construct
  406. - Other features as noted in the ChangeLog.
  407. These changes were verified only on the Host simulator under Cygwin
  408. and under Linux and also on the Neuros OSD (ARM9). Please report
  409. any errors to me.
  410. This tarball contains a complete CVS snapshot from September 1, 2008.
  411. nutt-0.3.14
  412. -----------
  413. This is the 26th release of NuttX. This release includes some
  414. important bugfixes as well as a few new features. Critical bugs
  415. fixed include:
  416. FAT FS:
  417. * Fixed several critical bugs with regard to fat reading and
  418. writing and FAT12 accesses. Basically the FAT FS only worked
  419. with my tiny test files and test cases. A lot of stronger FAT
  420. tested is still needed!
  421. * Fixed another FAT bug in implementation of FAT lseek();
  422. this prohibited correct random access to large files.
  423. Network:
  424. * Corrected a critical bug that may prevent recvfrom from receiving
  425. packets from most remote UDP port numbers.
  426. * Corrected an error in multi-threaded socket handling in send() and
  427. sendto(). Outgoing data could overwrite incoming data.
  428. * Corrected IP checksum calculation in ICMP and UDP message send logic.
  429. * Corrected an error in send() timeout logic.
  430. New features were also added:
  431. Network:
  432. * Added support for application access to ICMP protocol stacks
  433. * Added ping request logic (net/uip).
  434. * Added basic TFTP client logic (netutils/tftpc).
  435. NuttShell (NSH):
  436. * New commands: 'test', '[', 'ping', 'mkrd', 'xd', and TFTP 'get' and 'put'
  437. See the new NuttShell User Guide for additional information.
  438. Other less critical bugs were also fixed and other less important
  439. features were were added. See the ChangeLog for details.
  440. These changes were verified only on the Neuros OSD (ARM9). Please
  441. report any errors to me.
  442. This tarball contains a complete CVS snapshot from September 8, 2008.
  443. nutt-0.3.15
  444. -----------
  445. This is the 27th release of NuttX. This release includes some new features:
  446. * Adds support for the ROMFS filesystem
  447. * ROMFS supports mmap() to provide eXecute In Place (XIP) capability
  448. * NuttShell (NSH) can be configured to use ROMFS to provide a tiny read-only
  449. filesystem with a startup script in /etc.
  450. * Completed the basic port of the NXP LPC2148 on the mcu123.com board.
  451. The basic port includes successful booting, timer interrupts,
  452. serial console, successfully passing the examples/ostest, and a
  453. NuttShell (NSH) configuration.
  454. These changes were verified only on the mcu123.com NXP LPC2148
  455. board. Please report any errors to me.
  456. This tarball contains a complete CVS snapshot from September 20, 2008.
  457. nutt-0.3.16
  458. -----------
  459. This is the 28th release of NuttX. This release includes the first
  460. support for USB in NuttX. A set of USB APIs were added to support
  461. USB device controller drivers and bindings to USB device class
  462. drivers. The form of the interface was inspired by the Linux Gadget APIs.
  463. At present USB device controller drivers are included for:
  464. * The NXP LPC214x. This driver has been verified and is an early alpha
  465. stage in quality.
  466. * TI DM320. Coding for this driver is complete but it is completely
  467. untested as of this release.
  468. A controller-independent class driver is also included for:
  469. * USB serial class device driver (emulates the Prolific PL2303
  470. serial-to-USB adapter). This driver has only been verified with
  471. the Linux host PL2303 driver.
  472. Other new features include:
  473. * Add an option to set aside a separate stack for interrupt
  474. handling (ARM only). This is useful when memory is constrained,
  475. there are multiple tasks, and the interrupt stack requirement
  476. is high (as when USB is enabled).
  477. A few bugs were also fixed:
  478. * Fixed the frequency of system timer interrupts in the NXP LPC214x port
  479. (off by 20x in nuttx-0.3.15)
  480. * Fixed serial driver bugs related to (1) open counts and (2) recognizing
  481. O_NONBLOCK on read.
  482. * Fixed an error in read(); it was not setting the errno on errors returned
  483. from the driver.
  484. These changes were verified only on the mcu123.com NXP LPC2148 board
  485. using with a Linux host. Please report any errors to me.
  486. This tarball contains a complete CVS snapshot from October 10, 2008.
  487. UPDATE
  488. ------
  489. This release does not build for the ARM target when USB is disabled.
  490. Here is the fix:
  491. Index: arch/arm/src/common/up_internal.h
  492. ===================================================================
  493. RCS file: /cvsroot/nuttx/nuttx/arch/arm/src/common/up_internal.h,v
  494. retrieving revision 1.13
  495. diff -u -r1.13 up_internal.h
  496. --- arch/arm/src/common/up_internal.h 6 Oct 2008 16:20:52 -0000 1.13
  497. +++ arch/arm/src/common/up_internal.h 13 Oct 2008 20:48:21 -0000
  498. @@ -200,7 +200,8 @@
  499. extern void up_usbinitialize(void);
  500. extern void up_usbuninitialize(void);
  501. #else
  502. -# define up_netinitialize()
  503. +# define up_usbinitialize()
  504. +# define up_usbuninitialize()
  505. #endif
  506. #endif /* __ASSEMBLY__ */
  507. NuttX-0.3.17
  508. ------------
  509. This is the 29th release of NuttX. This release includes the
  510. additional support for USB in NuttX. The following new features
  511. were added:
  512. * Added support for SPI-based MMC/SD cards (with an SPI driver
  513. for the NXP LPC214x).
  514. * Added USB storage class device side driver (BBB)
  515. * Added an example that demonstrates the USB storage class by
  516. exporting the SPI based MMC/SD card on the NXP LPC214x.
  517. This is an early alpha release of these drivers. At present they
  518. only work with debug features enabled so there are probably some
  519. race conditions that occur only with debug features disabled.
  520. (Anyone out there with a USB analyzer? I would love to know what
  521. is happening.)
  522. Several important bugs were also fixed in the FAT file system, USB
  523. serial driver and NXP LPC214x USB controller driver. (See the ChangeLog
  524. for details.)
  525. These changes were verified only on the mcu123.com NXP LPC2148 board
  526. using a Linux development environment. USB testing was performed
  527. using both a Linux host and a WinXP host. Please report any errors
  528. to me.
  529. This tarball contains a complete CVS snapshot from October 28, 2008.
  530. NuttX-0.3.18
  531. ------------
  532. This is the 30th release of NuttX. This release includes two
  533. partially completed ports, several new features, and a couple of
  534. important bug fixes. The two partially completed ports are:
  535. * The STMicro STR71x processor and configuration for the Olimex
  536. STR-P711 board.
  537. * The Hitachi SH-1 using the SH1_LCEVB1 (SH-1/US7032EVB1) board
  538. Progress on these ports is stalled (as detailed in the ChangeLog).
  539. The new features focus primarily on management of block devices and
  540. extensions of the NuttShell (NSH). These include:
  541. * A loop device that converts a file into a block device.
  542. * A block to character (BCH) driver that allow access a block device as
  543. if it were character device.
  544. * Added strcasecmp() and strncasecmp() libc functions.
  545. * Added the 'dd' and 'losetup' commands to NSH. These commands
  546. (along with mkfatfs and mount), give good management of filesystems
  547. on the target.
  548. Several bugs were fixed, the most important of which are:
  549. * Fixed a race condition workaround delay in LPC214X SPI logic.
  550. This was also the cause of some bad MMC/SD performance on that
  551. platform.
  552. * Fixed a recently introduced FAT file system problem: It would
  553. mount a (invalid) FAT file system even if the medium is not formatted!
  554. * Corrected two other important errors in the FAT lseek() implementation:
  555. 1 - The sectors-per-cluster value was being reset to "1".
  556. 2 - Important lseek logic was omitted when the seek position was zero.
  557. The FAT filesystem has had many bugs fixed in it and, I think, is
  558. now maturing and becoming stable.
  559. These changes were verified only on the mcu123.com NXP LPC2148
  560. board, the Hitachi SH1_LCEVB1 board, and the Linux simulator, all
  561. using a Linux development environment. Please report any errors
  562. to me.
  563. This tarball contains a complete CVS snapshot from November 16, 2008.
  564. NuttX-0.3.19
  565. ------------
  566. This is the 31st release of NuttX. This release includes the
  567. following new feature:
  568. * Add poll() and select() APIs that may be used to monitor for
  569. data availability on character devices or TCP/IP sockets.
  570. * Implemented support TCP/IP connection backlog. This allows
  571. select() to wake-up on new connections to a listener socket.
  572. * Added definition of a framebuffer driver and implement framebuffer
  573. drivers for the simulated platform and the TI DM320 (untested
  574. as of the initial check-in).
  575. * Partially developed a graphics framework based on the framebuffer
  576. drivers, however, this will not be ready for use for a few more
  577. releases. Currently this includes only a few color conversion
  578. routines and some rasterizing functions. A tiny windowing system
  579. is under development but not ready for check-in yet.
  580. * Added support for fixed precision math.
  581. * Added support for outgoing multicast packets.
  582. Several bugs were fixed, the most important of which are:
  583. * Fixed an important bug in the TCP/IP buffering logic. When
  584. TCP/IP read-ahead is enabled and not recv() is in-place when a
  585. TCP/IP packet is received, the packet is placed into a read-ahead
  586. buffer. However, the old contents of the read-ahead buffer
  587. were not being cleared and old data would contaminate the newly
  588. received buffer.
  589. * Changed the behavior of the serial driver read. It now returns
  590. data as it is available rather than waiting for the full requested
  591. read size. This makes functions like fgetc() work much more
  592. smoothly.
  593. These changes were verified only on the Neuros OSD (ARM9) using a
  594. Linux development environment. Please report any errors to me.
  595. This tarball contains a complete CVS snapshot from November 26, 2008.
  596. NuttX-0.4.0
  597. -----------
  598. This is the 32nd release of NuttX. This release adds graphics
  599. support and a tiny windowing subsystem. That new graphics subsystem
  600. is documented at http://nuttx.sourceforge.net/NXGraphicsSubsystem.html.
  601. No other substantial changes were made.
  602. These changes were verified only on the NuttX simulation platform
  603. with X11 windows simulating a device framebuffer. Please report any
  604. errors to me.
  605. The version number was bumped up to 0.4.0 in part to reflect the
  606. new graphics subsystem, but also to recognize the NuttX is approaching
  607. complete functionality. In the 0.3.x versions, network support was
  608. added, Pascal P-code runtime support was added, FAT and ROMFS
  609. filesystems were added, MMC/SD and USB device support were added.
  610. There were also numerous extensions to the NuttShell, NuttX APIs,
  611. and architecture ports.
  612. This tarball contains a complete CVS snapshot from December 6, 2008.
  613. NuttX-0.4.1
  614. -----------
  615. This is the 33rd release of NuttX. This is a minor bugfix release.
  616. The primary reason for this release is to correct numerous build
  617. errors that have accumulated for the ZiLOG ZDS-II based targets.
  618. All ZDS-II targets now build correctly (but have not been re-tested).
  619. In addition to platform-specific build failures, this release also
  620. adds the following features which were not tested as of the time
  621. of the release:
  622. * Board support for the ZiLog ez80Acclaim! ez80f910200zco Development Kit
  623. * ZiLOG eZ80F91 EMAC driver
  624. These changes were verified only on the NuttX simulation platform.
  625. Please report any errors to me.
  626. This tarball contains a complete CVS snapshot from February 6, 2009.
  627. NuttX-0.4.2
  628. -----------
  629. This is the 34th release of NuttX. This release adds no new OS
  630. features but does include support for two new architectures:
  631. * ez80Acclaim! Basic support has been integrated and verified
  632. for the ez80f910200zcog-d board (eZ80F91-based). That basic
  633. support includes timer interrupts and serial console. Ongoing
  634. work includes an EMAC driver that should be integrated for the
  635. next release nuttx-0.4.2. eZ80Acclaim! support has been in the
  636. code base for some time, but has only just been integrated due
  637. to toolchain issues.
  638. * Renesas M16C/20. Support for the Renesas SKP16C20 board has
  639. been included in the NuttX source tree. However, as the
  640. eZ80Acclaim!, testing and integration of that port is stalled
  641. due to toolchain issues.
  642. These changes were verified only on the ZiLOG eZ80910200zcog-d
  643. board. Please report any errors to me.
  644. This tarball contains a complete CVS snapshot from February 28, 2009.
  645. NuttX-0.4.3
  646. -----------
  647. This is the 35th release of NuttX. This release one important new
  648. OS feature and corrects and extends the eZ80 port:
  649. * Priority Inheritance. The basic NuttX waiting logic was extended
  650. to support priority inheritance. See the NuttX User Manual for
  651. further information:
  652. http://www.nuttx.org/NuttxUserGuide.html#priorityinheritance.
  653. * ez80Acclaim! Corrected several critical, show-stopping bugs on that
  654. platform including:
  655. - Errors in the serial driver interrupts.
  656. - An error in the eZ80 table.
  657. * eZ80Acclaim!: Completed integration of the eZ80F91 EMAC driver.
  658. These changes were verified only on the ZiLOG eZ80910200zcog-d board
  659. and on Cygwin-based simulation platform in various configurations.
  660. Please report any errors to me.
  661. This tarball contains a complete CVS snapshot from March 13, 2009.
  662. NuttX-0.4.4
  663. -----------
  664. This is the 36th release of NuttX. This release focuses on bugfixes
  665. and extending and verifying certain networking features.
  666. * Important bugs were fixed in NSH, UDP checksum calculation, UDP
  667. bind() behavior for port==0, the eZ80Acclaim! EMAC driver, Z80
  668. interrupt handling, and in the C libraries.
  669. * Testing was extended to further verify the tiny webserver,
  670. DHCPD, wget(), and sendmail.
  671. See the Changelog for a detailed description of these changes.
  672. These changes were verified only on the ZiLOG eZ80910200zcog-d board
  673. using the ZDS-II toolchain in Cygwin-based environment. Please
  674. report any errors to me.
  675. This tarball contains a complete CVS snapshot from March 29, 2009.
  676. NuttX-0.4.5
  677. -----------
  678. This is the 37th release of NuttX. This release focuses on a few new features.
  679. * The basic port for the Freescale ARM920T i.MX1 processor on the
  680. Freescale MX1ADS board. Coding is complete for this port, but
  681. it is has not yet fully integrated
  682. * Extended I2C and SPI interface definitions
  683. * Add basic support for C++ applications. Very simple C++
  684. applications can now be built against NuttX without any external
  685. libraries. At present, only the most primitive C++ programs
  686. are supported, but it is hoped that this support will be extended
  687. in future releases.
  688. See the Changelog for a detailed description of these changes.
  689. This tarball contains a complete CVS snapshot from April 19, 2009.
  690. NuttX-0.4.6
  691. -----------
  692. This is the 38th release of NuttX. The release features support
  693. for the Micromint Eagle-100 development board. This board is based
  694. around, the Luminary LM3S6918 MCU. This is the first ARM Cortex-M3
  695. architecture supported by Nuttx. This initial, basic port includes
  696. timer and serial console with configurations to execute the NuttX
  697. OS test and to run the NuttShell (NSH). Work is still underway on
  698. this port and current plans are to have I2C, SSI, MMC/SD, and and
  699. Ethernet driver in the 0.4.7 release.
  700. Additional work was done on the MXADS i.MX1 port, however, that
  701. work has been set aside until I complete work on the Eagle-100 (I
  702. also need to come up with a 3V power supply).
  703. Other changes in this release include: Extensions to the SPI interface
  704. definition in order to handle 9-bit interfaces to displays. Several
  705. bugs were fixed (see the ChangeLog for a complete list of changes).
  706. This tarball contains a complete CVS snapshot from May 19, 2009.
  707. NuttX-0.4.7
  708. -----------
  709. This is the 39th release of NuttX. This release focuses on cleaning
  710. up and extending the Eagle100/LM3S6918 port released in nuttx-0.4.6
  711. and on improved MMC/SD support. New features include:
  712. * Improved reliably and additional drivers for the Eagle-100 board
  713. (LM3S6918 ARM Cortex-M3). Additional drivers include Ethernet,
  714. SSI, and support for the on-board LEDs and microSD cards.
  715. * The SPI-based MMC/SD driver was extended to support SDHC Version
  716. 2.xx cards.
  717. In addition, this release includes several important bugfixes for
  718. the LM3S6918, the LPC2148, the SPI-based MMC/SD driver, and to
  719. FAT32. See the ChangeLog for details of these bugfixes.
  720. This tarball contains a complete CVS snapshot from May 29, 2009.
  721. NuttX-0.4.8
  722. -----------
  723. This is the 40th release of NuttX. This release adds:
  724. * Support for the Olimex STRP711 board. That board is based on
  725. the STMicro STR711 MCU (ARM7TDMI). Integration is complete on
  726. the basic port (boot logic, system time, serial console). Two
  727. configurations have been verified: (1) The board boots and
  728. passes the OS test with console output visible on UART0, and
  729. the NuttShell (NSH) is fully functional with interrupt driven
  730. serial console. An SPI driver is available but untested (because
  731. the Olimex card slot appears to accept only MMC cards; I have
  732. only SD cards). Additional needed: USB and driver, MMC
  733. integration.
  734. * Support for the CodeSourcery and devkitARM Windows-native GNU
  735. toolchains. Makefiles have been modified for the LM3S6918,
  736. LPC2148, and STR711 to support these toolchains under Cygwin.
  737. This tarball contains a complete CVS snapshot from June 13, 2009.
  738. NuttX-0.4.9
  739. -----------
  740. This is the 41st release of NuttX. This release adds:
  741. * Support for a new binary format call NXFLAT that can be used to
  742. execute separately linked programs in place in a file system.
  743. See http://www.nuttx.org/NuttXNxFlat.html.
  744. * Several important bugs were files related to networking and ROMFS.
  745. See the ChangeLog for a complete list.
  746. This tarball contains a complete CVS snapshot from June 26, 2009.
  747. NuttX-0.4.10
  748. -----------
  749. This is the 42nd release of NuttX. This released focused on the
  750. port of Jeff Poskanzer's THTTPD HTTP server (see
  751. http://acme.com/software/thttpd/). As of the 0.4.10 release, that
  752. port is still not fully complete and functional. However, numerous
  753. related bug-fixes and functional additions for THTTPD were added:
  754. * Several new standard C-library functions (fileno, strstr,
  755. strpbrk, fcntl).
  756. * Improved and extended timing APIs (mktime, gmtime, gmtime_r,
  757. gettimeofday, localtime, localtime_r, and strftime)
  758. * Networking enhancements: recvfrom() and accept() now work with
  759. non-blocking sockets.
  760. * NXFLAT extensions (exec)
  761. * Pattern matching logic.
  762. * And miscellaneous bug fixes (see the ChangeLog for details).
  763. This tarball contains a complete CVS snapshot from August 8, 2009.
  764. NuttX-0.4.11
  765. ------------
  766. This is the 43rd release of NuttX. This release of NuttX incorporates
  767. the verified port of Jeff Poskanzer's THTTPD HTTP server (see
  768. http://acme.com/software/thttpd/). Many of the key features of
  769. THTTPD have been tested on the Micromint Eagle-100 development board
  770. (Cortex-M3). These tests verify:
  771. * Serving of files from any file system
  772. * Execution of CGI executable. This release supports execution
  773. of NXFLAT executables on a ROMFS file system
  774. (http://www.nuttx.org/NuttXNxFlat.html)
  775. A standard CGI interface is used: Information is pasted to the CGI
  776. program via POST commands and via environment variables. CGI socket
  777. I/O is redirected to stdin and stdout so that the CGI program only
  778. need to printf() to send its content back to the HTTP client.
  779. Another value to this THTTPD integration effort has been that THTTPD
  780. has provided a very good test bed for finding NuttX networking bugs.
  781. Several very critical networking bugs have been fixed with this
  782. 0.4.11 release (see the ChangeLog for details). Networking throughput
  783. has also been greatly improved. Anyone using NuttX networking
  784. should consider upgrading to this release.
  785. This tarball contains a complete CVS snapshot from September 16, 2009
  786. NuttX-0.4.12
  787. ------------
  788. This is the 44th release of NuttX. This release adds basic support
  789. for the STMicro STM32, Cortex-M3 MCU. The specific port is to the
  790. STMicro STM3210E-EVAL development board based around the STM32F103ZET6
  791. MCU. Some highlights of this port:
  792. * This basic port includes boot-up logic, interrupt driven serial
  793. console, and system timer interrupts.
  794. * Includes a basic STMicro RIDE7 project that can be used to
  795. perform basic STM32 board bring-up (due to RIDE7 size limitations,
  796. it cannot be used for the full NuttX bring-up).
  797. * Working, Tested Configurations: the NuttX OS test and the
  798. NuttShell (NSH) example.
  799. This basic STM32 port will be extended in the 0.4.13 NuttX release.
  800. Functionality needed for complete STM32 support includes: USB
  801. device driver, LCD driver and NX bringup on the development board's
  802. display and MicroSD support. An SPI driver and a DMA support was
  803. included in this 0.4.12 release, but is not yet tested.
  804. This tarball contains a complete CVS snapshot from October 17, 2009
  805. NuttX-0.4.13
  806. ------------
  807. This is the 45th release of NuttX. The release extends the support
  808. for the STMicro STM32 microcontroller. Minimal support for the
  809. STM3210E-EVAL development board based around the STM32F103ZET6 MCU
  810. was released in NuttX-0.4.12. This release adds:
  811. * A simple interface definition to support some FLASH, EEPROM,
  812. NVRAM, etc. devices.
  813. * Verified SPI operation using driver for SPI based FLASH parts
  814. M25P64 and M25P128.
  815. * Improved Cortex-M3 context switching. This should improve
  816. context switching performance be 2x in certain cases.
  817. * Added a USB device-side driver for the STM32. This is an early
  818. release of a very complex driver; some bugs are expected.
  819. * The USB driver has been verified against the USB serial device
  820. class driver. There is at least one known outstanding issue
  821. (see the full bug description in the TODO list).
  822. This release also corrects some important bugs in the early STM32 release:
  823. * Fixed several errors the prevented operation of NuttX on an
  824. STM32 development board using USART2 as the serial console.
  825. * Fixed and optimization-dependent race condition in the clock
  826. initialization.
  827. * Fixed a critical bug in the interrupt control logic that could
  828. cause interrupt operations to failed used for interrupts in a
  829. certain range.
  830. This tarball contains a complete CVS snapshot from November 4, 2009
  831. NuttX-4.14
  832. ----------
  833. This is the 46th release of NuttX. The release extends the support
  834. for the STMicro STM32 microcontroller. Minimal support for the
  835. STM3210E-EVAL development board based around the STM32F103ZET6 MCU
  836. was released in NuttX-0.4.12 and extended in Nuttx-0.4.13 to include
  837. initial USB support. This completes the STM32F103ZET6 and adds:
  838. New Generic RTOS Features:
  839. * Added generic support that can be included in any block driver
  840. to provide read-ahead buffering and write buffering for improved
  841. driver performance.
  842. * Added a generic worker thread that can used to defer processing
  843. from an interrupt to a task.
  844. * Defined a generic SD/SDIO interface can can be bound to a MMC/SD
  845. or SDIO driver to provide SDIO support.
  846. * Implemented a an SDIO-based MMC/SD driver using this new SDIO
  847. interface.
  848. New STM32 Features:
  849. * Add support to configure an STM32 input GPIO to generate an
  850. EXTI interrupt.
  851. * Added support for buttons on the STM3210E-EVAL board.
  852. * Implemented an STM32 version of the common the SDIO interface.
  853. * Added a configuration to exercise the STM32 with the USB mass
  854. storage device class example.
  855. This release also corrects some important bugs in the early STM32 release:
  856. * Correct error handling in the mount() logic.
  857. * Fixed several STM32 DMA-related issues. Integrated and debugged
  858. STM32 DMA functionality that was added in 0.4.12.
  859. * Fixed several bugs in the STM32 USB device-side driver.
  860. NOTE: This version, 4.14, is equivalent to what would have been
  861. called 0.4.14 to follow 0.4.13. The zero has been eliminated from
  862. the front of the version number to avoid confusion about the state
  863. of development: Some have interpreted the leading zero to mean
  864. that the code is in some way unstable. That was not the intent.
  865. Beginning in January 2010, I will switch to the 2010.nn versioning
  866. as many others have done to avoid such confusion.
  867. This tarball contains a complete CVS snapshot from December 2, 2009
  868. NuttX-5.0
  869. ---------
  870. This is 47th release of NuttX and the successor to nuttx-4.14. This
  871. major revision number has been incremented to indicate that an
  872. incompatibility with previous nuttx releases has been introduced.
  873. This version adopts standard fixed width integer names as specified
  874. by the ANSI C99 standard. The core logic of NuttX is older than
  875. that standard and did not conform to it.
  876. If you have applications running on NuttX-4.14, those applications
  877. should continue to build and execute without problem on NuttX-5.0.
  878. However, if you have device drivers or other OS-internal logic, you
  879. will probably have to make some minor changes to your code to use
  880. this version. Below is a summary of those changes:
  881. * If you include sys/types.h to get the non-standard, fixed width
  882. integer types (uint32, uint16, ubyte, etc.), that is no longer
  883. necessary.
  884. * Instead, you will need to include stdint.h where the new fixed
  885. width integer types are defined (uint32_t, uint16_t, uint8_t, etc).
  886. * You will have to change all occurrences of the following types:
  887. uint32 -> uint32_t
  888. uint16 -> uint16_t
  889. ubyte -> uint8_t
  890. uint8 -> uint8_t
  891. sint32 -> int32_t
  892. sint16 -> int16_t
  893. sint8 -> int8_t
  894. * In addition, the non-standard type 'boolean' must replaced with
  895. the standard type 'bool'. The type definition for 'bool' is in
  896. stdbool.h
  897. This change in typing caused small changes to many, many files. It
  898. was verified that all configurations in the release still build
  899. correctly (other than the SDCC-based configurations). Regression
  900. testing was performed on a few configurations, but it is possible
  901. that minor build issues still exist. (If you encounter any, please
  902. let me know and I will help you to fix them.)
  903. In the course of the regression testing, several important bugs
  904. unrelated to the type changes were found and corrected.
  905. * Fixed an important error in the RX FIFO handling logic of the
  906. LM3S6918 Ethernet driver.
  907. * Corrected the handling of TCP sequence numbers in the TCP stack.
  908. * And other less important bugs as detailed in the ChangeLog.
  909. The primary focus of this release was standards compatibility, but
  910. a few new features were added including a (1) Flash Translation
  911. Layer (FTL) that will support filesystems on a FLASH device and (2)
  912. partial ports for the STM32F107VC and HCS12 C9S12NE64 MCUs. Those
  913. ports are very incomplete as of this writing.
  914. This tarball contains a complete CVS snapshot from December 21, 2009
  915. NuttX-5.1
  916. ---------
  917. This is the 48th release of NuttX. This release adds support for
  918. two new MCU architectures in various states of development:
  919. * AT91SAM3U (http://www.atmel.com/products/at91/sam3landing.asp?family_id=605)
  920. This release adds support for the SAM3U-EK development board with
  921. the AT91SAM3U4E MCU
  922. (http://www.atmel.com/dyn/products/product_card_mcu.asp?part_id=4562).
  923. As with most NuttX architecture releases, the release will be
  924. rolled out in two parts: A basic port and an extended port.
  925. NuttX-5.1 includes the basic port for the SAM3U-EK board. This
  926. release passes the NuttX OS test and is proven to have a valid
  927. OS implementation. It supports the basic boot-up, serial console
  928. and timer interrupts. A configuration to support the NuttShell
  929. is also included.
  930. The extended port will also include support for SDIO-based SD
  931. cards and USB device (and possible LCD support). These extensions
  932. may or may not happen by the Nuttx 5.2 release as my plate is
  933. kind of full now.
  934. * LPC3131 (http://ics.nxp.com/products/lpc3000/lpc313x.lpc314x.lpc315x/)
  935. This release also adds the complete implementation of the basic
  936. port for the NXP LPC3131 MCU on the Embedded Artists EA3131 board
  937. (http://www.embeddedartists.com/products/kits/lpc3131_kit.php).
  938. That port, unfortunately has stalled due to tools issues. Those
  939. tool issues have been resolved and I am confident that the verified
  940. basic port will be available in NuttX-5.2.
  941. The extended release will follow and should include SDIO-based
  942. SD card support and device USB.
  943. A few additional features and bugfixes of a minor nature were also
  944. incorporated as detailed in the ChangeLog.
  945. NuttX-5.2
  946. ---------
  947. This is the 49th release of NuttX. This release completes the
  948. verification of the basic port for the NXP LPC3131 MCU on the
  949. Embedded Artists EA3131 board
  950. (http://www.embeddedartists.com/products/kits/lpc3131_kit.php).
  951. This basic port includes basic boot-up, serial console, and timer
  952. interrupts. This port has been verified on the using the NuttX OS
  953. test and includes a working implementation of the NuttShell (NSH).
  954. An extended release will follow and should include SDIO-based SD
  955. card support and device USB.
  956. NuttX-5.3
  957. ---------
  958. This is the 50th release of NuttX. This release support for one new
  959. architecture:
  960. * A basic port for the NXP LPC2378 MCU on the Olimex-LPC2378
  961. development board was contributed by Rommel Marcelo.
  962. And extensions to two existing architectures:
  963. * David Hewson contributed a dual-speed (full/high) USB device-side
  964. driver for the NXP LPC3131 on the Embedded Artists EA3131
  965. development board.
  966. * A DMA driver and a high speed MCI driver for the Atmel AT91SAM3U
  967. are included (but not fully tested in this release).
  968. Two important bugfix was also included:
  969. * An important fix to the USB mass storage driver was contributed
  970. by David Hewson.
  971. * A serious error in the AT91SAM3U PIO handling was fixed.
  972. NuttX-5.4
  973. ---------
  974. This is the 51st release of NuttX. This release includes one new,
  975. important extension to th NX graphics system (See
  976. http://www.nuttx.org/NXGraphicsSubsystem.html).
  977. NX was develop a couple years back on hardware that supported only
  978. framebuffer devices, that is, video hardware with video memory
  979. directly converts the memory content to video. However, most MCUs
  980. that NuttX focuses on do not support such video memory; rather,
  981. that typically only support LCDs via parallel or serial interfaces.
  982. This release of NuttX extends NX so that now renders directly to
  983. the LCD device via its serial or parallel interface. No in-memory
  984. copy of the screen memory need be maintained so this solution should
  985. also work in MCUs with very limited SRAM.
  986. This initial release of this feature includes the verified NX
  987. extensions plus a driver for the HX8347, 16-bit parallel LCD. This
  988. LCD supports 16-bit RGB (5:6:5).
  989. NuttX-5.5
  990. ---------
  991. This is the 52nd release of NuttX. This release includes one new
  992. port, some new drivers and some important bugfixes:
  993. * NuttX was ported to the Luminary/TI LM3S6965 Ethernet Evaluation
  994. Kit. At present, that port includes an OS test configuration
  995. and a NuttShell (NSH) configuration with Telnet support.
  996. MMC/SD and Networking support are provided but not thoroughly
  997. verified in this release: Current development efforts are focused
  998. on porting the NuttX window system (NX) to work with the
  999. Evaluation Kits OLED display.
  1000. * A NuttX Ethernet driver for the Microchip ENC28J60 SPI Ethernet
  1001. chip is available in the source tree (but has not yet been fully
  1002. verified because I haven't properly connected it to hardware
  1003. yet).
  1004. * The Olimex STR-P711 NuttX port was extended to support the
  1005. ENC28J60 and some new networking configurations were added.
  1006. The ENC28J60 has not been tested on the STR-P711, however,
  1007. because of hardware issues (I don't think the USB powered board
  1008. provides enough power for the ENC28J60 and I don't have the
  1009. right wall wart yet).
  1010. Along the way, external interrupt support (XTI) was added to
  1011. the STMicro STR-P711 port and some important bugs were fixed
  1012. in the STR-P711 SPI driver.
  1013. * Added (optional) floating point support for printf().
  1014. (Contributed by Yolande Cates.)
  1015. * Corrected an important UDP reference counting error. It was
  1016. not a serious error, but it trigger an assertion was IS a serious
  1017. error.
  1018. NuttX-5.6
  1019. ---------
  1020. This is the 53rd release of NuttX. This release includes one several
  1021. new drivers for existing NuttX ports:
  1022. * This port adds support for the RiT displays P14201 4-bpp,
  1023. greyscale OLED. 4-bpp greyscale support was integrated into
  1024. the NX graphics sub-system and verified using the TI/Luminary
  1025. LP3S6965 Ethernet Evaluation Kit.
  1026. * The M25Px driver was extended for the M24P1 FLASH part (see NOTE).
  1027. * An I2C driver and (basic) SPI driver were added for the NXP
  1028. LPC313x port. The I2C interface definition was extended to
  1029. efficiently handle multiple I2C transfers.
  1030. (Contributed by David Hewson.)
  1031. As well as a few, important USB-related bugfixes (See the ChangeLog
  1032. for details).
  1033. This release also includes the beginnings of a port for the NXP
  1034. LPC1768 MCU. However, it is too early for that port to be useful
  1035. (stay tuned for a future announce of the availability of the LPC1768
  1036. port).
  1037. NuttX-5.7
  1038. ---------
  1039. This is the 54th release of NuttX. This release adds basic support
  1040. for one new ARM Cortex-M3 architecture:
  1041. * Added support for NXP LPC1768 MCU as provided on the Nucleus
  1042. 2G board from 2G Engineering (http://www.2g-eng.com).
  1043. * Some initial files for the LPC17xx family were released in NuttX
  1044. 5.6, but the first functional release for the NXP LPC1768/Nucleus2G
  1045. occurred with NuttX 5.7.
  1046. * That initial basic release included timer interrupts and a
  1047. serial console and was verified using the NuttX OS test.
  1048. * That release includes a verified NuttShell (NSH) configuration
  1049. (see the http://www.nuttx.org/NuttShell.html).
  1050. * Also included are unverified SPI and USB device drivers.
  1051. Further efforts include:
  1052. (1) development of a DMA support library
  1053. (2) SPI-based MMC/SD support
  1054. (3) verification of the USB driver
  1055. Watch for announcement of the completed LPC1768 port expected in
  1056. NuttX-5.8.
  1057. NuttX-5.8
  1058. ---------
  1059. This is the 55th release of NuttX. This includes several important
  1060. bugfixes:
  1061. * Corrects some interrupt vectoring for the TI/Stellarix LM3S
  1062. port
  1063. * Correct initialization logic for NXP LPC17xxx NuttX ports:
  1064. Power was not being provided to the GPIO module!
  1065. * Corrected (but did not verify) implementation of the optional
  1066. interrupt stack feature (all Cortex M3 architectures).
  1067. * Correct a HardFault in the LPC17xx SSP driver.
  1068. Additional minor fixes are also included as detailed in the ChangeLog.
  1069. Several new features have been fully developed and included in this
  1070. release, but full verification of most of these new features has
  1071. been blocked for a variety of issues:
  1072. * Added microSD support for the NuttShell (NSH) configuration in
  1073. the Nucleus2G LPC1768 port. For reasons that have not yet been
  1074. determined, I have not successfully accessed the microSD card
  1075. as of this writing.
  1076. * Two USB configurations were also added for the Nucleus2G board:
  1077. One to support the USB serial device and one for the USB mass
  1078. storage device. Some testing of the USB driver was performed,
  1079. but full verification is stalled for an OTG style USB cable.
  1080. * LEDs now work correctly on the Nucleus2G LPC1768 board.
  1081. * The NuttX/uIP networking subsystem now supports IGMPv2 client.
  1082. IGMP (Internet Group Multicast Protocol) network "appliances"
  1083. to join into multicast groups. Outbound traffic to enter and
  1084. leave multicast groups has been verified, but full verification
  1085. will require a switch capable of multicast. Issues associated
  1086. with the receipt of multicast packets are likely.
  1087. NuttX-5.9
  1088. ---------
  1089. This is the 56th release of NuttX. This release is difficult to
  1090. categorize; NuttX-5.9 was really released because there were too
  1091. many changes accumulating in CVS -- a few important, some unfinished
  1092. implementations, and a couple of important bugfixes.
  1093. * By far biggest change in this release is the complete implementation
  1094. of on-demand paging support. This feature will allow you to
  1095. execute large programs on a mass storage device (such as SPI
  1096. FLASH) in a small RAM. All of the core on-demand paging logic
  1097. was completed (see http://www.nuttx.org/NuttXDemandPaging.html)
  1098. and support was implemented for the ARM-9 family. A test
  1099. configuration is in place for the NXP LPC3131. It has been
  1100. verified that this new logic does not interfere with normal
  1101. fixed-page ARM9 operation, but otherwise this new on-demand
  1102. paging feature is untested.
  1103. * Add support for the CodeSourcery toolchain to the Olimex-lpc2378
  1104. port and for the Neuros OSD port.
  1105. * The Neuros OSD port has been updated to work with the production
  1106. v1.0 OSD (previously it only worked with the development board).
  1107. * And some miscellaneous feature enhancements as detailed in the
  1108. ChangeLog.
  1109. This includes several important bugfixes:
  1110. * NXP LPC17xx - Fixed a critical bug in the GPIO configuration
  1111. logic: When attempting to set no pull-up or pull-down (floating),
  1112. it would, instead, select pull-down.
  1113. * TI/Luminary LM3Sxxxx - Fixed:
  1114. (1) A logic error in an address table lookup.
  1115. (2) GPIO port encoding the limited support to only 8 GPIO ports.
  1116. * Corrected the lease time in the DHCPC implementation: It was
  1117. not in host byte order.
  1118. * And several other less important bugs as documented in the
  1119. ChangeLog: Warnings, cornercase compilation problems, etc.
  1120. NuttX-5.10
  1121. ----------
  1122. This is the 57th release of NuttX. This release includes a combination
  1123. of some new features as well as several bugfixes. New features
  1124. include:
  1125. * TI/Luminary Stellaris LM3S9B96:
  1126. Header file changes contributed by Tiago Maluta.
  1127. * TI/Luminary Stellaris LM3S8962:
  1128. Header file changes and support for the Stellaris LM3S8962
  1129. Ethernet+CAN Evaluation Board contributed by Larry Arnold.
  1130. * On-Demand Paging Support:
  1131. The basic logic for the On-Demand Paging feature is complete,
  1132. implemented for the NXP LPC3131, and partially tested. See
  1133. http://www.nuttx.org/NuttXDemandPaging.html. Some additional
  1134. test infrastructure will be needed in order to complete the
  1135. verification. See configs/ea3131/README.txt for details.
  1136. * Two Pass Build Support:
  1137. The make system now supports a two pass build where a relocatable,
  1138. partially linked object is created on the first pass and that
  1139. object is linked with the NuttX libraries to produce the final
  1140. executable on the second pass. This two pass build is currently
  1141. only used to support the On-Demand paging feature: The first
  1142. pass link forces critical logic into the locked text region;
  1143. the second pass builds the NuttX executable more-or-less as
  1144. normal.
  1145. * CONFIG_APP_DIR:
  1146. Generalized the way in which applications are built and linked
  1147. with NuttX. The new configuration CONFIG_APP_DIR replaces
  1148. CONFIG_EXAMPLE. CONFIG_EXAMPLE used to identify the sub-directory
  1149. within the NuttX examples/ directory that held the example
  1150. application to be built. That made it awkward to configure to
  1151. build an application that resides outside of the NuttX examples/
  1152. directory. CONFIG_APP_DIR is more general; it can be used to
  1153. refer to any directory containing the application to be built.
  1154. For people who have their own configurations and/or Makefiles,
  1155. you will need to make a couple of changes:
  1156. - Replace all occurrences of CONFIG_EXAMPLE=foobar with
  1157. CONFIG_APP_DIR=examples/foobar in all of the configuration
  1158. files.
  1159. - Replace any occurrences of examples/$(CONFIG_EXAMPLE) with
  1160. $(CONFIG_APP_DIR)
  1161. - Replace any occurrences of lib$(CONFIG_EXAMPLE)$(LIBEXT)
  1162. with libapp$(LIBEXT) in your Makefiles.
  1163. - Check any other occurrences of CONFIG_EXAMPLE.
  1164. * Several bugfixes are included as well as code changes to eliminate
  1165. some warnings. See the ChangeLog for details.
  1166. NuttX-5.11
  1167. ----------
  1168. This is the 58th release of NuttX. This is a bugfix release.
  1169. * One very important bug fixes a race condition that can occur
  1170. using semaphores that can be awakened by signals. Under this
  1171. particular race condition, a task could hang waiting for a
  1172. semaphore.
  1173. * Corrections to lm3s8962 port contributed by Larry Arnold. That
  1174. port is purported to work correctly with these changes in place.
  1175. Plus less critical bugfixes as detailed in the ChangeLog. New features
  1176. include:
  1177. * A new configuration to support the mbed.org LPC1768 board.
  1178. (Contributed by Dave Marples.)
  1179. * A driver for the Atmel AT45DB161D 4Mbit SPI FLASH part
  1180. NuttX-5.12
  1181. ----------
  1182. This is the 59th release of NuttX. This is a critical bugfix release.
  1183. * Fixed an important error in the signal trampoline logic.
  1184. Essentially, interrupts are re-enabled while the signal handler
  1185. executes, but the logic to re-disable the interrupts before
  1186. returning from the signal handler trampoline was missing. Under
  1187. certain circumstances, this can cause stack corruption. This
  1188. was discovered by David Hewson on an ARM9 platform, but since
  1189. the code has been leveraged, the bug has been propagated from
  1190. ARM to Cortex-M3, AVR32, M16C, SH1, ZNEO, eZ80, Z8, and Z80 --
  1191. almost every architecture. The correction has been incorporated
  1192. for all architectures but only verified on a few.
  1193. Other notable changes in NuttX-5.12:
  1194. * A complete port for the AVR32 (AT32UC3B0256) is incorporated
  1195. in the source tree. Testing of this port is underway now. This
  1196. release was made before verifying this port in order to get the
  1197. important bugfix in place.
  1198. * Other miscellaneous bugfix and enhancements as noted in the
  1199. ChangeLog.
  1200. NuttX-5.13
  1201. ----------
  1202. This is the 60th release of NuttX. Headlines for this release
  1203. include:
  1204. * AVR32, www.mcuzone.com AVR32DEV1
  1205. The port for the www.mcuzone.com AVRDEV1 board based on the
  1206. Atmel AT32UC3B0256 MCU was (almost) fully integrated. The port
  1207. now successfully passes the NuttX OS test (examples/ostest).
  1208. A NuttShell (NSH) configuration is in place (see the NSH User
  1209. Guide at http://www.nuttx.org/NuttShell.html). Testing of that
  1210. NSH configuration, however, has been postponed (because it got
  1211. bumped by the Olimex LPC1766-STK port -- see below)
  1212. Current Status: I think I have a hardware problem with my serial
  1213. port setup. There is a good chance that the NSH port is complete
  1214. and functional, but I am not yet able to demonstrate that. At
  1215. present, I get nothing coming in the serial RXD line (probably
  1216. because the pins are configured wrong or I have the MAX232
  1217. connected wrong).
  1218. A complete port will include drivers for additional AVR32 UC3
  1219. devices -- like SPI and USB --- and will be available in a
  1220. later release, time permitting.
  1221. * LPC1766, Olimex LPC1766-STK
  1222. Support for the Olimex-LPC1766 is newly added to NuttX and is
  1223. still undergoing development, test, and integration. Verified
  1224. configurations for the NuttX OS test and for the NuttShell (NSH,
  1225. see the NSH User Guide at http://www.nuttx.org/NuttShell.html.
  1226. Additional USB configurations are in the release as well, but
  1227. they have not yet been verified. Goals for NuttX-5.14 include:
  1228. (1) An Ethernet driver, (2) Verified USB support, and (3) SD
  1229. card support.
  1230. * Additional changes and bugfixes as detailed in the ChangeLog.
  1231. NuttX-5.14
  1232. ----------
  1233. The 61st release of NuttX, NuttX-5.14, was made on November 27,
  1234. 2010. This release includes multiple, important bugfixes as well
  1235. as a new driver for the NXP LPC1766.
  1236. This release corresponds with SVN release number: r3137
  1237. Important bugfixes include:
  1238. * Cortex-M3 Hard Fault. Fixed a hard fault problem that can occur
  1239. if certain types of interrupts are pending at the time another
  1240. interrupt returns. This problem has only been observed on the
  1241. LPC1766 (returning from a SYSTICK interrupt with a pending
  1242. Ethernet interrupt). However, it is assumed that all Cortex-M3
  1243. ports could have this as a latent bug.
  1244. * TCP/IP Sequence Number Bug. Corrected errors some important
  1245. logic in the way that sequence numbers are managed when send()
  1246. sends out packets before a previous packet has been acknowledged.
  1247. Some of that send() logic was incompatible with logic in the
  1248. uIP layer. Errors seen include: (1) The final final packet in
  1249. a sequence of packets might be too large! In the THTTPD example,
  1250. this might leave some garbage at the bottom of the display. Or
  1251. (2) send() might hang with outstanding, unacknowledged data
  1252. (and with no re-transmission requests). This was due to
  1253. differences in sequence number handling in send() and in
  1254. uip_tcpinput.c; uip_tcpinput.c thought (incorrectly) that all
  1255. of the bytes were acknowledged; send.c knew that they were not.
  1256. * One-Shot POSIX Timer Bug. Fixed an error in set-up of a one-shot
  1257. POSIX timer. It was using the repetitive timer value (which
  1258. is zero in the one-shot case), always resulting in a 10Ms timer!
  1259. Found and fixed by Wilton Tong.
  1260. Additional support has been included for the Olimex-LPC1766. Support
  1261. for that board was added to NuttX 5.13. This release extends that
  1262. support with an Ethernet driver. Verified configurations are now
  1263. available for the NuttX OS test, for the NuttShell (NSH, see
  1264. http://www.nuttx.org/NuttShell.html), for the NuttX network test,
  1265. and for the THTTPD webserver. (Additional USB configurations are
  1266. in the release as well, but those have not yet been verified. Goals
  1267. for NuttX-5.15 (and beyond) include: (1) Verified USB support, (2)
  1268. SD card support, and (3) LCD support.
  1269. NuttX-5.15
  1270. ----------
  1271. The 62nd release of NuttX, NuttX-5.15, was made on December 12,
  1272. 2010. This release includes several bugfixes as well as feature
  1273. enhancements, primarily for the Olimex LPC1766-STK board.
  1274. Important bugfixes included:
  1275. * Additional fixes needed with the TCP sequence number problem
  1276. "fixed" in NuttX-5.14.
  1277. * In the send() logic, now checks if the destination IP address
  1278. is in the ARP table before sending the packet; an ARP request
  1279. will go out instead. This improves behavior, for example, on
  1280. the first on the first GET request from a browser
  1281. * All USB class drivers need to call DEV_CONNECT() when they are
  1282. ready to be enumerated. That is, (1) initially when bound to
  1283. the USB driver, and (2) after a USB reset.
  1284. * The SPI_SETBITS macro was calling the SPI setmode method.
  1285. * And several other bug fixes of lower importance (see the
  1286. ChangeLog for details).
  1287. And feature enhancements:
  1288. * The LPC176x Ethernet driver was using all of AHB SRAM Bank0 for
  1289. Ethernet packet buffers (16K). An option was added to limit
  1290. the amount of SRAM used for packet buffering and to re-use any
  1291. extra Bank0 memory for heap.
  1292. * Enabled networking and SD/MMC card support in the Olimex
  1293. LPC1766-STK NuttShell (NSH) configuration.
  1294. * The LPC176x USB driver is now fully fully functional.
  1295. * Added an optional cmddata() method to the SPI interface. Some
  1296. devices require an additional out-of-band bit to specify if the
  1297. next word sent to the device is a command or data. The cmddata
  1298. method provides selection of command or data.
  1299. * A driver for the Nokia 6100 LCD (with either the Phillips PCF8833
  1300. LCD controller and for the Epson S1D15G10 LCD controller) and
  1301. an NX graphics configuration for the Olimex LPC1766-STK have
  1302. been added. However, neither the LCD driver nor the NX
  1303. configuration have been verified as of the this release.
  1304. NuttX-5.16
  1305. ----------
  1306. The 63rd release of NuttX, Version 5.16, was made on January 10,
  1307. 2010 and is available for download from the SourceForge website.
  1308. This release includes initial support for USB host in NuttX. The
  1309. USB host infrastructure is new to NuttX. This initial USB host release
  1310. is probably only beta quality; it is expected the some bugs remain
  1311. in the logic and that the functionality requires extension.
  1312. Below is a summary of the NuttX USB host implementation as extracted
  1313. from the NuttX Porting Guide:
  1314. 6.3.9 USB Host-Side Drivers
  1315. * include/nuttx/usb/usbhost.h. All structures and APIs needed to
  1316. work with USB host-side drivers are provided in this header
  1317. file.
  1318. * struct usbhost_driver_s. Each USB host controller driver must
  1319. implement an instance of struct usbhost_driver_s. This structure
  1320. is defined in include/nuttx/usb/usbhost.h. Examples:
  1321. arch/arm/src/lpc17xx/lpc17_usbhost.c.
  1322. * struct usbhost_class_s. Each USB host class driver must implement
  1323. an instance of struct usbhost_class_s. This structure is also
  1324. defined in include/nuttx/usb/usbhost.h. Examples:
  1325. drivers/usbhost/usbhost_storage.c
  1326. * USB Host Class Driver Registry. The NuttX USB host infrastructure
  1327. includes a registry. During its initialization, each USB host
  1328. class driver must call the interface, usbhost_registerclass()
  1329. in order add its interface to the registry. Later, when a USB
  1330. device is connected, the USB host controller will look up the
  1331. USB host class driver that is needed to support the connected
  1332. device in this registry. Examples: drivers/usbhost/usbhost_registry.c,
  1333. drivers/usbhost/usbhost_registerclass.c, and
  1334. drivers/usbhost/usbhost_findclass.c,
  1335. * Detection and Enumeration of Connected Devices. Each USB host
  1336. device controller supports two methods that are used to detect
  1337. and enumeration newly connected devices (and also detect
  1338. disconnected devices):
  1339. + int (*wait)(FAR struct usbhost_driver_s *drvr, bool connected);
  1340. Wait for a device to be connected or disconnected.
  1341. + int (*enumerate)(FAR struct usbhost_driver_s *drvr);
  1342. Enumerate the connected device. As part of this enumeration
  1343. process, the driver will (1) get the device's configuration
  1344. descriptor, (2) extract the class ID info from the configuration
  1345. descriptor, (3) call usbhost_findclass() to find the class
  1346. that supports this device, (4) call the create() method on
  1347. the struct usbhost_registry_s interface to get a class instance,
  1348. and finally (5) call the connect() method of the struct
  1349. usbhost_class_s interface. After that, the class is in charge
  1350. of the sequence of operations.
  1351. * Binding USB Host-Side Drivers. USB host-side controller drivers
  1352. are not normally directly accessed by user code, but are usually
  1353. bound to another, higher level USB host class driver. The class
  1354. driver exports the standard NuttX device interface so that the
  1355. connected USB device can be accessed just as with other, similar,
  1356. on-board devices. For example, the USB host mass storage class
  1357. driver (drivers/usbhost/usbhost_storage.c) will register a
  1358. standard, NuttX block driver interface (like /dev/sda) that can
  1359. be used to mount a file system just as with any other other
  1360. block driver instance. In general, the binding sequence is:
  1361. 1. Each USB host class driver includes an initialization entry
  1362. point that is called from the application at initialization
  1363. time. This driver calls usbhost_registerclass() during this
  1364. initialization in order to makes itself available in the
  1365. event that the device that it supports is connected. Examples:
  1366. The function usbhost_storageinit() in the file
  1367. drivers/usbhost/usbhost_storage.c
  1368. 2. Each application must include a waiter thread thread that
  1369. (1) calls the USB host controller driver's wait() to detect
  1370. the connection of a device, and then (2) call the USB host
  1371. controller driver's enumerate method to bind the registered
  1372. USB host class driver to the USB host controller driver.
  1373. Examples: The function nsh_waiter() in the file
  1374. configs/nucleus2g/src/up_nsh.c and the function nsh_waiter()
  1375. in the file configs/olimex-lpc1766stk/src/up_nsh.c.
  1376. 3. As part of its operation during the binding operation, the
  1377. USB host class driver will register an instances of a standard
  1378. NuttX driver under the /dev directory. To repeat the above
  1379. example, the USB host mass storage class driver
  1380. (drivers/usbhost/usbhost_storage.c) will register a standard,
  1381. NuttX block driver interface (like /dev/sda) that can be
  1382. used to mount a file system just as with any other other
  1383. block driver instance. Examples: See the call to
  1384. register_blockdriver() in the function usbhost_initvolume()
  1385. in the file drivers/usbhost/usbhost_storage.c.
  1386. NuttX-5.17
  1387. ----------
  1388. The 64th release of NuttX, Version 5.17, was made on January 19,
  1389. 2011 and is available for download from the SourceForge website.
  1390. This release follows close on the heels of the 5.16 release and
  1391. extends the USB host capabilities first introduced in that version.
  1392. * The LPC17xx USB host controller driver was extended to (1) add
  1393. support for low-speed devices, (2) handle multiple concurrent
  1394. transfers on different endpoints (still only one TD per endpoint),
  1395. and (3) handle periodic interrupt endpoint types.
  1396. * Add a USB host HID keyboard class driver. Now you can connect
  1397. a standard USB keyboard to NuttX and receive keyboard input for
  1398. an application.
  1399. And other changes as detailed in the ChangeLog.
  1400. NuttX-5.18
  1401. ----------
  1402. The 65th release of NuttX, Version 5.18, was made on February 27,
  1403. 2011 and is available for download from the SourceForge website.
  1404. This is first release from the new NuttX SVN repository. This
  1405. release is made primarily to keep the release tarball in synchronization
  1406. with SVN. Many smaller changes have been made as identified in the
  1407. ChangeLog. Headlines include:
  1408. * Incorporate several important uIP patches -- including the well
  1409. known patch to handle missing SYNACK.
  1410. * The Freescale mc8s12ne64 port is code complete but testing has
  1411. not yet begun due to toolchain issues. Added support for the
  1412. Future Electronics Group NE64 Badge board.
  1413. * Added support for a new STM32 board, the ISOTEL NetClamps VSN
  1414. V1.2 ready2go sensor network platform. This board is based on
  1415. a STM32F103RET6 and includes some interesting power saving/clock
  1416. control extensions.
  1417. * USB host support expanded to handle vendor specific USB devices.
  1418. * Incorporated the LUFA HID parser.
  1419. * Various bugfix as detailed in the ChangeLog
  1420. NuttX-5.19
  1421. ----------
  1422. The 66th release of NuttX, Version 5.19, was made on March 12, 2011
  1423. and is available for download from the SourceForge website. This
  1424. release includes several new features in various states of integration
  1425. and maturity:
  1426. * 486SX QEMU port. This port supports the Intel 486SX architecture
  1427. using the QEMU simulator. Initial functionality is in place a
  1428. partially tested. There are still some outstanding issues with
  1429. timer interrupts.
  1430. * Platform specific application support. A new apps/ directory
  1431. appears in this port. This apps/ directory provides a mechanism
  1432. for applications using NuttX to have a highly customized
  1433. initialization process. It supports a set of end-user applications
  1434. than can be executed (1) standalone so you can have a fully
  1435. customized application startup, or (2) on top of NSH. Think
  1436. of it this way: In a buckled-up embedded application, your
  1437. end-user programs will probably have their own dedicated start-up
  1438. logic. But, during development, you might want to have you
  1439. applications available and executable from the NSH command line.
  1440. This apps/ add-on (and NSH hooks) was contributed by Uros to
  1441. accomplish just that.
  1442. * NSH was also extended to support application specific ROMFS
  1443. /etc/init.d/rcS start-up scripts. This feature, as well, as
  1444. all of the above-mentioned apps/ directory support was contributed
  1445. by Uros Platise
  1446. * Additional NSH improvements and bug fixes. See the Changelog
  1447. for details.
  1448. * This release also provides a new SLIP network driver. This
  1449. driver should support point-to-point network communications to
  1450. a host using TCP/IP or UDP. This driver is code complete, but
  1451. not tested in this release.
  1452. * New RAMTRON FRAM driver (contributed by Uros Platise)
  1453. * New generic 16550 UART driver.
  1454. * Cortex-M3 Power improvements: Waits for Interrupt (WFI) in idle
  1455. loop for reduced power consumption (LPC17xx and STM32 only -
  1456. contributed by Uros Platise))
  1457. * New waitpid() system interface.
  1458. * Additional bugfixes: pipes, stdint.h, STM32 SDIO and SPI drivers
  1459. NuttX-6.0
  1460. ---------
  1461. The 67th release of NuttX, Version 6.0, was made on March 21, 2011
  1462. and is available for download from the SourceForge website. The
  1463. version number of this release was bumped from 5.19 to 6.0. A
  1464. change in the major revision number is used to reflect an incompatibility
  1465. with previous versions. In this release, the NuttX core OS
  1466. functionality has been separated from NuttX application-related
  1467. functionality. These are provided as separate tarballs:
  1468. * nuttx-6.0.tar.gz, and
  1469. * apps-6.0.tar.gz
  1470. The purpose of this separation is both to better organize and
  1471. modularize the NuttX source tree, but also to provide better support
  1472. for incorporation of end-user applications with Nuttx.
  1473. The incompatibility results from the changes to the board configuration
  1474. logic needed to supported the separable application. The major
  1475. changes to the configuration include:
  1476. * CONFIG_APPS_DIR - This should not be set. The default is
  1477. ../apps. This should only be set if you have a custom,
  1478. product-specific application directory in some different location.
  1479. * appconfig - Each board configuration now requires a new file
  1480. called 'appconfig.' As its name suggests, this file provides
  1481. new configuration information needed by the logic in ../apps.
  1482. In addition to this major reorganization in the directory structure,
  1483. this release also includes some important extensions to existing
  1484. features and some important bugfixes. These include:
  1485. * The SLIP driver was been well debugged and significantly
  1486. re-designed. Now you can have an Ethernet connection to you
  1487. board even if you have no Ethernet hardware. How cool is that?
  1488. * The QEMU i486 port is now functional. It has also been reported
  1489. to work on the Bifferboard (see http://bifferos.bizhat.com/).
  1490. * And extensions to the uIP driver interface, and
  1491. * Bug fixes to fopen() and STM32 GPIO configuration
  1492. Please see the ChangeLog for details.
  1493. NuttX-6.1
  1494. ---------
  1495. The 68th release of NuttX, Version 6.1, was made on April 10, 2011
  1496. and is available for download from the SourceForge website. The
  1497. 6.0 release introduced a detach-able application environment to
  1498. build applications outside of the NuttX source tree. The primary
  1499. purpose of this release is to correct numerous build problems
  1500. introduced by that architectural change:
  1501. * In many newer environments, NuttX produced strange Makefile
  1502. errors but built correctly in older environments. A fix provided
  1503. by Rafael Noronha was incorporated and is reported to fix those
  1504. build problems.
  1505. * The apps/ directory build system would not handle Windows-native
  1506. toolchains due to obscure path formatting issues.
  1507. * And other problems as detailed in the Changelog.
  1508. Many additional changes were made in the 6.1 release for another
  1509. major architectural change: NuttX will now build as a separately
  1510. linked microkernel. In this build option the RTOS builds as a
  1511. kernel, applications build separately and interface with kernel via
  1512. system calls. Applications run in user mode and kernel logic users
  1513. in kernel-mode. This provides a secure environment for NuttX. This
  1514. feature is fully coded in NuttX-6.1, but has not been tested due
  1515. to higher priority tasks that have arisen.
  1516. Related to this change, support for the Cortex-M3 memory protection
  1517. unit (MPU) has been integrated with the NuttX kernel build to provide
  1518. an even higher level of security.
  1519. NOTE: This kernel build is an option; the default build configuration
  1520. is still the standard, flat, unsecured RTOS as in previous releases.
  1521. Additional new features in this release:
  1522. * Support for LPC17xx GPIO interrupts (with much support from
  1523. Decio Renno).
  1524. * Basic timer support for STM32 (Contributed by Uros Platise)
  1525. * A binfs file system. This is a tiny pseudo file system that
  1526. lets named applications to be viewed and accessed in NSH under
  1527. the /bin directory.
  1528. * An I2C-based driver for the LIS331DL MEMS motion sensor.
  1529. (Contributed by Uros Platise.)
  1530. * A configuration for the Embedded Artists LPCXpresso LPC1768 board.
  1531. * The user_initialize() interface has been removed.
  1532. And several bugfix associated with SD drivers, opendir(), signed
  1533. 8-bit types (int8_t), and USB serial device. See the ChangeLog for
  1534. details.
  1535. NuttX-6.2
  1536. ---------
  1537. The 69th release of NuttX, Version 6.2, was made on May 6, 2011 and
  1538. is available for download from the SourceForge website. The 6.2
  1539. release includes several new features:
  1540. * NXFFS: The obvious new feature is NXFFS, the NuttX wear-leveling
  1541. FLASH file system. This new file system is intended to be
  1542. small for the MCU usage and has some limitations. No formal
  1543. documentation of NXFFS yet exists. See the fs/nxffs/README.txt
  1544. file for details (see
  1545. http://svn.code.sf.net/p/nuttx/code/trunk/nuttx/fs/nxffs/README.txt?view=log)
  1546. * Support for NXP LPCXpresso LPC1768 board on the Embedded
  1547. Artists base board. The Code Red toolchain is supported under
  1548. either Linux or Windows. Verified configurations include
  1549. dhcpd, nsh, nx, ostest, thttpd, and usbstorage.
  1550. * Support for the Univision UG-9664HSWAG01 OLED with Solomon
  1551. Systech SD1305 LCD controller.
  1552. * A new RAM MTD driver with FLASH simulation capability.
  1553. * A version.h file is now automatically generated so that C code
  1554. can now be version aware.
  1555. In addition to these new feature, several important bugfixes are
  1556. included in this release correcting problems with dup2(), LPC17xx
  1557. GPIO interrupts, LPC17xx UART2/3, the FAT file system, build issues,
  1558. and strrch(). See the ChangeLog for more details.
  1559. NuttX-6.3
  1560. ---------
  1561. The 70th release of NuttX follows only a nines days after the release
  1562. of version 6.2. It was released on May 15, 2011. This special
  1563. back-to-back release was made so that the current released version
  1564. of NuttX will correspond to the initial release from the RGMP
  1565. project.
  1566. This release adds architecture support and build configuration for
  1567. RGMP. RGMP is a project for running GPOS and RTOS simultaneously
  1568. on multi-processor platforms. See
  1569. http://rgmp.sourceforge.net/wiki/index.php/Main_Page for further
  1570. information about RGMP.
  1571. This release also includes support for STM32 FLASH, build improvements,
  1572. and initial, incomplete support for the MicroChip PIC32MX MCU. Bug
  1573. fixes are included for some build problems, USB host class driver
  1574. error handling, NX graphics color mapping, and problems with C
  1575. standard I/O buffer flushing. See the ChangeLog for further details.
  1576. NuttX-6.4
  1577. ---------
  1578. The 71st release of NuttX, Version 6.4, was made on June 5, 2011
  1579. and is available for download from the SourceForge website. The
  1580. 6.4 release includes several new features:
  1581. * A new, full-featured FTP client. This client may be used as a library
  1582. for automated FTP or via an FTP client shell. The FTP shell
  1583. supports the following commands: cd, chmod, get, help, idle,
  1584. login, ls, quit, mkdir, noop, put, pwd, rename, rhelp, rm,
  1585. rmdir, size, time, and up. A configuration is available for
  1586. the NXP LPC17xx to demonstrate this functionality.
  1587. * A functional C1101 wireless driver (contributed by Uros Platise)
  1588. * A PCI-based E1000 Ethernet driver (contributed by Yu Qiang)
  1589. * New C library functions: inet_addr() (contributed by Yu Qiang),
  1590. strndup(), asprintf()
  1591. * Reduced memory allocation overhead for MCUs with small heaps (<64K).
  1592. * fdopen() now works with socket descriptors allowing standard
  1593. buffered C functions to be used for network communications.
  1594. * The NSH ifconfig command can now be used to set or change the
  1595. IP address (contributed by Yu Qiang)
  1596. This release also includes some completed but untested functionality.
  1597. * The MicroChip PIC32MX port is now code complete and ready to
  1598. begin testing. Unfortunately, testing will be delayed due to
  1599. tool issues.
  1600. * Support for the NXP LPC315x MCUs.
  1601. Additional miscellaneous enhancements and bug fixes to task_delete(),
  1602. recvfrom(), and other changes as noted in the ChangeLog.
  1603. NuttX-6.5
  1604. ---------
  1605. The 72nd release of NuttX, Version 6.5, was made on June 21, 2011
  1606. and is available for download from the SourceForge website. The
  1607. 6.5 release is all about support for the Atmel 8-bit AVR family.
  1608. I have been interested in the AVR family for some time but because
  1609. of the severe SRAM constraints and because of the availability of
  1610. many tiny schedulers for the AVR, it has not been "on the radar
  1611. screen." However, I have recently become interested because of
  1612. interest expressed by members of the forum and because of the
  1613. availability of newer, larger capacity AVR parts (that I don't have
  1614. yet).
  1615. This release corresponds with SVN release number: r3730
  1616. This release includes support for the following AVR boards. As
  1617. with any initial support for new architectures, there are some
  1618. incomplete areas and a few caveats that need to be stated. Here
  1619. they are, ordered from the least to the most complete:
  1620. * SoC Robotics Amber Web Server (ATMega128).
  1621. This port of NuttX to the Amber Web Server from SoC Robotics
  1622. (http://www.soc-robotics.com/index.htm). Is only partially in
  1623. place. The Amber Web Server is based on an Atmel ATMega128
  1624. (128K FLASH but only 4K of SRAM).
  1625. STATUS: Work on this port has stalled due to toolchain issues. It
  1626. is complete, but untested.
  1627. * Micropendous 3 AT9USB647
  1628. This port of NuttX to the Opendous Micropendous 3 board. The
  1629. Micropendous3 may be populated with an AT90USB646, 647, 1286,
  1630. or 1287. See http://code.google.com/p/opendous/. I have only
  1631. the AT90USB647 version for testing. This version has very
  1632. limited memory resources: 64K of FLASH and 4K of SRAM.
  1633. STATUS: The basic port was released in NuttX-6.5. This basic
  1634. port consists only of a "Hello, World!!" example that demonstrates
  1635. initialization of the OS, creation of a simple task, and serial
  1636. console output. The tiny SRAM limits what you can do with the
  1637. AT90USB647 (see issues below).
  1638. * PJRC Teensy++ 2.0 AT9USB1286
  1639. This is a port of NuttX to the PJRC Teensy++ 2.0 board. This
  1640. board was developed by PJRC (http://pjrc.com/teensy/). The
  1641. Teensy++ 2.0 is based on an Atmel AT90USB1286 MCU with 128K
  1642. of FLASH and 8K of SRAM; a little more room to move than the
  1643. AT90USB647.
  1644. STATUS: The basic port was released in NuttX-6.5. This basic
  1645. port consists of a "Hello, World!!" example and also slightly
  1646. simplified NuttShell (NSH) configuration (see the NSH User Guide
  1647. at http://www.nuttx.org/NuttShell.html).
  1648. An SPI driver and a USB device driver exist for the AT90USB as
  1649. well as a USB mass storage configuration. However, this
  1650. configuration is not fully debugged as of the NuttX-6.5 release.
  1651. AVR-specific issues. The basic AVR port is solid and biggest issue
  1652. for using AVR is its tiny SRAM memory and its Harvard architecture.
  1653. Because of the Harvard architecture, constant data that resides to
  1654. flash is inaccessible using "normal" memory reads and writes (only
  1655. SRAM data can be accessed "normally"). Special AVR instructions
  1656. are available for accessing data in FLASH, but these have not been
  1657. integrated into the normal, general purpose OS.
  1658. Most NuttX test applications are console-oriented with lots of
  1659. strings used for printf and debug output. These strings are all
  1660. stored in SRAM now due to these data accessing issues and even the
  1661. smallest console-oriented applications can quickly fill a 4-8K
  1662. memory. So, in order for the AVR port to be useful, one of two
  1663. things would need to be done:
  1664. 1. Don't use console applications that required lots of strings.
  1665. The basic AVR port is solid and your typical deeply embedded
  1666. application should work fine.
  1667. 2. Create a special version of printf that knows how to access
  1668. strings that reside in FLASH (or EEPROM).
  1669. NuttX-6.6
  1670. ---------
  1671. The 73rd release of NuttX, Version 6.6, was made on July 11, 2011
  1672. and is available for download from the SourceForge website. The
  1673. 6.6 release adds several smaller features but is mostly a bugfix
  1674. release.
  1675. Bugfixes include
  1676. * Fixed several NX Graphics bugs: Rendering fonts at >8 bits-per-pixel,
  1677. graphics move logic, and display artifacts that appear when a
  1678. window is closed.
  1679. * Corrections to the USB host mass storage class driver
  1680. * STM32 bugfixes: serial driver, GPIO interrupt handling
  1681. * LPC17xx: Changes for a success compilation with no console.
  1682. * Corrections to the Teensy AT90USB SD driver
  1683. * Changes for a clean compilation under the ZDS-II toolchain.
  1684. Minor features:
  1685. * Add logic to extract printf strings from FLASH (but there are
  1686. still printf issues for that target)
  1687. * Added a configuration for the Sure Electronics PIC32MX board.
  1688. However, higher priority tasks have stopped work on that
  1689. configuration.
  1690. * Added several new configurations for the STMicro STM3210E-EVAL
  1691. board.
  1692. * Added support for the STM3210E-EVAL board: (1) LCD in either
  1693. landscape or portrait mode, and (2) interrupting buttons.
  1694. * Added a configuration option to use different serial ports for
  1695. debug and for the NSH serial console (there are some issues
  1696. with CR-LF expansion and character echo if NSH is not run on
  1697. the console).
  1698. * Standardized the button press and button interrupt interfaces
  1699. so that they are common across all boards.
  1700. * Added a new graphics example that focuses on placing text on
  1701. the background while pop-up windows occur. Text should continue
  1702. to update normally with or without the popup windows present.
  1703. * Added ARM stack checking logic.
  1704. See the ChangeLog for a detailed description of these changes.
  1705. NuttX-6.7
  1706. ---------
  1707. The 74th release of NuttX, Version 6.7, was made on August 2, 2011
  1708. and is available for download from the SourceForge website. Note
  1709. that release consists of two tarballs: nuttx-6.7.tar.gz and
  1710. apps-6.7.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  1711. file for build information). Changes in this release are summarized
  1712. below:
  1713. * New OS APIs: Add the standard sem_timedwait() interface.
  1714. * FAT File System: Adds (optional) support for VFAT long file
  1715. names.
  1716. * USB: Now the mass storage device can be connected when needed
  1717. and disconnected when not needed (or re-connected as a different
  1718. kind of device).
  1719. * Touchscreen Support: Defined a new NuttX touchscreen interface.
  1720. Added a driver for the TI TSC2007 touchscreen controller chip.
  1721. * NX Fonts: Add support for multiple fonts; developed a tool to
  1722. convert open source fonts into NuttX format; Converted and
  1723. installed nine new, high quality fontsets.
  1724. * NX Graphics: Add new NX APIs to support drawing of wide lines
  1725. in any orientation. Added new low level routines to set
  1726. individual pixel more efficiently.
  1727. * Build system: Added a export target that will bundle up all
  1728. of the NuttX libraries, header files, and the startup object
  1729. into an exportable tarball.
  1730. * LPC17xx: A CAN driver was contributed by Li Zhuoyi (Lzyy).
  1731. * STM32: New NX-related configurations to exercise text and
  1732. graphic image displays.
  1733. * C Library: Added a fixed precision atan2() math function.
  1734. * Bugfixes: Serial RX overrun error, FAT upper/lower NT 8.3 name
  1735. handling fixed. FAT directory allocation and initialization
  1736. bug. STM32 SDIO DMA race condition bug. eZ80 UART1 serial
  1737. driver errors (Paul Osmialowski)
  1738. NuttX-6.8
  1739. ---------
  1740. The 75th release of NuttX, Version 6.8, was made on August 19, 2011
  1741. and is available for download from the SourceForge website. Note
  1742. that release consists of two tarballs: nuttx-6.8.tar.gz and
  1743. apps-6.8.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  1744. file for build information). Changes in this release are summarized
  1745. below:
  1746. * NuttX has been ported to run on the Freescale Cortex-M4 "Kinetis"
  1747. boards. Two board ports are available for (1) the Kinetis
  1748. KwikStik-K40 and (2) the Kinetis TWR-K60N512 tower.
  1749. * Support for RGMP 0.3. This version of RGMP now runs on the
  1750. OMAP4430 (arm) pandaboard
  1751. * LPC17xx CAN driver extended to support both CAN1 and CAN2
  1752. (submitted by Li Zhuoy (Lzzy))
  1753. * Fixed several critical bugs related to signal handling
  1754. initialization and for signals the wake up tasks that are waiting
  1755. to send or receive message queues.Both are important. (submitted
  1756. by hkwilton).
  1757. * drivers/can.c: Fixed a semaphore overflow problem in the CAN
  1758. driver (reported by Li Zhouy (Lzzy)).
  1759. * Added a new ADC driver infrastructure and TI ADS1255 driver
  1760. both developed and submitted by Li Zhouy (Lzzy)).
  1761. See the Changelog for additional changes included in this release.
  1762. NuttX-6.9
  1763. ---------
  1764. The 76th release of NuttX, Version 6.9, was made on September 11, 2011
  1765. and is available for download from the SourceForge website. Note
  1766. that release consists of two tarballs: nuttx-6.9.tar.gz and
  1767. apps-6.9.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  1768. file for build information).
  1769. This release includes a few new features and several important bug fixes.
  1770. The new features (some still incomplete) include:
  1771. * Analog Support/ NXP LPC17xx: New DAC sub-system including ADC and DAC
  1772. drivers for the LPC17xx. Extensions to the ADS1255 driver.
  1773. (Contributed by Li Zhuoyi (Lzyy))
  1774. * Power Management: Added a new NuttX power management sub-system for
  1775. controlling and coordinating reduced power states. At present, only
  1776. verified in a simulation environment.
  1777. * I2C Test Tool: A new application was added that can be used to
  1778. verify and debug I2C interfaces from the NuttShell (NSH) command
  1779. line.
  1780. * NuttShell (NSH): In addition to the I2C test tool, a date command
  1781. is now supported (if CONFIG_RTC is defined) that can be used to
  1782. read and set the RTC.
  1783. * NXP LPC17xx: I2C and DAC driver for the NXP LPC17xx family submitted by Li Zhuoyi
  1784. (Lzyy)
  1785. * Kinetis Cortex-M4: Added a SDHC driver for the Kinetis parts.
  1786. Complete debug of the Kinetis SDHC driver was not completed, however,
  1787. do to some higher priority tasks that forced me to stop work.
  1788. * Other new drivers: Driver for I2C-based at24cxx EEPROM submitted by
  1789. Li Zhuoyi (Lzyy); Driver for the LM-75 temperature sensor. Support
  1790. for the LM-75 temperature sensor integrated into the SM3210E-EVAL
  1791. development board.
  1792. * NuttX Graphics (NX): Added new NX interfaces for drawing circles,
  1793. both circle outlines and filled circles.
  1794. * FLASH: Added a function that accepts the path to a block driver and
  1795. then erases the underlying FLASH memory
  1796. * Build System: The Make export logic now also tries to track down all
  1797. architecture-specific header files and include these in the NuttX
  1798. export bundle as well. Various changes and modifications so that
  1799. NuttX wil build on FreeBSD using the ASH shell (submitted by Kurt Lidl).
  1800. Bugfixes, order roughly on decreasing criticality include:
  1801. * STM32 I2C Driver: Add resets, timeout, and other fixes to work
  1802. reliably with the I2C tool. Corrected a major error introduced in
  1803. NuttX 6.8.
  1804. * BCH Driver. Several important bugs (noted by Li Zhuoyi (Lzyy))
  1805. were fixed.
  1806. * C Library: Fixed errors in gmtime() and gmtime_r() that could lead to
  1807. errors in date calculations.
  1808. * Timing: Correct an error in the tv_nsec calculation that happens
  1809. only config CONFIG_RTC is enabled
  1810. * Build System: Use of -print-libgcc-file-name to get path to
  1811. libgcc.a might select the wrong libgcc.a if a multilib toolchain
  1812. is used
  1813. NuttX-6.10
  1814. ----------
  1815. The 77th release of NuttX, Version 6.10, was made on October 6, 2011
  1816. and is available for download from the SourceForge website. Note
  1817. that release consists of two tarballs: nuttx-6.10.tar.gz and
  1818. apps-6.10.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  1819. file for build information).
  1820. This release corresponds with SVN release number: r4028
  1821. This release includes a few new features and several important bug fixes.
  1822. The new features (some still incomplete) include:
  1823. * CDC ACM serial class device-side driver
  1824. * RTC: Now supports hi-res and lo-res hardware RTC. The lo-res RTC
  1825. runs at 1Hz.
  1826. * STM32 I2C driver. Now supports faster, polled mode of operation.
  1827. Added an I2C trace capability.
  1828. * ADS7843E touchscreen driver. As used on the SAM3U-EK development
  1829. board.
  1830. * AT91SAM3U SPI driver. To support the ADS7843E toucscreen
  1831. * X11 Support on simulation target. Build errors in the X11 windows
  1832. for the simulated target have been correct. Added support for a
  1833. simulated touchscreen on the X11 window (based on mouse inputs).
  1834. * System Timer. Added support for a 64-bit system timer.
  1835. * TIFF Support. Added a TIFF library (currently used for storing
  1836. LCD screen shots).
  1837. * LCD Support. Added a test to verify that we read and write correct
  1838. to LCD GRAM memory.
  1839. * I2C tool. Extended to support to include a verify command and
  1840. repititions and auto-address increment for most commands.
  1841. * USB terminal example. Line oriented serial bridge connects a host
  1842. USB serial terminal to a host UART serial terminal.
  1843. * Build System. apps/ Makefile will now include external directories
  1844. in the application build.
  1845. Bugfixes, order roughly on decreasing criticality include:
  1846. * Message Queues. Correct errors in mq_timedsend() and
  1847. mq_timedrecieve().
  1848. * FAT. Writes that cross sector boundaries, stray write into the FAT,
  1849. and a FAT long file name issue
  1850. * NXFFS. Added a missed error check. Files cannot be opened for
  1851. writing if they are already opened for reading.
  1852. * Library: fopen() for append modse was not appending.
  1853. * STM32 I2C driver. Correct another conflict between concurrent FSMC
  1854. and I2C1 accesses. Fixed some bad error detection logic.
  1855. * STM32 SDHC driver. Interrupts were being left disabled.
  1856. NuttX-6.11
  1857. ----------
  1858. The 78th release of NuttX, Version 6.11, was made on November 12, 2011
  1859. and is available for download from the SourceForge website. Note
  1860. that release consists of two tarballs: nuttx-6.11.tar.gz and
  1861. apps-6.11.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  1862. file for build information).
  1863. This release corresponds with SVN release number: r4090
  1864. This release is a maintenance release that includes a few new features
  1865. and some important bugfixes. New features include:
  1866. * NX Graphics: New interfaces to read from graphics memory
  1867. * Drivers: AT24 FLASH driver will now supports clustering of blocks
  1868. to achieve a larger, more usable block size for NXFFS.
  1869. * STM32: LCD color corrections
  1870. * PIC32: Board configuration for the Microchip PIC32 Ethernet Starter kit
  1871. (not yet verified), new GPIO support library, button and LED support
  1872. for the Sure Electronics PIC32MX board. A lot of progress has been
  1873. made on the PIC32 NuttX port, but it is still not ready for prime time.
  1874. * NXP LPC3152: Board configuration for the Embedded Artists EA3152.
  1875. Bugfixes, order roughly on decreasing criticality include:
  1876. * NXFFS: Corrected critical bugs in initialization, some full FLASH handling,
  1877. and errors in certain cases where the FLASH is repacked.
  1878. * ARM EABI: Fix stack aligment required for passing floating point values.
  1879. * Build system: Fix build issues when g++ is used as the compiler.
  1880. * NX Graphics: Bitmap error handling, correct RGB color conversion macros,
  1881. Error when the background window is released.
  1882. * STM32: RTC build fixes, LCD color corrections
  1883. * Simulation target: build fixes
  1884. * C Library: fclose() return value.
  1885. See the change log for more detailed information.
  1886. NuttX-6.12
  1887. ----------
  1888. The 79th release of NuttX, Version 6.12, was made on December 6, 2011
  1889. and is available for download from the SourceForge website. Note
  1890. that release consists of two tarballs: nuttx-6.12.tar.gz and
  1891. apps-6.12.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  1892. file for build information).
  1893. This release corresponds with SVN release number: r4141
  1894. New features in this release include:
  1895. * STM32. Basic support added for the STM32 F4 family. Board support
  1896. verified for the STMicro STM3250G-EVAL board.
  1897. * FAT. Enhanced partition handling.
  1898. * SDIO-Based SD Card support. Add support for large (>4Gb) devices
  1899. * Graphics. Added four new small sans serif fonts.
  1900. * Drivers. Fix a banding problem with the R61580 LCD.
  1901. Bugfixes, order roughly on decreasing criticality include:
  1902. * FAT. Fix errors in how the first entries in the root directory are
  1903. added. Fix errors in FAT date/time handling.
  1904. * Signals. Fix bug in certain sig_timedwait() error handling.
  1905. * Drivers. Fix cloned errors in poll() handling in several drivers.
  1906. * Message Queues. errno was not being set correctly by mq_notify().
  1907. * C Library. wchar_t is a built-in type for C++
  1908. NuttX-6.13
  1909. ----------
  1910. The 80th release of NuttX, Version 6.13, was made on December 26, 2011
  1911. and is available for download from the SourceForge website. Note
  1912. that release consists of two tarballs: nuttx-6.13.tar.gz and
  1913. apps-6.13.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  1914. file for build information).
  1915. This release corresponds with SVN release number: r4231
  1916. New features in this release include:
  1917. * Drivers. New standard interface for PWM drivers and common
  1918. "upper half" PWM driver. Updated the MP25x driver to support
  1919. the Macronix MX25 chips (submitted by Mohammad Elwakeel).
  1920. * STM32 F1/F4. Added an Ethernet driver, ADC drivers, DAC driver,
  1921. PWM driver, CAN driver, F4 RTC driver, F4 DMA support,
  1922. logic for saving/restoring F4 FPU registers in context switches.
  1923. * STM32 Boards. Added STM3240G-EVAL DHPCD and nettest configuration.
  1924. Support for a new STM32 board, the HY-Mini STM32v board, was
  1925. contributed by Laurent Latil
  1926. * PIC32. The port to the Microchip PIC32MX is finally functional and
  1927. reliable. The NuttX PIC32 port has verified configurations for
  1928. the OS test and the NuttShell (NSH) both exist.
  1929. * Tests: New re-usable tests (in apps/examples) for PWM, ADC, and
  1930. CAN loopback. Several existing tests can now be built as NSH built-in
  1931. applicaitons (dhcpd, nettest, and all of the new tests).
  1932. Bugfixes, order roughly on decreasing criticality include:
  1933. * STM32: Correct handling of data overrun conditions. Existing logic
  1934. would hang with infinite interrupts when a data overrun occurred.
  1935. * DHCPD. Fix several problems using host order address where network
  1936. addresses expected (and vice versa).
  1937. And several others. See the ChangeLog for more details.
  1938. NuttX-6.14
  1939. ----------
  1940. The 81st release of NuttX, Version 6.14, was made on January 15, 2012,
  1941. and is available for download from the SourceForge website. Note
  1942. that release consists of two tarballs: nuttx-6.14.tar.gz and
  1943. apps-6.14.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  1944. file for build information).
  1945. This release corresponds with SVN release number: r4301
  1946. New features in this release include:
  1947. * Drivers. The upper-half PWM driver will now support a pulse count (as
  1948. would be needed to control a stepper motor).
  1949. * STM32. The CAN driver has been verified in loopback mode. ADC driver
  1950. support for the STM32 F4. Add support for UART4-5 and USART6
  1951. (Contributed by Mike Smith). The PWM driver now supports a pulse
  1952. count for TIM1 and TIM8. Timer driver now supports the F4's 32-bit
  1953. timers (Contributed by Mikhail Bychek)
  1954. * STM32F4Discovery. Support for the STM32F4-Discovery board contributed
  1955. by Mike Smith.
  1956. * STM3240G-EVAL. Add support for user control of LEDs.
  1957. * LPC17xx. Add support for loopback mode to CAN driver. CAN TX done
  1958. perations are now interrupt driver. Now supports configurable CAN bit
  1959. rate.
  1960. * LPC1766-STK. Add support for on-board buttons. Add support for user
  1961. control of LEDs.
  1962. * LM3S. Add support for the LM3S6432S2E on the TI RDK-S2E (Contributed
  1963. by Mike Smith)
  1964. * PIC32MX. USB device-side driver (needs further testing). A partial
  1965. Ethernet driver is also in place.
  1966. * Library. Support added for fixed floating point fieldwidths in output
  1967. formatting (Contributed by Mikhail Bychek)
  1968. * Build. New targets apps_clean and apps_distclean to simplify working
  1969. with application diretories.
  1970. Bugfixes include:
  1971. * Drivers. Fixed a buffer-full test in the upper-half CAN driver.
  1972. * STM32. GPIO initialize logic (submitted by Mike Smith). Fix the
  1973. debug logic that dumps the GPIO configuration.
  1974. * LPC17xxx. Correct an integeter overlow in GPIO interrupt setup
  1975. (prevented pins > 15 from being used as interrupt sources). Correct
  1976. a value used in GPIO interrupt number range test.
  1977. * FAT. Now returns the correct error value when it is unable to
  1978. recognize the file system.
  1979. * Build. MAC OS build fixes (submitted by Mike Smith)
  1980. And several others. See the ChangeLog for more details.
  1981. NuttX-6.15
  1982. ----------
  1983. The 82nd release of NuttX, Version 6.15, was made on February 12, 2012,
  1984. and is available for download from the SourceForge website. Note
  1985. that release consists of two tarballs: nuttx-6.15.tar.gz and
  1986. apps-6.15.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  1987. file for build information).
  1988. This release corresponds with SVN release number: r4387
  1989. New features and extended functionality:
  1990. * General Drivers: Add support for (29-bit) extended CAN IDs. Add an
  1991. infrastructure to support battery drivers. Add a driver for MAX17040x
  1992. battery "fuel gauge". Add support for Composite USB drivers (in
  1993. particular for a CDC/ACM with MSC USB composite driver).
  1994. Added a new RAM logging driver. This will allow debug output into
  1995. a RAM buffer associated with a character driver at /dev/ramlog.
  1996. Added the new command 'dmesg' to NSH that can be used to dump the
  1997. current contents of the log. This is useful for systems that do not
  1998. have the usual serial console (for example, if you only have a
  1999. Telnet console with NSH).
  2000. * Networking: Add a lower level, primitive socket interface. Telnet
  2001. driver:
  2002. A New Telnet daemon was created. It wraps a Telnet session within a
  2003. character driver that can serve as a "controlling terminal." The
  2004. Telnet session will then be inherited by tasks created from the
  2005. Telnet session and the stdin/stdout from the created task will
  2006. still go through the same Telnet connection.
  2007. * STM32 Drivers. PWM driver pulse count was limited to 128; now is
  2008. (essentially) unlimited. Add support for (29-bit) extended CAN IDs.
  2009. Add support for I2C3. The SDIO driver is (mostly) verified on the
  2010. STM32 F4 platforms.
  2011. * LPC17xx Drivers. Extended the CAN driver so that the TSEG1 and TSEG2
  2012. bit times can be set via the NuttX configuration. Add support for
  2013. (29-bit) extended CAN IDs.
  2014. * PIC32 Drivers. The PIC32 Ethernet driver is code complete (but still
  2015. untested).
  2016. * FTPD. Add a new FTP server daemon. This is based loosely on
  2017. the hwport_ftpd library provided by Jaehyuk Cho.
  2018. * Library: Add support for on_exit(). Implemented tcsetattr() and
  2019. tcgetattr(). Moved the old, too-smart fgets() to a new application
  2020. library function called readline(). Dumbed down the original fgets().
  2021. Add strcasestr(), avsprintf(), inet_ntop(), and inet_pton().
  2022. Add support to enable or disable debug output.
  2023. * Build system: Support for building a 32-bit simulation executable on
  2024. a 64-bit Linux machine. Correct a dependency issue in the arch/*/src/board
  2025. directory.
  2026. Bugfixes:
  2027. * System: Correct PTHREAD_MUTEX_INITIALIZER
  2028. * FAT: Fix an error in the FAT statfs() reported by David Sidrane.
  2029. * STM32: Fix clock frequencies for APB2 timers. Correct AFIO register
  2030. offset.
  2031. * PIC32. Correct GPIOs used for LEDs on the Sure PIC32MX board.
  2032. * NSH. Wait for a USB connection if a USB serial class is used to
  2033. interface with the host.
  2034. Additional bugfixes, name changes, and other differences as detailed in the
  2035. ChangeLog.
  2036. NuttX-6.16
  2037. ----------
  2038. The 83rd release of NuttX, Version 6.16, was made on March 10, 2012,
  2039. and is available for download from the SourceForge website. Note
  2040. that release consists of two tarballs: nuttx-6.16.tar.gz and
  2041. apps-6.16.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2042. file for build information).
  2043. This release corresponds with SVN release number: r4475
  2044. New features and extended functionality:
  2045. * ARMv7M Support: Includes new, streamlined Cortex-M exception
  2046. handling provided by Mike Smith. Context switching support for the
  2047. Cortex-M4 FPU registers is now provided (in both "lazy" and "non-lazy"
  2048. modes)
  2049. * General Drivers: Added a generic "upper half" Quadrature Encoder driver.
  2050. The USB CDC/ACM serial driver can now be dynamically connnected or
  2051. disconnected from the host (programmatically or using NSH commands).
  2052. * STM32 Drivers: Added a "lower half" Quadrature Encoder driver.
  2053. Verified the STM32 F4 DMA driver; Added F4 DMA support to the existing
  2054. STM32 SDIO driver.
  2055. * STM32 Board Support. Added support for the STM32 F2 family and
  2056. for the STM3220G-EVAL board (contributed by Gary Teravskis).
  2057. Support is now included for C++ static constructors (verified using
  2058. the Atollic toolchain). Added support for the SRAM available on the
  2059. STM3240G-EVAL board.
  2060. * PIC32 Drivers. PIC32MX USB (device) driver is now functional.
  2061. The PIC32MX Ethernet driver not yet fully verified (and an
  2062. unverified SPI driver is also available).
  2063. * Networking. Added a lower-level, thread-independent socket layer.
  2064. Parts of this layer were created in 6.15 to support the FTPD
  2065. controlling terminal; this support has been extended in order
  2066. to support an NFS file system (not yet released).
  2067. * NuttShell (NSH). NSH will now support a USB serial connection for
  2068. the console (such as CDC/ACM). This is useful in environments
  2069. where there is no physical serial port on the board.
  2070. * Build System. Reorgnaization of networking header files.
  2071. Critical Bugfixes. The following bug fixes are considered critical:
  2072. * Networking: Fixed a "leak" in the TCP/IP read-ahead buffering logic.
  2073. Corrected an error in TCP/IP sequence numbering/ACK logic which
  2074. occurred when read-ahead buffering memory is exhausted.
  2075. * STM32 Drivers: Fixed an buffer sizing error in the STM32 Ethernet
  2076. driver.
  2077. Additional Bugfixes: Other important bug fixes are listed below. See
  2078. the ChangeLog of a complete, detailed list of bug fixes.
  2079. * Networking: Corrected recv()/recvfrom() return value. Added logic to
  2080. monitor for loss of connection after a new connection has been
  2081. established via accept() (Contributed by Max Nekludov). Add
  2082. logic to select() to correctly handle POLLHUP (Contributed by Max
  2083. Nekludov)
  2084. Additional bugfixes, name changes, and other differences as detailed in the
  2085. ChangeLog.
  2086. NuttX-6.17
  2087. ----------
  2088. The 84th release of NuttX, Version 6.17, was made on April 14, 2012,
  2089. and is available for download from the SourceForge website. Note
  2090. that release consists of two tarballs: nuttx-6.17.tar.gz and
  2091. apps-6.17.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2092. file for build information).
  2093. This release corresponds with SVN release number: r4607
  2094. New features and extended functionality:
  2095. * Networking: Additional low-level, thread-independent socket
  2096. interfaces (for NFS client support).
  2097. * RTC: Added a new interface call clock_synchronize(). This function
  2098. will reload the system time from an RTC and is required when the
  2099. system re-awakens from certain deep-sleep modes.
  2100. * Graphics: Add NxConsole. This is a character device driver that
  2101. wraps an NX window and can be re-directed for stdout. This allows,
  2102. for example, a pop-up graphics window that contains a NuttShell (NSH)
  2103. session. A test of NxConsole is available at apps/examples/nxconsole.
  2104. * Watchdog Drivers: Added an interface definition an "upper half"
  2105. driver to support watchdog timers.
  2106. * Calypso: Support for TI Calypso-based cellphones (as supported by
  2107. the Osmocom-BB project) was contributed by members of the Osmocom-BB
  2108. team. This includes configurations for the Compal e88 and e99 phones.
  2109. * USB Device Interface: Needed to extend the USB device interface
  2110. because there was no mechanism for passing endpoint OUT data that
  2111. may need to accompany a setup request.
  2112. * STM32 drivers: Added some power management controls for entering
  2113. reduced power consumption states. An OTG FS driver was completed
  2114. and partially verified (this driver seems to be functional but since
  2115. it has been test so lightly, it might better be listed in the
  2116. next section "Work in progress").
  2117. * PIC32 drivers: The PIC32 Ethernet driver is now stable. The PIC32
  2118. USB device controller driver is now functional (but not yet stable).
  2119. * PIC32 boards: Added support for the Sure DB-DP11212 PIC32 General
  2120. Purpose Demo Board. There is now a PIC32 Starter Kit that
  2121. provides NSH only through a Telnet connection.
  2122. * Build System: Some header files were moved into include/nuttx.
  2123. The goal is to move any non-standard header files to include/nuttx
  2124. or include/arch. Moved include/math.h to include/nuttx/math.h;
  2125. this file is now only instantiated as the 'system' math.h if
  2126. CONFIG_ARCH_MATH_H=y is defined.
  2127. * Tools: Added tools/cmpconfig.c, a tool for comparing two
  2128. configuration files.
  2129. Work in progress. This release includes some partially completed
  2130. work that is still not ready for prime time.
  2131. * NFS Client: Work is progressing on support for an NFS client
  2132. file system. This is a port of the BSD NFS client file system
  2133. that is being done by Jose Pablo Rojas V.
  2134. * Automated Configuration: Automated configuration based on the
  2135. kconfig-frontends tool is being incorporated into the build
  2136. system. The configuration is still not complete enough for
  2137. general use in this release.
  2138. * STM32 Drivers: Added files that will (eventually) hold an STM32
  2139. OTG FS host driver. This is still a work in progress.
  2140. Bugfixes:
  2141. * Networking: Corrected a deadlock that only occurred when
  2142. executing the NSH 'ifconfig' command over Telnet.
  2143. * File system: Fix incorrect return errno value from read() when
  2144. the file is opened write-only.
  2145. * Graphics: Fix several compilation errors that have crept into the
  2146. multi-user NX server because of lack of use.
  2147. * STM32: In order to use CAN2, both CAN1 and CAN2 clocking must be
  2148. enabled. Fixed a troublesome bug in the STM32 F4 I2C driver that
  2149. resulting in timeouts.
  2150. * LPC17xx: Fixes for errors the crept in the LPC17xx DAC logic
  2151. Contributed by Lzyy).
  2152. * Build System: Reordered the link command line to account for new
  2153. versions of libgcc.a that require symbols from the application
  2154. (abort()).
  2155. NuttX-6.18
  2156. ----------
  2157. The 85th release of NuttX, Version 6.18, was made on May 19, 2012,
  2158. and is available for download from the SourceForge website. Note
  2159. that release consists of two tarballs: nuttx-6.18.tar.gz and
  2160. apps-6.18.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2161. file for build information).
  2162. The majority of changes in this release are focused on supporting the
  2163. synchronized release of NxWM, the NuttX tiny window manager. That
  2164. window manager is released as part of the NxWidgets package, but depends
  2165. upon many of the changes in this NuttX release.
  2166. This release corresponds with SVN release number: r4751
  2167. New features and extended functionality:
  2168. * Drivers. Added a watchdog timer driver infrastructure. Add general
  2169. support for STMicro STMPE811 I/O Expander/touchscreen device.
  2170. * STM32. Add support for the STM32 IWDG and WWDG watchodog timers. DMA
  2171. now supports cicular buffer mode; serial driver now uses circular
  2172. DMA to improve Rx performance (Contributed by Mike Smith).
  2173. * STM3240G-EVAL Board. Add support for the LCD and for the STMPE811
  2174. I/O Expander as a touchscreen controller.
  2175. * PIC32 Boards. Board support for the Mikroelektronika PIC32MX7
  2176. Multimedia Board (MMB) and for the Sparkfun UBW32 PIC32 board.
  2177. * NX. Framed windows are now draw in three colors instead of just two.
  2178. Numerous other extensions needed to support NxWM (see the ChangeLog
  2179. for details).
  2180. * Library. Add prctl() command that can be used to setting and getting
  2181. the names of threads. This (plus several other improvements and bug
  2182. fixes) are part of a larger effort to improve task monitoring
  2183. capabilities.
  2184. Work in progress. This release includes some partially completed
  2185. work that is still not ready for prime time.
  2186. * NFS Client. Work is progressing on support for an NFS client
  2187. file system. This is a port of the BSD NFS client file system
  2188. that is being done by Jose Pablo Rojas V.
  2189. * Automated Configuration. Automated configuration based on the
  2190. kconfig-frontends tool is being incorporated into the build
  2191. system. The configuration is still not complete enough for
  2192. general use in this release.
  2193. * STM32 Drivers. Added files that will (eventually) hold an STM32
  2194. OTG FS host driver. This is still a work in progress.
  2195. Bugfixes (see the change log for details) :
  2196. * sched_setscheduler() return value (Contributed by Richard Cochran).
  2197. * stdio. Ignore CONFIG_STDIO_LINEBUFFER if the file was opened in binary mode.
  2198. * fopen(). Correct an error in parsing open mode string.
  2199. * serial driver. Improved performance be reducing the amount of time
  2200. that Rx interrupts are disabled.
  2201. * recvfrom(). Fix a compilation problem.
  2202. * CDC/ACM device driver. Fix an infinite loop that occurs when the serial
  2203. device is unregistered.
  2204. * STM32 OTG FS device driver. Numerous fixes and the driver is partially
  2205. functional but there are still some issues that become apparent when
  2206. debug output is disabled.
  2207. * fcntl(). Always returned zero on success; however, some fcntl commands
  2208. need to return non-zero values on success.
  2209. * graphics: Many multi-use mode fixes added to support NxWM (see the
  2210. ChangeLog for details). Auto-raise is temporarily disabled in multi-
  2211. user mode because it causes some problems with NxWM.
  2212. * on_exit(): Fix compilation errors if CONFIG_SCHED_ONEXIT is enabled.
  2213. NuttX-6.19
  2214. ----------
  2215. The 86th release of NuttX, Version 6.19, was made on June 15, 2012,
  2216. and is available for download from the SourceForge website. Note
  2217. that release consists of two tarballs: nuttx-6.19.tar.gz and
  2218. apps-6.19.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2219. file for build information).
  2220. This release corresponds with SVN release number: r4847
  2221. This release features new support for a Network File System (NFS) client.
  2222. This feature allows a tiny, embedded MCU to mount a remote file system
  2223. exported by an NFS server and then to access the file system as it would
  2224. any local file system. Then the tiny MCU can effectively have terabytes
  2225. of storage!
  2226. This might be useful for data collection, for MCU configuration information,
  2227. for software updates, for providing modular, loadable code modes, controlling
  2228. a "farm" of MCUs, ... there are many possibilities and opportunities for
  2229. innovation!
  2230. The NuttShell (NSH) now supports the following command:
  2231. nfsmount <server-address> <mount-point> <remote-path>
  2232. That command will mount the remote NFS server directory <remote-path> at
  2233. <mount-point> on the target machine. <server-address> is the IP address of
  2234. the remote server.
  2235. The NFS development was the graduation project of Jose Pablo Rojas V. who
  2236. is a student at the Instituto Tecnológico de Costa Rica (ITCR, or TEC).
  2237. A lot of effort went into understanding what a tiny, embedded NFS client should
  2238. do and getting the target resource usage to a bare minimum. Only around a
  2239. kilobyte or so of memory is required to run the NFS client (and most of that
  2240. for I/O buffers). Jose Pablo has spent several months living with NFS and
  2241. should be congratulated.
  2242. Additional new features and extended functionality:
  2243. * Drivers: SSD1289 LCD driver, MIO283QT2 LCD driver
  2244. * LM3S: Additional register definition header files (contributed by Max
  2245. Neklyudov).
  2246. * STM32 Boards: The STM32F4Discovery will now support an SSD1289 LCD,
  2247. The STM3220G-EVAL board support is now equivalent to the STM3240G-EVAL
  2248. board support.
  2249. * PIC32 Boards: The Mikroelektronika PIC32MX7 MMB board port is now
  2250. functional, very complete, and stable.
  2251. * Graphics: The NxConsole will now take keyboard input from the NX graphics
  2252. subsystem. This means that if there are multiple NxConsole windows, only
  2253. the top instance that has focus will receive the keyboard input.
  2254. * apps/: Add the capability to use an arbitrary USB device as the console
  2255. (not necessarily /dev/console). Additional enhancements for USB consoles.
  2256. Added the 'mv' command.
  2257. Work in progress. This release includes some partially completed
  2258. work that is still not ready for prime time.
  2259. * Automated Configuration. Automated configuration based on the
  2260. kconfig-frontends tool is being incorporated into the build
  2261. system. The configuration is still not complete enough for
  2262. general use in this release.
  2263. * STM32 Drivers. Added files that will (eventually) hold an STM32
  2264. OTG FS host driver. This is still a work in progress.
  2265. Bugfixes (see the change log for details) :
  2266. * General: sleep() and usleep() return values, sig_timedwait() errno setting
  2267. on timeout.
  2268. * Drivers: STMPE811 touchscreen driver, USB PLC2303, USB CDC/ACM
  2269. * STM32: Several USB device controller driver fixes, F4 interrupt priorities
  2270. (contributed by Mike Smith).
  2271. * Graphics: Keyboard input, fill trapezoid bug
  2272. As well as other, less critical bugs (see the ChangeLog for details)
  2273. NuttX-6.20
  2274. ----------
  2275. The 87th release of NuttX, Version 6.20, was made on July 12, 2012,
  2276. and is available for download from the SourceForge website. Note
  2277. that release consists of two tarballs: nuttx-6.20.tar.gz and
  2278. apps-6.20.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2279. file for build information).
  2280. This release corresponds with SVN release number: r4937
  2281. Additional new features and extended functionality:
  2282. * Power Management: An evolving power management example is being
  2283. created by Diego Sanchez. This effort currently involves on the
  2284. STM32 F1 but clearly demonstrates the NuttX power management
  2285. system which will automatically drive the system to lower power
  2286. usage states due to lack of use.
  2287. * Drivers: Added a driver for the SST 25 SPI-based FLASH parts.
  2288. * PIC32: Added support for the PIC32MX1 and PIC32MX2 families.
  2289. Added support for the microchipOpen and Pinguino toolchains.
  2290. * NXP LPC43XX: Added support for the entire LPC43xx family
  2291. * PIC32 boards: Added support for the DTX1-4000L "Mirtoo" module
  2292. from http://www.dimitech.com/ (PIC32MX2).
  2293. * NXP LPC43XX Boards: Added support for NGX LPC4330-Xplorer board.
  2294. * NXP LPC17XX Boards: Added support for Micromint Lincoln60 board
  2295. (LPC1769).
  2296. * LM3S Boards: Add a configuration to support the TI/Stellaris
  2297. EKK-LM3S3B96 development board. Contributed by Jose Pablo Rojas V.
  2298. * Library: NuttX now supports platform-specific stdarg.h header
  2299. files.
  2300. Work in progress. This release includes some partially completed
  2301. work that is still not ready for prime time.
  2302. * Automated Configuration. Automated configuration based on the
  2303. kconfig-frontends tool is being incorporated into the build
  2304. system. The configuration is still not complete enough for
  2305. general use in this release.
  2306. * STM32 Drivers. Added files that will (eventually) hold an STM32
  2307. OTG FS host driver. This is still a work in progress.
  2308. Bugfixes (see the change log for details) :
  2309. * PIC32: GPIO output configuration (critical bug)
  2310. * STM32: Typos in pin mapping files.
  2311. * LM3S: Fixed an optimization related but that caused slow start-up
  2312. times if optimization was disabled.
  2313. * Library: Fixed signed extension but in all limit.h files
  2314. (reported by Lorenz Meier). inet_ntoa compilation failure
  2315. on Z80.
  2316. As well as other, less critical bugs (see the ChangeLog for details)
  2317. NuttX-6.21
  2318. ----------
  2319. The 88th release of NuttX, Version 6.21, was made on August 25, 2012,
  2320. and is available for download from the SourceForge website. Note
  2321. that release consists of two tarballs: nuttx-6.21.tar.gz and
  2322. apps-6.21.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2323. file for build information).
  2324. This release corresponds with SVN release number: r5052
  2325. Additional new features and extended functionality:
  2326. * Core: Add support for multiple registered atexit() functions. Syslog
  2327. extended: Now any character driver may be used for the debug logging
  2328. device. Mountpoint traversal logic.
  2329. * Drivers: Added support for the TI PGA112-7 amplifier/multiplexor.
  2330. * LPC43xx: Added clock ramp-up logic to run at 204 MHz
  2331. * LPC43xx Drivers: SPIFI block driver, RS-485 support, Minimal termios
  2332. support. Framework for USB0 device controller driver.
  2333. * LPC17xx Drivers: Minimal termios support
  2334. * STM32: Support for STM32 F1 "Value Line" (contributed by Mike Smith).
  2335. Add support for STM32 F107 "Connectivity Line" (contributed by Max
  2336. Holtzberg).
  2337. Clock restart logic needed for recovery from low power modes.
  2338. * STM32 Drivers: RTC alarm support. Usable for wakeup from sleep mode,
  2339. Minimal serial termios support. USB OTG FS host driver (alpha).
  2340. * STM32 Boards: Add power management hooks for the STM32F4Discovery,
  2341. Add support for the Olimex STM32-P107 (contributed by Max Holtzberg).
  2342. * PIC32: Add support for the Pinguino MIPS toolchain.
  2343. * PIC32 Drivers: GPIO driver now supports F1 analog regiaters (ANSEL).
  2344. * PIC32 Boards: Add support for the PGA117 on the Mirtoo module.
  2345. * Calypso: Add support for the SSD1783 LCD on the Compal E99.
  2346. * Library: cfsetispeed(), cfsetospeed(), tcflush(), memchr(), and
  2347. memccpy().
  2348. * Applications: Port of freemodbus-v1.5.0. Add support for testing
  2349. devices with multiple ADC, PWM, and QE devices.
  2350. NSH: NSH 'mount' command (with no arguments) will now show mounted
  2351. volumes. Add new NSH 'df' command. Extended 'help' support. NSH
  2352. now catches the return value from spawned applications (provided
  2353. by Mike Smith).
  2354. * Build System: mkconfig will not define CONFIG_DRAM_END. A lot of
  2355. progress has been made on the automated NuttX configuration logic
  2356. (Thanks go to Richard Cochran).
  2357. * Documentation: Document ways to customize the behavior of NSH.
  2358. Bugfixes (see the change log for details) :
  2359. * Serial drivers (all): Fix ioctl return value. Common "upper half"
  2360. serial driver will now return with EINTR if a serial wait is
  2361. interrupted by a signal.
  2362. * FAT: Fix statfs() file name length.
  2363. * LPC43xx: Clock configuration.
  2364. * STM32: Pinmap fixes, SPI driver re-initialization
  2365. * STM32 Boards: Correct and lower SDIO frequency for F2 and f4 boards.
  2366. * AVR: C++ build issues.
  2367. * PM: Fix a place where interrupts were not be re-enabled.
  2368. * Applications: NSH application start-up race conditions.
  2369. * Library: Fieldwidth and justification for %s format. Fixed several
  2370. issues with presenting floating point numbers. NULL definition
  2371. for C++
  2372. As well as other, less critical bugs (see the ChangeLog for details)
  2373. NuttX-6.22
  2374. ----------
  2375. The 89th release of NuttX, Version 6.22, was made on September 29, 2012,
  2376. and is available for download from the SourceForge website. Note
  2377. that release consists of two tarballs: nuttx-6.22.tar.gz and
  2378. apps-6.22.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2379. file for build information).
  2380. This release corresponds with SVN release number: r5206
  2381. Note that all SVN information has been stripped from the tarballs. If you
  2382. need the SVN configuration, you should check out directly from SVN. Revision
  2383. r5206 should equivalent to release 6.22 of NuttX 6.22:
  2384. svn checkout -r5206 svn://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
  2385. Or
  2386. svn checkout -r5206 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
  2387. Additional new features and extended functionality:
  2388. * RTOS: Application entry point is no longer user_start, but can be
  2389. configured using CONFIG_USER_ENTRYPOINT. NuttX now supports two work
  2390. queues: A lower priority work queue (for extended processing) and a
  2391. higher priority work queue (for quick, high priority operations).
  2392. * Memory Management: Added a new granule-based allocated that can be
  2393. used to manage, aligned and quantized DMA memory.
  2394. * File System: Add hooks to allocate I/O memory with and external
  2395. allocated (need if required by DMA).
  2396. * Networking: ENC28J60 driver is (finally) verified.
  2397. * Drivers: Add hooks USB device drivers to allocate I/O memory with and
  2398. external allocated (need if required by DMA). Driver for the Windbond
  2399. SPI FLASH family (W25x16, W25x32, W25x64, and others). ADS7843E driver
  2400. extended for TSC2046 and XPT2046 and verified.
  2401. * ARMv7-M: Added logic to reset the MCU using the NVIC.
  2402. * STM32: Add support for STM32F103VET6.
  2403. * STM32 Drivers: Add logic to re-initialize UARTs a second time to
  2404. enable DMA (Mike Smith). I2C driver error recovery (Mike Smith).
  2405. * STM32 boards: Support for USB host added add to several configurations
  2406. (or at least explained in README files). Support for the Shenzhou
  2407. STM32F107 board (see www.armjishu.com). Support for M3 Wildfire
  2408. STM32F103 board (v2 and v3).
  2409. * Build System: Kconfig string de-quoting logic. Remove comments from
  2410. defconfig files (Kate). Add tool to create NuttX-style symbol tables.
  2411. Numerous changes to configuration logic as needed for the new mconf-based
  2412. configuration (much of this from Richard Cochran). Refactor common
  2413. Make.defs logic into tools/Config.mk (Richard Cochran).
  2414. * Library: Configurable terse output from strerror(). Added perror() (Kate).
  2415. Add %n format to sscanf() (Kate).
  2416. * Applications: Numerous changes and extensions to the old uIP web server
  2417. (from Kate and Max Holtzberg, see the ChangeLog for specific extensions).
  2418. UDP network discovery utility (Max Holtzberg). Embeddable Lightweight
  2419. XML-RPC Server (http://www.drdobbs.com/web-development/an-embeddable-lightweight-xml-rpc-server/184405364, Max Holtzberg).
  2420. Bugfixes (see the change log for details). Some of these are very important
  2421. (marked *critical*):
  2422. * RTOS: Fixes to priority inheritance logic (*critical*). waitpid()
  2423. critical section. Assertion in work_cancel() (Mike Smith). mmap() (Kate).
  2424. * FAT File System: Improper Boolean expression caused un-necessary writes
  2425. and performance issues (*critical*, Ronen Vainish).
  2426. * Networking: Remove an un-necessary delay from recvfrom(). This greatly
  2427. improves network performance (*critical*, Max Holtzberg).
  2428. * Graphics: NX parameter checking errors.
  2429. * Drivers: Fix double release of memory in SDIO-based, MMC/SD driver
  2430. (Ronen Vainish).
  2431. * LPC17xx: Ethernet driver fixes needed for certain PHYs (Kate).
  2432. * AVR: Fix build error (Richard Cochran).
  2433. * STM32: USB OTG FS host driver NAKing an retries. Power management
  2434. compilation errors (Diego Sanchez). Missing SPI3 remap logic.
  2435. * STM32 Drivers: Fix for Ethernet errata for STM32F107 (*critical*).
  2436. Ethernet buffer alignment check. Add "kludge" to Ethernet driver to
  2437. handle DM9161 PHY which (at least on the Shenzhou board), sometimes
  2438. does not come up correctly.
  2439. * Applications: THTTPD (Kate). NSH ping when IP address is on a different
  2440. network (Darcy Gong).
  2441. * Library: fread(), fflush(), fdopen(): Fix error handling logic (Ronen
  2442. Vainish). Fix some field-width handling issues in sscanf()
  2443. As well as other, less critical bugs (see the ChangeLog for details)
  2444. NuttX-6.23
  2445. ----------
  2446. The 90th release of NuttX, Version 6.23, was made on November 5, 2012,
  2447. and is available for download from the SourceForge website. Note
  2448. that release consists of two tarballs: nuttx-6.23.tar.gz and
  2449. apps-6.23.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2450. file for build information).
  2451. This release corresponds with SVN release number: r5313
  2452. Note that all SVN information has been stripped from the tarballs. If you
  2453. need the SVN configuration, you should check out directly from SVN. Revision
  2454. r5313 should equivalent to release 6.23 of NuttX 6.23:
  2455. svn checkout -r5313 svn://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
  2456. Or
  2457. svn checkout -r5313 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
  2458. Additional new features and extended functionality:
  2459. * RTOS: If both atexit() and on_exit() are enabled, use on_exit() to
  2460. implement atexit(). Updates for RGMP 4.0.
  2461. * Binfmt: Add support for loading and executing ELF binary modules from
  2462. a file system.
  2463. * Drivers: Maxim MAX11802 touchscreen controller (Petteri Aimonen)
  2464. * STM32 Driver: Implementation of /dev/random using the STM32 Random Number
  2465. Generator (RNG).
  2466. * STM32 Boards: ADC support for the Shenzhou IV board. Relay support for
  2467. the Shenzhou IV board.
  2468. * C Library: Support is now included for the add-on uClibc++ C++
  2469. standard library support. This includes support for iostreams, strings,
  2470. STL, RTTI, exceptions -- the complete C++ environment. (uClibc++ is
  2471. provided as a separate add-on package due to licensing issues).
  2472. Optimized generic and ARM-specific memcpy() function. Optimized
  2473. memset() function.
  2474. Add support for ferror(), feof(), and clearerror(). Add support for
  2475. __cxa_atexit().
  2476. Math Library: Port of the math library from Rhombus OS by Nick Johnson
  2477. (Darcy Gong).
  2478. * Applications: New NSH commands: ifup, ifdown, urlencode, urldecode,
  2479. base64enc, bas64dec, md5 (Darcy Gong). Add support for NSH telnet login
  2480. (Darcy Gong). Enancements to NSH ping command to support pinging hosts
  2481. with very long round-trip times. Extensions to the ifconfig command
  2482. Darcy Gong),
  2483. Many extensions to the webclient/wget and DNS resolver logic from Darcy
  2484. Gong. JSON, Base64, URL encoding, and MD5 libraries contributed by Darcy
  2485. Gong.
  2486. New examples: ELF loader, JSON, wgetjson, cxxtest, relays.
  2487. Bugfixes (see the change log for details). Some of these are very important
  2488. (marked *critical*):
  2489. * Drivers: W25 SPI FLASH
  2490. * STM32 Drivers: ADC reset
  2491. * Graphics: Missing implementation of the blocked method (*critical*,
  2492. Petteri Aimonen).
  2493. * C Library: Floating point numbers in printf and related formatting functions
  2494. (Mike Smith), cf[get|set]speed() (Mike Smith)
  2495. As well as other, less critical bugs (see the ChangeLog for details)
  2496. NuttX-6.24
  2497. ----------
  2498. The 91st release of NuttX, Version 6.24, was made on December 20, 2012,
  2499. and is available for download from the SourceForge website. Note
  2500. that release consists of two tarballs: nuttx-6.24.tar.gz and
  2501. apps-6.24.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2502. file for build information).
  2503. This release corresponds with SVN release number: r5447
  2504. Note that all SVN information has been stripped from the tarballs. If you
  2505. need the SVN configuration information, you should check out directly from
  2506. SVN. Revision r5447 should equivalent to release 6.24 of NuttX 6.24:
  2507. svn checkout -r5447 svn://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
  2508. Or (HTTP):
  2509. svn checkout -r5447 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
  2510. Additional new features and extended functionality:
  2511. * RTOS:
  2512. - Implemented the POSIX pause() function (still has some compiance
  2513. issues).
  2514. - Tasking logic is extended to support the notion of address
  2515. environments. An address environment is the key notion underlying
  2516. "process" vs. tasks. If tasks are created with address environments
  2517. (by binfmt), the OS will propogate that environment to child threads
  2518. and will destroy the address environment when the "process" exists.
  2519. - If support for the PATH variable is enabled, the OS start up logic
  2520. will create an initial environment containing the default PATH
  2521. setting (CONFIG_PATH_INITIAL). This initial PATH will then be
  2522. inherited by all tasks.
  2523. * Binfmt
  2524. - The NuttX binary loaders have been updated to support the PATH
  2525. environment variable. Now, if the PATH is properly defined, programs
  2526. can be executed from mass storage using only the file name. This
  2527. feature is added to support more standard behavior (eventually, NSH
  2528. will support execution of programs in file systems by just entering
  2529. the file name, perhaps in 6.25?).
  2530. - The NXFLAT and ELF binary loaders have been extended to create
  2531. address environments for any new tasks executed from the file system.
  2532. This feature requires that the architecture support a memory management
  2533. unit (MMU) and the address environment interfaces declared in
  2534. include/nuttx/arch.h (currently, this is only supported by the z180).
  2535. * Drivers: LCD driver for the Univision UG-2864AMBAG01 OLED
  2536. * STM32: Support for STM32F100 high density chips contributed by Freddie
  2537. Chopin.
  2538. * STM32 Drivers: Added optional RS-485 direction bit control (from
  2539. Freddie Chopin).
  2540. * STM32 Boards:
  2541. - Support for generic STM32F100RC board contributed by Freddie Chopin.
  2542. - stm32f4discovery/nxlines: STM32F4Discovery support for the
  2543. UG-2864AMBAG01 OLED.
  2544. - stm32f4discovery/winbuild: A version of the NuttX OS test
  2545. configured to build natively on Windows.
  2546. - stm32f4discovery/elf: Now uses the PATH variable to find ELF
  2547. executables.
  2548. - configs/cloudctrl: Added for Darcy Gong's CloudController board
  2549. * PIC32 Boards: Update the Mirtool configuration for Release 2 of the
  2550. Mirtoo module.
  2551. * Calypso: Add Calypso keypad driver. From Denis Cariki.
  2552. * ZiLOG:
  2553. - Add support for the z180 chip family and, specifically, for
  2554. the P112 retro hardware (see http://p112.feedle.net/).
  2555. - All ZiLOG configurations updated to use the current ZDS-II
  2556. and/or SDCC toolchains.
  2557. * Graphics:
  2558. - Add a semaphore handshake so that operations on buffers from
  2559. the NXMU client will be blocked until the NX server operates on the
  2560. buffer data (from Petteri Aimonen).
  2561. - nxtk_subwindowmove() and nxtk_getwindow(): Improvements to clipping
  2562. logic from Petteri Aimonen.
  2563. * C Library: lib/ sub-directory renamed libc/ (there is a new lib/ sub-
  2564. directory that is used to hold all archives).
  2565. * C++: Exception stubs from Petteri Aimonen.
  2566. * Applications:
  2567. - Add NSH hexdump command to dump the contents of a file (or character
  2568. device) to the console (contributed by Petteri Aimonen).
  2569. - Extend the NSH ifconfig command plus various DHCPC improvements
  2570. (from Darcy Gong).
  2571. * apps/examples:
  2572. - ostest: Replace large tables with algorithmic prime number
  2573. generation. This allows the roundrobin test to run on platforms
  2574. with minimal SRAM (Freddie Chopin).
  2575. - keypadtest: A new keypad test example contributed by Denis Carikli.
  2576. - elf and nxflat: If CONFIG_BINFMT_EXEPATH is defined, these examples
  2577. will now use a relative path to the program and expect the binfmt/
  2578. logic to find the absolute path to the program using the PATH
  2579. variable.
  2580. * Build system:
  2581. - New top-level Makefiles: Makefile.unix and Makefile.win (along with
  2582. numerous changes to other make-related files). This adds basic
  2583. support for building NuttX natively under Windows from a CMD.exe
  2584. window (rather than in a POSIX-like environment). This build: (1)
  2585. Uses all Windows style paths, (2) Uses primarily Windows batch
  2586. commands from cmd.exe, with (3) a few extensions from GNUWin32.
  2587. This capability should still be considered a work in progress
  2588. because: (1) it has not been verfied on all targets and tools,
  2589. and (2) still lacks some of the creature-comforts of the more
  2590. mature environments (like a function configure.sh script and
  2591. 'make menuconfig' support).
  2592. - Example Windows native builds for STM32F4Discovery, eZ80, z16f, z8,
  2593. Z80, and Z180.
  2594. - Several configurations have been converted to work the kconfig-
  2595. frontends mconf configuration tool: stm32f4discovery/nxlines, and
  2596. all eZ80, z16f, z8, Z80, and Z180 configurations.
  2597. - Architectures now include a common Toolchain.defs file that can be
  2598. used to manage toolchains in a more configurable way (most of this
  2599. contributed by Mike Smith).
  2600. * Build tools:
  2601. - Renamed tools/winlink.sh to tools/copydir.sh.
  2602. - Several new tools/scripts to support the Windows native build:
  2603. tools/mkdeps.bat, tools/mkdeps.c, tools/link.bat, unlink.bat, and
  2604. copydir.bat.
  2605. - tools/incdir.sh and incdir.bat now support an -s option to generate
  2606. system header file paths.
  2607. - tools/b16.c: Fixed precision math conversion utility.
  2608. Bugfixes (see the change log for details). Some of these are very important
  2609. (marked *critical*):
  2610. * RTOS: Fix some backward conditional compilation in the work queue
  2611. logic (Freddie Chopin).
  2612. * File System: Uninitialized variable caused assertions (from Lorenz
  2613. Meier).
  2614. * Drivers: Partial fix for STM32 OTGFS device drivers and fix for short,
  2615. unaligned writes in the flash translation layer (drivers/mtd/ftl.c),
  2616. both from Petteri Aimonen.
  2617. * STM32 Drivers:
  2618. - Qencoder driver and TIM3 driver fixes from Ryan Sundberg.
  2619. - Fix timeout delay calculation in the STM32 OTG FS host driver.
  2620. * LPC17xx Drivers: Resources not being properly released when I2C
  2621. driver is un-initialized.
  2622. * Graphics:
  2623. - Fix logic when the mouse drags outside of the window; fix
  2624. another "blocked message" handling case (both from Petteri Aimonen).
  2625. - nxtk_filltrapwindow(): Correct an offset problem (also from Peterri
  2626. Aimonen).
  2627. - nxglib_splitline(): Correct the "fat flat line" bug.
  2628. * C Library:
  2629. - nrand() changes to prevent coefficients from becoming zero which
  2630. would "lock up" the random number generate.
  2631. - Add rounding functions to the math library (contributed by Petteri
  2632. Aimonen).
  2633. * Build system: Changes to MIN definitions in all limit.h header files
  2634. to avoid integer overflows. For example from (-128) to (-127 - 1)
  2635. (from Petteri Aimonen).
  2636. * Applications: Modbus fixes from Freddie Chopin.
  2637. As well as other, less critical bugs (see the ChangeLog for details)
  2638. NuttX-6.25
  2639. ----------
  2640. The 92nd release of NuttX, Version 6.25, was made on February 1, 2013,
  2641. and is available for download from the SourceForge website. Note
  2642. that release consists of two tarballs: nuttx-6.25.tar.gz and
  2643. apps-6.25.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2644. file for build information).
  2645. This release corresponds with SVN release number: r5595
  2646. Note that all SVN information has been stripped from the tarballs. If you
  2647. need the SVN configuration information, you should check out directly from
  2648. SVN. Revision r5595 should equivalent to release 6.25 of NuttX:
  2649. svn checkout -r5595 svn://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
  2650. Or (HTTP):
  2651. svn checkout -r5595 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
  2652. Additional new features and extended functionality:
  2653. * OS Initialization
  2654. - Removed support for CONFIG_BUILTIN_APP_START. This is not really a
  2655. useful feature and creates a violation of the OS layered
  2656. architecture.
  2657. * Task Creation:
  2658. - Implement a simple vfork(). In NuttX-6.25, this interface is
  2659. available only for ARM7/9, ARMv7-M (Cortext-M3/4), and MIPS32
  2660. (PIC32MX) platforms.
  2661. - exec() now sets the priority of the new task to the same priority as
  2662. the parent task (instead of the arbirtrary value of 50).
  2663. - New, partially complient implementations of execv() and execl().
  2664. These are only partially compliant because they do not overlay any
  2665. existing "process space" but rather create the new task and exit().
  2666. - Add a complete implementation of posix_spawn(). This standard
  2667. interface is a better match for an MMU-less architecture than are
  2668. vfork() plus execv() or execl().
  2669. - Add a task start hook that will be called before the task main
  2670. is started. This can be used, for example, to schedule C++
  2671. static constructors to run automatically in the context of the
  2672. new task.
  2673. * Task Parentage
  2674. - Repartitioned tasking data structures. All shared resources are now
  2675. collected together in a "task group". A task group includes the
  2676. original task plus all of the pthreads created by the task.
  2677. - Added support for remember the parent "task group" when a new task is
  2678. started.
  2679. - Added optional support to record the membership of each thread in
  2680. the "task group".
  2681. - Implement support for retaining child task status in the "task group"
  2682. after the child task exists. This is behavior required by POSIX.
  2683. But in NuttX is only enabled with CONFIG_SCHED_HAVE_PARENT and
  2684. CONFIG_SCHED_CHILD_STATUS
  2685. - Add internal logic to "reparent" a task. This is useful,
  2686. for example, where the child task is created through a trampoline
  2687. task that redirects I/O. Reparenting allows the caller of posix_spawn()
  2688. to be reparented for the eventual child thread.
  2689. - Added support for SIGCHLD. Sent to all members of the parent task
  2690. group when the file member of the child task group exits.
  2691. - If SIGCHLD and retention of child task exist status are enabled, then
  2692. a more spec-compliant version of waitpid() is enabled.
  2693. - New interfaces waitid() and wait() are also enabled when SIGCHLD
  2694. is enabled.
  2695. * File System
  2696. - dup() and dup2() can new be used with opened files in a mounted file
  2697. system. This supports re-direction of output in NSH to files.
  2698. - The binfs file system was moved from apps/builtin to fs/binfs. The
  2699. binfs file system was extended to support execution of "builtin
  2700. applications" using exec(), execv(), execl(), or posix_spawn().
  2701. - Added logic based on SIGCHLD to automatically unload and clean-up
  2702. after running a task that was loaded into memory.
  2703. * Binary Formats
  2704. - Much of the logic for "builtin applications" was moved from
  2705. apps/builtin to nuttx/binfmt/libbuiltin. Includes some extensions
  2706. contributed by Mike Smith.
  2707. - A binary loader was added for builtin applications to support
  2708. execution of "builtin applications" using exec(), execv(),
  2709. execl(), or posix_spawn().
  2710. * Drivers:
  2711. - Added logic to marshal and serialized "out-of-band" keyboard
  2712. commands (such as cursor controls and key release events) intermixed
  2713. with normal ASCII keypress data. The encoding is partially integrated
  2714. in the HID keyboard driver and the decoding full integrated into the
  2715. apps/examples hidkbd and keypadtest (the latter contributed by Denis
  2716. Carlikli).
  2717. - Driver for the UG-2864HSWEG01 OLED contributed by Darcy Gong.
  2718. - Add support for removable serial devices (like USB serial). This
  2719. support is enabled by CONFIG_SERIAL_REMOVABLE.
  2720. * ARMv7-M:
  2721. - Added an option to use the BASEPRI register to disable interrupts
  2722. (instead of the PRIMASK). This eliminates some innocuous hardfaults
  2723. that interfere with some debug tools. You need to switch to the
  2724. BASEPRI method only if you have such tool interference.
  2725. * STM32 Drivers
  2726. - Bring STM32 F1 DMA capabilities up to par with the STM32 F2/F4
  2727. (contributed by Mike Smith).
  2728. - Add support for USART single wire mode (Contributed by the PX4
  2729. team).
  2730. - Updates to support for SPI DMA on the STM32 F1/F2/F4. From
  2731. Petteri Aimonen.
  2732. * STM32 Boards:
  2733. - New configuration to support the UG-2864HSWEG01 OLED on the
  2734. STM32F4Discovery board.
  2735. - Added a posix_spawn() test configuration for the STM32F4Discovery.
  2736. * LM3S/LM4F
  2737. - Files and directories repartitioned to support both LM3S and LM4F
  2738. using the STM32 organization as a model.
  2739. - Partial definitions for the LM4F contributed by Jose Pablo Carballo
  2740. (this is still a work in progress).
  2741. * LM3S Boards
  2742. - Added scripts and documentation to use OpenOCD with the LM3S (from
  2743. Jose Pablo Carballo).
  2744. * LPC176x/LPC178x
  2745. - Files and directories repartitioned to support both LPC175x/LPC176x
  2746. and the LPC177x/LPC178x families using the STM32 organization as a
  2747. model. The LPC1788 port is a work in progress by Rommel Marcelo.
  2748. * LPC176x/LPC178x Boards:
  2749. - Added a configuration to support the Wave Share Open1788 board.
  2750. This is still a work in progress by Rommel Marcelo.
  2751. * LPC2148 Boards:
  2752. - Add basic support for the The0.net ZP213x/4xPA board (with the LPC2148
  2753. and the UG_2864AMBAG01 OLED).
  2754. - Add an nxlines configuration for the ZP213x/4xPA (with the LPC2148
  2755. and the UG_2864AMBAG01).
  2756. * Simulator:
  2757. - Add an nxlines configuration for the simulator.
  2758. * Networking:
  2759. - Add logic to work around delayed ACKs by splitting packets
  2760. (contributed by Yan T.).
  2761. - Split net_poll() to create the internal interface psock_poll().
  2762. * LCDs:
  2763. - Added support for LCD1602 alphanumeric LCD (HD4468OU controller).
  2764. * Graphics:
  2765. - Added 5x8 monospace font. This tiny font is useful for graph
  2766. labels and for small bitmapped display. Contributed by Petteri
  2767. Aimonen.
  2768. * Build System:
  2769. - Add an options to better manage toolchain prefixes.
  2770. - Redesigned how the context targer works in the apps/ directory.
  2771. The old design caused lots of problems when changing configurations
  2772. because there is no easy way to get the system to rebuild the
  2773. context. This change should solve most the problems and eliminate
  2774. questions like "Why don't I see my builtin application in NSH?"
  2775. * Kconfig Files:
  2776. - There are several new configurations that use the kconfig-frontends
  2777. tools and several older configurations that have been converted to
  2778. use these tools. There is still a long way to go before the conversion
  2779. is complete:
  2780. configs/sim/nxwm
  2781. configs/sim/nsh
  2782. configs/stm3220g-eval/nxwm
  2783. configs/stm32f4discovery/posix_spawn
  2784. configs/olimex-lpc1766stk/nsh
  2785. configs/olimex-lpc1766stk/hidkbd
  2786. configs/olimex-lpc1766stk/nettest
  2787. configs/open1788/ostest
  2788. configs/stm32f4discovery/nsh
  2789. configs/stm32f4discovery/usbnsh
  2790. configs/lm326965-ek (all configurations)
  2791. configs/mcu123-214x/nsh
  2792. configs/ubw32/ostest
  2793. * Tools:
  2794. - tools/kconfig.bat: Kludge to run kconfig-frontends from a DOS shell.
  2795. - tools/configure.c: configure.c can be used to build a work-alike
  2796. program as a replacement for configure.sh. This work-alike
  2797. program would be used in environments that do not support Bash
  2798. scripting (such as the Windows native environment).
  2799. - tools/configure.bat: configure.bat is a small Windows batch
  2800. file that can be used as a replacement for configure.sh in a
  2801. Windows native environment. configure.bat is actually just a
  2802. thin layer that executes configure.exe if it is available. If
  2803. configure.exe is not available, then configure.bat will attempt
  2804. to build it first.
  2805. * Applications:
  2806. - New and modified examples:
  2807. apps/examples/wlan: Remove non-functional example.
  2808. apps/examples/ostest: Added a test of vfork(). Extend signal
  2809. handler test to catch death-of-child signals (SIGCHLD). Add a
  2810. test for waitpid(), waitid(), and wait().
  2811. apps/exampes/posix_spawn: Added a test of posix_spawn().
  2812. - NSH:
  2813. NSH now supports re-direction of I/O to files (but still not from).
  2814. The block driver source argument to the mount command is now
  2815. optional for file systems that do not require a block driver.
  2816. NSH can now execute a program from a file system using posix_spawn().
  2817. Added support for a login script. The init.d/rcS script will be
  2818. executed once when NSH starts; the .nshrc script will be executed
  2819. for each session: Once for serial, once for each USB connection,
  2820. once for each Telnet session.
  2821. - Supports a new daemon that can be used to monitor USB trace outpout.
  2822. - Removed non-functional wlan example.
  2823. Bugfixes (see the ChangeLog for details). Some of these are very important:
  2824. * Tasking:
  2825. - Fixed a *critical* task exit bug. Here is the failure scenario:
  2826. (1) sched_lock() is called increments the lockcount on the current
  2827. TCB (i.e., the one at the head of the ready to run list), (2)
  2828. sched_mergepending is called which may change the task at the head
  2829. of the ready-to-run list, then (3) sched_unlock() is called which
  2830. decrements the lockcount on the wrong TCB. The failure case that
  2831. I saw was that pre-emption got disabled in the IDLE thread, locking
  2832. up the whole system.
  2833. * Signals:
  2834. - sigtimedwait() would return a bad signal number if the signal was
  2835. already pending when the function was called.
  2836. * Drivers:
  2837. - Some SD cards will appear busy until switched to SPI mode for
  2838. first time. Having a pull-up resistor on MISO may avoid this
  2839. problem, but this fix from Petteri Aimonen makes it work also
  2840. without pull-up.
  2841. * STM32 Drivers:
  2842. - STM32 FLASH driver counting error (from Freddie Chopin).
  2843. - STM32 F4 maximum SPI frequency was wrong (corrected by Petteri
  2844. Aimonen).
  2845. * STM32 Boards
  2846. - Due to cloning of untested code, the logic to control on-board
  2847. LEDs did not work on any STM32 boards.
  2848. - Serial devices number /dev/ttyS0-5 is there is a serial console,
  2849. but /dev/ttyS1-6 if there is no serial console.
  2850. * Binary Formats
  2851. - C++ static constructors execute now using a start taskhook
  2852. so that they execute in the context of the child task (instead
  2853. of in the context of the parent task).
  2854. * File Systems:
  2855. - Several FAT-related bugs fixed by Petteri Aimonen.
  2856. * Networking:
  2857. - Fix poll/select issure reported by Qiang: poll_interrupt() must call
  2858. net_lostconnection() when a loss of connection is reported. Otherwise,
  2859. the system will not remember that the connection has been lost and will
  2860. hang waiting on a unconnected socket later.
  2861. - Similar issues corrected for recvfrom() and send().
  2862. - Telnetd would hang in a loop if recv() ever returned a value <= 0.
  2863. * Libraries:
  2864. - fread() could hang on certain error conditions.
  2865. - Can't handle SYSLOG output to a character device from the IDLE task
  2866. (because the IDLE task can't block).
  2867. * Build System:
  2868. - Serial was driver was not being built if there is no console
  2869. device. Obviously, the serial driver may be needed even in
  2870. this case.
  2871. * Additional Bugfixes:
  2872. - sig_timedwait() and clock_time2ticks.c: Timing "rounding" logic
  2873. - ARM9 Compilation issue with low vectors.
  2874. - readline() return value
  2875. - Others as detailed in the ChangeLog: HID keyboard, LPC17xx bit
  2876. definitions, strndup(), PL2303, SYSLOG error handling, AT25,
  2877. apps/examples.
  2878. NuttX-6.26
  2879. ----------
  2880. The 93rd release of NuttX, Version 6.26, was made on March 15, 2013,
  2881. and is available for download from the SourceForge website. Note
  2882. that release consists of two tarballs: nuttx-6.26.tar.gz and
  2883. apps-6.26.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2884. file for build information).
  2885. This release corresponds with SVN release number: r5745
  2886. Note that all SVN information has been stripped from the tarballs. If you
  2887. need the SVN configuration information, you should check out directly from
  2888. SVN. Revision r5745 should equivalent to release 6.26 of NuttX:
  2889. svn checkout -r5745 svn://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
  2890. Or (HTTP):
  2891. svn checkout -r5745 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
  2892. Additional new features and extended functionality:
  2893. * OS Initialization:
  2894. - Add an additional call-out to support board-specific driver
  2895. initialization during the boot-up phase (available with
  2896. CONFIG_BOARD_INITIALIZE=y).
  2897. * Tasking:
  2898. - New interface task_spawn() that is like posix_spawn(), but uses
  2899. entry point addresses like task_create().
  2900. - Additional data restructuring as a continuation of the task group
  2901. changes of NuttX 6.25. These data structures were moved from the
  2902. TCB structure into the task group: pthread join data,
  2903. atexit/on_exit callbacks, waitpid data structures, and message
  2904. queues.
  2905. - TCBs for tasks and pthreads are now separate structures. This
  2906. saves a little memory since tasks do not have to carry the overhead
  2907. for threads and vice versa.
  2908. * Kernel Build:
  2909. - Extensive changes were made to support the kernel build mode. In
  2910. this mode, NuttX is built as a monolithic kernel. NuttX is built
  2911. as a separate kernel mode "blob" and the applications are built
  2912. as a separate user mode "blob". The kernel runs in kernel mode and
  2913. the applications run in user mode (with the MPU restricting user
  2914. mode accesses). Access to the kernel from the user blob is only
  2915. via system calls (SVCalls).
  2916. - Extensive changes were made to the syscall, SVCall, and trapping
  2917. logic. Many internal interfaces were renamed.
  2918. - The memory manager was extended to support both kernel- and user-
  2919. mode allocations. Logic within the kernel needs to use the
  2920. correct kernel- or user-space allocator, depending upon the user
  2921. of the allocated memory.
  2922. - The user-space blob now contains a header built in at the beginning
  2923. of the block that provides the same information that was previously
  2924. provided by a kludgy, auto-generated header file (user_map.h).
  2925. - Basic support implemented for the ARMv7-M family with fragments
  2926. also implemetned for the ARMv6-M and MIPS32 families.
  2927. - Kernel build supported added for the LPC17xx Open1788 and for
  2928. the Atmel SAM3U-EK board. All testing is being performed on the
  2929. Open1788 board.
  2930. * Signals:
  2931. - Delivery of signals to threads within a task group is now compatible
  2932. with the way that signals are delivered to threads within a process.
  2933. * Drivers:
  2934. - Add a driver for the SST29VF NOR FLASH parts.
  2935. - USB device trace/debug feature extended to decode device-specific
  2936. trace events to make the trace output more readable (from Petteri
  2937. Aimonen).
  2938. - USB MSC device driver can not support names of differing sizes
  2939. in the USB descriptor and the SCSI fields (from Petteri Aimonen).
  2940. - Locking added to MMC/SD SPI drivers so that MMC/SD can co-exist on
  2941. the same bus as other SPI devices. Frequency is reset each time
  2942. that the MMC/SD SPI has the bus locked. (from Petteri Aimonen).
  2943. * ARMv6-M (Cortex-M0):
  2944. - Added support for the ARM Cortex-M0 family.
  2945. * nuvoTon NUC120:
  2946. - Added support for the nuvoTon NUC120 MCU (Cortex-M0).
  2947. * nuvoTon NUC120 Boards:
  2948. - Added basic support for the nuvoTon NuTiny-SDK-NUC120 board (Cortex-M0).
  2949. * LPC17xx:
  2950. - Added support for the LPC177x and LPC178x families. Most of this is
  2951. the work of Rommel Marcelo.
  2952. * LPC17xx Boards:
  2953. - Added support for Zilogic System's ARM development Kit, ZKIT-ARM-1769.
  2954. From Rashid.
  2955. - The port for the WaveShare Open1788 board is now functional. Basic
  2956. OS test and NuttShell (NSH) configurations are functional. More
  2957. driver development and testing is needed (from Rommel Marcelo).
  2958. * LPC17xx Drivers:
  2959. - Added an SD card MSI driver for the LPC178x. The driver is marginally
  2960. functional but requires DMA capability to be reliable.
  2961. * STM32
  2962. - Support extended to handle the STM32 F3 family (Cortex-M4 with F1-like
  2963. peripherals).
  2964. * STM32 Boards
  2965. - Added support the STMicro STM32F3Discovery board (STM32 F3).
  2966. * Stellaris LM3S/LM4F
  2967. - Basic support for the LM4F120 family is in place, but untested (mostly
  2968. from Jose Pablo Carballo).
  2969. * Stellaris LM4F Boards
  2970. - Add support for the LM4F120 LaunchPad (untested).
  2971. * Networking:
  2972. - select() should now allocate a little less memory.
  2973. * Memory Management:
  2974. - Extended to support multiple heaps. This is used as part of
  2975. the kernel build in order to support separater user- and
  2976. kernel-mode heaps.
  2977. - The stand-alone memory manger test had to be removed. It
  2978. was too entangled and made extension of the memory manager
  2979. nearly impossible. This is a loss.
  2980. * Build System:
  2981. - Several configurations converted to use the kconfig-frontends
  2982. configuration tool. There are still many more that need to
  2983. be converted.
  2984. * C Library:
  2985. - Move the workqueue logic into the C library. There is now a
  2986. special user-space version of the work queue (which will only
  2987. be used with a NuttX kernel build).
  2988. - Implementation of itoa() contributed by Ryan Sundberg.
  2989. * Applications:
  2990. - The NSH builtin task logic now uses task_spawn() to start builtin
  2991. applications.
  2992. - The OS test now includes a test cased to verify task_restart().
  2993. Efforts In Progress. The following are features that are partially
  2994. implemented but present in this release. Most are expected to be fully
  2995. available in NuttX 6.27.
  2996. * LM4F120 LaunchPad port. Code is in place, but nothing has been tested.
  2997. * WaveShare Open1788 port. This port as actually complete and
  2998. functional. However, there is still ongoing development and
  2999. testing of drivers.
  3000. * Kernel Build. Much progress has been made, but there kernel build is
  3001. not yet fully functional due to several user resources that are not yet
  3002. properly disentangled from the kernel blob.
  3003. * Conversion of old configurations to use the kconfig-frontends
  3004. tool is an ongoing effort that will continue for some time.
  3005. Bugfixes (see the ChangeLog for details). Some of these are very important:
  3006. * Tasking:
  3007. - The wrong PID was being signalled with SIGCHILD. It should be
  3008. the PID of the task that create the task group, not the ID of
  3009. the last thread to leave the task group.
  3010. - Added logic so that some internal resources and states are recovered
  3011. when tasks are deleted or restarted. Handle cases where there are
  3012. outstanding timed events pending when tasks are deleted or restarted.
  3013. * ARMv7-M:
  3014. - Several fixes to the MPU control logic.
  3015. * Drivers:
  3016. - Removable serial drivers race conditions fixed.
  3017. - MAX11802 timing bug (from Petteri Aimonen).
  3018. * STM32 Drivers:
  3019. - Handle cases were SPI DMA logic fails if sem_wait is awakened
  3020. by a signal. Need to clear error flags to prevent corruption of
  3021. subsequent transfers. Also, bit count should not be changed while
  3022. the SPI peripheral is enabled (from Petteri Aimonen).
  3023. - Fixes to the OTG FS device driver from Petteri Aimonen.
  3024. - Fix typos in DMA register header file (from Yan T.)
  3025. * Graphics:
  3026. - Correction to the hyphen in the SANS 17x22 font (from Petteri
  3027. Aimonen).
  3028. * Networking:
  3029. - Corrected errors in the socket poll/select logic. Additional
  3030. state logic was needed to detect if the socket is still connected
  3031. before starting the poll wait. (bug reported by Qiang Yu).
  3032. * Memory Management:
  3033. - mallinfo() should hold the memory manager semaphore (from Petteri
  3034. Aimonen.
  3035. * Build System:
  3036. - Resolved several build errors reported by Mike Smith.
  3037. * Applications:
  3038. - Fixed an NSH memory leak: Needed to detach after creating each
  3039. pthread.
  3040. - readline() now returns EOF on any failure (instead of a negated
  3041. errno value). This is because the underlying read is based on
  3042. logic similar to getc. The value zero (meaning end-of-file)
  3043. was being confused with a NUL. So if a NUL was received, the
  3044. NSH session would terminate because it thought it was the end of
  3045. file.
  3046. NuttX-6.27
  3047. ----------
  3048. The 94th release of NuttX, Version 6.27, was made on April 28, 2013,
  3049. and is available for download from the SourceForge website. Note
  3050. that release consists of two tarballs: nuttx-6.27.tar.gz and
  3051. apps-6.27.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  3052. file for build information).
  3053. Additional new features and extended functionality:
  3054. * OS Initialization:
  3055. - Add missing registration of /dev/zero. Registration of /dev/null
  3056. should depend upon conditional compilation. From Ken Pettit.
  3057. * Tasking:
  3058. - Added a new interface to set aside memory on the task's stack. This
  3059. is used (at least in the kernel build) to hold task arguments.
  3060. - Remove up_assert_code(). One assertion routine is enough.
  3061. * Kernel Build:
  3062. - Extensive changes were made to support the kernel build mode. In
  3063. this mode, NuttX is built as a monolithic kernel. NuttX is built
  3064. as a separate kernel mode "blob" and the applications are built
  3065. as a separate user mode "blob". The kernel runs in kernel mode and
  3066. the applications run in user mode (with the MPU restricting user
  3067. mode accesses). Access to the kernel from the user blob is only
  3068. via system calls (SVCalls).
  3069. - Kernel build configurations for the Open1788 board and for the
  3070. STM32F4Discovery now execute correctly.
  3071. - Changes were made to task and thread start-up routines, signal
  3072. handling, data structures, ARMv7-M SVCalls, stack management
  3073. interfaces,
  3074. * Drivers:
  3075. - Driver for the ST7567 LCD Display Module from Univision Technology
  3076. Inc. Contributed by Manikandan.S
  3077. - SPI initialize functions renamed so that multiple SPI blocks can
  3078. be initialized.
  3079. - Extended to support the RAMTRON FM25V01 device. Contributed by
  3080. Lorenz Meier
  3081. - Serial drivers: TIOCSERGSTRUCT ioctls now conditioned on
  3082. CONFIG_SERIAL_TIOCSERGSTRUCT
  3083. * ARMv7-M (Cortex-M3/4):
  3084. - Added support for modifiable interrupt vectors in RAM
  3085. * nuvoTon NUC1xx:
  3086. - Added kernel build support
  3087. * Freescale Kinetis:
  3088. - Add kernel build support
  3089. - Add support for the Kinetis L family of Cortex-M0+ MCUs. Contributed
  3090. by Alan Carvalho de Assis.
  3091. * LPC17xx:
  3092. - Now holds off sleep mode in the IDLE loop is DMA is in progress
  3093. (because sleep mode will disable CPU SRAM).
  3094. * LPC17xx Boards:
  3095. - ZKIT-ARM-1769: Now supports the ST7567 LCD display module. Added
  3096. an nxhello configuration for testing (Manikandan.S).
  3097. - ZKIT-ARM-1769: Add support for both CAN1 and CAN2. Contributed by
  3098. M.Kannan
  3099. - Open1788: Basic support for the WaveShare Open1788 board is complete
  3100. with working OS test, NSH, and graphics configurations.
  3101. - Open1788: Integrated the LPC178x LCD driver with the WaveShare display.
  3102. Touchscreen support is included, howerver, there appears to be an
  3103. issue with the Open1788 touchscreen interrupt signal.
  3104. - Open1788: Now supports SDRAM (used to provide the LCD framebuffer).
  3105. - Open 1788: Reversed sense of the IDLE LCD. It is now off when the
  3106. LPC17 is sleeping and on when awake. That is much a better visual
  3107. indication of the dynamic CPU load
  3108. * LPC17xx Drivers:
  3109. - Added an LCD framebuffer driver for the LPC177x/8x family.
  3110. - Implemented LPC17xx GPDMA support.
  3111. - Integrated the LPC17xx GPDMA support into the SD card driver.
  3112. - SSP driver adapted to work with the LPC178x family.
  3113. - Separate LPC176x and LPC178x GPIO logic; this logic is too different
  3114. to maintain in one file with conditional compilation.
  3115. - Re-design of the GPIO logic for the LPC178x family by Rommel Marcelo.
  3116. * LPC43xx:
  3117. - Added kernel build support
  3118. * STM32:
  3119. - Added support for kernel mode build.
  3120. - Added architecure support for the STM32 F427/F437 chips. Contributed
  3121. by Mike Smith
  3122. * STM32 Boards:
  3123. - Added a configuration to support a kernel mode build of the OS test
  3124. on the STM32F4Discovery
  3125. * Stellaris LM3S/LM4F:
  3126. - Added kernel build support
  3127. - Added support for the 7 UARTs on the LM4F120
  3128. * Stellaris LM4F Boards:
  3129. - Added scripts and instructions to simplify use of OpenOCD with ICDI
  3130. (JP Carballo)
  3131. - The basic for the Stellaris LM4F120 Launchpad is complete. This
  3132. includes support for OS test and NSH configurations. Additional
  3133. driver development is needed.
  3134. * Build System:
  3135. - Directories where the same sources files are used to build different
  3136. objects in the first and second pass kernel builds need to keep those
  3137. objects in separate directories so that they are not constantly
  3138. rebuilt.
  3139. * Applications:
  3140. - apps/system/ramtest: Add a simple memory test that can be built
  3141. as an NSH command.
  3142. * Tools:
  3143. - kconfig2html is a new tool which will replace the hand-generated
  3144. documentation of the NuttX configruation variables with auto-
  3145. generated documentation.
  3146. Efforts In Progress. The following are features that are partially
  3147. implemented but present in this release. Most are expected to be fully
  3148. available in NuttX 6.28.
  3149. * A port to the Freescale Freedom KL25Z is complete but not yet stable
  3150. enough. The KL25Z is a low-cost Cortex-M0+ part with 128KB of FLASH
  3151. and 16KB of SRAM. This is is the effort of Alan Carvalho de Assis.
  3152. * Conversion of old configurations to use the kconfig-frontends
  3153. tool is an ongoing effort that will continue for some time.
  3154. At this time, only 32% of the configurations have been converted
  3155. to use the kconfig-frontends tools.
  3156. Bugfixes (see the ChangeLog for details). Some of these are very important:
  3157. * Tasking:
  3158. - Fixed a critical bug: When there is pending C buffered output
  3159. and the system is very busy, the a pthread may be blocked at
  3160. a critical point when trying to exit. Blocking at this critical
  3161. point would cause crashes. All entire task/thread exit logic
  3162. paths were reviewed and failsafe mechanisms were put in place
  3163. to assure that exitting tasks never block after task teardown
  3164. has been started.
  3165. * ARMv6-M:
  3166. - Fixed parameter passing for all system call inline functions with > 3
  3167. parameters
  3168. - Fixed a major problem: The Cortex-M0 has no BASEPRI register but the
  3169. logic of NuttX-6.26 was using it to manage interrupts. Switch to
  3170. using the PRIMASK instead. This means that hardfaults will (again)
  3171. occur when SVC instructions are executed
  3172. * ARMv7-M:
  3173. - Corrected Correct MPU sub-region settings for unaligned regions.
  3174. - In exception handling with CONFIG_NUTTX_KERNEL, need to explicitly
  3175. set and clear the privilege bit in the CONTROL
  3176. - Fixed parameter passing for all system call inline functions with > 3
  3177. parameters
  3178. * Drivers:
  3179. - Support for O_NONBLOCK was not supported in the "upper half"
  3180. serial driver.
  3181. - PL2303 compilation errors
  3182. * Stellaris LM3S/4F:
  3183. - Corrected typos in alternate function definitions.
  3184. * LPC17xx Drivers:
  3185. - Added a work-around for an ADC errata. From Chris Taglia
  3186. - Only one ADC pin was configured. Need to configure all that
  3187. are in the ADC0 set. From MKannan
  3188. * File Systems:
  3189. - The FAT logic was not making a distinction between directory
  3190. non-existence and file non-existence so when it you try to
  3191. create a file in a non-existent directory, it would create a
  3192. file with the name of the missing directory. Reported by Andrew
  3193. Tridgell
  3194. - Several fixes to the FAT file system from Ronen Vainish. These
  3195. fixes mostly involve the logic to extend directory clusters for
  3196. the case of long file names but also include a few important
  3197. general fixes (such as for storing 32 bit FAT values)
  3198. - mkfatfs was writing the boot code to the wrong location. From
  3199. Petteri Aimonen
  3200. * Networking:
  3201. - Fixed a compilation error when socket options are are disabled.
  3202. Reported by Daniel O'Connor
  3203. * C Library:
  3204. - Corrected an error in sscanf. If %n occurs in the format statement
  3205. after the input data stream has been fully parsed, the %n format
  3206. specifier will not be handled. Reported by Lorenz Meier
  3207. - strchr(str, '\0') should return a pointer to the end of the string,
  3208. not NULL. From Petteri Aimonen
  3209. * Build System:
  3210. - Fix naming of NuttX target if EXEEXT is defined.
  3211. * Applications:
  3212. - OS test: Fix timing error in non-cancelable thread test.
  3213. - NSH: Correct the test of the skip input parameter. Was limiting the
  3214. range to <= count. From Ken Petit.
  3215. NuttX-6.28
  3216. ----------
  3217. The 95th release of NuttX, Version 6.28, was made on June 14, 2013,
  3218. and is available for download from the SourceForge website. Note
  3219. that release consists of two tarballs: nuttx-6.28.tar.gz and
  3220. apps-6.28.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  3221. file for build information).
  3222. Additional new features and extended functionality:
  3223. * File Systems:
  3224. - SMART FLASH file system (contributed by Add Ken Pettit).
  3225. * MTD (FLASH) Drivers:
  3226. - Add support of MTD partitions via a new MTD driver that manages a
  3227. set of MTD devices, each managing a subset of the FLASH region
  3228. managed by the parent MTD driver.
  3229. - Extended the MTD interface to provide an (optional) method to
  3230. perform byte oriented writes if supported by the FLASH part.
  3231. - M25Px driver re-architected to use the byte write capability (when
  3232. possible) and to use 4KB sectors for the erase block size when the
  3233. part supports it (from Ken Pettit).
  3234. * LCD Drivers:
  3235. - New interface definitions to support audio devices (from Ken Pettit)
  3236. and alphanumeric, segment LCDs.
  3237. * Wireless Drivers:
  3238. - Added new driver for the wireless nRF24L01+ transceiver (from
  3239. Laurent Latil).
  3240. * Calypso:
  3241. - Added support for the Pirelli DP-L10 phone (from Craig Comstock via
  3242. Alan Alan Carvalho de Assis)
  3243. * STM32:
  3244. - Added an option to conditionally disable the "wfi" sleep mode. This
  3245. is needed with certain JTAG debuggers to to prevent the debug
  3246. session from begin disconnected (from Ken Pettit).
  3247. - Added support for the STM32L (STM32L15X/STM32L16x) family.
  3248. - Added STM32F103C4 and F103C8 chip support (from Laurent Latil).
  3249. - Added a new interface function, stm32_dmacapable() that can be used
  3250. to determine if DMA is possible from the specified memory address
  3251. (from Petteri Aimonen)
  3252. * STM32 Drivers:
  3253. - If CONFIG_STM32_DMACAPABLE is defined, the STM32 SPI driver now uses
  3254. stm32_dmacapable() to determine if it is possible to perform DMA
  3255. from the specified address. This change is important for the STM32
  3256. F4 which may have SPI data buffers allocated on the stack in CCM
  3257. memory which cannot support the DMA (from Petteri Aimonen).
  3258. * STM32 Boards:
  3259. - Support added for the MikroElektronika Mikromedia for STM32F4
  3260. development board (from Ken Pettit) with the MIO283QT2 LCD and
  3261. touchscreen. Several graphics configurations are included.
  3262. - The HY-mini STM32v board now uses the common SSD1289 driver
  3263. and supported the card detect interrupt. Several new
  3264. configurations also added and some removed (from Laurent Latil).
  3265. - Support added for the R65105-based LCD that comes with some
  3266. HY-Mini STM32v boards (from Christian Faure).
  3267. - Added basic support for the STM32L-Discovery board. Drivers
  3268. for the on-board segment LCD are included.
  3269. - Added support for the STM32 Tiny development board based on the
  3270. STM32 F103C8T6 MCU. This includes support for the nRF24L01+
  3271. wireless on the board (from Laurent Latil).
  3272. * Stellaris LM3S/LM4F:
  3273. - Support added for a TI/Stellaris internal FLASH MTD driver (from Max
  3274. Holtzberg).
  3275. * Stellaris LM4F Boards:
  3276. - The LM3S6965-EK now has configurations for the UDP discovery tool and
  3277. for the TCP echo server (both from Max Holtzberg)
  3278. * Atmel ATSAM3/4:
  3279. - Reorganized, renamed, and updated directory structure to better
  3280. support additional members of the SAM3/4 family.
  3281. - Added support for both the ATSAM4S and ATSAM4L families. The
  3282. ATSAM4S is similar to the ATSAM3U, but the ATSAM4L is quite a
  3283. different beast, really much more akin to the AVR32s SoCs but
  3284. with a Cortex-M4.
  3285. * Atmel ATSAM3/4 Boards:
  3286. - Added support for the Atmel SAM4L Xplained Pro development board.
  3287. This board features the ATSAM4LC4C MCU (Cortex-M4 with 256KB FLASH +
  3288. 32KB SRAM).
  3289. - Added support for the Atmel SAM4S Xplained developement board. This
  3290. board features the ATSAM4S16C MCU (Cortex-M4 with 1MB FLASH + 128KB
  3291. SRAM).
  3292. * PIC32MX Boards:
  3293. - Added support for the 1602 segment LCD on-board the Sure PIC32MX
  3294. board. This board will now also support a USB NuttX console and
  3295. the USB monitor test program.
  3296. * Build System:
  3297. - Clean-up of almost all .gitignore files: Made scope of ignore to be
  3298. only the current directory; Ignore .dSYM files in directories where
  3299. .exe's may be built. Also, in Makefiles, clean .dSYM files in
  3300. directories where an .exe may be built.
  3301. - Standardize and consolidated all build-as-an-NSH-application
  3302. configuration settings. Now only CONFIG_NSH_BUILTIN_APPS is
  3303. sufficient to build an application, test, or or example as an NSH
  3304. builtin application.
  3305. - Added support for a generic ARM, ARMv6-M and ARMv7-M Windows EABI
  3306. toolchains.
  3307. * Libraries:
  3308. - Added encoder/decoder logic to marshal and serialize special segment
  3309. LCD (SLCD) commands intermixed with normal ASCII data. This is the
  3310. similar to the encoding/decoding logic that is used to marshal
  3311. special commands from a keyboard.
  3312. - Add dprintf() and vdprintf() (the latter from Andrew Tridgell).
  3313. - Add an application that may be built as an NSH builtin command that
  3314. will erase FLASH using a flash_eraseall NSH command (from Ken Pettit).
  3315. * Applications:
  3316. - Added an MTD partition test/examples. Currently used with (1) the a
  3317. simulation configuration to test MTD partitions on a RAM emulation
  3318. of FLASH and (2) with the Mikroe STM32F4 configuration.
  3319. - Added a test/example to verify alphanumeric, segment LCDs.
  3320. - Added a simple single threaded, poll based TCP echo server based
  3321. on W. Richard Stevens UNIX Network Programming Book (from Max
  3322. Holtzberg).
  3323. - Added several tests of the SMART block driver and file system (from
  3324. Ken Pettit).
  3325. - Added a runtime configuration for the UDP discover utility (from
  3326. Max Holtzberg).
  3327. - Added an example application to demo the nRF24L01 driver (from
  3328. Laurent Latil).
  3329. - New and modified NSH commands:
  3330. Added a -h option to the df command to show the volume information
  3331. in human readable form (from Ken Petit).
  3332. Add a new mksmartfs command (from Ken Petit).
  3333. Efforts In Progress. The following are features that are partially
  3334. implemented but present in this release. Most are expected to be fully
  3335. available in NuttX 6.28.
  3336. * Audio System:
  3337. - A complete audio subsystem include CODECs, higher level management,
  3338. interface definitions, and audio drivers was contributed by Ken
  3339. Pettit. This work has not been completely verified as of this
  3340. release and so is categorized as a work-in-progress. At present,
  3341. progress is blocked due to issues interfacing with the VS1053
  3342. audio DAC on the Mikroe STM32F4 board.
  3343. * kconfig-fronted Configuration:
  3344. - Conversion of old configurations to use the kconfig-frontends
  3345. tool is an ongoing effort that will continue for some time.
  3346. At this time, only 43% of the configurations have been converted
  3347. to use the kconfig-frontends tools.
  3348. Bugfixes (see the ChangeLog for details). Some of these are very important:
  3349. * Tasking:
  3350. - Modify assertion in the priority inheritance logic that is reported
  3351. to cause false alarm assertions.
  3352. * Kernel Build:
  3353. - Typo in syscall proxying logic corrected by Ken Pettit.
  3354. * Networking:
  3355. - Poll setup/teardown logic should ignore invalid (i.e., negative)
  3356. file descriptors (from Max Holtzberg).
  3357. - When readahead data is available, the network poll() logic should
  3358. set POLLIN (or POLLRDNORM), not POLLOUT (from Max Holtzberg).
  3359. * LCD Drivers:
  3360. - Correct power controls in the MIO283QT2 LCD driver.
  3361. * USB Device Controller Drivers:
  3362. - Change the default IN request buffer size from 64 to 96. This will
  3363. avoid requests of exactly MAXPACKET size and, hence, avoid so many
  3364. NULL packets. Also, fix the OUT request buffers size to exactly the
  3365. max packet size. It really cannot be any other size.
  3366. * STM32 Drivers:
  3367. - Correct some bad STM32 F1 DMA definitions that crept into the system
  3368. a few months ago a broke STM32 F1 DMA (from Laurent Latil)
  3369. - Fixed an error in NULL packet handling in the STM32 F1 USB device
  3370. controller driver: If the NULL-packet needed flag ever got set,
  3371. then it was not being cleared and infinite NULL packets resulted.
  3372. This only affects the CDC/ACM class and was the cause of the
  3373. failures using the USB CDC/ACM device as a NuttX console. With this
  3374. change the USB works well as an alternative NuttX console device for
  3375. the STM32 F1 family.
  3376. - Correct some bad condition compilation in the RCC logic (CONFIG_
  3377. missing from setting names). This affects some STM32 FLASH pre-
  3378. fetch settings (from Lorenz Meier).
  3379. - Change for hardware flow control support for STM32. The change also
  3380. fixes incorrect operation of USART2 and UART5 in current master
  3381. (from Lorenz Meier and Mike Smith).
  3382. - Fixed a backward conditional in USB OTG FS host controller driver
  3383. that prevented detection of disconnection events (from Scott).
  3384. * LPC17xx Drivers:
  3385. - I2C interrupt control. Also correction for a single byte read
  3386. timeout error (from M. Kannan).
  3387. * Freescale Kinetis:
  3388. - Freedom KL25Z pin multiplexing and LED control corrections (from
  3389. Alan Carvalho de Assis)
  3390. * PIC32MX:
  3391. - Fix NULL packet handling in the PIC32 USB device driver. Without
  3392. this fix the CDC/ACM driver cannot be used reliably with the PIC32
  3393. USB. With this change the USB works well as an alternative NuttX
  3394. console device.
  3395. * Graphics:
  3396. - Default priorities for NxWidget and NxWM threads should be 100,
  3397. not 50, to be consistent with other default priorities.
  3398. * Applications:
  3399. - Remove the CONFIG_EXAMPLES_NXTEXT_NOGETRUN option from the NXTEXT
  3400. example. The test logic was bad for the case where this options is
  3401. not selected. Also, completed the empty Kconfig file.
  3402. - C++ name mangling was occurring when this example is built as an NSH
  3403. built-in application causing the entry to be undefined when called
  3404. from C code.
  3405. - Add some missing NSH library configuration values (from Lorenz
  3406. Meier).
  3407. NuttX-6.29
  3408. ----------
  3409. The 96th release of NuttX, Version 6.29, was made on July 31, 2013,
  3410. and is available for download from the SourceForge website. Note
  3411. that release consists of two tarballs: nuttx-6.29.tar.gz and
  3412. apps-6.29.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  3413. file for build information).
  3414. Additional new features and extended functionality:
  3415. * Drivers:
  3416. - Generalized the SSD1306 driver and added support UG-2832HSWEG04
  3417. which is very similar to the existing support for the
  3418. UG-2864HSWEG01.
  3419. - Added support for a generic bit-bang SPI driver. This includes
  3420. both a common "upper half" driver as well as a platformp-specific
  3421. "lower half" dirvers based on a common "template."
  3422. * ARMv7-A, Cortex-A5
  3423. - Added support for the ARMv7-A architecture and the Cortex-A5 in particular.
  3424. * ARMv7-M, Cortex-M3/4
  3425. - Modified how some registers are copied during a context switch (with
  3426. lazy FPU register saving). This should save some context switching
  3427. time when the context switch is due to interrupt level processing.
  3428. * STM32:
  3429. - Added support for a separate CCM heap. This may be useful for
  3430. segregating allocations for CCM (which cannot be used for DMA)
  3431. from other allocations (that may be used used for DMA).
  3432. * STM32 Drivers:
  3433. - DAC: Added support for DAC DMA (contributed by John Wharington).
  3434. - I2C: An I2C driver for the STM32 F3 family (from John Wharington).
  3435. * Atmel AT91 SAM/4:
  3436. - Add support for SAM3X and SAM3A chips
  3437. * Atmel AT91 SAM/4 Drivers:
  3438. - Re-architect the SAM3/4 SPI driver so that is it compatible with the
  3439. SPI drivers of other MCUs.
  3440. - Added register definition file for the SAM4L LCD peripheral.
  3441. - Added SAM4L PDCA register definition file
  3442. * Atmel AT91 SAM/4 Boards:
  3443. - SAM4L-Xplained: Added support for the SPI-based SD card on the I/O1
  3444. module.
  3445. - SAM4L-Xplained: Added a driver for the LED1 segment LCD module.
  3446. - SAM4L-Xplained: Added support for the UG-2832HSWEG04 OLED on the
  3447. SAM4L Xplained Pro's OLED1 module
  3448. - SAM4S-Xplained: Added support for on-board 1MB SRAM
  3449. - Arduino Due: Basic support for the Arduino Due (SAM3X) is now
  3450. included.
  3451. - SAM3U-EK: The touchscreen is now functional.
  3452. * Atmel AT91 SAMA5D3
  3453. - Added support for the Atmel AT91SAMA5D3 Cortex-A5 chip family.
  3454. * Atmel AT91 SAMA5D3 Boards
  3455. - Added support for the Atmel SAMA5D3x-EK boards which use the AT9
  3456. SAMA5D3x chips (x=1,3,4,5).
  3457. * Freescale KL25Z Drivers
  3458. - Freescale KL25Z TSI register definitions and example TSI driver for
  3459. the Freedom KL25Z board from Alan Carvalho de Assis.
  3460. - Added SPI driver and register definitions for the Freescale KL25Z.
  3461. - Added a framework for controlling SPI-related discrete inputs and
  3462. outputs. Taken from work by Alan Carvalho de Assis
  3463. * Build System:
  3464. - New sub-directories to hold SPI-related files: includes/nuttx/spi.h
  3465. moved to include/nuttx/spi/.; SPI-related Kconfig info moved from
  3466. drivers/Kconfig to drivers/spi/kconfig.
  3467. - Finally... I changed the naming of configuration variables like
  3468. CONFIG_DRAM_ to CONFIG_RAM_. This has bothered me for a long time
  3469. since most boards don't have DRAM. The more generic RAM naming
  3470. should not produce so much cognitive dissonance
  3471. * Libraries:
  3472. - Added CRC16 support.
  3473. * Applications:
  3474. - Added Zmodem file transfer support. This may be used as an embedded
  3475. library or may be built as 'sz' and 'rz' commands that can be
  3476. executed from NSH.
  3477. - C++ initializers should be set once and, preferably, in the context
  3478. of the task that uses any C++ statically initialized classes. This
  3479. only becomes an issue if cxxtest or helloxx are built as NSH builtin
  3480. applications. Then you want the initialization done in cxxtext or
  3481. helloxx and not in NSH (and certainly not twice). Added
  3482. configuration options to control who does the C++ initialization.
  3483. NSH now does not do C++ initialization be default and must be
  3484. configured to do otherwise. Conversely, cxxtest and helloxx
  3485. will always do C++ initialization unless configured do otherwise.
  3486. - examples/cxxtext: Add ostream test as provided by Michael.
  3487. - NSH: Added a 'cmp' command that can be used to compare two files
  3488. for equivalence. Returns an indication if the files differ.
  3489. Contributed by Andrew Tridgell (via Lorenz Meier).
  3490. Efforts In Progress. The following are features that are partially
  3491. implemented but present in this release. They are not likely to be
  3492. completed soon.
  3493. * Audio System:
  3494. - A complete audio subsystem include CODECs, higher level management,
  3495. interface definitions, and audio drivers was contributed by Ken
  3496. Pettit. This work has not been completely verified as of this
  3497. release and so is categorized as a work-in-progress. At present,
  3498. progress is blocked due to issues interfacing with the VS1053
  3499. audio DAC on the Mikroe STM32F4 board.
  3500. * kconfig-fronted Configuration:
  3501. - Conversion of old configurations to use the kconfig-frontends
  3502. tool is an ongoing effort that will continue for some time.
  3503. At this time, only 45% of the configurations have been converted
  3504. to use the kconfig-frontends tools.
  3505. Bugfixes (see the ChangeLog for details). Some of these are very important:
  3506. * File Systems:
  3507. - Fixed compilation error if no file systems are enabled: Change
  3508. error to ERROR.
  3509. - Read-Ahead/Write buffering: Correct typos that can cause failures
  3510. in some configurations (From Chia Cheng Tsao).
  3511. * Drivers
  3512. - Remove the wait for the touchscreen busy bit in the ADS7843E driver.
  3513. From my reading of the ADS7843 spec, it would not be appropriate to
  3514. wait for the BUSY bit to de-asserted anyway (since it is only de-
  3515. asserted when we read the data). Most boards do not even bother to
  3516. provide the BUSY bit.
  3517. - MMC/SD SPI based driver: Driver needs to make sure that the SPI
  3518. mode and data width are correct.
  3519. - ENC28J60: Change buffer ordering to work around Errata. From Dave
  3520. (ziggurat29).
  3521. * USB Device Controller Drivers:
  3522. - Fixed a typo in the composite device driver unitialization logic.
  3523. DEV1 should be DEV2 in one case.
  3524. - usbdev.h: Fix some typos that cause compiler errors when
  3525. CONFIG_USBDEV_DMA and CONFIG_USBDEV_DMAMEMORY are selected (From
  3526. Chia Cheng Tsao).
  3527. * ARM9:
  3528. - Fix a bug (uninitialized register error) that crept in the ARM9
  3529. boot-up code several years ago. Obviously no one has used the
  3530. ARM9 NuttX port for years!
  3531. * STM32 Drivers:
  3532. - Fix STM32 OTF FS endpoint allocation logic. Apparently the same
  3533. endpoint can be allocated as both an IN or an OUT endpoint. The
  3534. existing implementation only supported one allocation, either IN or
  3535. OUT. This resulted in failures to allocate endpoints when used with
  3536. the CDC/ACM + MSC composite driver (From Chia Cheng Tsao).
  3537. - SDIO: Add support for the data block end (DBCKEND) interrupt to
  3538. terminate transfers (From Chia Cheng Tsao).
  3539. - DAC: Fixed numerous DAC driver errors and added support for DAC
  3540. DMA (contributed by John Wharington).
  3541. * SAM3/4:
  3542. - SAM4S: Correct configuration of PIO pins for SAM4S B and C peripherals.
  3543. - Need to disable write protection before configuring PIO pins.
  3544. - GPIO configuration logic must protect against re-entrancy.
  3545. - Clocking must be applied to the SMC module for the 3X and 3A family in
  3546. order for the NFC SRAM to be functional.
  3547. - Fixed some errors for interrupts on ports D-F.
  3548. * SAM3/4 Drivers:
  3549. - Common SPI driver: Fix SPI mode setting. In the SAM3/4 family, the
  3550. clock phase control (CPHA) is inverted (NPHA). Also fixed an
  3551. incorrect pointer test. Was checking if the wrong pointer was NULL.
  3552. * SAM3/4 Boards:
  3553. - SAM3U-EK: Fix polarity of the /PENIRQ signal (it is active low).
  3554. The SAM3U-EK board now runs at 96MHz.
  3555. * Applications:
  3556. - apps/examples/nxhello: Minor fix for compilation error when the
  3557. display resolution is low (< 8bpp) due to a typo that has been there
  3558. for a long time. Also Correct default colors when in Y1 code mode.
  3559. - apps/system/ramtest: The RAM test was not correctly built
  3560. into the configuration and build system.
  3561. - apps/examples/composite: Change to prevent some false alarm debug
  3562. assertions (From Chia Cheng Tao).
  3563. NuttX-6.30
  3564. ----------
  3565. The 97th release of NuttX, Version 6.30, was made on September 14, 2013,
  3566. and is available for download from the SourceForge website. Note
  3567. that release consists of two tarballs: nuttx-6.30.tar.gz and
  3568. apps-6.30.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  3569. file for build information).
  3570. Additional new features and extended functionality:
  3571. * Common Drivers:
  3572. - Extended TERMIOS support for serial and CDC/ACM drivers. From
  3573. Mike Smith, Andrew Tridgell and Lorenz Meier.
  3574. - Added option to disable serial port reordering. From Lorenz Meier.
  3575. - Several changes to the USB host control interface and extensions to
  3576. common USB host logic to handle host controllers with multiple
  3577. downstream ports in the root hub.
  3578. - USB device tracing: Extended decoding and stringifying of USB trace
  3579. output to include trace output from class drivers.
  3580. - USB host tracing: Added support for USB host tracing similar in
  3581. some ways to USB device tracing: Stringification is an inherent
  3582. part of the trace decoding (not an option). Only available in the
  3583. SAMA5 USB host drivers now.
  3584. * Networking / Network Drivers
  3585. - Support for the Microchip ENCX24J600 Ethernet driver from Max
  3586. Holtzberg
  3587. - CC3000 Networking. Initial support for the TI CC3000 network
  3588. module on the Freescale Freedom-KL25Z board from Alan Carvalho
  3589. de Assis. This is still a work in progress.
  3590. * ARMv7-A, Cortex-A5
  3591. - Restructured some MMU-related logic and header files.
  3592. - Hooks added for Cortex-A8, but not yet used.
  3593. * STM32 Drivers:
  3594. - STM32 SPI: nbits() interface extended to control bit order as well
  3595. as bit width (from Teemu Pirinen)
  3596. * STM32 Boards
  3597. - Olimex STM32-P107: Incorporate ENCX24J600 networking for the Olimex
  3598. STM32 P107 board.
  3599. - LeafLabs Maple Board: Add board support for the LeafLabs Maple and
  3600. Maple Mini boards. From Librae.
  3601. * Atmel AT91 SAMA5D3x
  3602. - Added support for the SAMA5 DMAC controllers.
  3603. - DMA-capable drivers for the SAMA5 SPI peripherals.
  3604. - DMA-capable HSCMCI 0/1/2 drivers.
  3605. - Support for PIO interrupts
  3606. - Utilities for intelligent conversions between physical and virtual
  3607. addresses.
  3608. - Added USB host controller drivers for both the OHCI (low- and full-
  3609. speed) peripheral and the ECHI (high-speed) peripheral.
  3610. - Added USB device controller for the SAMA5 UDPHS peripheral (full-
  3611. and high-speed).
  3612. - Added a Two Wire (TWI) driver. This is a variant of I2C.
  3613. * Atmel AT91 SAMA5D3x-EK Development Boards
  3614. - Now supports onboard SDRAM. Modified heap initialization logic
  3615. to include SDRAM if configured.
  3616. - Integrated a FAT file system on the on-board SPI-based AT25 serial
  3617. FLASH
  3618. - Integrated HSMCI0 and HSMCI1 support for the microSD and full file
  3619. SD card slots. Includes PIO interrupts for card detection events.
  3620. - Integrated USB OHCI and ECHI host and high-speed peripheral support.
  3621. File system on AT25 now exported via Mass Storage Class. Includes
  3622. PIO VBUS controls.
  3623. - Integrated the TWI driver and the I2C tool. Added support for an
  3624. external AT24 serial EEPROM.
  3625. * Applications:
  3626. - apps/examples/cc3000. Initial support for the TI CC3000 network
  3627. module on the Freescale Freedom-KL25Z board from Alan Carvalho de
  3628. Assis. Includes the test to verify the CC3000.
  3629. - apps/examples/usbmsc: apps/examples/usbstorage renamed usbmsc for
  3630. consistency. Change submitted by CCTSAO.
  3631. - apps/system/usbmonitor: The USB monitor has been extended so that
  3632. it can be used with USB device or host trace data.
  3633. Efforts In Progress. The following are features that are partially
  3634. implemented but present in this release. They are not likely to be
  3635. completed soon.
  3636. * CC3000 Networking
  3637. - CC3000 Networking. Initial support for the TI CC3000 network
  3638. module on the Freescale Freedom-KL25Z board from Alan Carvalho
  3639. de Assis. This is still a work in progress.
  3640. * kconfig-fronted Configuration:
  3641. - Conversion of old configurations to use the kconfig-frontends
  3642. tool is an ongoing effort that will continue for some time.
  3643. At this time, only 46% of the configurations have been converted
  3644. to use the kconfig-frontends tools.
  3645. Bugfixes (see the ChangeLog for details). Some of these are very important:
  3646. * File Systems:
  3647. - ROMFS: Fix an error where long (>15) file names were read
  3648. incorrectly from a ROMFS file system. From Mike Smith
  3649. - NXFFS: Clean up some compiler warnings.
  3650. * Common Drivers
  3651. - MMC/SD driver: Correction for a bad return value when multiple
  3652. block SDIO transfers are suppressed. By Andrew Tridgell.
  3653. - USB HID keyboard and mass storage host-side class drivers: Fix some
  3654. compilation errors and warnings when pre-allocated data structures
  3655. are used.
  3656. - USB device-side class drivers: Fix some compilations errors when
  3657. DUALSPEED (i.e., full- and high-sped) support is enabled.
  3658. - CDC/ACM and PL2303: Don't use max packetsize assigned to the endpoint
  3659. when allocating request buffers; The default value of the endpoint
  3660. max packetsize may be incorrect because the endpoint has not yet
  3661. been configured. Really only an issue for high-speed endpoints.
  3662. - USB Host Mast Storage Class: Fixed a problem that was causing some
  3663. devices to fail to initialize: If device is returning fatal transfer
  3664. errors while attempting to initialize, don't bother with the startup
  3665. retries; abort immediately so that the device will be reset and we
  3666. can try again with a better ready device.
  3667. - USB Host Mast Storage Class: Correct a reference counting error:
  3668. When an MSC device transfer fails while waiting for UnitTestReady,
  3669. the reference count on the class was not being decremented. The end
  3670. result is a memory leak as can be seen by the USB device numbers
  3671. incrementing: sda, sdb, sdc, ...
  3672. - USB Device CDC/ACM: Fix backward conditional compilation in the
  3673. CDC/ACM driver with regard to remote wakeup and self-powered
  3674. capabilities. From the PX4 team via Lorenz Meier,
  3675. * Networking / Network Drivers
  3676. - ARP IP harvesting: Correct backward condition in netmask task.
  3677. From Max Holtzberg.
  3678. - Network connection monitor: Fixes a race condition where a loss of
  3679. connection may not be detected when the connection is lost before it
  3680. has been accepted (from Max Holtzberg).
  3681. - TCP/IP Backlog: Fix a critical bug in the TCP/IP backlog
  3682. initialization: Only the first backlog buffer was getting added to
  3683. the free list. From Max Holtzberg.
  3684. - ENC28J60: Fixes and improvements back-ported from the ENCX24J600
  3685. to the ENC28J60 by Max Holtzberg.
  3686. * STM32 Drivers:
  3687. - STM32 I2C fixes for the STM32 F3 family from John Wharington.
  3688. - STM32 I2C Correct an error that crept into the STM32 F1 I2C
  3689. driver with some recent changes. From Librae
  3690. - STM32 F4: Added some missing CONFIG_SERIAL_TERMIOS support; Fixed
  3691. some STM32 F4 Timer 8 pin configurations. From CCTSAO.
  3692. - STM32 SDIO: If CONFIG_SDIO_BLOCKSETUP defined, OS would crash. Now
  3693. Generate an error if CONFIG_SDIO_BLOCKSETUP is defined; that
  3694. option is not yet supported by the STM32 SDIO driver. From CCTSAO
  3695. - STM32 I2C Timers: Some CCER bit settings changed. Submitted by
  3696. CCCTSAO.
  3697. - STM32 CAN: Fix access to CAN filter registers. From the PX4 team
  3698. via Lorenz Meier.
  3699. - STM32 Kconfig: Fix STM32 UART7/8 Kconfig names and UART DMA. From
  3700. the PX4 team via Lorenz Meier.
  3701. * LPC17xx Drivers
  3702. - Fix #endif with missing #if in USB host header file. Reported
  3703. by Andrew Bradford,
  3704. * SAM3/4 Boards:
  3705. - Corrected DMA-related problems: Bad register definitions, parameters
  3706. reversed in a function call.
  3707. - Correct a race condition in the HSMCI driver when an interrupt
  3708. occurs before the wait for the interrupt begins.
  3709. - Peripheral clock setup: Correct a typo in a register name.
  3710. * Atmel AT91 SAMA5D3
  3711. - Order of some operations changed in boot-up logic to defer
  3712. enabling of caching of memory regions until SDRAM is initialized.
  3713. - Correct handling of spurious interrupts.
  3714. * Freescale KL25Z Drivers
  3715. - KL25Z SPI: Correct typo in name of a function. From Alan Carvalho
  3716. de Assis.
  3717. * Applications:
  3718. - apps/examples/composite: Fix a typo that can cause a configuration
  3719. error. From CCTSAO.
  3720. - apps/examples/pwm: Clean-up some configuration confusion.
  3721. - apps/netutils/dhcpd/dhcpd.c: Fixed calculation of the next lease
  3722. address. From Paolo Messina.
  3723. - apps/examples/usbmsc: Don't try to control USB trace if we are
  3724. an NSH built-in task. In that case our attempts are inadequate
  3725. and only interfere with with other logic that is attempting to
  3726. to do the same thing (in NSH or in the USB monitor).
  3727. - apps/examples/usbmsc: IMPORTANT bug fix: Change how the msconn
  3728. works. Because of recent changes the msconn command was hanging.
  3729. This was because the USB MSC start-up logic creates a pthread;
  3730. Now waitpid() will wait until all members of the task group
  3731. exit. So NSH was hanging in waitpid when msconn started even
  3732. though msconn returned. The USB MSC logic really should not use
  3733. a pthread, but we are stuck with that for now. The work-around
  3734. is the msconn now daemonizes itself so that it so that the pthread
  3735. is created in a different task group.
  3736. - apps/nshlib: Fix NSH listing output for the case of a single file.
  3737. From the PX4 team; provided by Lorenz Meier.
  3738. NuttX-6.31
  3739. ----------
  3740. The 98th release of NuttX, Version 6.31, was made on October 28, 2013,
  3741. and is available for download from the SourceForge website. Note
  3742. that release consists of two tarballs: nuttx-6.31.tar.gz and
  3743. apps-6.31.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  3744. file for build information).
  3745. Additional new features and extended functionality:
  3746. * General:
  3747. - Standardized stack checking logic so the interfaces can be used
  3748. by common stack monitoring logic.
  3749. * Audio Subsystem and Audio Drivers:
  3750. - Ken Pettit has finally released his long awaited audio subsystem.
  3751. This is a generic audio subsystem that is appropriate for the
  3752. deeply embedded MCU. Current testing has, however, been focused
  3753. on the VS1053 CODEC chip.
  3754. - Ken Pettit's VS1053 audio CODEC driver is now functional.
  3755. * Networking / Network Drivers
  3756. - Add the prefix ETH0 to all PHY configuration selections. This
  3757. will allow us to support to Ethernet MAC drivers with two different
  3758. PHYs (identified with ETH0 and ETH1). Enabled with CONFIG_NETDEV_MULTINIC.
  3759. - Add MII/RMII PHY definitions for the Micrel KSZ8051 PHY.
  3760. - Add GMII/GRMII PHY definitions for the Micrel KSZ9021/31 PHY.
  3761. - New network-optimized, higher-performance sendfile() implementation
  3762. from Max Holtzberg.
  3763. - Added a simple routing table. This table is currenly only used (1)
  3764. when we need to look-up an Ethernet device based on an IP address,
  3765. and (2) in the ARP logic when we need to request the MAC address of
  3766. the router, vs the MAC address of the peer.
  3767. - Make net_close() nonblocking and free unestablished connections if
  3768. no free connections available. From Max Holtzberg.
  3769. - Changed the meaning of the uip_*input functions. They now return
  3770. success when a packet is dropped; This is needed for the ENCX24J600
  3771. driver that must make a decision to return the packet or not: It
  3772. should not retry dropped packets. From Max Holtzberg.
  3773. - David Sidrane has completed integration of the CC3000 networking.
  3774. This is much more than a network driver: It is a complete
  3775. replacement for the NuttX networking with off-chip networking support
  3776. in the CC3000.
  3777. - Numerous enhancements to the ENCX24J600 driver from Max Holtberg.
  3778. * Other Common Drivers:
  3779. - The SST25 serial FLASH MTD driver now includes support for the
  3780. SST25VF016B. From David Sidrane.
  3781. - Add a preflight method to the SDIO interface to support the STM32
  3782. DMA usage model. From Mike Smith.
  3783. - Enhanced the MMC/SD SDIO driver to perform DMA preflight operations
  3784. and fail DMA read/write requests that fail preflighting. From Mike
  3785. Smith.
  3786. - Add an ioctl command that can be used to trigger ADC/DAC conversion
  3787. under application control.
  3788. * File Systems:
  3789. - Enhanced the FAT32 filesystem code to understand DMA preflight
  3790. failures, and to use the file sector buffer as a bounce buffer when
  3791. a user-supplied buffer is not suitable for DMA. From Mike Smith.
  3792. * Atmel AT91 SAMA5D3x
  3793. - Add support so that subsets of the total DRAM (and other external
  3794. memory) can be added to the heap, leaving other memory reserved for
  3795. other purposes (like the LCDC framebuffers).
  3796. * Atmel AT91 SAMA5D3x Drivers:
  3797. - Use more descriptive task names when starting the EHCI and OHCI
  3798. monitor tasks.
  3799. - Added a 10/100Base-T Ethernet (EMAC) driver.
  3800. - Added a 1000Base-T Ethernet (GMAC) driver.
  3801. - Added a Real Time Clock (RTC) driver and integrated with the NuttX
  3802. system time logic.
  3803. - Added support for /dev/random using the SAMA5D3x True Random Number
  3804. Generator (TRNG).
  3805. - Added a Watchdog Timer (WDT) driver.
  3806. - Added a Timer/Counter (TC) library with interface that make be used
  3807. by other drivers that need timer support.
  3808. - Added an ADC driver that can collect multiple samples using the
  3809. sequencer, can be trigger by a timer/counter, and supports DMA data
  3810. transfers.
  3811. - Added a touchscreen driver based on the special features of the
  3812. SAMA5D3 ADC peripheral.
  3813. - Added an LCD controller (LCDC) frame buffer driver.
  3814. - Added a CAN driver. However, testing has been delayed because of
  3815. cabling issues.
  3816. - Basic header file support is available for the Image Sensor
  3817. Interface (ISI) camera interface. Work on the camera driver is
  3818. underway and is expected in the next release.
  3819. * Atmel AT91 SAMA5D3x-EK Development Boards
  3820. - Add OS test support for the FPU test.
  3821. - Enable the task name feature board configuration sto provide
  3822. prettier ps command output.
  3823. - Added NX and NxWM configurations to verify the LCD and touchscreen.
  3824. There are still some outstanding issues with the NxWM configuration
  3825. as of this release.
  3826. - The TRNG and /dev/random are now enabled by default in the demo
  3827. configuration.
  3828. * Atmel AT91 SAM3/4 Boards:
  3829. - Add configuration to select revision 3 of the Arduino Due which has
  3830. some small but important differences. Suggested by gdi@embedders.org.
  3831. * STMicro STM32:
  3832. - Add support for the STM32F207ZE chip. From Martin Lederhilger.
  3833. * STMicro STM32 Boards:
  3834. - Add configuration for the Spark Core. The initial check-in is
  3835. basically the Maple Mini board and subsequent development by David
  3836. Sidrane is his special Spark emulation hardware. The configuration
  3837. should be very mature when actual Spark hardware is available.
  3838. - Support for the Olimex STM32 P207 board added by Martin Lederhilger.
  3839. - Configuration for the Mikroe STM32F4 board configuration updated for
  3840. audio support by Ken Pettit.
  3841. * NXP LPC17xx Boards:
  3842. - zkit-arm-1769: LED1 is now user controllable after booting. From
  3843. Rashid Fatah.
  3844. * Kinetis KL Drivers:
  3845. - PIT and TPM register definitions header files for the from Alan
  3846. Carvalho de Assis.
  3847. - Added low-level getc() function for operation with no file system.
  3848. The KL25Z can now support NSH in a very minimal system that does
  3849. not even have a file system.
  3850. * Kinetis KL Boards
  3851. - A new configuration called minnsh was added is an experiement to
  3852. see how small we can get the NuttX footprint and still support NSH.
  3853. From Alan Carvalho de Assis..
  3854. * TI Calypso Phones:
  3855. - Basic board support for the Motorola C139 (Compal E86) phone. From
  3856. Craig Comstock.
  3857. * Applications:
  3858. - Moved several useful examples from apps/examples to apps/system.
  3859. This includes USB MSC, USB CDC/ACM, and USB Composite.
  3860. - New addroute and delroute commands added to NSH in order to manage
  3861. the network routing table.
  3862. - Numerous enhancements and updates to the CC3000 example from David
  3863. Sidrane.
  3864. - Add a new stack monitor daemon that can be used to constantly
  3865. monitor stack usage by all threads.
  3866. - Numerous changes to get NSH working with no file system. Basically
  3867. this suppresses I/O redirection and replaces file I/O with calls to
  3868. low-level console read/write functions. Suggested by Alan Carvalho
  3869. de Assis.
  3870. - apps/system/nxplayer: A new, command-line media player called
  3871. 'nxplayer' from Ken Pettit.
  3872. - apps/examples/random: Add a simple test that dumps values from
  3873. /dev/random.
  3874. - apps/examples/adc: Add support so that a ADC driven by software
  3875. triggering can be tested.
  3876. * Build System:
  3877. - The MKDEP tools now support a new argument that identifies the
  3878. object file path.
  3879. Efforts In Progress. The following are features that are partially
  3880. implemented but present in this release. They are not likely to be
  3881. completed soon.
  3882. * kconfig-fronted Configuration:
  3883. - Conversion of old configurations to use the kconfig-frontends
  3884. tool is an ongoing effort that will continue for some time.
  3885. At this time, only 48% of the configurations have been converted
  3886. to use the kconfig-frontends tools.
  3887. Bugfixes (see the ChangeLog for details). Some of these are very important:
  3888. * Initialzation and Scheduling:
  3889. - IDLE thread initialization logic should not call group_setupidlefiles()
  3890. if there are no file descriptors (and, hence, no file system).
  3891. - Fix some cornercase error handling logic: If sched_releasetcb() is
  3892. called as part of a failed pthread startup before the flags field in
  3893. the TCB has been initialized, then a crash occurs. Pointed out by
  3894. David Sidrane.
  3895. * Networking / Network Drivers:
  3896. - Look up of a device using subnet will fail if the packet is being
  3897. sent out of our subnet (via a router). The fallback here is just to
  3898. use the only device ("eth0") if the subnet lookup fails (this logic
  3899. was extended to handle multiple Ethernet devices by adding a simple
  3900. routing table).
  3901. - Fix some backward conditional logic in send() that enabled the
  3902. check if the ARP address is in the ARP table. From Max Holtzberg.
  3903. - Notify the socket layer from the network monitor if a connection is
  3904. lost before the monitoring callback has been registered. From Max
  3905. Holtzberg.
  3906. - send(): Reset the send timeout when the data is ACKed, not when the
  3907. data is sent. Remove conditions on checking for timeout. From Max
  3908. Holtzberg.
  3909. - Correct how the TCP/IP initial minimum MSS is calculated. Max
  3910. Holtzberg.
  3911. - TCP state machine: Move tcp connection into SYN_RCVD state after
  3912. aception instead of bypassing and moving directly into ESTABLISHED.
  3913. From Max Holtzberg.
  3914. - Numerous fixes to the ENCX24J600 driver from Max Holtberg.
  3915. * USB Drivers:
  3916. - Change naming of SELFPOWERED and REMOTEWAKEUP to avoid name
  3917. collisions. Prepend the name of the driver (for example
  3918. CDCACM_SELFPOWERED).
  3919. - CDC/ACM class driver: Change the interval for the interrupt
  3920. endpoint from 0xff (invalid) to 10. This is not a critical
  3921. change but will avoid a complaint from the Linux driver when
  3922. it overrides the 0xff value.
  3923. * ARM Cortex-A5:
  3924. - Fix an error in data cache clean and invalidate functions: Fix of
  3925. addresses to cache line boundaries.
  3926. * Atmel AT91 SAMA5D3x Drivers:
  3927. - Correct some inconsistencies in the way that USB configuration
  3928. settings are used. This caused compilation errors in SAMA5 OHCI
  3929. when USB debug was ON but USB host tracing was off.
  3930. - When 480MHz UPLL is used to drive OHCI, it should have a divider
  3931. of 10. However, that does not work. A divider of 5 does. Why?.
  3932. - OHCI HCD: Fix a place where DMA-related data needed to be flushed
  3933. to data cache; Fix another where a virtual address was being used
  3934. in a register where a physical address was required.
  3935. - HSMCI Driver: TX DMA disabled. It is just not reliable. No idea
  3936. why. RX DMA is still used.
  3937. - STM32F103C pinmapping corrections from David Sidrane.
  3938. * Atmel SAMA5D3x-EK Board
  3939. - Increase the number of pre-allocated watchdog timers. The default
  3940. number of 4 was easily being exhausted in the more complex
  3941. configurations.
  3942. * STMicro STM32:
  3943. - STM32 F4 DMA definitions: Typo fixes for UART7 and UART8 DMA
  3944. configs. From Mike Smith.
  3945. - DMA priority configuration corrections from Mike Smith.
  3946. - Changes to the stm32_dmacapable API. In order to correctly
  3947. verify that a buffer can be transferred, the transfer count and
  3948. the CCR value are required. Implemented stm32_dmacapable for
  3949. stm32f1xx devices. Enhanced stm32_dmacapable for stm32f2xx and
  3950. stm32f4xx devices to check for additional conditions that will cause
  3951. DMA to fail or lose data.
  3952. - STM32 F1 DMA fix from David Sidrane: The DMA_CNDTRx register
  3953. cannot be modified if the DMA channel is disabled.
  3954. * STMicro STM32 Drivers:
  3955. - Fix compilation errors from bad bit definitions in ADC and PWM
  3956. register. From Martin Lederhilger.
  3957. - DMA-related fixes to the SPI driver from Ken Pettit.
  3958. * NXP LPC17xx Drivers:
  3959. - Remove undefined spi_select() prototype. This was causing compile
  3960. time warnings.
  3961. * NXP LPC17xx Boards:
  3962. - zkit-arm-1768: MMC/SD is on SPI, not SSP0. From Rashid Fatah.
  3963. * C Library
  3964. - scanf() fixes from kfrolov: 1) sscanf() function hangs in the
  3965. following example: sscanf("2", "%u,%u,%u,%u", ...), 2) sscanf()
  3966. returns incorrect number of parsed numbers if some arguments
  3967. can't be parsed: sscanf("=2", "%u,%u,%u,%u",...)==1 instead of
  3968. 0, and 3) using of char* instead of const char* in vsscanf
  3969. function leads to warnings from GCC.
  3970. * Build System
  3971. - Dependency generation generation was broken for directories that
  3972. keep objects in a sub-directory. The MKDEP tools now support a new
  3973. argument that identifies the object file path.
  3974. - tools/define.sh: 'cut' no longer works as it once did. Script
  3975. adapted to observed behavior.
  3976. * Applications:
  3977. - Remove a warning from the NSH library when DHCP is not enabled.
  3978. - Default NSH IP address should be 0x0a000001 (10.0.0.1), not
  3979. 0xa0000001 (160.0.0.1). Ditto for the gateway.
  3980. - Add some missing options to the OS test Kconfig file
  3981. - Fix some bad conditional compilation in the USB monitor.
  3982. - Fix default I2C frequency used by the I2C tool: 400KHz instead
  3983. of 4MHz. Suggested by Max Kriegleder.
  3984. - Increase stack size for the system/info command. Ken Petit
  3985. reports that this simple command can exceed its 768 stack size
  3986. under certain conditions. The size is marginal and has been
  3987. increased to 1024 by default but is also now configurable.
  3988. - apps/Makefile: Needs to include external/Make.defs if we want
  3989. allow external applications to participate in the NuttX
  3990. configuration. Suggested by gdi@embedders.org.
  3991. - apps/netutils/telnetd: Missing argument to debug statement
  3992. can cause crashes in certain error conditions. From David
  3993. Sidrane.
  3994. - apps/examples/can: Correct an error in a debug statement. From
  3995. Martin Lederhilger.
  3996. NuttX-6.32
  3997. ----------
  3998. The 99th release of NuttX, Version 6.32, was made on December 7, 2013,
  3999. and is available for download from the SourceForge website. Note
  4000. that release consists of two tarballs: nuttx-6.32.tar.gz and
  4001. apps-6.32.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  4002. file for build information).
  4003. Additional new features and extended functionality:
  4004. * General:
  4005. - Extension and standardization of stack debug logic. Now includes
  4006. coloration of the IDLE and interrupt stacks as well as the heap.
  4007. Suggested by David Sidrane.
  4008. * Audio Subsystem and Audio Drivers:
  4009. - I2S interface definition. Integrates with audio sub-system.
  4010. - VS1053 worker thread stack size is now configurable and assigned a
  4011. name via pthread_setname_np(). From Ken Pettit.
  4012. * Networking / Network Drivers
  4013. - Updates and adaptations to support for TI CC3000 wireless module
  4014. from David Sidrane. These updates include multi-threading support
  4015. and interface and header file changes to integrate more seamlessly
  4016. with NuttX applications.
  4017. * File Systems:
  4018. - procfs: Add support for a tiny procfs file system. The initial
  4019. offering is little more that a proof of concept but may be developed
  4020. further in subsequent releases.
  4021. - NXFFS: An initial attempt was made to integrate NXFFS with the NAND
  4022. MTD driver. Changes were made to handle bad blocks. However, I
  4023. later realized that NXFFS cannot handle NAND because the way that
  4024. is re-writes blocks is incompatible with the NAND ECC handling.
  4025. These changes were backed-out so as not to introduce turmoil, but
  4026. can be re-enabled if needed via configuration option.
  4027. - NXFFS: Make the start up scan of the media a configuration option.
  4028. It just takes to long and is not really necessary! Those rare cases
  4029. where the scan was helpful can be fixed using MDIOC_BULKERASE IOCTL
  4030. command.
  4031. * General Drivers:
  4032. - I2S: A simple character driver was added to support I2S accesses.
  4033. This driver in its current state is intended only to support I2C
  4034. testing and would not be appropriate to used for any real driver
  4035. application.
  4036. * MTD Drivers
  4037. - Add a container for an MTD device that can be used to provide a
  4038. simple, lightweight interface to configuration data storage that
  4039. resides on some storage media that is wrapped as an MTD device.
  4040. From Ken Pettit.
  4041. - New interface definition for lower half NAND drivers.
  4042. - MTD Nand: Add MTD NAND driver that will support ONFI devices,
  4043. non-ONFI devices (via table lookup), bad block checking, software
  4044. ECC (Hamming), and will interact with the lower-half, hardware-
  4045. specific, NAND driver. Based on BSD-compatible Atmel sample code.
  4046. - MTD geometry structure is now packed so that it can support larger
  4047. erase block sizes needed by NAND without increasing the size of
  4048. the geometry structure.
  4049. - SST25: Add another SST25 SerialFlash driver, sst25xx.c. This one
  4050. differs from sst25.c in that it supports larger SST25 parts: In
  4051. the larger parts support page write instead of byte/word writes
  4052. like the smaller parts. From Ken Pettit.
  4053. * USB Drivers
  4054. - STM32 F1 USB Device: Add support for decoded USB trace strings.
  4055. From David Sidrane.
  4056. * ARM
  4057. - Add more ARM9 cache management functions to flush and invalidate
  4058. D-Cache for DMA support.
  4059. * Atmel AT91 SAMA5D3x Drivers:
  4060. - Many new drivers including CAN, PWM, SSC/I2S
  4061. - PCK: Add support for programmable clock outputs.
  4062. - NAND: Driver with hardware ECC and DMA support
  4063. * Atmel AT91 SAMA5D3x Boards:
  4064. - SAMA5D3x-EK: Add support for the apps/examples/i2schar test.
  4065. - SAMA5D3x-EK: Provides board-specific memory controller initialize
  4066. for NAND flash.
  4067. - SAMA5D3x-EK: Add support for "auto-mounting" NAND MTD block driver
  4068. or NXFFS file system.
  4069. * Atmel AT91 SAM3/4 Boards:
  4070. - Basic support for the Atmel SAM4E family. From Mitko.
  4071. * STMicro STM32:
  4072. - Added support for the STM32F429. From Ken Pettit.
  4073. - Added support for GPIOK and GPIOJ. From Ken Pettit.
  4074. * STMicro STM32 Drivers
  4075. - STM32 F4 OTG FS/HS Device: OTG FS device and host drivers extended
  4076. so that they can support either the OTG FS peripheral or the OTG HS
  4077. peripheral (in FS mode). This was done as a quick way to get USB
  4078. support on the STM32F429 which has only OTG HS. From Ken Pettit.
  4079. - Added header files and driver framework for the STM32F429 LTDC
  4080. framebuffer driver. From Ken Pettit.
  4081. * STMicro STM32 Boards:
  4082. - Support for the Spark board was completely by Davide Sidrane. The
  4083. Spark configuration includes integrated CC3000 wireless support, FAT
  4084. file system on the SerialFlash and a composite device that can be
  4085. used both to export the FAT file system and to provide a serial
  4086. interface.
  4087. - The Mikroe-stm32f4 now uses /dev/config for configuration data
  4088. storage. From Ken Pettit.
  4089. - Added support for the STM32F429I-Discovery board from Ken Pettit.
  4090. - Added board support for the ViewTool STM32F103/F107 board with the
  4091. STM32F107VCT6 installed.
  4092. * NXP LPC31xx Drivers:
  4093. - USB ECHI HCD: Add a driver for the low-/full-/high-speed variant
  4094. of the EHCI host controller.
  4095. * NXP LPC31xx Boards:
  4096. - Board-specific USB host support for the Emedded Artists EA3131 board.
  4097. (Missing PCA9532 controls).
  4098. - Add support for the Olimex LPC-H3131 board. Including USB host
  4099. support (which does not depend on the PCA8532 interface).
  4100. * Kinetis KL Drivers:
  4101. - PWM driver for the Freescale Kinetis KL family from Alan Carvalho
  4102. de Assis.
  4103. * Kinetis KL Boards
  4104. - Freedom-KL25Z: Add PWM support from Alan Carvalho de Assis.
  4105. * TI Stellaris LM3S
  4106. - Don't initialize .data in start-up logic if not running from FLASH.
  4107. * Applications:
  4108. - apps/platform: A new home for platform-specific application code.
  4109. - Define a common interface that can be used to manage platform-
  4110. specific configuration data. From Ken Pettit.
  4111. - apps/examples/configdata: A unit test for the MTD configuration
  4112. data driver from Ken Pettit.
  4113. - Aapps/platform/mikroe-stm32f4: dd platform-specific storage of
  4114. configuration data for the Mikroe-stm32f4. From Ken Pettit.
  4115. - apps/examples/cc3000: Fine tuning of memory usage from David Sidrane.
  4116. - apps/system/nxplayer: Play thread stack size is now configurable.
  4117. All NxPlayer threads now have names assigned via pthread_setname_np().
  4118. From Ken Pettit.
  4119. - apps/examples/i2schar: The I2S test based on the I2S character
  4120. driver.
  4121. - apps/examples/hidkbd/hidkbd_main.c: Now calls a function named
  4122. arch_usbhost_initialize() that must be provided by the platform-
  4123. specific code.
  4124. - NSH:
  4125. - hexdump: Add skip= and count= options to the hexdump command. From Ken Pettit.
  4126. - Allow USB trace without a USB console. From David Sidrane.
  4127. - Mount command updates from Ken Pettit.
  4128. - Add an option to the mkfatfs command to specify FAT12, FAT16, or FAT32.
  4129. * Tools
  4130. - tools/mkctags.sh: A script for creating ctags from Ken Pettit.
  4131. Efforts In Progress. The following are features that are partially
  4132. implemented but present in this release. They are not likely to be
  4133. completed soon.
  4134. * kconfig-fronted Configuration:
  4135. - Conversion of old configurations to use the kconfig-frontends
  4136. tool is an ongoing effort that will continue for some time.
  4137. At this time, only 50% of the configurations have been converted
  4138. to use the kconfig-frontends tools.
  4139. Bugfixes (see the ChangeLog for details). Some of these are very important:
  4140. * File Systems
  4141. - FAT: In one error return case, the error return value was not being
  4142. set, making the failure look like success. From David Sidrane.
  4143. - mount: SMART FS must be included in the conditional compilation for
  4144. the set of file systems that require block drivers. From Daniel
  4145. Palmer.
  4146. - SmartFS: Fixed a minor bug with SMART partition number reporting
  4147. that would only be seen if both partition support and multi-root
  4148. directory support are enabled at the same time. From Ken Pettit.
  4149. - Deadlock: The inode semaphore must be re-entrant. Here is the re-
  4150. entrant path that I found: (1) USB host connects to FLASH drive and
  4151. creates /dev/sda, (2) /dev/sda is mounted, (3) FLASH drive is
  4152. removed but /dev/sda is not destroyed because there is still a
  4153. reference on the device because of the mount, (4) umount() is
  4154. called, taking the inode semaphore, now the driver tries to destroy
  4155. the block driver by calling unregister_blockdriver(). But (5)
  4156. unregister_blockdriver() also takes the inode semaphore causing a
  4157. deadlock if the inode semaphore is not re-entrant.
  4158. - FAT: Fix a typo in the FAT16 formatting logic. Was this ever able to
  4159. format a FAT16 volume?
  4160. * MTD Drivers
  4161. - MTD Partitions: Fix erase block vs page block confusion. From Ken
  4162. Pettit
  4163. - SST25 Serial Flash: Improved write performance by fixing a bug that
  4164. prevented operation in the faster write mode. From David Sidrane.
  4165. * USB Drivers:
  4166. - USB MSC Device: pthread_join() does not work if called from a
  4167. different task group than the pthread. This is correct behavior,
  4168. but still a problem. The correct solution would be configure the
  4169. USB MSC thread to a task, however, this workaround from David
  4170. Sidrane plugs the hole for now.
  4171. - USB CDC/ACM, USB MSC, and Composite Device Classes: Un-initialization
  4172. logic caused re-use of a stale pointer. Changed to a two pass
  4173. un-initialization for the case of the composite driver: Memory
  4174. resources are not freed until the second un-initialization pass.
  4175. From David Sidrane.
  4176. * STMicro STM32 Drivers:
  4177. - STM32 F1 USB Device: Fix some errors that cause crashes when the USB
  4178. was disconnected. From David Sidrane.
  4179. - STM32 F1 USB Device: Correct EP0 state handling logic when buffers
  4180. larger than the EP0 packet size are sent. From David Sidrane.
  4181. - STM32 F1 USB Device: The long outstanding bug involving the handling
  4182. of OUT SETUP commands has been fixed in the STM32 F1 USB device
  4183. driver by David Sidrane.
  4184. - Kconfig: Add missing setup of CAN TSEG1 and TSEG2 values. From
  4185. Martin Lederhilger.
  4186. * Tools
  4187. - tools/mkconfig.c: SMART FS must be included in the conditional
  4188. compilation for the set of writable file systems. Noted by Daniel
  4189. Palmer.
  4190. * Applications:
  4191. - apps/platform/Makefile: Was not dealing with the bin sub-directory
  4192. correctly.
  4193. - apps/system/composite/composite_main.c: The wrong handle was getting
  4194. nullified. From David Sidrane.
  4195. NuttX-6.33
  4196. ----------
  4197. The 100th release of NuttX, Version 6.33, was made on January 30, 2014,
  4198. and is available for download from the SourceForge website. Note
  4199. that release consists of two tarballs: nuttx-6.33.tar.gz and
  4200. apps-6.33.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  4201. file for build information).
  4202. Additional new features and extended functionality:
  4203. * Core OS Interfaces
  4204. - nanosleep() added. sleep() and usleep() are no longer core OS
  4205. interfaces. These have been moved into the library and re-implemented
  4206. as simple wrappers around nanosleep().
  4207. * File Systems
  4208. - procfs restructured by Ken Pettit. Added files for MTD status.
  4209. - procfs extended to show uptime and task group status.
  4210. - procfs now shows stack information.
  4211. * Networking
  4212. - Add support for the SO_LINGER socket option. Extended from logic
  4213. provided by Jason Jiang. Enabled with CONFIG_NET_SOLINGER.
  4214. - TCP write buffering support added. From Jason Jiang.
  4215. - Changes from Max Holtzberg to improve how network status is
  4216. reported. New controls to manage carrier detect.
  4217. * Graphics
  4218. - Massive reshuffling of files with little or no logic changes. This
  4219. reshuffling was necessary to build graphics applications with the
  4220. kernel builds where the graphics application lie in user space and
  4221. the core graphic server likes in kernel space. Moved much logic out
  4222. of nuttx/graphics to a new user library, libnx.
  4223. * Cortex-A5/A8/A9
  4224. - Existing Cortex-A5 support updated to include Cortex-A8/9.
  4225. - Add the syscall.h header file needed for the Cortex-A architecture.
  4226. - Start-up logic now supports execution from FLASH with .data and
  4227. .bss in SDRAM. This was not possible prior to this because .bss
  4228. and .data were initialized before SDRAM was configured.
  4229. * Allwinner A10:
  4230. - Basic support for the Allwinner A10 (Cortex-A8) is in place.
  4231. * Allwinner A10 boards
  4232. - Support for the pcDuino v1 board has been added. This support
  4233. is not yet very mature and still lacks many drivers. It is a
  4234. good starting point, however, if anyone wants to develop A10
  4235. support.
  4236. * Atmel SAMA5D3X
  4237. - Start-up logic now supports execution from FLASH with .data and
  4238. .bss in SDRAM. This was not possible prior to this because .bss
  4239. and .data were initialized before SDRAM was configured.
  4240. * Atmel SAMA5D3X Boards
  4241. - Partial logic in place to support the OV2640 camera. Still needs
  4242. quite a bit of additional logic to be useful.
  4243. * ARMv7-M
  4244. - Add support for high priority, nested interrupts. This change
  4245. effects not only core ARMv-7M logic, but all ARMv7-M MCU logic:
  4246. LM3S, LM4F, LPC17xx, LPC43xx, SAM3, SAM4, and STM32. See
  4247. http://www.nuttx.org/doku.php?id=wiki:nxinternal:highperfints
  4248. * STMicro STM32
  4249. - Add clocking support for STM32F107 USB OTG FS (which does not yet
  4250. work)
  4251. - Single-wire UART support for the F1 series from Thomas Grubler.
  4252. * STMicro STM32 Boards
  4253. - The Viewtool board can now be configured to support either the
  4254. STM32F103VCT6 or the STM32F107VCT6.
  4255. - The Viewtool STM32F107VCT6 now supports networking with the
  4256. DP83848C module installed.
  4257. - Add support for Viewtool SSD1289-based LCD on the Viewtool
  4258. STM32F103VCT6 board (untested)
  4259. - Add support for the XPT2046 touchscreen controller on the Viewtool
  4260. LCD module connected to the Viewtool STM32F103 board.
  4261. - Added kernel mode build support for the STM3240G-EVAL board. Added
  4262. a new kernel mode NxWM build configuration
  4263. - C++ static constructor logic from the nuttx/configs/stm3240g-eval/
  4264. directory to the apps/platform/stm3240g-eval/up_cxxinitialize.c
  4265. where is belongs so that it is available in user-space in the kernel
  4266. mode build.
  4267. - Add native Windows build support for the Olimex STM32 P107. From
  4268. Max Holtzberg
  4269. - Support for the STM32VL-Discovery board. Contributed by Alan
  4270. Carvalho de Assis
  4271. - Added a configuration for testing simple configurations on the
  4272. PX4FMU v2.
  4273. * ZiLOG ZNEO Boards
  4274. - Add an NSH configuration for the Z16F2800100ZCOG ZNEO board.
  4275. - Added support for the Toyaga 16Z ZNEO board. The 16Z board is
  4276. based on the ZiLOG ZNEOZ16F2811AL20EG part. See
  4277. https://github.com/toyaga/16z for further information
  4278. - Developed a patch to work around a compiler error that is revealed
  4279. when building the NSH configuration.
  4280. * Architecture-Independent Drivers
  4281. - OV2640 Camera Driver.
  4282. - Support for the Sharp Memory LCD from Librae.
  4283. * Library
  4284. - Pattern matching logic extended to handle set of characters and
  4285. ranges of character values. From Ken Pettit.
  4286. - sleep() and usleep() moved intot the C library. These are not
  4287. longer core OS interfaces; they are simple wrappers for the
  4288. nanosleep().
  4289. - Add an implementation of gets_s().
  4290. - Extend fopen() to include support for C11 exclusive open ("x")
  4291. open mode.
  4292. - Add an implementation of stpcpy()
  4293. - strtol(), strtoll, strtoul(), strtoull(), and strtod() from
  4294. libc/string to libc/stdlib where they belong.
  4295. * Header Files
  4296. - Add rsize_t to include/sys/types.h
  4297. - Add the C11 thread.h header file
  4298. * Configuration/Build System
  4299. - Top level Makefile now supports qconfig and/or gconfig targets that
  4300. may be used for configuration. These may be used if you build
  4301. kconfig-frontends with support for kconfig-qconf and/or
  4302. kconfig-gconf.
  4303. - Add CONFIG_DEBUG_NOOPT. Now you can independently enable/disable
  4304. debug symbols and optimization
  4305. - File system related header files moved to include/nuttx/fs
  4306. - Video related header files moved to include/nuttx/video
  4307. - Changes for native Windows build: fix creation of a .version file
  4308. if one does not exist. Make sure that the APPDIR environment
  4309. variable is set before configuring. From Max Holtzberg.
  4310. - Board configuration sub-directory can now be specified. The default
  4311. need not be used. This is only useful when CONFIG_ARCH_BOARD_CUSTOM
  4312. is selected and there is no meaningful default sub-directory.
  4313. - Many functions renamed to better conform with the naming standard:
  4314. up_buttoninit() renamed to board_button_initialize(), up_buttons()
  4315. renamed to board_buttons(), up_irqbutton() renamed to
  4316. board_button_irq(), up_ledinit() renamed to board_led_intialize(),
  4317. up_ledon() renamed to board_led_on(), and up_ledoff() renamed to
  4318. board_led_off(). All prototypes removed from board.h header files.
  4319. Now ONLY prototypes in include/nuttx/arch.h.
  4320. * Applications
  4321. - NSH: Refactor. Separate NSH command handling and command execution
  4322. from NSH line parsing.
  4323. - NSH: Will now support multiple commands on a command line, each
  4324. separated with a semi-colon.
  4325. - NSH: Add support of commands enclosed in back quotes as command
  4326. arguments.
  4327. - NSH: Can now handle arguments that are concatenations of constant
  4328. strings, command return data, application return data, and
  4329. environment variables.
  4330. - NSH: Add true and false commands.
  4331. - NSH: Add support for while-do-done and until-do-done loops. These
  4332. only work when executing a script file because they depend on the
  4333. ability to seek in the file to implement the looping behaviors.
  4334. Can be conditionally compiled out to reduce footprint.
  4335. - NSH: Loosen up if-then-else-fi syntax to allow a command to be on
  4336. the same line as the then or else tokens like:
  4337. "if true; then echo true; else echo false; fi". More like bash.
  4338. - NSH: Add a break command that can be executed with a loop to
  4339. terminate the loop immediately.
  4340. - system/inifile: A simple .INI file parser.
  4341. - system/vi: Add support for a tiny, VI work-alike editor. This is
  4342. a minimal full screen editor that works with a terminal emulator
  4343. that using VT100 commands.
  4344. Efforts In Progress. The following are features that are partially
  4345. implemented but present in this release. They are not likely to be
  4346. completed soon.
  4347. * kconfig-fronted Configuration:
  4348. - Conversion of old configurations to use the kconfig-frontends
  4349. tool is an ongoing effort that will continue for some time.
  4350. At this time, only 53% of the configurations have been converted
  4351. to use the kconfig-frontends tools.
  4352. Bugfixes (see the ChangeLog for details). Some of these are very important:
  4353. * Core OS
  4354. - Added missing sem_timedwait() system call.
  4355. * Networking
  4356. - Prevent tcp_connect callback from being double freed. From Max
  4357. Holtzberg
  4358. - uiplib: Support new definitions and state passing for network
  4359. device status. From Maz Holtzberg.
  4360. * File Systems
  4361. - FAT: (1) A correction to FAT cluster allocation, and (2) Fix to some
  4362. root directory logic that was conditionally done only for FAT 32.
  4363. Apparently this needs to done for all FAT types. Both from Andrew
  4364. "Tridge" Tridgell via Lorenz Meier.
  4365. * Binary Formats
  4366. - Fix a small memory leak when attempting to load a program from a file.
  4367. * Cortex-A8/9
  4368. - Fix some errors in the cache invalidation logic (only seem to matter
  4369. for Cortex-A8).
  4370. - Add more nop's after enabling the MMU. The cortex-a8 seems to need
  4371. these
  4372. * Graphics
  4373. - Fix a typo that caused a compilation error when
  4374. CONFIG_NXCONSOLE_BPP < 8. From Librae
  4375. * ARMv7-M
  4376. - Correct alignment of RAM vector table.
  4377. - Interrupt handling: Do not disable and enable the IRQ on each
  4378. entry, (2) this interferes with controlling the IRQ interrupt
  4379. setting from interrupt handlers, and (3) up_disable_irq() does
  4380. not work anyway so that this has never done anything.
  4381. - Fix all implementations of up_disable_irq() for all Cortex-M3 and
  4382. M4 architectures: To enable an interrupt on the Cortex-M3/4 CPU,
  4383. you need to set a bit in the ISER register. To disable the
  4384. interrupt, you need to set a bit in the ICER register. Existing
  4385. logic was trying to disable interrupts by clearing the bit in the
  4386. ISER register. That will not work; writing a '0' to the ISER
  4387. register has no effect. That means that up_disable_irq() was
  4388. doing nothing! It turns out that that is not really important
  4389. because up_disable_irq() is not really used for that purpose. But
  4390. some spurions STM32 ADC interrupts have been reported to me and this
  4391. turned out to be the cause in that case. Thanks to Manuel Stühn for
  4392. the tip.
  4393. * STMicro STM32
  4394. - Fix configuration and pin definitions that would prevent building
  4395. USB for the connectivity and performance lines.
  4396. - STM32L15xx: Fix a typo in USB pin definitions
  4397. - Fix pin definition names for SPI2 MOSI and MISO. Noted by Brian Webb
  4398. - Various fixes for STM32F103ZE SPI3 pin mapping definitions. From
  4399. Steve Redler IV
  4400. * STMicro STM32 Boards
  4401. - Olimex STM32-P107: Failed to build if SPI3 for UEXT is not remapped.
  4402. From Max Holtzberg
  4403. * x86 Boards
  4404. - Add a configuration option to select the -m32 compiler option when
  4405. building for a 32-bit target on a native 64-bit compiler. So far,
  4406. only used for the qemu/i486 configuration.
  4407. - Patch from Matt Campbell to fix 'Error: .size expression for idle_stack
  4408. does not evaluate to a constant".
  4409. * Library
  4410. - strftime(): Needs null termination on the generated string. From
  4411. Max Holtzberg.
  4412. - Typo in ctype.h macro name: iscntrl(), not iscontrol().
  4413. - If there are no arguments (argc == 1), then getopt() will leave the
  4414. optind variable in an undefined state (2014-1-20).
  4415. - ARMv7-M memcpy(): Assembler changes with the gcc-47 distribution
  4416. from ARM mean that we need to be explicit about branch sizes; one
  4417. or more of the wide branch opcodes results in bad table branching.
  4418. From Mike Smith.
  4419. * Configuration/Build System
  4420. - Fixes for some tools/ for Windows build issues from Max Holtzberg.
  4421. - Config.mk: 'cypath' must be called if we are using a Windows native
  4422. toolchain with the Cygwin 'make' to convert paths to proper
  4423. Windows paths. From Richard Cochran.
  4424. - ARM Makefile: Dependency directory list is now computed from the
  4425. VPATH. From Richard Cochran.
  4426. - builtin/Makefile: Fixes for native Windows build from Max Holtzberg.
  4427. - Refactor some configuration dependencies: NSH networking features
  4428. should depend on netutil selections; netutil selections, in turn,
  4429. should depend on networking selections.
  4430. * Applications
  4431. - NSH: Modified the df -h logic to eliminate truncating numbers in
  4432. conversion (like 7900 -> 7M). From Ken Pettit.
  4433. NuttX-7.1
  4434. ---------
  4435. The 101st release of NuttX, Version 7.1, was made on March 15, 2014,
  4436. and is available for download from the SourceForge website. Note
  4437. that release consists of two tarballs: nuttx-7.1.tar.gz and
  4438. apps-7.1.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  4439. file for build information).
  4440. The previous NuttX version was 6.33. The NuttX minor version number is
  4441. incremented on each release, but the major version number is incremented
  4442. only when an incompatibility with previous versions is included in the
  4443. release. In this case, the legacy, manual configuration is no longer
  4444. supported by the NuttX build system beginning with NuttX 7.1. Only the
  4445. newer configurations generated by the kconfig-frontends tools will generate
  4446. viable NuttX configurations.
  4447. All board configurations in the NuttX source tree have been converted to
  4448. use the newer configuration, but if you have some older style configurations
  4449. for you board, you will need to convert those configurations to use the
  4450. kconfig-frontends tools before taking any new code from the repository. See
  4451. http://www.nuttx.org/doku.php?id=wiki:howtos:convertconfig for some
  4452. guidelines.
  4453. Additional new features and extended functionality:
  4454. * Core OS:
  4455. - System time logic now includes logic to measure and calculate the
  4456. CPU load percentage (from David Alessio). This CPU load logic
  4457. extended to keep counts on each thread. The per-thread CPU is
  4458. now reported in the procfs under <pid>/loadavg An asynchronous,
  4459. "external" clock may be used to drive the CPU load calculations
  4460. for more accurate measurements when needed.
  4461. * File Systems:
  4462. - As mentioned above, the per-thread CPU load information is now
  4463. reported in the procfs under <pid>/loadavg.
  4464. - Many file system interfaces have been extended to operate on the
  4465. top-level NuttX pseudo filesystem. These include rmdir, mkdir,
  4466. rename, and unlink. This capability can be disabled with
  4467. CONFIG_DISABLE_PSEUDOFS_OPERATIONS in order to keep the footprint
  4468. small.
  4469. * Networking:
  4470. - Numerous updates and improvements to the CC3000 driver from David
  4471. Sidrane.
  4472. * Common Drivers:
  4473. - Defined a mouse interface that is very similar to a touchscreen
  4474. interface, but allows reporting of all mouse buttons. Also, unlike
  4475. touchscreen drivers, mouse drivers need to report positional data
  4476. with no button is pressed so that the mouse position can drive a
  4477. cursor.
  4478. - Added support for a USB HID boot mouse device. Cursor support is
  4479. not integrated and must be provided by the application based upon
  4480. the reported mouse data.
  4481. - Support added for the MIO283QT9A LCD from Toby Duckworth.
  4482. * Atmel SAMA4E:
  4483. - Added complete architecture support for the Atmel AT91 SAM4E
  4484. Cortex-M4F parts.
  4485. * Atmel SAM4E Board Support:
  4486. - Add board support for the SAM4E-EK board.
  4487. * Atmel SAM4E Drivers:
  4488. - Added logic to manage the Cortex-M Cache Control block.
  4489. - Developed and integrated an Ethernet MAC driver for the SAM4E.
  4490. - Backported the SAMA5 SPI driver to the SAM3/4 architecture. The
  4491. SAMA5 version supports both multiple SPI peripherals as needed by the
  4492. SAM3A and SAM3X and also supports DMAC (but not PDC) needed by the
  4493. SAM4E.
  4494. * Atmel SAM D20:
  4495. - Added basic architecture support for the Atmel AT91 SAM D20
  4496. Cortex-M0+ parts.
  4497. * Atmel SAM D20 Board Support:
  4498. - Added basic support for SAM D2 Xplained Pro board. Currently, the
  4499. NuttShell (NSH) works reliably over a serial port. An SPI driver
  4500. has also been developed. Work with the SAM D20 has been temporarily
  4501. stopped, however, in order to focus on the SAM4E-EK.
  4502. * TI Tiva TMC4C123G:
  4503. - Added architecture support for the TI Tiva TM4C123G parts. This was
  4504. merged into the existing support for the LM3S and LM4F families.
  4505. All directory, file, and function references changed from lm to tiva.
  4506. * TI Tiva TMC4C123G Board Support:
  4507. - Added basic board support for the TM4C123G-Launchpad. As of this
  4508. release the TM4C123G-Launchpad board support is untested and likely
  4509. incomplete.
  4510. * STMicro STM32 Boards:
  4511. - The Mikroe STM32F4 can now support the newer MIO283QT9A LCD. From
  4512. Toby Duckworth.
  4513. - Miscellaneous changes to better support FPU on STM32F429 Discovery
  4514. from David Alessio.
  4515. * NXP LPC2378 Drivers:
  4516. - Incorporated I2C and SPI drivers for the LPC23xx from Lizhuoyi.
  4517. * QEMU i486 Drivers:
  4518. - New QEMU keyboard and VGA drivers from Lizhuoyi.
  4519. * Documentation:
  4520. - Added a coding standards document. See
  4521. http://www.nuttx.org/doku.php?id=documentation:codingstandard
  4522. * Configuration/Build System:
  4523. - A configuration option, CONFIG_DEFAULT_SMALL, was added to select
  4524. default values for configuration variables based upon whether you
  4525. want a smaller footprint or more features. This is not very useful
  4526. if you are modifying existing configurations because then the
  4527. default values do not apply.
  4528. - CONFIG_DEFAULT_SMALL has been defined on all tiny MCU configurations
  4529. so that they do not grow so rapidly when new, optional features are
  4530. added.
  4531. - The legacy, manual configuration is no longer supported by the
  4532. NuttX build system. Only the newer configurations generated by
  4533. the kconfig-frontends tools will generate viable NuttX
  4534. configurations. All board configurations in the NuttX source tree
  4535. have been converted to use the newer configuration, but if you have
  4536. some older style configurations for you board, you will need to
  4537. convert those configurations to use the kconfig-frontends tools. See
  4538. http://www.nuttx.org/doku.php?id=wiki:howtos:convertconfig for some
  4539. guidelines.
  4540. * Applications:
  4541. - NSH can now use an EMACS-like command line editor. This CLE, is
  4542. really more like the traditional readline than is the default, tiny
  4543. the NuttX readline .
  4544. - The touchscreen example can now be configured to work with either a
  4545. touchscreen or a mouse device.
  4546. - Several NSH commands can now be used to operate on objects in the
  4547. top-level pseudo-filesystem: rmdir, mkdir, mv, and rm. This
  4548. capability can be disabled with CONFIG_DISABLE_PSEUDOFS_OPERATIONS
  4549. in order to keep the footprint small.
  4550. - If both the CPU load feature and the procfs features are enabled,
  4551. then the NSH 'ps' command will show the CPU load used by each
  4552. thread.
  4553. Bugfixes (see the ChangeLog for details). Some of these are very important:
  4554. * Core OS:
  4555. - task_terminate() always returned an error because the return value
  4556. was not being set correctly (from Gosha).
  4557. - nanosleep() Fix a missing call to re-enable interrupts (from Jason
  4558. Jiang).
  4559. * File Systems:
  4560. - Fixed an error in the FAT logic that can cause file corruption. The
  4561. error conditions are rare and only seen with very large files (from
  4562. Andrew Tridgell). This replaces a previous, partial fix for the same
  4563. problem.
  4564. - Fixed memory leaks in the NXFFS open() and stat() implementations
  4565. (from Lzyy).
  4566. - The interfaces include opendir(), readdir(), et al, were modified so
  4567. that errors will not be reported if you attempt to list a empty
  4568. pseudo-directory.
  4569. * Networking:
  4570. - Fix one place where the connection reference count was not being
  4571. decremented in the socket close() logic. This is really a cosmetic
  4572. change BUT when CONFIG_DEBUG_NET is enabled, it will cause assertions.
  4573. - Backed out a small part of the NuttX 6.33 write buffering changed.
  4574. David G says that this causes problems in connecting to a server.
  4575. - In DHCPD, there was a place where the logic was calling ntohl()
  4576. inappropriately; the address was already in the correct order. How
  4577. could DHCPD have worked with this bug?
  4578. * TI Tiva/Stellaris Drivers:
  4579. - Fixed cut'n'paste error that prevented UARTS2-7 from being used with
  4580. the LM4F120 Launchpad.
  4581. - Fixed several errors there were unmasked with UARTs > UART2 are
  4582. enabled (grom Gosha).
  4583. * Allwinner A10 Drivers:
  4584. - Fixed cut'n'paste error that prevented UARTS2-7 from being used with
  4585. the pcDuino.
  4586. * NXP LPC17xx Drivers:
  4587. - Fix an compilation error that crept into the LPC17xx USB host driver.
  4588. * STMicro STM32 Drivers:
  4589. - Fix cloned typo in the serial driver: FLOWCONTROL vs FLOWCONROL.
  4590. - Disable SPI before changing DPI CR1 register (from David Sidrane).
  4591. - stm32 TIM: Set the timer CCMR when selecting timer channel. From
  4592. David Sidrane.
  4593. - Fix typo in a Makefile: stm32_pwm.c not stm32_psm.c. Noted by Max
  4594. Kriegleder.
  4595. * Library:
  4596. - More sscanf() bug fixes from David Sidrane.
  4597. * Header files:
  4598. - cstdbool: Ignore _Bool8 if CONFIG_C99_BOOL8=y
  4599. * Configuration/Build System:
  4600. - Several changes to restore the broken native Windows build
  4601. * NuttShell (NSH):
  4602. - Use strncpy vs strcpy in the Telnet console logic to avoid
  4603. overruning the username and password buffers (from Bertold Van den
  4604. Bergh).
  4605. - Add a newline after printing the file in the 'cat' command. This
  4606. prevents the NSH prompt from be in the same line as the final line
  4607. of the file in the case where there is no newline at the end of the
  4608. file.
  4609. NuttX-7.2
  4610. ---------
  4611. The 102nd release of NuttX, Version 7.2, was made on April 29, 2014,
  4612. and is available for download from the SourceForge website. Note
  4613. that release consists of two tarballs: nuttx-7.2.tar.gz and
  4614. apps-7.2.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  4615. file for build information).
  4616. Additional new features and extended functionality:
  4617. * Core OS:
  4618. - Add support for CLOCK_REALTIME. From Macs N.
  4619. * Network Utilities:
  4620. - Add a very primitive NTP client.
  4621. - DNS resolver: Long needed major clean up for coding style and
  4622. unification of naming conventions (resolv vs dns).
  4623. * Common Drivers:
  4624. - Add a new MTD driver that can be used to contain another driver and
  4625. force its apparent sector size to be 512 bytes.
  4626. - If DCD can support queuing of stall requests, then the USB MSC stall
  4627. work around delays are not necessary.
  4628. - Redesign threading module used with the USB MSC driver. It was using
  4629. pthreads before and these were changed to a kernel thread. The reason
  4630. for this has to do with task grouping: A pthread is a memory of the
  4631. group of the task that started it. A kernel thread is independent of
  4632. the task that started in (other than knowing it as the parent). This
  4633. allows me to remove so kludge logic to "deparent" the pthread on
  4634. startup.
  4635. - Update the MIO183QT-9A LCD driver to support reading from the LCD.
  4636. From Toby Duckworth.
  4637. - Timer "upper half" driver and l"lower half" interface definition from
  4638. Bob Doiron.
  4639. * Atmel SAM4E/4S Board Support:
  4640. - All SAM4E configurations updated to run with 120MHz CPU speed and
  4641. with the CMCC enabled.
  4642. - Support for the SAM4S Xplained Pro board from Bob Doiron.
  4643. - Add watchdog driver. From Bob Doiron.
  4644. * Atmel SAM4E/4S Drivers:
  4645. - Add a USB full speed device driver (UDP) for the SAM4E.
  4646. - Add support in HSMCI and SPI drivers to invalidate cached memory if
  4647. the CMCC is enabled.
  4648. - Add logic to handle SPI word widths > 8
  4649. - Port RTC driver from SAMA5 to SAM3/4. From Bob Doiron.
  4650. - HSMCI: Extensions from Bob Doiron needed to support PDC-based HSMCI
  4651. DMA transfers. Verified on the SAM4S Xplained Pro.
  4652. * Atmel SAMA5:
  4653. - Add support for the SAMA5D36 chip.
  4654. - Add functions to calculate PLLACK, PCK, and MCK frequencies given
  4655. the main clock frequency.
  4656. - Implemented RAM functions. When booting directly into NOR flash,
  4657. reconfiguring the PLL while executing out of NOR FLASH causes
  4658. crashes. This was fixed by David Sidrane by implementing RAM
  4659. functions. The killer code is copied and executed from ISRAM and
  4660. the crash is avoided.
  4661. * Atmel SAMA5 Drivers:
  4662. - Add support for the SAMA5D3 DBGU.
  4663. * Atmel SAMA5 Board Support:
  4664. - Add a board support configuration for the Atmel SAMA5D3 Xplained
  4665. board running out of SDRAM. When booting from SDRAM, start-up logic
  4666. needd to query the PMC registers to determine the MCK, PCK, etc.
  4667. - For all SAMA5 boards, added support for 528MHz clocking.
  4668. * TI Tiva/Stellaris:
  4669. - Modify the logic to disables the interrupts and sets the default
  4670. interrupt priority so that it uses the ICTR to get the number of
  4671. interrupt lines/registers. This is instead of using some fixed
  4672. number of initializations based a priori knowledge of the number
  4673. of interrupt lines in the MCU.
  4674. * STMicro STM32
  4675. - Add support for the STM401RE. From Frank Bennett.
  4676. * STMicro STM32 Boards:
  4677. - STM32F4Discovery: Add support to register keyboard and mouse
  4678. classes if so configured. From Leo.
  4679. - Add support for the Nucleo-F401RE board. From Frank Bennett.
  4680. * STMicro STM32 Drivers:
  4681. - Add STM32 Ethernet IGMP hashing support. From Manuel Stühn.
  4682. - OTG FS Host: USB host tracing added by Leo.
  4683. * Freescale Kinetis
  4684. - Modify the logic to disables the interrupts and sets the default
  4685. interrupt priority so that it uses the ICTR to get the number of
  4686. interrupt lines/registers. This is instead of using some fixed
  4687. number of initializations based a priori knowledge of the number
  4688. of interrupt lines in the MCU.
  4689. * NXP LPC17xx
  4690. - Modify the logic to disables the interrupts and sets the default
  4691. interrupt priority so that it uses the ICTR to get the number of
  4692. interrupt lines/registers. This is instead of using some fixed
  4693. number of initializations based a priori knowledge of the number
  4694. of interrupt lines in the MCU.
  4695. * ZiLOG ZNEO Drivers
  4696. - Added ZNEO ESPI driver.
  4697. * Library:
  4698. - Finish incomplete support for ferror(). From Macs N.
  4699. * Documentation:
  4700. - UsbTrace.html: Add some discussion of the USB monitor.
  4701. * Configuration/Build System:
  4702. - compiler.h: Add macro UNUSED() that can be used to eliminate
  4703. warnings about variables that are set to values that are not
  4704. used.
  4705. * Debugging Support:
  4706. - Add a configuration option to enable dumping of the USB trace buffer
  4707. on assertion.
  4708. * Applications:
  4709. - IGMP Example: Fill out Kconfig file; update makefile so that the
  4710. IGMP example can be used as an NSH built-in application. From Manuel
  4711. Stühn.
  4712. - lcdrw Example: Fill out empty Kconfig file.
  4713. - touchscreen Example: Add a configuration option to indicate if
  4714. architecture-specific initialized is required, yes or no.
  4715. - System usbmsc: Back out the USBMSC daemon... it is no longer needed
  4716. with the recent fix to the USBMSC class driver.
  4717. - NSH: malloc/free IOBUFFER for 'cat' and 'hexdump' commands instead of
  4718. using the stack. From Bob Doiron.
  4719. - cpuhog, serialblaster, and serialrx Examples: Stress test examples
  4720. added by Bob Doiron.
  4721. Bugfixes (see the ChangeLog for details). Some of these are very important:
  4722. * Core OS:
  4723. - errno_get_errno_ptr() and getpid(): Add some checks. If these
  4724. functions are called very early in initialization before the tasking
  4725. structures are initialized, they would not behave properly.
  4726. * Networking:
  4727. - IGMP-related bug fixes from Manuel Stühn.
  4728. - In netdev_findbyaddr(), skip network devices that are in the "down"
  4729. state. It does not make sense to consider an address match with a
  4730. "down" device. From Brennan Ashton.
  4731. * Network Utilities:
  4732. - DHCPD: The correct value of the PAD option. Should be zero, not
  4733. one. From Brennan Ashton.
  4734. - Corrections to the NTP client from Manuel Stuehn.
  4735. * Common Drivers:
  4736. - usbhost.h: Fix some USB HID-related conditional compilation. From Leo.
  4737. - USB HID mouse driver: Don't include NAKs from the device in the error
  4738. count. From Leo.
  4739. * TI Tiva/Stellaris:
  4740. - Add corrected control logic for TM4C125GXL based on logic from Daniel
  4741. Carvalho with modifications. The LM4F120 also works well with this
  4742. change.
  4743. * STMicro STM32 Drivers:
  4744. - STM32 F2 SPI: Correct a mapping for SPI MOSI pin. From dlsitzer.
  4745. - OTG FS Host: Fixes related to low-speed devices and interrupt
  4746. endpoints from Leo. Necessary in order to use a USB HID mouse
  4747. device.
  4748. - STM32 SDIO: The dmaflight method must be conditioned on
  4749. CONFIG_SDIO_PREFLIGHT. Noted by Pelle Windestam.
  4750. - Sourceforge Ticket #26. up_prioritize_irq should not be called
  4751. if CONFIG_ARCH_IRQPRIO is not defined.
  4752. * Atmel SAM3/4:
  4753. - Fix some backward conditional compilation in the start-up logic.
  4754. - Fix initialization of the default interrupt priorities. This is
  4755. a critical bug fix!
  4756. - SAM4S: Fix error in macros that disable peripheral clocking. From
  4757. Bob Doiron.
  4758. * Atmel SAMA5:
  4759. - Fix double mapping of SDRAM when executing out of SDRAM. In this
  4760. case, the SDRAM was already mapping in arm_head.S.
  4761. - In clock configuration, the BMS bit handling was fixed to match
  4762. what the HW really does. From David Sidrane.
  4763. - TLB Bufferable bit did not do what I thought it was going to do.
  4764. I though I was selecting a write-through cache, but the result was
  4765. that all caching was disabled and NOR FLASH accesses were very slow.
  4766. - Move the un-definitions of __ramfuncs__ from the clock configuration
  4767. .c file to the .h file. Otherwise, the attribute will be applied
  4768. differently for the prototype and the function definition.
  4769. Sourceforge patch 38 from Luciano Neri.
  4770. * Atmel SAMA5 Drivers:
  4771. - Fix a case in the UDPHS driver where received status was not being
  4772. cleared, causing OUT SETUP commands to fail.
  4773. - TWI data sending fails to increment the number of bytes transferred
  4774. on first byte sent. from David Sidrane.
  4775. - If running from SDRAM, then BOARD_MCK_FREQUENCY is not a constant
  4776. and cannot be used in conditional compilation. All drivers fixed
  4777. EXCEPT for the PWM and Timer/Counter drivers which will need some
  4778. more extensive redesign.
  4779. * Atmel SAMA5 Boards:
  4780. - SAMA5D3x-EK: The red LED is controlled by PE24 which is also the
  4781. camera/ISI interface reset line. So if the a camera is installed,
  4782. then we must avoid controlling the red LED or we inadvertently
  4783. also reset the camera module. Noted by David Sidrane.
  4784. - Header files reference type xcpt_t in certain configurations and
  4785. so must include nuttx/irq.h. This is Sourceforge bug 25 submitted
  4786. by Luciano Neri.
  4787. * NXP LPC17xx Drivers
  4788. - arm/src/lpc17xx/Kconfig and lpc17_ethernet.c: The default interrupt
  4789. priority should be default, not the highest priority (2014-4-19).
  4790. * ZiLOG ZNEO
  4791. - Fix calculation of timer reload and prescaler. The timer frequency
  4792. was way too fast.
  4793. * Library:
  4794. - strncpy(): Change ordering of test and copy. Logic would have
  4795. failed if n=0; one byte was always copying before testing
  4796. for the end of the copy.
  4797. - Fix a counting error in the return value from sscanf(). Noted by
  4798. kfrolov. Also, sscanf() should return EOF if no values were
  4799. converted.
  4800. - Fix a logic error in ftell(). It was simply using the file offset
  4801. and did not take into account data buffered in memory. From Macs N.
  4802. - sccanf(): Use stroul() vs strol() with %u format otherwise, range
  4803. of values is restricted because of sign bit. From kfrolov.
  4804. * Configuration/Build System:
  4805. - Fix a build error that occurs when only USB device tracing is enabled.
  4806. * NuttShell (NSH):
  4807. - Fix NuttShell version number display in the NSH welcome message.
  4808. version.h was not being included.
  4809. * Other Applications:
  4810. - sysinfo: CONFIG_VERSION_BUILD is a string an needs to be
  4811. printed with %s, not %d. Noted by Librae.
  4812. - nxplayer: Compilation failure in one configuration reported by
  4813. Manuel Stuhn.
  4814. - System sdcard: Remove an STM32 dependency. From Bob Doiron.
  4815. - telnetd Example: Naming is confused. In someplaces 'telnetd',
  4816. and in others 'shell.' All changes to telnetd. Noted by Pelle
  4817. Windestam.
  4818. NuttX-7.3
  4819. ---------
  4820. The 103rd release of NuttX, Version 7.3, was made on June 25, 2014,
  4821. and is available for download from the SourceForge website. Note
  4822. that release consists of two tarballs: nuttx-7.3.tar.gz and
  4823. apps-7.3.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  4824. file for build information).
  4825. Additional new features and extended functionality:
  4826. * Core OS:
  4827. - Dynamic loader: Framework to support Pascal P-Code as a binary
  4828. format that can be exec'ed from a file system.
  4829. - Dynamic Loader: Extend the binfmt interface to handle error
  4830. conditions where format-specific clean-up is needed in the event
  4831. of error conditions. This is needed by the P-Code binfmt.
  4832. * Networking
  4833. - IOB: Add a generic I/O buffer chain logic. This logic uses small,
  4834. pre-allocated buffers that can be chained together to support
  4835. transfers of any size, using fewer resources and also without
  4836. committing in advance to a TCP window size. There is now only
  4837. one I/O type used in the networking and it is these I/O buffer
  4838. chains.
  4839. - TCP Write Buffering: TCP write buffering logic converted to use
  4840. I/O buffer chains.
  4841. - TCP Read-Ahead Buffering: TCP read-ahead buffering logic converted
  4842. to use I/O buffer chains.
  4843. - Includes logic to support throttling of read-ahead buffering if
  4844. the read-ahead buffering is competing with write buffering for
  4845. I/O buffers.
  4846. - Raw Sockets: Add support for the AF_PACKET socket family. From
  4847. Daniel Lazlo Sitzer.
  4848. * Common Drivers:
  4849. - W25 Serial FLASH driver extended by Mark Whitehorn to support the
  4850. 8Mbit W25Q80BV part.
  4851. - Add support for Fujitsu MB85RS1MT RAMTRON part. From Charles Ash.
  4852. - Enhancements to the generic timer interface to support capture mode
  4853. from Bob Doiron.
  4854. - Add an rxflowcontrol method to the serial interface to better
  4855. 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.
  4856. * Atmel SAM4C
  4857. - Add support for the SAM4CM family. From Max Neklyudov.
  4858. * Atmel SAM4E/4S Drivers:
  4859. - RTT driver from Bob Doiron. Also added high resolution RTC
  4860. emulation using the RTT for the sub-second counter.
  4861. * Atmel SAM4E/4S Board Support:
  4862. - The SAM4S Xplained Pro now uses the extended timer/counter
  4863. features. From Bob Doiron.
  4864. - Added a touchscreen and LCD driver for the SAM4E-EK board (the LCD,
  4865. however, not yet fully functional).
  4866. * Atmel SAMA5:
  4867. - Optimized, high performance, assembly language memcpy(). This is
  4868. the same optimized memcpy() function that Mike Smith brought in
  4869. for the ARMv7-M with minor tweaks by David Sidrane to work with
  4870. the ARMv7-A.
  4871. - Basic support added for the SAMA5D4 family.
  4872. * Atmel SAMA5 Drivers:
  4873. - SAMA5D4: New drivers unique to the SAMA5D4: XDMAC, SAIC, and
  4874. others.
  4875. * Atmel SAMA5 Board Support:
  4876. - SAMA5D4-MB: Initial board support for the SAMA5D4-MB/EK boards.
  4877. * STMicro STM32
  4878. - Add support for the STM32152 and STM32162 Medium+ density parts
  4879. (plus miscellaneous other improvements to the original STM32151
  4880. logic). From Jussi Kivilinna and Sami Pelkonen.
  4881. * STMicro STM32 Boards:
  4882. - Support for the Olimex STM32 H405 board contributed by Martin
  4883. Lederhilger.
  4884. * STMicro STM32 Drivers:
  4885. - Implement the rxflowcontrol method to the serial interface to better
  4886. support RX flow control. From Jussi Kivilinna.
  4887. * NXP LPC17xx Drivers:
  4888. - Added support for the RTC, ADC, DAC, Timers, PWM and MCPWM
  4889. drivers. From Max (himax).
  4890. * NXP LPC17xx Boards:
  4891. - Support for the RTC, ADC, DAC, Timers, PWM and MCPWM integrated
  4892. in the LPCXpresso LPC1768 board support. From Max (himax).
  4893. * Library:
  4894. - Add support for seek-able streams.
  4895. * Configuration/Build System:
  4896. - Restructured network directories, header files, and naming to
  4897. better modularize the networking and to better integrate the
  4898. networking with the rest of NuttX.
  4899. * Applications:
  4900. - prun: An NSH built-in application that can be used to run
  4901. Pascal P-Code programs either programatically or from the NSH
  4902. command line.
  4903. - netpkt: A "raw" socket test from Lazlo Sitzer.
  4904. - hex2bin: A library and built-in task to convert from
  4905. 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).
  4906. 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):
  4907. * Core OS:
  4908. - Dynamic Loader: Fix an error in a symbol table search function.
  4909. Noted by Pelle Windestam.
  4910. - Dynamic Loader: Fix a critical error in exec(); argv was not
  4911. being passed.
  4912. - mq_notify: Test for a valid signal number was inverted; this
  4913. function could not have been working correctly before??? From
  4914. eero.nurkkala.
  4915. - Fix typo in conditional compilation: CONFIG_CLOCK_MONOTONIC vs.
  4916. CLOCK_MONOTONIC. From Manuel Stühn.
  4917. * Graphics
  4918. - Fix typos in several RGB conversion macros.
  4919. * Networking:
  4920. - Modify TCP timout handling to provent situations where connections
  4921. may not be freed. From Max Holtzberg.
  4922. - Improved TCP fallback allocation logic from Max Holtzberg. Also,
  4923. fallback mechanism is disabled when SO_LINGER is to prevent
  4924. deadlocks.
  4925. - Write Buffering: Add checks from buffer allocation failures. From
  4926. Max/Himax.
  4927. * Network Utilities:
  4928. - webserver: httpd_fs_open() should return OK on success and ERROR on
  4929. failure, not 1 and 0.
  4930. * Common Drivers:
  4931. - Make sure that all references to up_prioritize_irq() are
  4932. conditioned on CONFIG_ARCH_IRQPRIO. Problem noted by Mike Smith.
  4933. - CC3000: Correct SPI mode for CC3000 is CPOL=0 CHPA=1. From Jussi
  4934. Kivilinna.
  4935. - CC3000: Fix a race condition in thread start-up logic. From Jussi
  4936. Kivilinna.
  4937. - CC3000: Additional fixes including a compilation failure if POLL is
  4938. enabled. From Jussi Kivilinna.
  4939. * USB Drivers:
  4940. - CDC/ACM and PL2303 device: Reset RX head to avoid resending last
  4941. serial data when USB cable disconnected/re-connected. From
  4942. Lizhuoyi.
  4943. * TI Tiva/Stellaris Boards:
  4944. - The Nucleo-F401RE has no on-board crystals and, hence, needs to run
  4945. with the PLL input from the on-chip HSI clock.
  4946. * STMicro STM32 Drivers:
  4947. - Serial: Handle configuration for the case of 8-bit data with
  4948. parity. From Freddie Chopin.
  4949. * Atmel SAM3/4 Boards:
  4950. - There was a cloned error in all SAM3/4 board configurations (and
  4951. for a few other architectures as well). Button interrupts not
  4952. being disabled after being detached. As a result, unexpected
  4953. interrupts could be received after the button interrupt was
  4954. detached.
  4955. * Atmel SAMA5:
  4956. - Fix some critical typos in the SAMA5D3 DMA definitions.
  4957. * STMicro STM32 Drivers
  4958. - I2C: Add an alternative I2C implementation for the STM32 F103 that
  4959. works around errata in that specific part. From Patrizio Simona.
  4960. - RTCC: Add retry logic to RTC initialization. It sometimes takes
  4961. longer for the RTC to initialize, at least as noted on an F2 part.
  4962. From Daniel Lazlo Sitzer.
  4963. * NXP LPC17xx Drivers
  4964. - GPDMA: Fix an error when DMA is started: The read-modify-write
  4965. fails when the DMA is started. This is because the value read is
  4966. not the same as the value set (on write it is the number of
  4967. transfers to do; on read it is the number of transfers completed).
  4968. From Lizhuoyi.
  4969. * Library:
  4970. - snprintf(): If the size passed to snprintf() is zero, then
  4971. snprintf() must write nothing, but instead return the size of the
  4972. buffer needed to hold the entire string. From Sami Pelkonen.
  4973. * Configuration/Build System:
  4974. - The alternate console device CONFIG_NSH_CONDEV must not be defined
  4975. unconditionally. This causes errors when using Telnet sessions.
  4976. This was solved by adding CONFIG_NSH_ALTCONDEV: CONFIG_NSH_ALTCONDEV enables or disables the feature then, if
  4977. enabled, CONFIG_NSH_CONDEV provides the alternative console
  4978. device name.
  4979. - Many files: Convert all old-style GCC variadic macros to the C99
  4980. form. Recent GCC changes tightens up that behavior and can cause
  4981. some problems (at least for the IAR compiler for some reason).
  4982. Noted by Bob Grimes.
  4983. - tools/configure.sh: In-place SED edit messes up permissions on
  4984. windows. From Hannes Delago.
  4985. * Build Tools:
  4986. - tools/mkfsdata.pl: Apparently, the trailing the 0x00 in http
  4987. server files is seen as a bug in javascript and images. From
  4988. Max/Himax.
  4989. * Other Applications:
  4990. - I2C Tool: Fix to show the updated register address on each
  4991. fetch (vs. showing the same starting address each time). From
  4992. Ryan VanSickle.
  4993. - CLE was not returning the terminating newline character. But
  4994. reported by Max kriegleder.
  4995. NuttX-7.4
  4996. ---------
  4997. The 104th release of NuttX, Version 7.4, was made on August 15, 2014,
  4998. and is available for download from the SourceForge website. Note
  4999. that release consists of two tarballs: nuttx-7.4.tar.gz and
  5000. apps-7.4.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  5001. file for build information).
  5002. Additional new features and extended functionality:
  5003. * Core OS:
  5004. - Beginnings of a crypto/ subsystem from Max Neklyudov
  5005. - Tickless operation: NuttX now supports a mode with no periodic
  5006. timer interrupts. Rather, timed events are handle via an interval
  5007. timer. This (1) lowers the rate of interrupt processing to timer
  5008. events, (2) gives much high timing resolution, and (3) allows lower
  5009. power modes of operation where the CPU is not constantly being
  5010. interrupted by the timer.
  5011. - Restructured the OS files under sched/ to better support the already
  5012. modular nature of the RTOS.
  5013. * Networking
  5014. - Substantial directory and header file reorganization and renaming to
  5015. make the NuttX networking implementation more modular.
  5016. - Add network device ioctl to access PHY registers. From Daniel Lazlo
  5017. Sitzer
  5018. * Binary Loader:
  5019. - Various changes associated with symbol tables from Pelle Windestam.
  5020. * Graphics:
  5021. - colorcmp(): New utility to compare two colors.
  5022. - The initial background color is now configurable. Includes logic to
  5023. eliminates multiple background updates to get the right color.
  5024. - Minor configuration changes to handle mouse X/Y and touchscreen
  5025. X/Y differently.
  5026. * File System/Block Drivers:
  5027. - SmartFS: Increase some variables from uint16_t to uint32_t to handle
  5028. larger device sizes. From Ken Pettit.
  5029. - Add configurable AES encryption support to the block-to-character
  5030. (BCH) driver. This allows any block device to be accessed as an
  5031. encrypted character device. From Max Nekludov
  5032. - Add an MTD layer that will add read-ahead or write buffering to any
  5033. MTD driver (incomplete).
  5034. - Automounter: Add support for an auto-mounter that will automatically
  5035. mount and unmount a file system a media is inserted and removed
  5036. * Audio/Audio Drivers
  5037. - WM8904 audio CODEC driver.
  5038. - PCM .WAV file decoder. Fast forward implemented with sub-sampling
  5039. (currently no rewind support).
  5040. - Add a NULL audio device that can be used to simply unit-level testing
  5041. of audio decoders.
  5042. - Audio subsystem now supports interfaces for fast-forward and rewind
  5043. needed by CMediaPlayer; add hooks for equalizer settings needed by
  5044. the WM8904 CODEC.
  5045. * Other Common Drivers:
  5046. - MTD: Extend erase block size to 18-bits in order (decrease block
  5047. size to 14-bits) to handle parts with large erase blocks. From Kosma
  5048. Moczek
  5049. - maxTouch: Add support for the Atmel maXTouch touchscreen controller.
  5050. * Host Simulation:
  5051. - Provides the timers needed to support the Tickless mode of operation.
  5052. * Atmel SAM4C:
  5053. - Add SAM4CM IPC register header file. From Max Neklyudov
  5054. - Various fixes PMC and clock configuration for the SAM4CM port from
  5055. Max Neklyudov
  5056. * Atmel SAM4E/4S Drivers:
  5057. - SAM4 AES driver. Contributed by Max Neklyudov
  5058. * Atmel SAMA5:
  5059. - Add logic to redirect all SAMA5D4 interrupts to the AIC
  5060. - Add a configuration option to reserve DRAM for a framebuffer when
  5061. executing out of DRAM. This optional was available before when
  5062. executing out of NOR, but needs to work a little differently in
  5063. this case.
  5064. - Add SAMA5 slow (32.768KHz) clock support.
  5065. - Add support for the ARM L2CC-PL310 L2 cache. The system runs with
  5066. L2CC cache enabled but there is some issues still with the LCD DMA;
  5067. I suspect that the memory timing configuration for L2CC needs to
  5068. be tuned.
  5069. - Provides the timers needed to support the Tickless mode of operation.
  5070. * Atmel SAMA5 Drivers:
  5071. - XDMAC-based HSCMI driver for the SAMA5D4
  5072. - Adapt the SAMA5D3 LCDC driver to work with the SAMA5D4 which has
  5073. no hardware cursor.
  5074. - PIO: Add a new interface sam_pio_forceclk() that can be used to
  5075. force PIO clocking on. I am afraid I was too conservative with
  5076. PIO clocking in the initial design; this is the price.
  5077. - TWI: Now supports the up_i2creset() method.
  5078. - TWI: Use sam_pio_forceclk() so that we can read the current state
  5079. of an open-drain output in the TWI reset logic.
  5080. - SSC: SCC Frame Synch Delay and Start Delay are now configurable.
  5081. - PCK: Add the slow clock and the main clocks as options for the
  5082. PCK configuration.
  5083. - Timer/Counter: Can now handle non-constant BOARD_MCK_FREQUENCY. Also
  5084. now supports methods to attach client interrupt handlers
  5085. - One shot and free-running timers. These are wrappers around the low
  5086. level timer/counter logic to provide one-shot and free-running
  5087. timers. These were developed to support the Tickless operation, but
  5088. can be used for any purpose.
  5089. * Atmel SAMA5 Board Support:
  5090. - Add a boot loader that runs from ISRAM and loads an Intel HEX file
  5091. into DRAM.
  5092. - Add a configuration that will load a bootloader into AT25 Serial
  5093. FLASH
  5094. - SAMA5D4-EK NSH configuration supports many more features: RTC, HSCMI
  5095. card detection, maXTouch touchscreen, TM7000 LCD, the command line
  5096. media player (currently using the NULL audio device), automounter,
  5097. and others.
  5098. - SAMA5D4-EK: Add an NxWM configuration using the TM7000 LCD with
  5099. the maXTouch multi-touch touchscreen.
  5100. - SAMA5D4-EK NxWM: Uses new, larger icons in configuration instead of
  5101. scaling.
  5102. - SAMA5D4-EK NxWM: The NxPlayer and audio system are now enabled in
  5103. the default configuration (but currently using the NULL audio
  5104. device). The automounter is used to automatically mount media
  5105. on an SD card.
  5106. - SAMA5D3x-EK: Add a configuration to support the command line
  5107. NxPlayer and to verify the WM8904 CODEC driver.
  5108. * STMicro STM32:
  5109. - Add support for the STM32F103RC and RD. From Kosma Moczek
  5110. - Add a procfs entry to show the state of the CCM heap usage.
  5111. From Pelle Winderstam
  5112. * STMicro STM32 Drivers:
  5113. - Unconfigure GPIO pins when closing a serial port to prevent back
  5114. effects from back-powering on the TX pin. From Kosma Moczek
  5115. * NXP LPC17xx Drivers:
  5116. - ADC: Added burstmode ADC conversion mode, with CONFIG_ADC_BURSTMODE
  5117. option in Kconfig. From Max
  5118. - Ethernet: Added option to use the kernel worker thread to do most of
  5119. the workload with CONFIG_NET_WORKER_THREAD option in Kconfig. From Max
  5120. - Ethernet: Critical bugfix: From time to time (after some hours) the
  5121. Ethernet receiver would lose one receive interrupt and the IP stack
  5122. never recover because there is no receive watchdog as the transmit
  5123. watchdog. From Max
  5124. * NXP LPC17xx Boards:
  5125. - mbed: Port ADC, DAC, and PWM logic from the configs/zkit-arm-1769.
  5126. From Max
  5127. - mbed: Eliminated a problem with PHY DP83848C : it doesn't need a
  5128. specific initialization on mbed. From Max
  5129. * Library:
  5130. - Adds support for localtime. From Max Neklyudov
  5131. * Configuration/Build System:
  5132. - Make variable definitions 'static const' when possible to save RAM
  5133. usage. From Kosma Moczek
  5134. * Applications:
  5135. - sysem/mdio: New PHY tool from Daniel Lazlo Sizter.
  5136. - NSH: Networking logic modified to handler the case of SLIP
  5137. transport. From Max Neklyudov.
  5138. - NSH: Add a configuration to use a USB keyboard for the stdin
  5139. device.
  5140. - NSH: Software assigned MAC address is now configurable. From Lazlo.
  5141. - NSH: Also add an option to let platform-specific logic select the
  5142. MAC address.
  5143. - NSH: There is now a configuration option that will bring up the
  5144. network on an separate thread. Since the network bring-up is
  5145. asynchronous, there are no serial console start-up delays due
  5146. to the network negotiation time.
  5147. - NxPlayer: Changes to integrate with Ken's NxWM::CMediaPlayer.
  5148. - NxPlayer: Add interfaces for fast-forward and rewind needed by
  5149. CMediaPlayer; add interface for equalizer settings needed by the
  5150. WM8904.
  5151. - NxPlayer: Supports new way of identifying the end of the audio
  5152. stream (see the Audio section above).
  5153. - Sudoku: Add a sudoku game.
  5154. 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):
  5155. * Graphics:
  5156. - NxConsole: Fix scrolling for the case of the framebuffer device. In
  5157. this case, the logic for clearing the vacated region at the bottom
  5158. was missing so garbage would scroll up from the last, uncleared
  5159. line.
  5160. * Networking:
  5161. - Important fix to the read-ahead buffer queue management: Consumed
  5162. bytes were being trimmed from the head of the queue, but the queue
  5163. head itself was not being updated. From Rony XLN.
  5164. - Fix an error in SLIP escaping. From Max Neklyudov
  5165. * Network Utilities:
  5166. - Fix an include file ordering problem when CONFIG_NET_STATISTICS=y.
  5167. - Move statistics from uip.h to new netstats.h to remove a circular
  5168. inclusion problem
  5169. - Various fixes for networking and tiny webserver from Max
  5170. - webclient: Fix to offset calculation from Rony Xln. Prevents 0x0a
  5171. at the beginning of lines.
  5172. - webserver: Fix some configuration usage issues. From Max.
  5173. - webserver: Missing logic to close sockets on loop termination.
  5174. * File System / Block Drivers:
  5175. - SmartFS: Fix for a bug that would show up if CONFIG_MTD_BYTE_WRITE
  5176. was not selected and the SMART sector size was larger than the MTD
  5177. device's block size (like it would be if using SMARTFS on larger
  5178. flash devices). From Ken Pettit.
  5179. * Audio:
  5180. - Change how the end of the audio stream is detected by the leaf audio
  5181. component. This used to be done by looking for the first partial
  5182. buffer. That does not work with the in-place sub-sampling performed
  5183. by the PCM decoder: That always reduces the size of the buffer so
  5184. that all buffers only partially filled by the time they get to the
  5185. leaf. Now, a flag is set in the audio buffer flags set to indicate
  5186. the final buffer in the stream.
  5187. * Common Drivers:
  5188. - RAMLOG putc() method needs to set the errno and return EOF on a
  5189. failure.
  5190. - Add missing configuration option to select the MAX11802 touchscreen
  5191. controller. From Petteri Aimonen
  5192. * Atmel SAMA5D3/4:
  5193. - Fix logic in conversion of physical and virtual DRAM addresses when
  5194. running out of DRAM. This is an important bug fix for the SAMA5D3
  5195. and 4 when running out of DRAM .
  5196. - Critical SAMA5D3 and 4 bug fix: PIO clocking must be enabled for
  5197. all input pins or else the value that is read never changes.
  5198. * Atmel SAMA5D3/4 Drivers:
  5199. - OHCI: Fix an error in a DEBUGASSERT statement. Caused an
  5200. assertion to fire inappropriately when a low- or full-speed device
  5201. was removed and CONFIG_DEBUG=y
  5202. - OHCI: Pointers to allocated port values were not being
  5203. nullified after being deallocated. This caused some assertions
  5204. to fire when debug was enabled
  5205. - SSC: Needs to account for data offset in audio buffer
  5206. * ARMv7-M:
  5207. - Correct the initial value of the BASEPRI register. This was
  5208. apparently never being initialized! From Max
  5209. * STMicro STM32 Drivers:
  5210. - I2C: Fix missing configuration of GPIO pins in I2C driver. Fix
  5211. from Alex D.
  5212. - STM32 OTGFS device: Various changes to try to reduce that amount of
  5213. time in interrupts handles and with interrupts disabled. From
  5214. Petteri Aimonen
  5215. * Atmel SAM3/4 Drivers:
  5216. - Ethernet: Wrong bits being cleared before OR-ing in new settings.
  5217. - Ethernet: Fix an error in the function that determines the number
  5218. of free TX descriptors. This is an important bugfix on busy
  5219. networks.
  5220. - I2C: Test for read or write operation was reversed. How could
  5221. this have worked before?
  5222. * Atmel SAM3/4 Boards:
  5223. - SAM4S Xplained-Pro: Correct description of LEDs and usage. From
  5224. Kosma Moczek
  5225. * Atmel SAMA5:
  5226. - PIO: Fix definitions that could disable PIO interrupt support if only
  5227. PIOE interrupts were enabled
  5228. - PIO: Macro SAM_PION_VBASE is not define-able for the SAMA5D4 and must
  5229. be replaced with a table lookup.
  5230. - PIO: Fix a typo in Schmitt trigger configuration; Configure pin as a
  5231. vanilla input first so that final pin configuration is more read-able
  5232. (i.e., easier to debug)
  5233. - PIO: Logic for Schmitt trigger selection backward
  5234. - SAMA5D4: Correct system timer frequency. Input clock is MCK/2, not MCK.
  5235. * Atmel SAMA5 Drivers:
  5236. - Ethernet: Wrong bits being cleared before OR-ing in new settings.
  5237. - Ethernet: Fix an error in the function that determines the number
  5238. of free TX descriptors. This is an important bugfix on busy
  5239. networks.
  5240. - HSMCI: The 8-byte SCR transfer was failing silently with the DMA
  5241. transfer, leaving the SD card in single bit mode. Fixed by adding
  5242. a non-DMA read transfer mode.
  5243. - HSMCI: Fix a problem on card insertion/removal callback handling.
  5244. Interrupts were being disable so that the callbacks occurred with
  5245. interrupts disabled. This resulted in loss of some interrupts and
  5246. some not-so-good behaviors. The solution is to perform all
  5247. callbacks on the work thread unconditionally
  5248. * Atmel SAMA5 Boards:
  5249. - PIO: Fix some cloned errors in SAM GPIO interrupt setup
  5250. * NXP LPC17xx Drivers:
  5251. - Ethernet: Comment out an assertion that is reported to fire
  5252. inappropriately. From Max
  5253. * Library:
  5254. - stdint.h: Correct naming of [U]INT_LEASTn_{MAX|MIN} and
  5255. [U]INT_FASTn{MAX|MIN}. From Kosma Moczek
  5256. - unistd.h: POSIX definitions should be defined to a value. rom Kosma
  5257. Moczek
  5258. - Fixes associated with rint() and related interfaces in the math
  5259. library.
  5260. * Configuration/Build System:
  5261. - NAME_MAX not available on SunOS; use FILENAME_MAX or MAXNAMELEN.
  5262. Noted by Douglas Beattie
  5263. * Applications:
  5264. - NSH: if # appears on line, need to comment ignore additional
  5265. commands on the line
  5266. - NxPlayer: Check for file read errors and end-of-file with zero
  5267. bytes read. Other error handling corrected as well.
  5268. - NxPlayer: NxPlayer needs to set curbyte field to zero before
  5269. enqueuing a buffer. Otherwise, it looks like beginning of the
  5270. buffer has already been consumed.
  5271. NuttX-7.5
  5272. ---------
  5273. The 105th release of NuttX, Version 7.5, was made on September 28, 2014,
  5274. and is available for download from the SourceForge website. Note
  5275. that release consists of two tarballs: nuttx-7.5.tar.gz and
  5276. apps-7.5.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  5277. file for build information).
  5278. Additional new features and extended functionality:
  5279. * Core OS:
  5280. - Watchdog Timer Allocation: (1) If we run out of pre-allocated
  5281. watchdog times, the logic will now allocate additional timers
  5282. from the heap. A reserve of pre-allocated watchdog timers is
  5283. maintained so that there will always be timers available for
  5284. interrupt handlers. (2) Added support for statically allocated
  5285. watchdog timer
  5286. - Address Environment Support: (2) New OS APIs integrated into all
  5287. platform-specific context switching logic (up_block_task(),
  5288. up_unblock_task(), _exit(), and others).
  5289. - Kernel Build Support: (1) The MPU based "kernel build" renamed to a
  5290. protected build (CONFIG_BUILD_PROTECTED); added support for the a
  5291. new MMU-based "kernel build" (CONFIG_BUILD_KERNEL), (2) The system
  5292. call library can now be built with CONFIG_NUTTX_KERNEL. New
  5293. selection: CONFIG_LIB_SYSCALL.
  5294. - System Startup: Add configuration options to start the system from
  5295. a program on a file system (versus an address in memory).
  5296. - Startup Parameter Passing. There used to be two ways to pass
  5297. parameters to new tasks, depending upon the configuration: Either
  5298. (1) argv[] as created as an array with each string strdup'ed. Or
  5299. (2) argv[] array and strings were created on the stack before the
  5300. new task was started. Now, there is only one way, way (1). Way
  5301. (2) might be slightly more compact, but this is not worth carry the
  5302. complexity of two different ways of doing the same thing.
  5303. - Board Initialization: Add capability to perform initial board
  5304. initialization on a separate worker thread. This is needed because
  5305. there are many cases where initialization logic cannot execute on
  5306. the start-up/IDLE thread. That is because blocking or waiting is
  5307. not permitted on the IDLE thread.
  5308. * Memory Management:
  5309. - Granule Allocator: (1) Add a new function to reserve un-allocatable
  5310. regions in the granule heap. (2) Add interfaces to support
  5311. un-initializing a granule allocator.
  5312. - Page Allocator: Add a simple physical page allocator based on the
  5313. existing NuttX granule allocator. I am not certain if the granule
  5314. allocator is sufficiently deterministic for long range use, but it
  5315. gets get a page allocator in place for testing very quickly.
  5316. - Remove CONFIG_MM_MULTIHEAP. Non-multiheap operation is no longer
  5317. supported.
  5318. - sbrk(): sbrk() is now supported in the kernel build to permit
  5319. dynamically sized, per-process heaps.
  5320. - Per-Process Heaps: Space at the beginning of the process data space
  5321. is now reserved for user heap management structures. In the kernel
  5322. build mode, these heap structures are shared between the kernel and
  5323. use code in order to allocate user-specific data.
  5324. - User Heap Management: When a privileged thread exits, we have to
  5325. use the kernel allocator to free memory; when an unprivileged thread
  5326. exits, we don't have to do anything... heap memory will be cleaned
  5327. up when the address environment is torn down.
  5328. - Inter-Process Shared Memory Support: (1) Add implementation and
  5329. documentation for shmget(), shmctl(), shmat(), and shmdt(). (2)
  5330. Add system system calls to support the user call gate to the shared
  5331. memory interfaces. (3) Add platform-specific interface definitions
  5332. needed to support the shared memory feature.
  5333. - Virtual Page Allocator: Add support for a per-process virtual page
  5334. allocator. This is a new member of the task_group_s structure. The
  5335. allocator must be initialized when a new user process is started and
  5336. uninitialize when the process group is finally destroyed. It is
  5337. used by shmat() and shmdt() to pick the virtual address onto which
  5338. to map the shared physical memory.
  5339. * File Systems/Block Drivers/MTD:
  5340. - SMART FS and SMART FS procfs updates from Ken Pettit.
  5341. - The MTD Read-ahead/Write buffer layer appears is now functional.
  5342. * Binary Formats:
  5343. - Add logic to initialize the per-process user heap when each user
  5344. process is started.
  5345. * Graphics:
  5346. - Change all occurrences of NxConsole to NxTerm.
  5347. * Networking:
  5348. - PHY Interrupts: (1) Standardize a PHY interrupt attachment
  5349. interface. (2) Add support for an ioctl that can be used to notify
  5350. an application when there is a change in the network status
  5351. signalled by a PHY interrupt.
  5352. - Improved Send Logic: In the past, the first packet send to a new
  5353. network peer would fail; there would be no entry in the ARP table
  5354. for the peer and so an ARP request could replace that first packet.
  5355. Now as an option if CONFIG_NET_ARP_SEND=y, all send logic will (1)
  5356. check if the peer MAC address is in the ARP table and, if not, (2)
  5357. send ARP requests periodically to get the mapping and (3) wait for
  5358. the ARP response. Then (4) when the ARP response is received then
  5359. the actual send logic will be initiated. Thus there may be a delay
  5360. with the first packet sent to a new peer, but the packet should not
  5361. be lost
  5362. * Host Simulation:
  5363. - Emulated SPI FLASH driver for the sim target from Ken Pettit.
  5364. * Intel x86:
  5365. - The default host is now x86_64 and the -m32 option will be
  5366. automatically selected for simulation builds.
  5367. * Intel 8051 Family:
  5368. - Removed all support for the 8051 family architecture from the NuttX
  5369. source tree. The obsoleted code along with the removal patch can
  5370. now be found at misc/Obsoleted/. This code was removed because (1)
  5371. although some functionality has been demonstrated, I am not aware of
  5372. any really successful ports of NuttX to any 8051, and (2) the 8051,
  5373. with its hardware stack, forces limitations and complications to the
  5374. other architectures and make growth and development of NuttX more
  5375. complex.
  5376. * ZiLOG ZNeo Boards:
  5377. - configs/16z: Support for this board has been removed from the NuttX
  5378. source tree (but still can be found in the misc/Obsoleted
  5379. directory). This port is not ready for usage but may return to the
  5380. NuttX tree at some point in the future.
  5381. * Atmel SAM3/4 Boards:
  5382. - SAM4E-EK: Add (1) a fully-functional ILI9341-based LCD driver and
  5383. (2) a fully-functional NxWM configuration.
  5384. * ARMv7-A:
  5385. - Address Environments: Add support for application address
  5386. environments using the Cortex-A MMU. Implement standardized
  5387. platform-specific interfaces of NuttX address environment
  5388. support.
  5389. - Cache Operations: Implement standardized, platform-specific cache
  5390. operations. These are called from the ELF loader in order to flush
  5391. D-cache and invalidate I-cache after an ELF module has been loaded
  5392. into memory. With this change, ELF modules work correctly on the
  5393. SAMA5/Cortex-A platform.
  5394. - Kernel Build: (1) Add implementations of system call gate. (2) Add
  5395. CRT0 start-up file that can be linked with separately built user
  5396. programs. (3) Add support for delivery of use-mode signals in the
  5397. kernel build. (4) Add logic to initialize the per-process user heap
  5398. when each user process is started. (5) ARMv7-A exception handling
  5399. needs to work a little differently if we support user mode
  5400. processes. This is because R13 and R14 are paged differently
  5401. between user and SVC mode.
  5402. - Shared Memory Support: (1) Add logic necessary to handle remapping
  5403. of shared memory on context switches. (2) Extend virtual/physical
  5404. address conversions to include addresses in shared memory. (3) Add
  5405. implementation of platform-specific shared memory support.
  5406. * Atmel SAMA5D Drivers:
  5407. - Implement all network ioctls, including the new ioctl to setup PHY
  5408. event notifications.
  5409. - In kernel build with address environment, need logic to map user
  5410. virtual addresses to physical addresses, and vice versa.
  5411. * Atmel SAMA5D Boards:
  5412. - SAMA5D3 Xplained, SAMA5D3-EK, and SAMA5D4-EK: Convert existing
  5413. board specific PHY interrupt interfaces to use newly defined
  5414. standard interface.
  5415. - SAMA5D4-EK: Add a configuration for testing the kernel build
  5416. configuration. There are configurations to boot either from an SD
  5417. card or from and in-memory ROMFS file system.
  5418. - SAMA5D4-EK: Add documentation/support for Rev E. board.
  5419. * STMicro STM32 Drivers:
  5420. - Ethernet: Modified to support the change to the network ioctl
  5421. signature changes. Also add support for new ioctl to setup PHY
  5422. event notifications.
  5423. * STMicro STM32 Boards:
  5424. - STM32F4Discovery with STM32F4DIS-BB: Add a network enabled NSH
  5425. configuration for the STM32F4Discovery board with the STM32F4DIS-BB
  5426. base board installed. Includes support for the microSD card slot on
  5427. the STM32F4DIS-BB base board.
  5428. * TI Tiva Drivers:
  5429. - Add support for the TI CC3200. From Jim Ewing.
  5430. * TI Tiva Boards:
  5431. - Add support for the TI CC3200 Launchpad. From Jim Ewing.
  5432. * C Library:
  5433. - Re-implemented poll() delay using sem_timedwait().
  5434. * Configuration/Build System:
  5435. - Export Target: In the kernel or protected builds, (1) only the user
  5436. libraries should be exported, (2) do not copy internal header files
  5437. or build scripts if this is a kernel or protected build, and (3)
  5438. needs to bundle up the user C startup file (crt0), not the kernel
  5439. head object for the kernel and protected builds.
  5440. - Add logic that will permit us to build user libraries with different
  5441. CFLAGS than kernel code. This is needed because we need the
  5442. -fno-common option when building ELF code to prevent SHN_COMMON
  5443. relocations.
  5444. * Applications:
  5445. - NSH: Extend the NSH network initialization logic. There is now an
  5446. option that will create a network monitor thread that will monitor
  5447. the state of the link. When the link goes down, the code will
  5448. attempt to gracefully put the Ethernet driver in a down state; When
  5449. the link comes back, the code will attempt to bring the network back
  5450. up.
  5451. - ELF Example: The ELF test/example has been extended so the
  5452. individual ELF test programs can link against the SYSCALL library
  5453. (if it is available) or against the C library to eliminate or
  5454. minimize the need for symbol tables.
  5455. - Change all occurrences of NxConsole to NxTerm.
  5456. - MTDRWB Example: Add an example to test MTD R/W buffering.
  5457. - OS Test Example: Add a trivial test of sem_timedwait.
  5458. * Application Configuration/Build System:
  5459. - Import Target: (1) Add logic that will allow building applications
  5460. against a NuttX export package (vs. the nuttx/ source tree). (2)
  5461. Add .config file to export package. (3) Create apps/import. Create
  5462. apps/import/Make.defs that does things like define CFLAGS; ELF build
  5463. requires -fno-common in CFLAGS. Copy some base logic from
  5464. nuttx/tools/Config.mk to apps/import/Make.defs. (4) Add
  5465. apps/import/scripts/gnu-elf.ld GCC linker script for ELF import
  5466. builds.
  5467. - All Makefiles: (1) Add an install target to all makefiles. For
  5468. the import build, the top-level Makefile now does two passes: (1)
  5469. builds libapp.a, then (2) installs the programs into apps/bin. (2)
  5470. Add program installation for CONFIG_BUILD_KERNEL in all Makefiles
  5471. that build a main(). (3) For kernel build, the object file
  5472. containing main cannot go into library because of name collisions.
  5473. The object file must be handled as a special case in every Makefile.
  5474. - All Built-In Programs: With kernel build (CONFIG_BUILD_KERNEL),
  5475. entry point to all tasks is main(), not some xyz_main().
  5476. - NSH: Several commands must be disabled in the kernel build because
  5477. they depend on interfaces that are not available outside of the
  5478. kernel: dd, df, losetup, mkfatfs, mkdr, and ps.
  5479. - apps/tools/: (1) Add mkimport.sh to expload an NuttX import package
  5480. and install in apps/import. (2) Add mkromfsimg.sh script to create
  5481. a BOOT ROMFS filesystem image.
  5482. - ELF and NxFLAT Examples: Do not build test cases that use
  5483. task_create() if there is an address environment.
  5484. * Tools:
  5485. - refresh.sh: Add a tool to make refreshing configurations easier
  5486. when you want to do a lot of them.
  5487. - mksyscall.c: Build syscalls that do not need header files.
  5488. - mkexport.sh: Add .config file to export package.
  5489. - See above for new apps/tools scripts.
  5490. Efforts In Progress. The following are features that are partially
  5491. implemented but present in this release. They are not likely to be
  5492. completed soon.
  5493. * Processes. Much of the work in this release is focused on the
  5494. realization of Unix-style user processes in NuttX. There is more to
  5495. be done, however. The full roadmap and status is available at:
  5496. http://www.nuttx.org/doku.php?id=wiki:nxinternal:memconfigs#the_roadmap_toward_processes
  5497. * XMega: There are some fragments in place for an XMega port. That
  5498. port has not really started, however.
  5499. * Galileo: Similarly, there are fragments in place for an Intel Galileo
  5500. port. The port not been started in earnest either.
  5501. 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):
  5502. * Core OS:
  5503. - Kernel build fixes: (1) IDLE TCB setup needs to indicate that the
  5504. IDLE thread is a privileged, kernel thread. (2) Don't build
  5505. task_create() or task_spawn() interfaces if there is an address
  5506. environment. (3) posix_spawn() kernel proxy thread should be a
  5507. kernel thread, not a user task.
  5508. - Several pthread interfaces: Add const storage class to phthread
  5509. parameters. From Freddie Chopin.
  5510. - sched/clock: Remove vestiges of g_tickbias; need, instead, to apply
  5511. time bias to g_basetime in order to provide the correct system time.
  5512. - System Calls: (1) Several typos fixed; corrected integration of
  5513. exevc(), execvl(), posix_spawn, and posix_spawnp system calls. (2)
  5514. If we are configured to use a kernel stack while in SYSCALL handling,
  5515. then we need to switch back to the user stack to deliver a signal.
  5516. * File Systems/Block Drivers/MTD:
  5517. - procfs: Fix some procfs breakage introduced by reorganizing some
  5518. non-reorganizable data structures. From Ken Pettit.
  5519. - AT45: In at45db_bwrite , the buffer is not increased when writing
  5520. more than 1 page. Sourceforge bug #34.
  5521. * Binary Formats:
  5522. - ELF relocations. Some relocation types do not have a named symbol
  5523. associated with them. The design did not account for that case.
  5524. - ELF Loader: Critical bugfix.. BSS was not being cleared.
  5525. * Memory Management:
  5526. - Granule allocator initialization uses wrong allocator to setting
  5527. aside kernel memory.
  5528. - Add a flag to group structure: If the group is created by a kernel
  5529. thread, then all resources in the group must be privileged.
  5530. * Cryptogrphic Support:
  5531. - crypto/cryptodev.c: Path segments reversed in include file path. Noted by Brennan Ashton.
  5532. * Common Drivers:
  5533. - Common CAN upper-half: In can_txdone, waiters on the semaphore
  5534. should be informed regardless of the return value of can_xmit. First
  5535. it returns -EIO if there are no new packets, and second the
  5536. information of the waiters is about the last transferred packet.
  5537. From Daniel Lazlo Sitzer.
  5538. * ARM:
  5539. - System Calls: Fix a typo in system call when fetching parameter from
  5540. the stack: regs[REG_PC]+4 is the address, not regs[REG_PC+4].
  5541. * STMicro STM32 Drivers:
  5542. - STM32 F401 UART: Correct support for USART6 on this chip. From
  5543. Freddie Chopin.
  5544. - STM32 FLASH fixes: use size_t instead of uint16_t, make interface
  5545. more generic. From Freddie Chopin.
  5546. - Fix for UART7 and UART8 on STM32 clock enable from Aton.
  5547. - CAN: At the end of the interrupt handler, the interrupts were being
  5548. disabled, if all packets have been transferred when the interrupt
  5549. handler was invoked. This is problematic, because the interrupt
  5550. handler calls can_txdone of the upper half which can enqueue new
  5551. packets to send. Removed the block altogether, because can_txdone
  5552. calls can_xmit which disables interrupts if there are no new packets
  5553. to send. From Daniel Lazlo Sitzer.
  5554. - Additional STM32 CAN correction suggested by Max Holtzberg.
  5555. * STMicro ST32 Boards:
  5556. - configs/mikroe-stm32f4: Fix a few compile bugs and minor corrections
  5557. to the mikroe-stm32f4 configuration source. From Ken Pettit.
  5558. * ARM9/ARMv7-A:
  5559. - System Calls: Fix ARM7/9 and Cortex-A SYSCALLs: For threads in SVC
  5560. mode, the SVC instructions clobbers R14. This must be taken account
  5561. in the inline assembly.
  5562. - Task Setup: All tasks, even user mode tasks, must start in
  5563. supervisor mode until they get past the start-up trampoline.
  5564. - ARMv7-A: Modify up_fullcontextrestore() for CONFIG_BUILD_KERNEL.
  5565. It changed CPSR while in kernel. That will crash if the new CPSR is
  5566. user mode while executing in kernel space. Fixed by adding a
  5567. SYS_context_restore system call. There is an alternative, simpler
  5568. modification to up_fullcontextrestore() that could have been done:
  5569. It might have been possible to use the SPSR instead of the CPRSR and
  5570. then do an exception return from up_fullcontextrestore(). That
  5571. would be more efficient, but I never tried it.
  5572. * Atmel SAM3/4 Boards:
  5573. - SAM3X/Arduino Due: Fix typo in sam3x_periphclks.h; add SCLK
  5574. definitions to board.h header file. From Fabien Comte.
  5575. - SAM3 RTT: Only SAM4 family has RTTDIS bit in the MR register.
  5576. SourceForge bug #33 from Fabien Comte.
  5577. * C Library:
  5578. - sscanf(): NuttX libc tried to guess how many characters to parse,
  5579. extracted them into a buffer, then ran strtol() on that buffer.
  5580. That guess was often wrong. A better approach would be to call
  5581. strtol() directly on the input data, using the endptr return value
  5582. to determine how many characters to skip after parsing. From Kosma
  5583. Moczek.
  5584. - Corrected atan2 implementations from Denis Arnst.
  5585. - Change to lib_dtoa() to fix precision error from trailing zeroes.
  5586. From Bob Doiron.
  5587. * Applications:
  5588. - Fix NSH PS command: If there are no arguments, it could print
  5589. garbage for argument list.
  5590. * Configuration/Build System:
  5591. - Null Example: Need to include config.h it order know if this is or
  5592. is not a kernel build. This problem still exists in several other
  5593. file that may need to define main().
  5594. NuttX-7.6
  5595. ---------
  5596. The 106th release of NuttX, Version 7.6, was made on November 26, 2014,
  5597. and is available for download from the SourceForge website. Note
  5598. that release consists of two tarballs: nuttx-7.6.tar.gz and
  5599. apps-7.6.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  5600. file for build information).
  5601. Additional new features and extended functionality:
  5602. * Core OS:
  5603. - Moved name semaphore and message queue support out of the OS and
  5604. into the VFS. These improves the architecture by unifying the
  5605. management of named resources, removes redundant resource management
  5606. logic, and makes named semaphores and message queues visible in the
  5607. file system. By default, these are visible at /var/lock and
  5608. /var/mqueue.
  5609. - Add SIGPOLL for use as part of the AIO implementation.
  5610. - Remove CONFIG_MAX_TASK_ARGS configuration. There is now no
  5611. predetermined limit on the number of arguments that may be passed
  5612. to a new task on start-up.
  5613. * Work queues:
  5614. - Add support for priority inheritance on the low priority worker
  5615. queue. That is, if a higher priority thread has scheduled work, the
  5616. priority of the low priority worker thread(s) will be boost to the
  5617. priority of the queuing thread. At work is performed at at least
  5618. thread priority of the scheduling thread. If there are multiple
  5619. worker threads, then all threads get reprioritized. Currently
  5620. only implemented for AIO.
  5621. - Add support for multiple low-priority work queue threads. This
  5622. allows individual worker threads to block indefinitely for I/O as
  5623. necessary without halting the entire work queue.
  5624. * VFS/General Drivers:
  5625. - Implement create() (as a macro).
  5626. - Add pread() and pwrite(). Also added pread() and pwrite()
  5627. system calls.
  5628. - AIO: Add aio_read(), aio_write(), aio_return(), aio_error(),
  5629. aio_suspend(), aio_canel(), lio_listio(), and aio_fsync(). This
  5630. logic minimizes the creation of new threads by using the new
  5631. features also added to the low priority work queue with this
  5632. release. It uses the new low priority worker thread interface
  5633. to adjust the priority of the worker thread according to the
  5634. priority of the AIO client thread
  5635. - Implement standard syslogmask() to control logging (also removing
  5636. the non-standard syslog_enable()).
  5637. * File Systems/Block Drivers/MTD:
  5638. - Extend MTD support to the M25P16. From Sébastien Lorquet.
  5639. * Drivers:
  5640. - BCH (Block-to-Character): Add support for seeking in BCH. From
  5641. Sébastien Lorquet.
  5642. * Graphics Support/Graphics-Related Drivers:
  5643. - Add support for a generic ILI9341 LCD driver. From Marco Krahl.
  5644. - Add ANSI/VT100 foreground and background color commands.
  5645. - Add driver for ST7565 LCD that works with NHD-C12864KGZ display. From Pierre-noel Bouteville.
  5646. * Networking:
  5647. - Verify that multiple networks can be supported.
  5648. - Add support for the case where there are multiple networks: One
  5649. being Ethernet and the other not (SLIP, PPP, ...). The primary
  5650. difference from the standpoint of the stack is that (1) ARP may or
  5651. may not be necessary, (2) the size of the link layer header will
  5652. vary, and (3) different MTUs and TCP receive windows may be used
  5653. with each link. Suggested by Brennan Ashton.
  5654. - Extensions to UDP and TCP connection structures for the case of
  5655. multiple networks. In this case, assigned port numbers only have to
  5656. be unique with respect to the IP address. So, for example, you
  5657. could have multiple port 80's, one on each network.
  5658. * Host Simulation:
  5659. - Removed the old, strange up_stdio.c and implemented a simulated UART
  5660. driver to provide the console input. The new logic starts a
  5661. separate, Linux domain pthread to read the console input in raw mode
  5662. and provides the incoming data to NuttX via standard NuttX domain
  5663. IPCs.
  5664. - Add support for 64-bit longjmp/setjmp in simulator platform. This
  5665. will permit operation of the simulation natively on a 64-bit
  5666. platform.
  5667. * ARMv7-M:
  5668. - Add ARMv7-M CMSIS ITM header file and library. From Pierre-noel
  5669. Bouteville.
  5670. - Add ARMv7-M CMSIS DWT and TPI header files. From Pierre-noel
  5671. Bouteville.
  5672. - Add ARMv7-M support to use ITM for SYSLOG debug output. Includes
  5673. logic from Pierre-noel Bouteville.
  5674. * Atmel SAM3/4 Drivers:
  5675. - Add support for SAM3/4 basic serial TERMIOS and flow control.
  5676. There are issues with IFLOW control: PDC or DMAC support is
  5677. required.
  5678. * Atmel SAM3/4 Boards:
  5679. - SAM4E-EK: Add support for PHY interrupt.
  5680. * Atmel SAMA5D Boards:
  5681. - SAMA5D3-Xplained: Add a configuration that provides a simple test
  5682. for the EMAC and GMAC on the SAMA5D3 working together.
  5683. - SAMA5D4-EK: Add a configuration that provides a simple test for the
  5684. EMAC0 and EMAC1 on the SAMA5D4 working together.
  5685. * Freescale KL:
  5686. - Add an I2C header file for the Freescale KL family. From Alan
  5687. Carvalho de Assis.
  5688. * NXP LPC32xx:
  5689. - Add support for tickless operation using the NXP LPC43xx. From
  5690. Brandon Warhurst.
  5691. * SiLabs EFM32:
  5692. - Add a basic port for the SiLabs EFM32 family. Includes many files
  5693. contributed by Pierre-noel Bouteville .
  5694. * SiLabs EFM32 Boards:
  5695. - Add board support for the EFM32 Gecko Starter Kit.
  5696. - Add board support for the Olimex EFM32G8809128 STK. NOTE: I am
  5697. unable to test this configuration due to tool-related issues.
  5698. - Add board support for the SiLbas EFM32GG Giant Gecko Starter kit.
  5699. * STMicro STM32:
  5700. - Add support for the STM32 F411RE from Serg Podtynnyi.
  5701. - Add support for the STM32F103RG. From Murilo Ponte.
  5702. * STMicro STM32 Drivers:
  5703. - STM32 F4: Add logic that implement true high speed support for the
  5704. STM32 OTGHS peripheral and concurrent support for both LS and HS
  5705. OTG. New OTGHS drivers provided for both device and host. From
  5706. Brennan Ashton.
  5707. * STMicro STM32 Boards:
  5708. - STM32 Nucleo-F411RE: Extend this board configuration to also support
  5709. the Nucleo-F411RE. From Serg Podtynnyi.
  5710. - Add support for the STM32F429i Discovery's LCD (SPI based). From
  5711. Marco Krahl.
  5712. - configs/stm32f100rc_generic: Removed this generic board configuration.
  5713. I have decided to stop support of generic board configurations. Generic
  5714. board configurations do not provide support for any specific hardware
  5715. but can be useful only if there are not other examples for the setup
  5716. for a particular architecture. Not the case here.
  5717. * C Library:
  5718. - Add a mostly bogus wchar.h header file. This file is mostly bogus
  5719. because none of the wide character operations are currently
  5720. supported in the Nuttx C library. The file does provide the wchar_t
  5721. types needed by some software, however.
  5722. - Add isatty() function. From Alan Carvalho de Assis.
  5723. - Add mktemp(), mkstemp(), tmpnam() and tempnam().
  5724. * Configuration/Build System:
  5725. - Add a PRELINK macro to Config.mk. From Kriegleder.
  5726. - compiler.h: Defines inline functions as not instrumented - this is
  5727. relevant for anyone using instrumentation. From Lorenz Meier.
  5728. * Applications:
  5729. - apps/interpreter/bas: Added in the Michael Haardt's BAS 2.4 adapted
  5730. for use by NuttX by Alan Carvalho de Assis. Includes support for
  5731. VT100 terminals and color commands.
  5732. - Examples: Added bastest/ which holds a special version of Michael
  5733. Haardt's BAS 2.4 test files adapted for use by NuttX on a ROMFS file
  5734. system.
  5735. - Examples: Add a simple UDP relay bridge for testing configurations
  5736. with multiple networks. Includes a host-side test driver for
  5737. testing the bridge.
  5738. - Netutils: Add implementation of timeouts for the netutils webclient.
  5739. From Brennan Ashton
  5740. - NSH: Add support for a custom NSH ROMFS startup image header file
  5741. location. From Martin Lederhilger.
  5742. - OS test: Add a simple test of named semaphores.
  5743. - OS test: Add AIO test case in OS test.
  5744. Efforts In Progress. The following are features that are partially
  5745. implemented but present in this release. They are not likely to be
  5746. completed soon.
  5747. * Processes. Much of the work in this release is focused on the
  5748. realization of Unix-style user processes in NuttX. There is more to
  5749. be done, however. The full roadmap and status is available at:
  5750. http://www.nuttx.org/doku.php?id=wiki:nxinternal:memconfigs#the_roadmap_toward_processes
  5751. * XMega: There are some fragments in place for an XMega port. That
  5752. port has not really started, however.
  5753. * Galileo: Similarly, there are fragments in place for an Intel Galileo
  5754. port. The port not been started in earnest either.
  5755. Bugfixes. Only the most critical bugfixes are listed here (see the
  5756. ChangeLog for the complete list of bugfixes and for additional, more
  5757. detailed bugfix information):
  5758. I ran cppcheck against the entire code base and correct many latent bugs
  5759. including things as serious as memory leaks, two locations where interrupts
  5760. were be disabled but never re-enabled, and errors in the Tickless mode of
  5761. operation. My thanks to the developers of cppcheck! I am impressed!
  5762. * Core OS:
  5763. - vfork(): Now that arguments are kept on the stack, the way that
  5764. arguments are passed from parent to child in vfork() must change.
  5765. This bug has always been present, but was not visible with the
  5766. old strdup() way of passing arguments.
  5767. - vfork() problem: If we get to vfork() via system call, then we
  5768. need to clone some system call information so that the return form
  5769. the cloned system call works correctly.
  5770. - Fixes to tickless operation code, especially in alarm mode. From
  5771. Brandon Warhurst.
  5772. - Fix an important bug in the watchdog timer creation logic.
  5773. - Calling mq_timedreceived() with immediate timeout was getting stuck
  5774. and not timing out. Immediate timeout is achieved by setting absolute
  5775. timeout value to past time, for example abstime={ .tv_sec=0,
  5776. .tv_nsec=0 }. However absolute time was converted to relative time
  5777. using unsigned integer arithmetic and resulted large ticks count by
  5778. clock_abstime2ticks, instead of expected negative ticks value.
  5779. Change corrects clock_abstime2ticks() to return negative ticks, if
  5780. absolute time is in the past. From Jussi Kivilinna.
  5781. * Memory Management:
  5782. - Fix a place in the memory manager where it explicitly assumed that
  5783. the size of a pointer is 4 bytes. That assumption was OK if the
  5784. actual size is smaller but made the heap unstable when used with
  5785. the x86_64 host simulation.
  5786. - Granule Allocator: If the INTR granule allocator mode is enabled,
  5787. there is no semaphore to destroy. From Lorenz Meier.
  5788. * Networking:
  5789. - Network routing: I don't think that the net_route() function has
  5790. ever worked correctly. The source IP was updated in the match
  5791. struct instead of the route IP. From Brennan Ashton.
  5792. - Move and rename IP header flag definitions. The problem fixed here
  5793. is that there IP header flag definitions were not available when TCP
  5794. was disabled. The IP flags are used in ICMP and IGMP.
  5795. - Network routing: Refuse to perform routing table lookups for the
  5796. Broadcast IP address. From Brennan Ashton.
  5797. - Network routing: Add logic to netdev_findbyaddr() to return the
  5798. correct network device for the case where a broadcast
  5799. address is used. This change caused trivial ripples through other
  5800. files because additional parameters are required for
  5801. netdev_findbyaddr() when CONFIG_NET_MULTINIC.
  5802. * File Systems/Block Drivers/MTD:
  5803. - NXFFS Dump: Fix problems with redefinitions of fdbg macro. With the
  5804. fix to the syslog prototype, a LOG priority must now be the first
  5805. parameter. Fixed by replacing all occurrences of fdbg with
  5806. syslog(LOG_DEBUG, and eliminating the macro redefinitions. Noted
  5807. by Sebastien Lorquet.
  5808. - poll() was not waking up from signals (for example mq_notify()
  5809. events). From Jussi Kivilinna.
  5810. - poll(): Add proper handling for sem_timedwait errnos. From Jussi
  5811. Kivilinna.
  5812. - include/nuttx/fs/fs.h: Fix typo in conditional compilation. From
  5813. Alan Carvalho de Assis.
  5814. * Graphics/Graphic-Related Drivers:
  5815. - Remove warnings when CONFIG_NXTK_BORDERWIDTH is set to zero. From
  5816. Pierre-Noel Bouteville.
  5817. * Common Drivers:
  5818. - Make standard syslog and vsyslog POSIX compliant (also modify
  5819. non-standard syslog functions for compatibility).
  5820. - R/W buffering: Fix typo that can cause compilation error.
  5821. * Atmel SAM3/4:
  5822. - SAM4S: Add missing SPI0 clock configuration macro for the SAM4S. From spasbyspas.
  5823. * Atmel SAM3/4 Drivers:
  5824. - SAM4E-EK: Fix an error in a USART1 pin number.
  5825. * Atmel SAMA5D3/4 Drivers:
  5826. - SAMA5DF4: Fix several typos that will prevented EMAC1 from
  5827. initializing properly.
  5828. * NXP LPC43xx:
  5829. - Fixes to allow compile of lpc43_gpioint.c. From Brandon Warhurst.
  5830. * STMicro STM32:
  5831. - Add missing ADC pinmap definitions for the STM32 F103R from Martin
  5832. Lederhilger.
  5833. * STMicro STM32 Drivers:
  5834. - STM32 EXTI: Correct STM32 RTC EXTI bit definition. From Lazlo.
  5835. - STM32 IWDG, WWDG, DBGMCU: Fix watchdog stop bit usage. From Lazlo.
  5836. - STM32 OTGFS: Correct a typo in the STM32 OTGFS register bit definitions.
  5837. * ARM:
  5838. - ARM up_internal.h: Add protection from C++ name mangling in the
  5839. ARM up_internal.h. From Lorenz Meier.
  5840. * MicroChip PIC32MX:
  5841. - PIC32MX7: DEVCFG0 bit 2 must be set. Writing bit 2 as zero can
  5842. brick the CPU on some versions. From Cris Kvist.
  5843. * C Library:
  5844. - The implementation of access() as vararg macro has the issue that
  5845. any function call with the same name (even in a C++ class) will
  5846. match with it and result in a compile error. Replaced with a small
  5847. function. This resolves the compile issue, and shouldn’t have
  5848. negative side effects for users of the function. From Lorenz Meier.
  5849. - The definition of strncpy() is that empty space should be zero-
  5850. filled, the change adds the zero filling (See the POSIX spec here:
  5851. http://pubs.opengroup.org/onlinepubs/7908799/xsh/strncpy.html). From
  5852. Lorenz Meier.
  5853. - limits.h: Remove the definition of INT_FAST32_MIN which is already
  5854. defined in stdint.h (the correct location). From Lorenz Meier.
  5855. * Applications:
  5856. - apps/: Correct everything under apps to use the corrected syslog
  5857. interfaces. Remove any non-portable uses of syslog.
  5858. - NSH: Fix ls -l output for regular files.
  5859. - NSH: Fix reversed in/out file closing in DD command when an error
  5860. occurs. From Ken Pettit.
  5861. - NSH: Add logic to restart the console wait if an error occurs
  5862. while reading from the console. In USB console startup, the logic
  5863. must be able to open the USB serial and receive 3 newlines.
  5864. However, it the USB driver is disconnected or otherwise fails before
  5865. the 3 newlines are received, the receive loop becomes a killer,
  5866. infinite loop, CPU hog. Noted by spasbyspas.
  5867. - Netutils: Fix memcpy of host address in netlib_gethostaddr(). From
  5868. Brennan Ashton.
  5869. - Netutils: If you make a DNS request before the DNS address it would
  5870. cause an assertion. The state of the IP setting is not something the
  5871. application should be aware of, it should only be concerned with
  5872. whether or not the name was resolved. From Brennan Ashton.
  5873. - Netutils: Fix md5 hashing when digest[$i] islower that 16. From
  5874. Sergey.
  5875. - Stack Monitor: Fix compile problems introduced when the syslog()
  5876. prototype changed; Also update Makefile for kernel build From
  5877. Radoslaw Adamczyk.
  5878. - Examples: Update NxTerm makefile for kernel-build issues. From
  5879. Radoslaw Adamczyk.
  5880. - Examples: Fixes to keypadtest from Pierre-Noel Bouteville.
  5881. - Examples: These examples all set the IP address of eth1 but the
  5882. netmask and gateway of eth0 if DHCP is enabled: discover, tcpecho,
  5883. webserver, xmlrpc. That can't be right.
  5884. NuttX-7.7
  5885. ---------
  5886. The 107th release of NuttX, Version 7.7, was made on January 26, 2015,
  5887. and is available for download from the SourceForge website. Note
  5888. that release consists of two tarballs: nuttx-7.7.tar.gz and
  5889. apps-7.7.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  5890. file for build information).
  5891. Additional new features and extended functionality:
  5892. * Core OS:
  5893. - Task exit handling: Add logic to clean up after task_delete() or
  5894. pthread_cancel() if the task happens to be waiting on a semaphore
  5895. when was is cancelled.
  5896. - Stack coloration: Removed CONFIG_DEBUG_STACK and replaced it with
  5897. CONFIG_STACK_COLORATION that does the same thing but without enabling
  5898. debug. From David Sidrane.
  5899. * Common Drivers:
  5900. - Discrete joystick driver: Added an interface definition and upper
  5901. half driver for a discrete joystick device (where X/Y changes are
  5902. indicated with button presses).
  5903. - Analog joystick driver: Added an interface definition and upper
  5904. half driver for a analog joystick device (where X/Y positions are
  5905. sampled, numeric values).
  5906. - Add driver support for the ADXL345 accelerometer. From Alan
  5907. Carvalho de Assis
  5908. - Generic serial driver: Add watermark levels to the serial RX flow
  5909. control logic. Modify the rxflowcontrol method to accept the number
  5910. of bytes in the buffer and a boolean indication of which watermark
  5911. was crossed.
  5912. * File Systems/Block Drivers/MTD:
  5913. - Add procfs write support. From Ken Petit.
  5914. - Implemented wear-leveling in the SmartFS. From Ken Pettit.
  5915. - MMC/SD Interface: MMCSD SDIO: Add support for a new
  5916. SDWAIT_WRCOMPLETE condition. The previous logic used a busy-wait
  5917. loop to poll the card R1 status to determine when the card was
  5918. ready for the next transfer. That busy-wait can be quite long --
  5919. up to hundreds of milliseconds. An alternative is to look the SD D0
  5920. pin which will change state when the card is no longer busy. This
  5921. change avoids the busy-wait poll by reconfiguring the SD D0 pin as a
  5922. GPIO interrupt, then waiting for the card to become ready without
  5923. taking up CPU cycles. From David Sidrane.
  5924. * Drivers:
  5925. - Add support for a generic EEPROM driver that accesses EEPROM as a
  5926. character driver (vs. an MTD driver). From Sébastien Lorquet.
  5927. * Graphics Support:
  5928. - Many new fonts converted for use with NuttX and added by
  5929. Pierre-noel Bouteville
  5930. * Networking:
  5931. - IPv4 support is now conditioned on CONFIG_NET_IPv4.
  5932. - Implemented and verified IPv6 support conditioned on
  5933. CONFIG_NET_IPv6. Either IPv4 or IPv4 or both may be selected.
  5934. Sockets, of course, must be bound to one or the other. Added support
  5935. for IPv6 ioctls to manipulate IP addresses.
  5936. - Integrated support for ICMPv6 and the ICMPv6 Neighbor Discovery
  5937. Protocol and ICMPv6 ECHO request/reply needed to support ping logic.
  5938. - All Ethernet drivers: Modified to support. Most, however, are
  5939. still missing address filtering logic required for ICMPv6 Neighbor
  5940. Discovery Protocol. See
  5941. http://www.nuttx.org/doku.php?id=wiki:howtos:ipv6#ethernet_driver_requirements
  5942. - Also added missing raw/packet socket support to all Ethernet drivers.
  5943. * Host Simulation:
  5944. - Add a configuration build and test the Traveler first person game
  5945. using the simulator.
  5946. - Add an X11 mouse-based simulation of an analog joystick device
  5947. * Atmel SAMA5D Boards:
  5948. - Add analog Joystick shield support for the SAMA5D3 Xplained board.
  5949. * Freescale KL Drivers:
  5950. - Add GPIO interrupt capability for the KL architecture. From Alan
  5951. Carvalho de Assis
  5952. * Freescale KL Boards:
  5953. - Freedom-KL25Z: Add board support for the ADXL345 accelerometer. From
  5954. Alan Carvalho de Assis
  5955. - Freedom-KL25Z: Update the Freedom KL25Z board CC3000 support to use
  5956. the current CC300 interfaces. From Alan Carvalho de Assis
  5957. * NXP LPC43xx Boards:
  5958. - A port of NuttX to the LPC4357-EVB from Toby Duckworth. This port
  5959. is a leverage of the LPC3330-Xplorer port and still have a some
  5960. misinformation from that port that needs to be updated for the
  5961. LPC4357-EVB.
  5962. * SiLabs EFM32 Drivers:
  5963. - Serial: Add support for serial termios TCGET and TCSET. For the
  5964. moment, only set/get speed is implemented. From Pierre-noel
  5965. Bouteville.
  5966. - RMU: Add support for the EFM32 reset management unit (RMU). From
  5967. Pierre-noel Bouteville.
  5968. * SiLabs EFM32 Boards:
  5969. - Add support for timer/PWM on the EFM32GG. From Pierre-noel
  5970. Bouteville
  5971. * STMicro STM32:
  5972. - Enable support for the STM32 F102. From the PX4 team.
  5973. * STMicro STM32 Drivers:
  5974. - STM32 F429 LTDC: Add interface to perform hardware accelerated layer
  5975. operation. Provides access to a reference of a specific ltdc layer.
  5976. From Marco Krahl
  5977. - STM32 F429 LTDC support: Implemented LTDC framebuffer support for the
  5978. generic nuttx framebuffer interface. Also implements the interface to
  5979. perform hardware accelerated layer operation by the ltdc controller
  5980. and dma2d controller later. From Marco Krahl.
  5981. - STM32: Add support for the internal low speed clock (LSI) as a
  5982. source of the RTC clock. Some boards do not have the external
  5983. 32kKhz oscillator installed, for those boards we must fallback to
  5984. the crummy internal RC clock. From Kevin Hester
  5985. - STM32 SDIO: Add support for the new SDWAIT_WRCOMPLETE condition.
  5986. From David Sidrane
  5987. * STMicro STM32 Boards:
  5988. - Add a discrete Joystick support for the STM3210E-EVAL.
  5989. - Add analog Joystick shield support for the Nucleo F4x1RE boards.
  5990. - STM32 F429i-Disco: Add support for initializing of the ltdc
  5991. controller and the lcd device connected on the stm32f429i-disco.
  5992. From Marco Krahl.
  5993. - Removed the px4-v2_upstream configuration. This was not the
  5994. official configuration for the PX4 board and has led to confusion
  5995. by NuttX users. The board configuration also requires some ongoing
  5996. maintenance and customization to support ongoing PX4 testing and
  5997. evaluation. It is best retained the PX4 repositories where it can
  5998. be properly maintained and not in the upstream NuttX repository.
  5999. * TI Tiva:
  6000. - Add support for the TI Tiva TM4C 129X family. Some unverified
  6001. support for the TM4C 1294 is also in place.
  6002. * TI Tiva Drivers:
  6003. - Added support for Tiva I2C driver. Verified on the Tiva TM4C123G
  6004. and TM4C129X.
  6005. - Added a Tiva TM4C129X Ethernet driver.
  6006. - Add a timer library for generic support of Tiva timers
  6007. - Add a driver lower half for drivers/timer.c. Only 32-bit periodic
  6008. timers are supported. This provides userspace access to timers.
  6009. * TI Tiva Boards:
  6010. - TM4C123G Launchpad: Add initialization logic for an external AT24
  6011. EEPROM. This is intended only to support testing of the Tiva I2C
  6012. driver.
  6013. - Board support for the Tiva DK-TM4C129x Connected Development Kit.
  6014. - DK-TMC129X: Add an IPv6-enabled NSH configuration.
  6015. * C Library/Header Files:
  6016. - Added support for a variadic ioctl() function. The ioctl()
  6017. interface is a non-standard, Unix interface. NuttX has always used
  6018. the older, three-parameter version. Most contemporary systems now,
  6019. however, use a variadic form of the ioctl() function. Added an
  6020. option to insert a shim layer to adapt the three-parameter ioctl()
  6021. to use the variadic interface form. Internally, the ioctl handling
  6022. is the same three-parameter logic. The only real complexity to the
  6023. shim is in how the system calls must be handled.
  6024. - Added sys/custom_file.h. Used when CUSTOM_FILE_IO is define and
  6025. avoids re-definition errors about the FILE define. From Thomas
  6026. Gruber via the PX4 repository
  6027. - Add CRC8 support to the C library. From Ken Pettit.
  6028. - math.h: Added support for the expm1 functions. From Brennan Ashton
  6029. * Applications:
  6030. - apps/examples/djoystick: Add a test of the discrete joystick
  6031. driver.
  6032. - apps/examples/ajoystick: Add a test of the analog joystick
  6033. driver.
  6034. - apps/examples/ltdc: Add ltdc test example. From Marco Krahl
  6035. - apps/system/lm75: Add a tiny application to read the temperature
  6036. from an LM-75 (or compatible) temperature sensor
  6037. - apps/examples/timer: Add a trivial test of the timer driver
  6038. - apps/system/cu: Add a minimalist implementation of the 'cu'
  6039. terminal program (part of Taylor UUCP for ages). Using it, you can
  6040. simply open a serial port and interact with it. Using '~.' you can
  6041. leave the terminal program and drop back to nsh. This might come
  6042. in handy for people that have e.g. GSM modems, GPS receivers or
  6043. other devices with text based serial communications attached to
  6044. their Nuttx systems. From Harald Welte
  6045. - apps/interpreters/micropython: A port of Micro Python to NuttX.
  6046. Contributed by Dave Marples
  6047. - apps/netutils/dnsclient: Can select to be either IPv4 or IPv6, but
  6048. not both (IPv6 still does not compile)
  6049. - apps/netutils/netlib: Add new library functions to manipulate IPv6
  6050. addresses.
  6051. - apps/examples/nettest: Update test so that it can be used to test
  6052. IPv6 TCP sockets
  6053. - apps/examples/udp: The UDP test example has been extend to support
  6054. IPv6 domain sockets
  6055. - apps/nshlib: Add logic to initialize IPv6 addresses
  6056. - apps/nshlib: Add the ping6 command to support checking IPv6 networks.
  6057. - apps/nshlib: Clean up network status presentation for IPv6
  6058. Efforts In Progress. The following are features that are partially
  6059. implemented but present in this release. They are not likely to be
  6060. completed soon.
  6061. * IPv6. While basic IPv6 support was completed in NuttX-7.7,
  6062. there are lingering issues with getting IPv6 compatibility
  6063. with applications and network utilities.
  6064. * Processes. Much of the work in this release is focused on the
  6065. realization of Unix-style user processes in NuttX. There is more to
  6066. be done, however. The full roadmap and status is available at:
  6067. http://www.nuttx.org/doku.php?id=wiki:nxinternal:memconfigs#the_roadmap_toward_processes
  6068. * XMega: There are some fragments in place for an XMega port. That
  6069. port has not really started, however.
  6070. * Galileo: Similarly, there are fragments in place for an Intel Galileo
  6071. port. The port probably will not happen (I gave my Galileo board away!).
  6072. Bugfixes. Only the most critical bugfixes are listed here (see the
  6073. ChangeLog for the complete list of bugfixes and for additional, more
  6074. detailed bugfix information):
  6075. * Core OS:
  6076. - POSIX message queues: msg type should be char * not void * in
  6077. mq_send, mq_timedsend, mq_receive, and mq_timedreceive. Noted by
  6078. Pierre-Noel Bouteville
  6079. - POSIX message queues: In message queue creation return ENOSPC error
  6080. if size exceeds the configured size of pre-allocated messages; Use
  6081. ENOSPC vs ENOMEM per OpenGroup.org. From Pierre-Noel Bouteville.
  6082. - Task Names: strncpy() will not copy the terminating \0 into the
  6083. destination if the source is larger than the size of the
  6084. destination. Ensure that the last byte is always zero and let
  6085. strncpy() only copy CONFIG_TASK_NAME_SIZE bytes. The issue of
  6086. unterminated names can be observed in ps when creating a pthread
  6087. while CONFIG_TASK_NAME_SIZE is set to 8. From Daniel Willmann
  6088. * Memory Management:
  6089. - Granule allocator: Fixes some issues found by the PX4 team using
  6090. Coverity. From Pavel Krienko
  6091. * Networking:
  6092. - Several fixes correcting issues with the CC3000 networking. From
  6093. Jussi Kivilinna
  6094. - CC3000 Fix: Data can be unaligned. When dereferenced as an input
  6095. ntosh(), a bad value is returned. Reported by Alan Carvalho de
  6096. Assis
  6097. - Correct naming of fields in struct sockaddr_in6: sin6_port and
  6098. sin6_family, not sin_port and sin_family.
  6099. - accept(): Correct the value returned by accept() in the case where
  6100. net_lockingwait() is called. It was returning -1 and losing the
  6101. errno value. Noted by Rony Xln
  6102. * Common Drivers:
  6103. - Loop device should return -EINTR is interrupted by a signal.
  6104. - M25P serial flash driver: Add subsector size of the M24P16 part.
  6105. From Lazlo
  6106. - Common serial driver: In case a thread is doing a blocking operation
  6107. (e.g. read()) on a serial device, while it is being terminated by
  6108. pthread_cancel(), then uart_close() gets called, but the semaphore
  6109. is still blocked. This means that once the serial device is opened
  6110. next time, data will arrive on the serial port (and driver
  6111. interrupts handled as normal), but the received characters never
  6112. arrive in the reader thread. The problem was fixed by re-
  6113. initializing the semaphores on the last uart_close() on the device.
  6114. From Harald Welte
  6115. - Pipes: Fixes some issues found by the PX4 team using Coverity. From
  6116. Pavel Krienko
  6117. - CDC/ACM driver: Fixes some issues found by the PX4 team using
  6118. Coverity. From Pavel Krienko
  6119. * NXP LPC43xx Drivers:
  6120. - LPC4357: Changes required to get USART 2 & 3 working on the
  6121. lpc4357-evb. From Toby Duckworth.
  6122. * STMicro STM32:
  6123. - Several fixes correcting issues with the STM32 header files from
  6124. Jussi Kivilinna
  6125. * STMicro STM32 Drivers:
  6126. - Ported Tridge's STM32 I2C noise resilience logic from the PX4
  6127. repository.
  6128. - STM32 F2 and F4: Set the GPIO_SPEED_50MHz on all F2 and F4 SPI pin
  6129. configurations. This is based on an F411 SPI1 errata but the fixed
  6130. is generalized to all SPI and all F2 and F4. Discovered and fixed
  6131. by Sebastien Lorquet.
  6132. - Fix for STM32 OTGHS device driver working in FS mode. From Ken
  6133. Pettit.
  6134. - For STM32 OTG HS DEV (in FS mode): Disable ULPI clock enable in RCC
  6135. AHB1 Register. If Both ULPI and the FS clock enable bits are set in
  6136. FS mode, then the ARM never awakens from WFI due to a chip issue.
  6137. This is only an issue if you are using the internal PHY. From Ken
  6138. Pettit.
  6139. - STM32 F429 LTDC: Add missing clut register definition. From Marco
  6140. Krahl
  6141. - STM32 serial: fix declaration and definition of up_receive() and
  6142. up_dma_receive() to match fields in the interface definition of
  6143. struct uart_ops_s. From Freddie Chopin.
  6144. * TI Tiva Drivers:
  6145. - Fix Tiva IRQ control logic; was limited to only 64 IRQs. That is a
  6146. problem for higher numbered IRQs on many platforms
  6147. * C Library/Header Files:
  6148. - avsprintf(): Fix a bug in usage of va_list on x86. On x86,
  6149. va_list is a pointer to a single copy on the stack. avsprintf()
  6150. calls lib_vsprintf() twice and so traverses the va_list twice using
  6151. va_start. va_start modifies that single copy on the stack so that
  6152. the second call to lib_vsprintf() fails. This appears to be an
  6153. issue with x86 only so far.
  6154. - stdint.h: Don't use hex values to specify minimum values of fixed
  6155. width, signed values. Hex values are inherently unsigned and not
  6156. usable for this purpose in all contexts.
  6157. - strncpy(): Would trash a lot of memory if n == 0. From Yasuhiro
  6158. Osaki.
  6159. - sscanf(). Accept %X and %F as well as %x %f as a format specifiers.
  6160. From Sébastien Lorquet
  6161. * Applications:
  6162. - apps/examples/romfs: fix romfs example builtin app registry issue.
  6163. From Librae
  6164. - apps/system/cdcacm, composite and usbmsc: Fix some strangely placed
  6165. conditional compilation. Looks like an automated update went awry
  6166. - apps/netutils/telnetd: Add protection when CONFIG_SCHED_HAVE_PARENT
  6167. is enabled: Call sigaction with SA_NOCLDWAIT so that exit status is
  6168. not retained (no zombies) and block receipt of SIGCHLD so that
  6169. accept is not awakened by a signal. If accept() is awakened by a
  6170. signal, do not do anything crazy like exit. Most from Rony Xln
  6171. - apps/nshlib/: NSH TFTP get command: Wrong file name used for the
  6172. destination. From Lazlo
  6173. NuttX-7.8
  6174. ---------
  6175. The 108th release of NuttX, Version 7.8, was made on February 11, 2015,
  6176. and is available for download from the SourceForge website. Note
  6177. that release consists of two tarballs: nuttx-7.8.tar.gz and
  6178. apps-7.8.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  6179. file for build information).
  6180. This release is primarily a bugfix release for the NuttX-7.7 version that
  6181. was release just two weeks prior. That release included substantial
  6182. modifications in the NuttX networking to accommodate support for IPv6. This
  6183. release follows close behind NuttX-7.7 in order to correct some the problems
  6184. discovered in that networking code. This release does, however, include a
  6185. small number of new features and bug fixes unrelated to NuttX networking.
  6186. Additional new features and extended functionality:
  6187. * Core OS:
  6188. - Tickless Mode: added limit of maximum delay that can be request
  6189. by the scheduler tickless logic. This is necessary so that the
  6190. tickless logic does not request a delay beyond the capability of the
  6191. underlying hardware. From Macs Neklyudov.
  6192. * Common Drivers:
  6193. - VFS Unlink: Add an unlink method to both the character and block
  6194. driver interface. This is important because if the driver inode is
  6195. unlinked and there are no open references to the driver, then the
  6196. driver resources will be stranded. On the unlink call, the driver
  6197. has the opportunity (1) check if there an any open references, and
  6198. if not, (2) free the driver resources.
  6199. - Pipes and FIFOs: Implement the unlink method. If the pipe/FIFO is
  6200. unlinked, it will marked the pipe/FIFO as unlinked. If/when all
  6201. open references to the driver are closed, all of the driver
  6202. resources will be freed.
  6203. - Added an option to use the syslog'ing device as the system console.
  6204. This option enables a low-level, write-only console device at
  6205. /dev/console (similar to the low-level UART console device). From
  6206. Pierre-noel Bouteville.
  6207. * File Systems/Block Drivers/MTD:
  6208. - RAM/ROM disk: Add logic to dispose of the driver and RAM buffer
  6209. when the RAM disk has been unlinked and all open references to the
  6210. RAM disk have been closed. Add new parameters to romdisk() to
  6211. specify what should be done with the RAM/ROM buffer in this case --
  6212. Should it be freed or not? Changed all calls to ramdisk() to use
  6213. these new parameters.
  6214. * Networking:
  6215. - Add support for local, Unix domain sockets. Support included for
  6216. both SOCK_STREAM and SOCK_DGRAM style local socket.
  6217. - UDP enhancement: Add UDP read-ahead support. In addition to
  6218. eliminating the main reason for lost UDP packets, then change
  6219. enables support for for poll/select on UDP sockets and also non-
  6220. blocking UDP sockets. From Macs Neklyudov.
  6221. - SLIP interface improvements. From Macs Neklyudov.
  6222. - IPv6 Neighbor Solicitation: Added logic to support verification
  6223. that we have the IPv6 address in the Neighbor Table before sending
  6224. any packets. If not, then the Neighbor Solicitation message is
  6225. sent. This feature is important because otherwise the first packet
  6226. sent to a remote peer will fail (it would have been replaced with a
  6227. Neighbor Solicitation).
  6228. - IPv6 Autonomous Auto-Configuration: Added support for sending
  6229. ICMPv6 Router Solicitation and receiving Router advertisement. The
  6230. local IPv6 address, mask, and router address are then auto-configured
  6231. from the response..
  6232. - IPv6 Router Support: Add logic to behave like a router (if so
  6233. configured) only in the sense that NuttX will send the router
  6234. advertisement message in response to any received router solicitation
  6235. messages. Thus, one NuttX node in a network can configure the IPv6
  6236. addresses of all other nodes in the network.
  6237. - Optional IPv6 address filtering added to all Ethernet drivers for
  6238. the all-routers multicast address.
  6239. * Atmel AVR:
  6240. - Added architecture support for the Atmel AVR ATMega1284P MCU. From
  6241. Jedi Tek'Unum.
  6242. * Atmel AVR Boards:
  6243. - Added support for the LowPowerLab MoteinoMEGA that is based on the
  6244. Atmel AVR ATMega1284P MCU. From Jedi Tek'Unum.
  6245. * Atmel SAMA4:
  6246. - Add support for Tickless mode of operation for the SAM4CM platform.
  6247. From Macs Neklyudov.
  6248. * Atmel SAMA4 Drivers:
  6249. - Ethernet: The SAM4E Ethernet driver can now be configuration to
  6250. perform all network processing on the work queue. This greatly
  6251. reduces the amount of interrupt level processing to service Ethernet
  6252. packets.
  6253. - SAM4E Ethernet: Add support multicast address matching and IPv6.
  6254. * Atmel SAMA4 Boards:
  6255. - SAM4E-EK: The nsh configuration now configures the Ethernet driver
  6256. for execution on the work thread.
  6257. * Atmel SAMA5D Drivers:
  6258. - SAMA5D4 Ethernet: The SAMA5D4 Ethernet driver can now be configuration
  6259. to perform all network processing on the work queue. This greatly
  6260. reduces the amount of interrupt level processing to service Ethernet
  6261. packets.
  6262. - SAMA5D3 and SAMA5D4 Ethernet: Add support multicast address matching
  6263. and IPv6.
  6264. * Atmel SAMA5D Boards:
  6265. - SAMA5D4-EK; Added a configuration to testing IPv6.
  6266. - SAMA5D4-EK: Converted the nsh and ipv6 configurations to configure
  6267. the Ethernet driver to use the work queue (vs. interrupt level
  6268. processing).
  6269. * Freescale KL:
  6270. - Add architectural support for the K26Z128VLH4 chip. From Derek B. Noonburg.
  6271. * Freescale KL Boards:
  6272. - Add board support for the Freedom KL26Z board. From Derek B. Noonburg.
  6273. * NXP LPC17xx Drivers:
  6274. - Ethernet: Add support multicast address matching and IPv6.
  6275. * SiLabs EFM32:
  6276. - Add configurable option to unconditionally enable LE clocking. Even
  6277. you don't use core clock LE as source for LFA or LFB, to read are
  6278. write any register not clocked by HFPERCLK or HFCORECLK, HFCORECLKLE
  6279. should be enabled. From Pierre-noel Bouteville.
  6280. * SiLabs EFM32 Drivers:
  6281. - EFM32 RTC: RTC driver using BURTC. From Pierre-Noel Bouteville.
  6282. * STMicro STM32 Drivers:
  6283. - AES: Add driver for STM32L162XX AES peripheral. From Juha Niskanen.
  6284. - Ethernet: The STM32 Ethernet driver can now be configuration to
  6285. perform all network processing on the work queue. This greatly
  6286. reduces the amount of interrupt level processing to service Ethernet
  6287. packets.
  6288. - Ethernet: Add support multicast address matching and IPv6.
  6289. * STMicro STM32 Boards:
  6290. - Added an IPv6 configuration for the STM32F4-Discovery board (with the
  6291. STM32-DISCO_BB base board).
  6292. - Converted all STM32F4-Discovery configurations (with base board) to
  6293. configure the Ethernet driver to use the work queue (vs. interrupt
  6294. level processing).
  6295. * TI Tiva Drivers:
  6296. - Added support for TM4C123G timers. From Calvin Maguranis.
  6297. - Added a Tiva ADC driver. From Calvin Maguranis.
  6298. * TI Tiva Boards:
  6299. - Added TM4C123G timers on the TM4C123G Launchpad. From Calvin Maguranis.
  6300. - Added Tiva ADC support to the TM4C123G-Launchpad. From Calvin Maguranis.
  6301. * C Library/Header Files:
  6302. - Math Library: Added support for inverse hyperbolic functions,
  6303. isfinite(), error functions, nan(), copysign(), and trunc()
  6304. functions. From Brennan Ashton.
  6305. * Applications:
  6306. - apps/examples/ustream: Add a simple test of Unix domain stream
  6307. sockets.
  6308. - apps/examples/udgram: Add a simple test of Unix domain datagram
  6309. sockets.
  6310. - apps/netutils/netlib: Add utilities to convert to/from prefix
  6311. lengths from/to 128-bit network masks.
  6312. - apps/nshlib: Modify the NSH IPv6 ifconfig command to show the more
  6313. standard post-pended prefix value, rather than the full 128-bit
  6314. netmask.
  6315. Efforts In Progress. The following are features that are partially
  6316. implemented but present in this release. They are not likely to be
  6317. completed soon.
  6318. * Processes. Much of the work in this release is focused on the
  6319. realization of Unix-style user processes in NuttX. There is more to
  6320. be done, however. The full roadmap and status is available at:
  6321. http://www.nuttx.org/doku.php?id=wiki:nxinternal:memconfigs#the_roadmap_toward_processes
  6322. * XMega: There are some fragments in place for an XMega port. That
  6323. port has not really started, however.
  6324. Bugfixes. Only the most critical bugfixes are listed here (see the
  6325. ChangeLog for the complete list of bugfixes and for additional, more
  6326. detailed bugfix information):
  6327. * Core OS:
  6328. - Work Queues: Fix a backward calculation when determining the time
  6329. to the next interesting event. . From Liio Chen via the PX4
  6330. repository.
  6331. - clock_systimespec(): Fixes for compilation errors in certain
  6332. configurations. From Macs Neklyudov.
  6333. * Graphics
  6334. - Fixed a problem with one of the font files. From Pierre-noel Bouteville.
  6335. * Networking:
  6336. - IOB Deadlock: There were issues with the TCP write-ahead buffering
  6337. if CONFIG_NET_NOINTS was enabled: There is a possibility of
  6338. deadlocks in certain timing conditions: The network should never
  6339. wait for TCP read-ahead buffering space to be available. It should
  6340. drop the packets immediately if no buffering is available. This was
  6341. fixed by duplicating most of the IOB interfaces: The versions that
  6342. waited are still present (like iob_alloc()), but now there are non-
  6343. waiting versions of the same interfaces (like iob_tryalloc()). The
  6344. TCP read-ahead logic now uses only these non-waiting interfaces.
  6345. - TCP Deadlock: Fix another deadlock when CONFIG_NET_NOINTS is enabled.
  6346. tcp_write_buffer_alloc() calls sem_wait() with network locked. That
  6347. worked if CONFIG_NET_NOINTS was not defined because interrupts are
  6348. automatically restored when the wait happens. But with
  6349. CONFIG_NET_NOINTS=y, the wait blocks with the network locked -- bad
  6350. style and also can lead to a deadlock condition.
  6351. - ARP response waiting: Fixes another CONFIG_NET_NOINTS issue. When
  6352. called sem_timedwait() with the network locked, the network stays
  6353. locked while we wait which is not what we want (without CONFIG_NET_NOINTS,
  6354. interrupts are re-enabled while we wait and all is well).
  6355. - TCP accept(): Fix a major TCP bug introduced with the NuttX-7.7
  6356. IPv6 changes: Some connection logic was reordered; setting the
  6357. socket as 'connected' got moved to BEFORE the point where the check
  6358. was made if the socket was already connected. The resulting behavior
  6359. was odd: Telnet would connect, but then when you exit and reconnect,
  6360. it would fail to connect. But then if try again, it would connect
  6361. okay. So the symptom was connect-fail-connect-fail-...
  6362. - Lots of build problems introduced into multiple NIC support with the
  6363. IPv6 changes of NuttX-7.7. Many places where conditional logic based
  6364. on CONFIG_NETDEV_MULTINIC is confused with CONFIG_NET_MULTILINK.
  6365. Lots of code changed with IPv6 that was never compiled with MULTINIC
  6366. enabled.
  6367. * Common Drivers:
  6368. - Pipes and FIFOs: Fix a race condition between FIFO buffer operations
  6369. and the opening and closing of FIFOs which necessary when the FIFOs
  6370. are used to support Unix domain, datagram sockets. The default
  6371. policy is the deallocate FIFO buffering when the last client closes
  6372. the pipe. When when used for datagram communications, packets left
  6373. in the FIFO will be lost. Some like UDP read-ahead is needed: The
  6374. buffered data in the FIFO needs to be retained until the reader gets
  6375. a chance to re-open the FIFO. Added an ioctl (PIPEIOC_POLICY) to
  6376. control the buffer policy. Default (0) is the legacy behavior; Unix
  6377. domain datagram logic sets the alternative policy so that the packet
  6378. data persists after the FIFO is closed.
  6379. - RAMTRON: Table of parts is not terminated properly if
  6380. CONFIG_RAMTRON_FRAM_NON_JEDEC is not defined. Noted by David
  6381. Sidrane.
  6382. * All Architectures:
  6383. - Removed all occurrences of up_maskack_irq() that disables interrupts
  6384. with up_ack_irq() that only acknowledges the interrupts. This is only
  6385. used in interrupt decoding logic. Also remove the logic that
  6386. unconditionally re-enables interrupts with the interrupt exits. This
  6387. interferes with the drivers ability to control the interrupt state.
  6388. This is a necessary, sweeping, global change and unfortunately
  6389. impossible to test.
  6390. * ARM
  6391. - ARMv7-A and ARMv7-M memcpy(): Optimized ARM assembly language
  6392. memcpy's were not returning a value in R0 they are required to do.
  6393. From David Sidrane.
  6394. - ARMv7-A interrupt handler should not automatically re-enable interrupts
  6395. on interrupt return. That interferes with the driver's ability to
  6396. manage interrupts. Analogous change made to all other architectures
  6397. as well (ARM7, ARM9, HC, SH, x86, z16, z80, etc,. See above.).
  6398. * STMicro STM32:
  6399. - GPIO Interrupts: Disabling any of EXTI 5-9 interrupts was disabling
  6400. interrupts for all EXTI 5-9. Same issue with EXTI 10-15. From Jussi
  6401. Kivilinna.
  6402. * STMicro STM32 Drivers:
  6403. - RTCC: Fix for recent changes that caused compilation failrues with
  6404. STM32L15XX configurations. From Jussi Kivilinna.
  6405. - SPI: The source clock for SPI 4,5, and 6 should be PCLK2, not PCLK1
  6406. (for F411, F427, and F429). Per David Sidrane.
  6407. * C Library/Header Files:
  6408. - execl(): Fix bad logic in counting the number of arguments.
  6409. execl() parameter passing could never have worked. Noted by
  6410. Pierre-noel Bouteville.
  6411. * Applications:
  6412. - Fix for building with parallel make. Build-server sometimes failed
  6413. 'make -j24' with errors in the builtin line or or sometimes silently
  6414. succeeds but generated builds that contain a random subset of
  6415. configured NuttX applications. There are two root causes for this:
  6416. (1) Recipes for building builtin_list.h and builtin_proto.h are
  6417. not linearizable, and (2) Nothing ensures that 'make context' is run
  6418. first for apps/builtin. This change address both issues. From Juha
  6419. Niskanen.
  6420. NuttX-7.9
  6421. ---------
  6422. The 109th release of NuttX, Version 7.9, was made on April 14, 2015,
  6423. and is available for download from the SourceForge website. Note
  6424. that release consists of two tarballs: nuttx-7.9.tar.gz and
  6425. apps-7.9.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  6426. file for build information).
  6427. Additional new features and extended functionality:
  6428. * Core OS:
  6429. - Assertions: Add support for dumping board-specific information on
  6430. assertions. From David Sidrane.
  6431. - boardctl(): : Add a new non-standard OS interface called boardctl().
  6432. This is similar to a driver IOCTL call. But this is an IOCTL call
  6433. directly on the board logic. This function will eventually replace
  6434. all of the ad hoc OS interfaces that are current used to perform
  6435. application specific initialization and application driver test
  6436. configuration. It essentially formalizes and institutionalizes
  6437. these rogue interface in to at least a single crazy call.
  6438. * Graphics:
  6439. - Line Joins: Line drawing graphic functions now take an argument that
  6440. will draw a circular "cap" on the ends of lines to support cleaner
  6441. joining of lines segments..
  6442. * Common Drivers:
  6443. - SPI iInterface: Add an SPIDEV_USER so that there can be board-
  6444. specific definitions of SPI devices.
  6445. - I2C Interface: Add a user provided void * argument to the I2C
  6446. callback method for the I2C slave interface. Suggested by Nate
  6447. Weibley.
  6448. - AT24 EEPROM Driver: Add support for (1) the byte-oriented read()
  6449. method, (2) devices that have extended memory regions, and (3)
  6450. devices that use 8-bit addressing.
  6451. - Freescale MPL115A barometer: Add driver for the Freescale MPL115A
  6452. barometer. From Alan Carvalho de Assis.
  6453. - CS2100-CP: Add a driver for the CS2100-CP Fractional-N Multipler
  6454. chip.
  6455. - RTC IOCTls: Added the definitions of a driver based RTC interfaces
  6456. and RTC upper half driver.
  6457. * File Systems/Block Drivers/MTD:
  6458. - umount2(): Added to support un-mount flags. umount() is now a macro
  6459. that just calls umount2() with flags = 0.
  6460. - File system interface: Pass the umount2() flags to every unbind()
  6461. implementation. That is where the decision to umount or not and how
  6462. to umount will be made.
  6463. - FAT unbind: Add support for umount2(target, MNT_FORCE) in the FAT
  6464. file system.
  6465. * Networking:
  6466. - netdev_register(): Improve the network device registration logic.
  6467. When multiple link types are used, modify how each interface number
  6468. is assigned to the device name by incrementing the device number
  6469. individually for each interface link type. From Max Neklyudov.
  6470. - Add TUN network device. Used to support the Netutils PPPD
  6471. implementation. From Max Neklyudov.
  6472. * ARMv7-M
  6473. - ARM Cortex-M7: Add basic support for the Cortex-M7 architecture.
  6474. - ARMv7 Common Lazy Exception handling. Add common support for lazy
  6475. FPU state saving. MCU-specific lazy FPU saving was already in place.
  6476. This change just makes the code share-able.
  6477. * Atmel SAMA5D3/4 Drivers:
  6478. - SAMA5 Serial: Backport support for flowcontrol and termios from
  6479. SAM3/4.
  6480. * Atmel SAMV7:
  6481. - Atmel SAMV7: Add architecture support for the Atmel SAMV7 family
  6482. (Cortex-M7)
  6483. * Atmel SAMV7 Boards:
  6484. - Atmel SAMV71 Xplained Ultra: Add board support for this SAMV7 board.
  6485. This initialize release includes support for: SDRAM, TWI/I2C, SPI,
  6486. Ethernet, HSMCI, DMA, GPIOs, UARTs, AT24 EEPROM and the maXTouch
  6487. Xplained Pro LCD. Drivers are available for SSC/I2C, the WM8904,
  6488. the maXTouch trouchscreen, and USB device but have not yet been
  6489. fully integrated in this release.
  6490. * SiLabs EFM32 Drivers:
  6491. - EFM32 USB Device is now functional with the efforts of From Pierre-
  6492. noel Bouteville.
  6493. - EFM32 I2C: Add I2C driver. From Pierre-noel Bouteville.
  6494. * STMicro STM32:
  6495. - STM32F372/F373: Adds architecture support for this STM32 parts.
  6496. Tested on STM32F373CC. Contributed by Marten Svanfeldt.
  6497. * STMicro STM32 Drivers:
  6498. - STM32 RTCC: Break out a new internal interface, stm32_rtc_setdatetime().
  6499. This eliminates some un-necessary time conversions. From Freddie Chopin.
  6500. - STM32 RTCC: Add an implementation of the RTC lower half interface
  6501. for the STM32.
  6502. - STM32 RTCC: Extend the RTC interface to support reading subseconds.
  6503. From Jussi Kivilinna.
  6504. - STM32 BBSRAM: Adds the ability to use the STM32F2 and STM32F4 Battery
  6505. Backed SRAM in the file system. With an option to Save Panic context
  6506. to one of the files. From David Sidrane.
  6507. * STMicro STM32 Boards:
  6508. - Olimexino-STM32: Board support for the Olimexino STM32 board from David
  6509. Sidrane.
  6510. - Viewtool-STM32F107: Add support for an optional, add-on Freescale
  6511. MPL115A baramoter. From Alan Carvalho de Assis.
  6512. * TI Tiva:
  6513. - TM4C1294: Add support for the TM4C1294. Contributed by Frank Sautter.
  6514. * TI Tiva Drivers:
  6515. - Tiva ADC: Updated files to allow for ADC and PWM triggering by a
  6516. timer. Refactoring of ADC implementation. From Calvin Maguranis.
  6517. - Tiva Timer: Refactoring by Calvin Maguranis
  6518. * TI Tiva Boards:
  6519. - TM4C123G-launchpad: Add ADC support. From Calvin Maguranis.
  6520. - TM4C123G-launchpad: Add board button interrupt support. From Calvin
  6521. Maguranis.
  6522. - TM4C1294 Launchpad: Add support for the TM4C1294 Launchpad.
  6523. Contributed by Frank Sautter.
  6524. * Microchip PIC32
  6525. - PIC32MZ: Add architectural support for the PIC32MZ (MIPS32 M14k).
  6526. Includes contributions from Kristopher Tate.
  6527. * Microchip PIC32MZ Boards
  6528. - PIC32MZ Starter Kit: Add basic board support for the PIC32MZ.
  6529. Includes contributions from David Sidrane.
  6530. * C Library/Header Files:
  6531. - gettimeofday(): This function is no longer a core OS interface. It
  6532. is only a wrapper around clock_settime().
  6533. - settimeofday(): Added. gettimeofday has been deprecated in POSIX
  6534. 2008. settimeofday() was never part of POSIX, but I decided to add
  6535. it to libc as well just for symmetry.
  6536. - Day-of-Week: Add CONFIG_TIME_EXTENDED to support the last 3 members
  6537. of the tm struct and support for filling them in with the day of the
  6538. week. From David Sidrane.
  6539. - sighold(), sigrelse(), sigignore(), sigset() and sigpause(): New
  6540. signal handling functions.
  6541. - sys/select.h: Extend the fd_set type definition so that it can
  6542. handle more than 32 descriptors (if so configured). From Max
  6543. Neklyudov.
  6544. - netdb.h: Add a mostly-commented-out version of the standard netdb.h
  6545. header file.
  6546. - include/nuttx/board.h: Remove common board function prototypes from
  6547. other files and consolidate them in this new header file.
  6548. * Applications:
  6549. - OS test: Improved error checking for sem_timedwait() from Juha
  6550. Niskanen.
  6551. - OS test: Add a simple test of sigprocmask, sighold, and sigrelse.
  6552. - PPPD test: Add PPPD test case. Split out from the PPPD daemon by
  6553. Brennan Ashton.
  6554. - Netutils: Add a PPP daemon. From Max Neklyudov.
  6555. - NSH: NSH initialization now calls boardctl(BOARDIOC_INIT) instead
  6556. of nsh_archinitialize(). Remove support for CONFIG_NSH_ARCHMAC.
  6557. It is not used and there are better ways to do that operation.
  6558. - NSH: Allow NSH 'date' command with no hardware RTC. This command
  6559. is useful without an RTC too. Also, this permits testing on the
  6560. simulator which never has an RTC.
  6561. - apps/examples/: Several tests changed (touchscreen adc, pwm,
  6562. graphics). No longer call directly into the OS, but rather
  6563. indirectly via boardctl().
  6564. - Modbus: Includes extensions to support RTU master mode by
  6565. Armink(383016632@qq.com): https://github.com/armink/FreeModbus_Slave-Master-RTT-STM32.
  6566. Ported to NuttX by Darcy Gong.
  6567. - TZ database: All logic to build timezone database needed for
  6568. localtime() support. Does not do much else yet.
  6569. Efforts In Progress. The following are features that are partially
  6570. implemented but present in this release. They are not likely to be
  6571. completed soon.
  6572. * Processes. Much of the work in this release is focused on the
  6573. realization of Unix-style user processes in NuttX. There is more to
  6574. be done, however. The full roadmap and status is available at:
  6575. http://www.nuttx.org/doku.php?id=wiki:nxinternal:memconfigs#the_roadmap_toward_processes
  6576. * XMega: There are some fragments in place for an XMega port. That
  6577. port has not really started, however.
  6578. Bugfixes. Only the most critical bugfixes are listed here (see the
  6579. ChangeLog for the complete list of bugfixes and for additional, more
  6580. detailed bugfix information):
  6581. * Core OS:
  6582. - atexit(): Fix compile failure due to reference to undefined variable
  6583. in certain configurations. From Juha Niskanen.
  6584. - syscalls: Last changes to message queue prototypes did not make it
  6585. into call gate logic. Some additional errors had crept as well since
  6586. the system calls are seldom used.
  6587. - waitpid(): Do not use uninitialized boolean in waitpid(). From Juha
  6588. Niskanen.
  6589. - Timing functions: Fix some nanosecond comparisons. Comparisons should
  6590. be greater than OR EQUAL TO 1000000000 for maximum value of nanoseconds
  6591. in struct tm. From Juha Niskanen.
  6592. - Time initialization: Fix an error in time initialization when there
  6593. is no RTC and the time is initialized from a fixed configured value.
  6594. The call to clock_calendar2utc() was returning the time in units of
  6595. seconds. The initialization logic, however, was expecting to get
  6596. time in units of days. This problem has been there forever but
  6597. obviously has not significant impact to behavior in systems where
  6598. time is not visible.
  6599. - mq_timedsend(): Should not check for valid time if there is space
  6600. in the message queue. Noted by Freddie Chopin.
  6601. - select() and sem_timedwait(): Fix places where the errno value was
  6602. being overwritten by subsequent actions so that the returned errno
  6603. value was incorrect. From Max Neklyudov.
  6604. - clock_systimer64(): Fix a problem in clock_systimer64 that occurs
  6605. when (1) the 64-bit system time is enabled, and (2) the value of
  6606. CONFIG_USEC_PER_TICK is less than 1 milliseconds (such as when using
  6607. the tickless mode of operation). In that case, the conversion of
  6608. time to 64-bit millisecond value in clock_systmer64() causes some
  6609. bad times to be returned. Time was converted to milliseconds, then
  6610. to configured ticks. Precision was lost in the millisecond
  6611. conversion. The fix is to first convert time to a 64-bit microsecond
  6612. value, then to the configured tick value. Noted by David Sidrane.
  6613. - clock_systimespec(): When an RTC is used clock_systimespec() must
  6614. subtract the basetime from the returned time. It needs to return
  6615. the time since power up, no the current time. Issue noted by Max
  6616. Neklyudov.
  6617. - AIO: correct some backward tests in aio_read() and aio_write():
  6618. Socket descriptors have higher numbers than file descriptors. In
  6619. aio_contain(), Copy u.ptr (void *) when initializing aioc and not
  6620. the case specific u.aioc_filep. From Michal Ulianko.
  6621. * File Systems/Block Drivers/MTD:
  6622. - procfs: Fix potential NULL pointer dereference of 'node'. From
  6623. Juha Niskanen.
  6624. - FAT: fat_unbind() was accessing 'fs->fs_sem' after freeing the 'fs'
  6625. struct. From Juha Niskanen.
  6626. - mkfatfs: Use DMA memory for mkfatfs when needed. This makes mkfatfs
  6627. use fat_dma_alloc() when CONFIG_FAT_DMAMEMORY is set. This is needed
  6628. to ensure mkfatfs operates with boards that use DMA for microSD.
  6629. From Andrew Tridgell via the PX4/NuttX repository.
  6630. - FAT unmount: Fix a bug in the FAT unbind() logic. There were
  6631. problems with the way certain internal list handling was
  6632. implemented. The end result is that newly opened or cloned file
  6633. structures were never being added to the list of open files. So
  6634. when the unmount() happens, it always looked like there were not
  6635. open files and a crash could ensue.
  6636. - FAT mounting: Fix misthink when CONFIG_ENDIAN_BIG=y. From Lwazi Dube.
  6637. * Common Drivers:
  6638. - CAN upper half driver: Some lines had to be reordered in the can_open
  6639. function otherwise the open count will only be incremented from 0 to
  6640. 1. This caused problems when trying to open the can bus from two
  6641. different tasks. SourceForge Patch #46.
  6642. * Crypto:
  6643. - crypto: Fix issues when AES support was added for the STM32L1.
  6644. From Juha Niskanen.
  6645. * Networking:
  6646. - Network initialization: Divide net_intiialize() into net_setup() and
  6647. net_initialize() to solve a chicken-and-egg problem. net_setup()
  6648. must be called before up_initialize() is called so that networking
  6649. data structures are ready to register new network devices.
  6650. net_initialize() now does only timer related operations and is
  6651. called AFTER up_initialize() where the timers are configured.
  6652. Problem noted by Max Neklyudov.
  6653. - netdev_unregister(): Fix a list handling error. From Max Neklyudov.
  6654. - Socket dup: Do not call sockfd_socket() twice. From Juha Niskanen.
  6655. * Common Drivers:
  6656. - max11802 touchscreen: Fix possible unmatched IRQ restore (not
  6657. normally a problem, but could happen in certain configurations).
  6658. Noted by Juha Niskanen.
  6659. - MMCSD SPI Multi-block transfers: ACMD23 must be preceded with CMD55
  6660. command as any other ACMD commands. Also, after the block reading
  6661. wait loop must be inserted before writing the next block of data to
  6662. the sd card. From Dmitry Nikolaev via Jussi Kivilinna.
  6663. - MMCSD SDIO: Fix some bad logic when file system debug is turned on:
  6664. Arguments to syslog were missing so that garbage was being printed.
  6665. - Common upper-half serial driver: Report correct number of bytes free
  6666. in serial buffer with FIONWRITE. From Sami Pelkonen via Jussi Kivilinna.
  6667. - Pipes/Fifos: Fix zero-lenth writes to pipes/FIFOs. From Jussi Kivilinna.
  6668. - USB device MSC: Add NULL pointer check. From Juha Niskanen.
  6669. - BCH driver: Avoid NULL pointer dereference when bch->refs == 255.
  6670. From Juha Niskanen.
  6671. - Various drivers: The inode unlink method should not be support if
  6672. operations on the root pseudo-filesystem are disabled.
  6673. * ARMv7-M
  6674. - ARMv7M MPU: Bad syntax in ARMv7-M MPU logic would cause failure to
  6675. write the correct value to the MPU_RASR register. From Juha Niskanen.
  6676. * Atmel SAM3/4 Drivers:
  6677. - SAM3/4 Serial TERMIOS: A side-effect of changing serial settings
  6678. via TERMIOS (such as tcsetattr) is that serial interrupts were being
  6679. left disabled. This is not a problem if the serial configuration is
  6680. changed when there are no open references to the serial device. In
  6681. that case, serial interrupts are disabled and will not be enabled
  6682. enabled until the serial device is first opened. But it is fatal if
  6683. the serial device is already opened and if there is a task waiting
  6684. to receive data. In that case, the side-effect of disabling
  6685. interrupts is fatal: That task is then left hanging with interrupts
  6686. disabled.
  6687. - SAM3/4 Serial: The IMR register is read-only. This means that
  6688. sam_restoreints() did not actually re-enable UART interrupts
  6689. (Fortunately, that function was not being used up to this point).
  6690. - SAMA5 HSMCI: Fix a bug in SAMA5 HSMCI. The bitfield mask and shift
  6691. values were reversed resulting in a trashed value for the number of
  6692. blocks in the BLOCKR register. This was sufficient to prevent DMA
  6693. writes from working.
  6694. * Atmel SAMA5 Drivers:
  6695. - SAMA5 Timer/Counter: Fix typos in timer/counter header file. From
  6696. Bob Doiron.
  6697. * STMicro STM32 Drivers:
  6698. - STM32 PWR and RTC: Changes to support fully write protecting the
  6699. backup domain. N.B. stm32_pwr_enablebkp did not account for the delay
  6700. from enable to the domain being writable. The KISS solution is a
  6701. up_udelay. A more complex solution would be a negated write test
  6702. with restore. From David Sidrane.
  6703. - STM32 SPI: Add missing SPI callback functions to the STM32 SPI
  6704. driver. From Freddie Chopin.
  6705. - STM32 I2C: Add missing NULL check. From Juha Niskanen.
  6706. - STM32 USB device: Fix stale initialization invalidating later NULL
  6707. check. From Juha Niskanen.
  6708. - STM32 UART: Fix RX DMA setup for UART5. From Jussi Kivilinna.
  6709. - STM32 UART: Make input hardware flow-control work with RX DMA. From
  6710. Jussi Kivilinna.
  6711. - STM32 RTC and clock control: The STM32F4Discovery board doesn't
  6712. come with a Low speed external oscillator so the default LSE source
  6713. for the RTC doesn't work. In stm32_rtcc.c the up_rtc_initialize()
  6714. logic doesn't work with the LSI. The check on RTC_MAGIC on the BK0R
  6715. register lead to rtc_setup() call that rightfully enables the LSI
  6716. clock; but the next times, when the rtc is already setup, the
  6717. rtc_resume() call does NOT start the LSI clock! The right place to
  6718. put LSE/LSI initialization is inside stm32_stdclockconfig() in
  6719. stm32fxxxxx_rcc.c. Doing this I checked the possible uses of the
  6720. LSI and the LSE sources: the LSI can be used for RTC and/or the
  6721. IWDG, while the LSE only for the RTC (and to output the MCO1 pin).
  6722. This change is not verifed for any other platforms. From Leo
  6723. Aloe3132
  6724. * Tiva Drivers:
  6725. - Tiva GPIO driver needed small fixes in the configuration routines and
  6726. discovered false-positive bugs in interrupt testing: interrupts are
  6727. now verified to actually be working reliably. From Calvin Maguranis .
  6728. * MIPS32:
  6729. - mips32/Toolchain.mk: Current Pinguino toolchain uses the prefix p32-
  6730. instead of mips-.
  6731. * C Library/Header Files:
  6732. - sigaddset() and sigdelset(): Need to set errno if a bad signal
  6733. number is received.
  6734. - sfrtime(): Missing implementation of %C in sfrtime() C (was being
  6735. treated as %y). From Freddie Chopin.
  6736. - pthread.h: Fix PTHREAD_COND_INITIALIZER.
  6737. - ungetc.c: Fix NULL pointer dereference in ungetc() if 'stream' was
  6738. NULL, 'stream->fs_oflags' was evaluated. From Juha Niskanen.
  6739. - Fixes to asinh(), atanh(), and sinh(): The 'basic' expansions all
  6740. exhibited bad cancellation errors near zero (<= 1E-10). This can be
  6741. easily seen e.g. with x = 1E-30, the results are all zero though they
  6742. should be extremely close to x. The cutoff values (1E-5, 1E-9) are
  6743. chosen so that the next term in the Taylor series is negligible (for
  6744. double). Functions could maybe be optimized to use only first term (x)
  6745. and a smaller cutoff, just bigger than where the cancellation occurs
  6746. - localtime(): Inconsistent configuration name: CONFIG_LIBC_TZDIR vs
  6747. CONFIG_LIBC_TZ_TZDIR. Former wins.
  6748. * Applications:
  6749. - Modbus: Fix some compile problems when TCP is enabled.
  6750. NuttX-7.10
  6751. ----------
  6752. The 110th release of NuttX, Version 7.10, was made on June 9, 2015,
  6753. and is available for download from the SourceForge website. Note
  6754. that release consists of two tarballs: nuttx-7.10.tar.gz and
  6755. apps-7.10.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  6756. file for build information).
  6757. Additional new features and extended functionality:
  6758. * Binary Loader:
  6759. - ARMv-7M, binfmt/, STM32: Add support uClibc++ exceptions. This
  6760. involved additional handling for relative relation types, additional
  6761. support for unwinding, as well as additional changes. The
  6762. culmination of a big effort from Leo Aloe3132.
  6763. * Graphics/Graphic Drivers:
  6764. - RA8875 LCD driver contributed by Marten Svanfeldt.
  6765. * File Systems/Block Drivers/MTD:
  6766. - Union File System: Add support for a union file system that can be
  6767. used to overlay and merge the content of two mounted file systems.
  6768. * USB Host:
  6769. - USB Hub Support: Bring in USB hub-related files from
  6770. https://github.com/kaushalparikh/nuttx. This is the work of Kaushal
  6771. Parikh. This is quite a bit more hub logic was needed in before the
  6772. USB hub support was fully functional. This involved changing many
  6773. USB host controller driver interfaces and modifications to many
  6774. drivers.
  6775. - USB host CDC/ACM class driver: Added initial implementation of a
  6776. host-side CDC/ACM driver. Initial version was a great learning
  6777. experience, but probably should be partially redesigned (as
  6778. discussed in the top-level TODO file).
  6779. - IPv6 Routing: Complete implementation of the IPv6 routing logic.
  6780. From Max Neklyudov.
  6781. * Networking:
  6782. - Local Sockets: Add poll support for Unix stream sockets. From Jussi
  6783. Kivilinna.
  6784. - net/: ARP, ICMP, ICMPv6, PKT, TCP, and UDP now all receive event
  6785. notifications from both network device packet processing, but now
  6786. also from Device-specific events such as when the network goes down.
  6787. The device notification callback structure is now supports dual
  6788. linkages so that the client can receive notifications from both
  6789. source; The device structure now includes a list of clients that
  6790. want to receive device related notifications. This prevents network
  6791. actions from hanging when the device goes down and will be an
  6792. essential part of future support for removable network devices.
  6793. Some of the core logic was contributed by Max Neklyudov.
  6794. - TUN: Misc. improvements to the TUN driver, mostly related to poll().
  6795. Also several bugfixes. From Max Neklyudov.
  6796. * Simulation Platform:
  6797. - Simulator: Add logic to test localtime and TZ database. See
  6798. apps/system/README.txt for info.
  6799. - Simulation: Add a configuration for testing the Union File System.
  6800. * Calypso:
  6801. - Calypso Compal-E86: Updates for execution out of FLASH on the C139
  6802. phone. From Craig Comstock.
  6803. * Atmel SAMD/L:
  6804. - SAML21 Support: And chip definitions, configuration framework,
  6805. memory map and pin configuration files for SAML21 support.
  6806. * Atmel SAMD/L Boards:
  6807. - SAML21-Xplained: Add a board support for the SAML21 Xplained Pro.
  6808. This is based on the similar SAMD20 Xplained Pro board.
  6809. * Freescale/NXP KL:
  6810. - KL25Z64: Added support for the KL25Z64. The KL25Z64 is a lower
  6811. memory variant of the KL25Z128 and is used on the Teensy LC. From
  6812. Michael as SourceForge patch 50.
  6813. * Freescale/NXP KL Boards:
  6814. - Teensy-LC: Add board support for the Teensy LC board. Support is
  6815. based off the Freedom KL25Z board. LED, PWM, and UART0 have been
  6816. tested. The SPI pins are mapped correctly but have not yet been
  6817. tested. From Michael Hope as SourceForge patch 51.
  6818. * NXP LPC111x:
  6819. - LPC111x: Support for the LPC11xx family (the LPC1115 MCU in
  6820. particular). Contributed by Alan Carvalho de Assis.
  6821. * NXP LPC111x Boards:
  6822. - LPCXpresso LPC1115: Support for the LPCXpression LPC1115
  6823. board. Contributed by Alan Carvalho de Assis.
  6824. * NXP LPC17xx Drivers:
  6825. - LPC17xx Ethernet: Add support for the Micrel KSZ8041 PHY to the
  6826. LPC17xx Ethernet driver.
  6827. * NXP LPC17xx Boards:
  6828. - Lincoln60: Add a network enabled configuration for the Lincoln60
  6829. board.
  6830. * Atmel SAM3/4 Drivers:
  6831. - SAM4CM: Add support for optical mode for the SAM4CM UART1. From
  6832. Max Neklyudov.
  6833. * Freescale (NXP) Kinetis:
  6834. - Kinetis K20: Basic support for the Kinetis K20 architecture. Taken
  6835. from PX4. This is the work of Jakob Odersky.
  6836. * Atmel SAMV7 Boards:
  6837. - SAMV71-Xplained w/maXTouch Xplained Pro: A TWIHS fix was the last
  6838. barrier to getting the touchscreen working in the maXTouch Xplained
  6839. Pro LCD. Added the NxWM integrated graphics demonstration
  6840. configuration.
  6841. * STMicro STM32:
  6842. - STM32: Added support for STM32F302K8 and STM32F302K6. From Ben Dyer
  6843. via PX4/David Sidrane.
  6844. - STM32F205RG: Add basic support for the STM32F205RG. From SourceForge
  6845. Ticket 40 (anonymous, 2015-05-31).
  6846. - STM32 F3: Add DBGMCU register definitions for the F3 family. From
  6847. Greg Meiste.
  6848. * STMicro STM32 Drivers:
  6849. - STM32 LCDC: Defined a second interface for the dma2d controller.
  6850. LTDC only controls the display visibility but the DMA2D controller
  6851. changes the content of the frame buffer (buffer of the layer). From
  6852. Marco Krahl.
  6853. - STM32 PVD: Added support for STM32's Programmable Voltage Detector
  6854. (PVD) feature. By Dmitry Nikolaev, submitted by Juha Niskanen.
  6855. * STMicro STM32 Boards:
  6856. - STM32F429i-Disco: Add support for the new DMA2D features to the LTDC
  6857. configuration. From Marco Krahl.
  6858. * TI Tiva Boards:
  6859. - TM4C1294 Launchpad: Added TM4C1294NCPDT EN0_LED2 (10/100-Base-Tx);
  6860. removed all booster pack pin definitions. From Frank Sautter.
  6861. * C Library/Header Files:
  6862. - libc: Add an option to disable support for long long formats in
  6863. lib_vsprintf(). On very tiny platforms, this reduces the footprint
  6864. by omitting large libgcc.a libraries to perform the 64-bit
  6865. arithmetic operations. From Alan Carvalho de Assis.
  6866. * Applications: apps/system:
  6867. - nuttx/zoneinfo: Add logic to build a ROMFS file system
  6868. containing the timezone data.
  6869. * Applications: apps/nshlib:
  6870. - Add poll support for Unix stream sockets. From Jussi Kivilinna.
  6871. - Enhancements to NSH ifconfig for case of multi-link operation, TUN
  6872. device and local connections. From Max Neklyudov.
  6873. - Enhanced output to NSH ping command from Max Neklyudov.
  6874. - The NSH mount command now recognizes the Union filesystem type when
  6875. listing mounted file systems.
  6876. * Applications: apps/netutils:
  6877. - apps/netutils/thttpd/ and apps/examples/thttpd/: Add support for
  6878. using binfs/ with the Union FS instead of NXFLAT. NXFLAT is
  6879. probably the better solution but recently compiler changes make it
  6880. unusable. binfs or ELF are fallback binary formats. This commit
  6881. adds an option to use binfs with the Union FS.
  6882. * Applications: apps/examples:
  6883. - Modify/simpify apps/examples build files. From Roman Saveljev.
  6884. - apps/examples/ltdc: Add testing support for the STM32 LTDC's 2D DMA.
  6885. From Marco Krahl.
  6886. - apps/examples/ostest: Add a test of nested signals. There are no
  6887. failures to handle signals but neither am I getting any nested signal
  6888. handling.
  6889. - apps/examples/elf: Add configuration options to support building the
  6890. hello++4 example that depends upon having uClibc++ available. Also
  6891. add hello++5 to the ELF example From Leo aloe3132.
  6892. - apps/examples/unionfs: Add a test of the union file system to
  6893. apps/examples.
  6894. Efforts In Progress. The following are features that are partially
  6895. implemented but present in this release. They are not likely to be
  6896. completed soon.
  6897. * Processes. Much of the work in this release is focused on the
  6898. realization of Unix-style user processes in NuttX. There is more to
  6899. be done, however. The full roadmap and status is available at:
  6900. http://www.nuttx.org/doku.php?id=wiki:nxinternal:memconfigs#the_roadmap_toward_processes
  6901. * XMega: There are some fragments in place for an XMega port. That
  6902. port has not really started, however.
  6903. Bugfixes. Only the most critical bugfixes are listed here (see the
  6904. ChangeLog for the complete list of bugfixes and for additional, more
  6905. detailed bugfix information):
  6906. * Core OS:
  6907. - boardctl(): Add missing case causing that caused failures of PWM
  6908. test.
  6909. - pthread_kill(): Re-implemented pthread_kill(). It was just a simple
  6910. wrapper around kill() but since the correct dispatching of signals
  6911. for multi-threaded task groups has been implemented, calling kill()
  6912. does not do what pthread_kill() is supposed to do. The corrected
  6913. implementation of pthread_kill() will direct the signal specifically
  6914. to the specific pthread and no other.
  6915. - uint32_t callbacks: Update the type passed to watchdog timer
  6916. handlers. Using uint32_t is a problem for 64-bit machines because
  6917. it it too small to pass a pointer. uintptr_t is a more appropriate
  6918. type.
  6919. - mq_timedreceive(): move the location where the errno value is set;
  6920. the ETIMEDOUT errno setting was being overwritten by subsequent
  6921. actions before returning. Noted by Freddie Chopin.
  6922. - POSIX message queues: Move mq_setattr() and mq_getattr() from
  6923. nuttx/libc/mqueue to nuttx/sched/mqueue. Also add syscall support
  6924. for mq_setattr() and mq_getattr(). This is necessary in protected
  6925. and kernel builds because in those cases the message queue
  6926. structure is protected and cannot be accessed directly from user
  6927. mode code.
  6928. * File Systems/Block Drivers/MTD:
  6929. - MTD: Increase the size of the fields in the geometry structure
  6930. (again) to support larger FLASH sizes. Needed by Sebastien Lorquet.
  6931. * Common Drivers:
  6932. - poll(): Fix resource leak and memory corruption on poll failure.
  6933. From Jussi Kivilinna.
  6934. * USB Host:
  6935. - LPC31xx and SAMA5Dx EHCI: Fix cache related problem in LPC31 and
  6936. SAMA5Dx EHCI drivers. All buffers are now aligned with the cache
  6937. line size in both starting address and in length. This cause major
  6938. problems in unlucky builds where the USB host buffers where
  6939. unaligned and abutting other data. The cache flush and invalidate
  6940. operations could be subverted by accesses to adjacent data or could
  6941. have unexpected side effects. This bug has been in the ECHI drivers
  6942. forever, but was only revealed due to unlucky memory allocations
  6943. during the integration of the hub feature.
  6944. * USB Device:
  6945. - All USB device class drivers: There needs to be a check to make
  6946. sure that the size of a returned string does not exceed the size of
  6947. the allocated request buffer. Strings such as vendor names or
  6948. product names will be truncated to fit in the request buffer.
  6949. * Networking:
  6950. - TCP: Correct failures in long Telnet sessions by increasing th
  6951. size of the number of bytes sent from uint16_t to uint32_t. This
  6952. avoids an integer overflow that causes a long Telnet session to be
  6953. closed unexpectedly. From Rony XLN.
  6954. - Network locks: Correct some network lock logic: Two error
  6955. conditions where the network was not being unlocked and one where it
  6956. was getting unlocked twice. From Jussi Kivilinna.
  6957. - Local Sockets: Local stream sockets had problem of double releasing
  6958. pipes (both server and client attempt release), which causes wrong
  6959. pipe pair being closed in multi-client case. Solve by adding per
  6960. connection instance ID to pipe names. From Jussi Kivilinna.
  6961. - TCP: Fix an important TCP networking bug: 16-bit flags was being
  6962. converted to 8-bits in a few locations, causing loss of status
  6963. indications.
  6964. - TCP: net_startmonitor() always returned OK. In the race case
  6965. where a socket has already been closed, it correctly handled the
  6966. disconnection event but still returned OK. Returning OK caused the
  6967. callers of net_startmonitor() to assume that the connection was
  6968. okay, undoing the good things that net_startmonitor() did and
  6969. causing the socket to be incorrectly marked as connected. This
  6970. behavior was noted by Pelle Windestam.
  6971. - setsockopt() failed when setting timeouts to values less tha 100
  6972. msec. That is because the timeout is limited to stops of 1
  6973. decisecond and because the conversion of structure timeval was
  6974. truncating the microsecond remainder. The utility
  6975. net_timeval2dsec() now accepts and option to determine how it
  6976. handles the remainder: truncate, discarding the remainder, use
  6977. the remainder to round to the closed decisecond value, or use any
  6978. non-zero remainder to the next larger whole decisecond value. Bug
  6979. discovered by Librae.
  6980. - TCP: In the TCP connection operation, it was trying to setup the
  6981. network monitor BEFORE the socket was successfully connected. This,
  6982. of course, has ALWAYS failed because the socket is not yet connected
  6983. and the TCP state is not yet correct for a connected socket. However,
  6984. because of other changes net_startmonitor() now returns a failure
  6985. condition that causes worse problems when trying to connect. The fix
  6986. is to move the logic that starts the network monitor to AFTER the
  6987. socket has been successfully connected.
  6988. * Atmel SAM3/4 Drivers:
  6989. - SAM4CM and SAMA5D Free-running timer: Logic that samples the free
  6990. running counter reads the pending interrupt status register and can
  6991. cause interrupts to be lost. So, if when the status register is
  6992. read, the logic must also handle the timer overflow event. Found
  6993. and fixed by Max Neklyudov.
  6994. * Atmel SAMA5 Drivers:
  6995. - SAM3/4 Serial: When reconfigured, serial does not receive bytes
  6996. from UART. This happens because RX interrupt was disabled in the
  6997. setup routine. Fixed this I save interrupt configuration before
  6998. UART shutdown and restore it after. From Max Neklyudov.
  6999. * NXP LPC17xx Drivers:
  7000. - LPC176x GPIO: Reorder steps when an output GPIO is configured in
  7001. order to avoid transient bad values from being output. From Hal
  7002. Glenn.
  7003. - LPC17 USB OHCI: Correct some initialization of data structures.
  7004. When hub support is enabled, it would overwrite the end of an array
  7005. and clobber some OS data structures.
  7006. - LPC17xx Ethernet: Review, update, and modify the Ethernet driver so
  7007. that it works better with CONFIG_NET_NOINTS=y. Also, update all
  7008. LPC17xx networking configurations so that they have
  7009. CONFIG_NET_NOTINTS=y selected.
  7010. * SiLabs EMF32 Drivers:
  7011. - EFM32 SPI: Add missing SPI GPIO pin initialization. From Pierre-noel
  7012. Bouteville.
  7013. * STMicro STM32:
  7014. - STM32 F3: Added missing EXTI definitions for the STM32 F3; Correct
  7015. an error the port D base address in the STM32 F30x and F37x memory
  7016. maps. From Greg Meiste.
  7017. * STMicro STM32 Drivers:
  7018. - STM23 RTC: Fix an error introduced into stm32_pwr_enablebkp().
  7019. That function must preserve the previous state of backup domain
  7020. access on return.
  7021. - STM32 RTC counter: Now need to enable backup domain write access
  7022. when setting the time. From Darcy Gong.
  7023. - STM32 OTG FS and HS: Added protection in the event that out-of-bound
  7024. endpoint numbers are received. From David Sidrane.
  7025. * STMicro STM32 Boards:
  7026. - STM32F429i Disco: (1) Fix a bad return value if the LCD driver is
  7027. already initialized. (2) The LCD driver initialization is now
  7028. performed during the early boot sequence. (3) Increased the size
  7029. of the message queue from 32 to 64 in the lcd configuration. From
  7030. Marco Krahl.
  7031. * TI Tiva
  7032. - Fixes for Tiva TM4C1294NCPDT. From Frank Sautter.
  7033. * Atmel SAMV71 Drivers:
  7034. - SAMV7 TWIHS: Fix SAMV TWIHS logic that performs multi-message
  7035. transfers with and without repeated starts.
  7036. * Atmel SAMA5D3/4 Dirvers:
  7037. - SAMA5 CAN: Fix SAMA5 CAN frame construction. From Max Holtzberg.
  7038. * C Library/Header Files:
  7039. - stdlib.h: MAX_RAND should be RAND_MAX.
  7040. - assert.h: Wrap definitions of assertion macros in do while so that
  7041. they are valid C statements. Numerous places throughout the code
  7042. where semicolons were missing at the end of an assertion also had to
  7043. be fixed. Suggested by orbitalfox.
  7044. - inetntoa(): Correct errors in printing IP address when type char is
  7045. signed and the value is >= 128. From Max Neklyudov.
  7046. * Tools:
  7047. - Tools: Fix test for the existence of the apps/ directory in
  7048. configure.c. Fix backward interpretation of options, -l was selecting
  7049. Windows and -w was selecting Linux. This was SourceForege Ticket #39.
  7050. * Applications: apps/nshlib:
  7051. - apps/nshlib/nsh_timcmds.c: Check return values from time functions.
  7052. - apps/nshlib/: Fix handling of gmtime_r return value in time commands.
  7053. gmtime_r returns a pointer, not an int.
  7054. * Applications: apps/netutils:
  7055. - apps/netutils/ntp: Fix mismatched sched_lock/unlock. Noted by Juha
  7056. Niskanen.
  7057. * Applications: apps/examples:
  7058. - apps/examples/nxlines: Fix missing right bracket that causes
  7059. compile error when CONFIG_NX_XYINPUT=y. From Librae.
  7060. - apps/examples: When boardctl() fails, need to print errno not the
  7061. returned value which will always be -1.
  7062. - apps/examples: Correct use of the BOARDIOC_GRAPHICS_SETUP boardctl()
  7063. call.
  7064. NuttX-7.11 Release Notes
  7065. ------------------------
  7066. The 111th release of NuttX, Version 7.11, was made on August 13 2015,
  7067. and is available for download from the Bitbucket.org website. Note
  7068. that release consists of two tarballs: nuttx-7.11.tar.gz and
  7069. apps-7.11.tar.gz. These are available from:
  7070. https://bitbucket.org/patacongo/nuttx/downloads
  7071. https://bitbucket.org/nuttx/apps/downloads
  7072. Both may be needed (see the top-level nuttx/README.txt file for build
  7073. information).
  7074. Additional new features and extended functionality:
  7075. * Core OS:
  7076. - clock_gettime(): Use up_timer_gettime for CLOCK_MONOTONIC in
  7077. tickless mode. From Max Neklyudov.
  7078. - waitpid(): Implement WNOHANG for waitpid() only and for the case of
  7079. CONFIG_SCHED_HAVE_PARENT not selected. From Max Neklyudov.
  7080. - SCHED_SPORADIC: Add a sporadic scheduler to NuttX.
  7081. - Extend the processor-specific interface to include information to
  7082. support the Sporadic Scheduler.
  7083. - sem_tickwait(): Added this function for internal use within the OS.
  7084. It is a non-standard but more efficient version of sem_timedwait()
  7085. for use in higher performance device drivers.
  7086. * Binary Loader:
  7087. * Graphics/Graphic Drivers:
  7088. - Graphics: Implement anti-aliasing in order to clean the drawing of
  7089. all edges. Anti-aliasing is supported in the horizontal, raster
  7090. direction only.
  7091. - SSD1306 LCD Driver: Modify the SSD1306 LCD driver to support either
  7092. the SPI or I2C interface. From Alan Carvalho de Assis.
  7093. * File Systems/Block Drivers/MTD:
  7094. - mount: Add the ability to mount a file system on top of en existing
  7095. node in the pseudo-file system.
  7096. - epoll(): Add a very simple epoll layer just around poll calls. To
  7097. satisfy build app requirements. From Anton D. Kachalov.
  7098. * Common Device Drivers:
  7099. - IOCTL: Add relay IOCTL definitions. From Max Neklyudov.
  7100. - I/O Expander Framework: Add an I/O expander driver framework. From
  7101. Sebastien Lorquet
  7102. - NXP PCA9555 I/O Explander. Add PCA9555 driver.From Sebastien
  7103. Lorquet
  7104. - BMP180 Barameter: Add support to Bosch BMP180 barometer. From
  7105. Alan Carvalho de Assis.
  7106. - CAN IOCTLs: Add CAN IOCTL command definitions to manage CAN message
  7107. filtering
  7108. - CAN Driver: Add configuration to support DLC to byte conversions
  7109. needed for CAN FD mode.
  7110. - SPI Slave Interface: Add a definition of an SPI slave interface.
  7111. - LM92 Temperature Sensor: Add a driver for the LM92 temperature
  7112. sensor. Contributed by Paul Alexander Patience.
  7113. - AS5048B Rotary Magnetic Sensor: Add support for an AS5048B rotary
  7114. magnetic sensor. From Paul Alexander Patience.
  7115. - Ramtron Driver: Update to include supportf for newer RAMTRON parts.
  7116. From David Sidrane.
  7117. - MB7040 Sonar Driver: Add support for a MB7040 sonar driver. From
  7118. Paul Alexander Patience.
  7119. - ms5805 Altimeter Driver: Add support for an MS5805 altimeter. From
  7120. Paul Alexander Patience.
  7121. * Networking:
  7122. - DNS Client: Implement the low-level network DNS packet protocol to
  7123. request and receive IPv6 address mappings.
  7124. - NetDB: Add support for a DNS host name resolution cache. This can
  7125. save a lot of DNS name server lookups (but might also have the
  7126. negative consequence of using stale IP address mappings.
  7127. - NetDB: Name resolution logic now supports lookups from a file like
  7128. /etc/hosts.
  7129. - Network Initialization: Add CONFIG_NETDEV_LATEINIT that can be
  7130. used to suppress calls to up_netinitialize() from early in
  7131. initialization.
  7132. - FTMAC100 Ethernet MAC Driver. Add support for Faraday FTMCA100
  7133. Ethernet MAC/ From Anton D. Kachalov.
  7134. - UDP Networking: Add support for send() for connected UDP sockets.
  7135. * Crypto:
  7136. - Add CFB and MAC AES modes. From Max Neklyudov.
  7137. * Simulation Platform:
  7138. - Simulation: Implement board_power_off() for the simulation platform.
  7139. This allows for a graceful exit from the simulation.
  7140. * MoxaRT:
  7141. - MoxaRT SoC: Add support for MoxaRT SoC found in the most Moxa serial
  7142. converters such as NP51x0, NP66xx, UC72xx. From Anton D. Kachalov.
  7143. * MoxaRT Boards:
  7144. - Moxa NP51x0: Moxa NP51x0 series of 2-port advanced RS-232/422/485
  7145. serial device servers. From Anton D. Kachalov.
  7146. * ARMv6-M:
  7147. - ARMv6-M Assertions: Port some per-process stack dumping logic from
  7148. ARMv7-M to ARMv6-M. From Alan Carvalho de Assis.
  7149. * Atmel SAMD/L Boards:
  7150. - SAML21: DMA: Add SAML21 DMA support.
  7151. - SAMD21: Add architecture support for the SAMD21 family.
  7152. - SAMD21-Xplained: Board configuration for the SAMD21 Xplained board.
  7153. * Atmel SAM3/4 Drivers:
  7154. - SAM4E: Add default loop optimization if EEFC_FMR is available in the
  7155. configuration (i.e., for SAM4S and 4E). From Marco Aurélio da Cruz.
  7156. - crypto/ and SAM4CM: Add CFB and MAC AES modes. From Max Neklyudov.
  7157. - SAM3/4: Add a TWI driver for the SAM4CM. From Max Neklyudov.
  7158. * Freescale (NXP) Kinetis:
  7159. - Kinetis: Add support for MK20DN--VLH5 and MK20DX---VLH5. Needed
  7160. for backward compatible support for Teensy-3.0.
  7161. * Freescale (NXP) Kinetis Boards:
  7162. - Teensy 3.x: Add board support for the PJRC Teensy-3.0 and
  7163. Teensy-3.1 boards.
  7164. * Atmel SAMV7 Drivers:
  7165. - SAMV7: Add an MCAN driver for the SAMV7 platform.
  7166. - SAMV7 SPI Slave Driver: Add the an SPI slave driver.
  7167. * STMicro STM32:
  7168. - STMicro STM32 F7: Add architecture support for the STMicro STM32
  7169. F7.
  7170. - STM32 F446: Add support for the STMicro STM32 F446. From David
  7171. Sidrane.
  7172. * STMicro STM32 Drivers:
  7173. - STM32 F7: Add an STM32 F7 Ethernet driver.
  7174. - STM32 F7: Port the STM32 F4 DMA driver.
  7175. - STM32 F4 ADC: Add DMA support to the ADC driver for STM32 F4. From
  7176. Max Kriegler.
  7177. * STMicro STM32 Boards:
  7178. - STM32F762G-Disco: Add support for the STMicro STM32 F7 Discovery
  7179. board.
  7180. - STM32F4-Disco: Add support to BMP180 driver on the STM32F4 Discovery.
  7181. From Alan Carvalho de Assis.
  7182. * C Library/Header Files:
  7183. - Add asctime(), asctime_r(), ctime(), and ctime_r().
  7184. - sethostname(): Add support for sethostname().
  7185. - gethostbyname() and gethostbyaddr(): Add support for
  7186. gethostbyname() and gethostbyaddr(). Also support included for the
  7187. non-standard gethostbyname_r() and gethostbyaddr_r(). This moves
  7188. the DNS client logic from apps/ into the NuttX libc implementation.
  7189. * Tools:
  7190. - testbuild.sh: Add a script that can be used to perform building
  7191. testing for several board configurations.
  7192. * Build/Configuration System:
  7193. - apps/ Build System: No longer depends on hardcoded lists of
  7194. directories. Instead, it does a wildcard search to find all
  7195. appropriate directories. This means that to install a new
  7196. application, you simply have to copy the directory (or link it) into
  7197. the apps/ directory. If the new directory includes a Makefile and
  7198. Make.defs file, then it will automatically be included in the build.
  7199. - mkkonfig.sh: Add the tool mkkconfig.sh that dynamically builds the
  7200. apps/Kconfig file at configuration time. The hardcoded
  7201. configuration file has been removed and now the top-level Makefile
  7202. executes tools/mkkconfig.sh to auto-generate the top-level Kconfig
  7203. file. A new apps/ make target call preconfig: was added to support
  7204. this operation. Now you do not have to modify the top-level Kconfig
  7205. file to add a new directory into the configuration; the top-level
  7206. subdirectory simply needs to include a Kconfig file and it will
  7207. automatically be included in the configuration. The native Windows
  7208. build is temporarily broken until a new apps/tools/mkconfig.bat
  7209. script is generated.
  7210. - mkkconfig.bat: Add the Windows script corresponding to
  7211. apps/tools/mkkconfig.sh. Needed for a Windows native build.
  7212. * Applications: apps/nshlib:
  7213. - NSH shutdown command: NSH will now support an (optional) shutdown
  7214. command if the board provides the option CONFIG_BOARDCTL_POWEROFF.
  7215. The command can also be used to reset the system if
  7216. CONFIG_BOARDCTL_RESET=y.
  7217. - NSH uname command: Add support for a uname command.
  7218. - NSH nslookup command: Add an nslookup command.
  7219. * Applications: apps/system:
  7220. - NetDB: Add a system command to access the network database.
  7221. - readline(): Add support for Unix-style tab complete to readline.
  7222. Contributed by Nghia Ho.
  7223. - readline(): Extended the tab-completion support to also expand NSH
  7224. command names.
  7225. - readline(): Add support for an in-memory command line history that
  7226. can be retrieved using the up and down arrows. Contributed by Nghia
  7227. Ho.
  7228. * Applications: apps/netutils:
  7229. - DNS client: Moved the DNS client logic into the NuttX C library.
  7230. It is a necessary part for the full implementation of the netdb logic
  7231. and provides more flexibility in that location.
  7232. - Replace calls to the non-standard dns_gethotip() with calls to
  7233. standard gethostbyname().
  7234. - NetLib: Create netlib wrapper functions around dns_getserver() and
  7235. dns_setserver() to isolate application code from changes to those
  7236. interfaces.
  7237. * Applications: apps/examples:
  7238. - OS test: Extend the OS test to include a test of
  7239. pthread_mutex_trylock() for recursive mutexes. From Juha Niskanen.
  7240. - OS test: Add a test for the sporadic scheduler.
  7241. Bugfixes. Only the most critical bugfixes are listed here (see the
  7242. ChangeLog for the complete list of bugfixes and for additional, more
  7243. detailed bugfix information):
  7244. * Core OS:
  7245. - pthreads: Use -1 instead of 0 as PID for unclaimed mutexes. From
  7246. Juha Niskanen.
  7247. - pthreads: Implement pthread_mutex_trylock() for recursive mutexes.
  7248. From Juha Niskanen.
  7249. - pthread_create(): Group binding needs to be cleared before
  7250. sched_releasetcb(), as otherwise group_leave() will be called and
  7251. group->tg_nmembers decremented or group being released. group_leave()
  7252. should be called only after group_join() is called, not after
  7253. group_bind(). From Jussi Kivilinna.
  7254. - Protected Mode User Memory Allocator: Redesigned how the user space
  7255. heap is accessed from the kernel code in protected mode. It used to
  7256. call memory management functions in user space via function pointers
  7257. in the userspace interface. That is inefficient because the first
  7258. thing that those memory management functions do is to trap back into
  7259. the kernel to get the current PID. Worse, that operation can be
  7260. fatal is certain fragile situations such as when a task is exiting.
  7261. The solution is to remove all of the memory management function
  7262. calls from the interface. Instead, the interface exports the users
  7263. pace heap structure and then kernel size implementations of those
  7264. memory management functions will operate on the userspace heap
  7265. structure. This avoids the unnecessary system calls and, more
  7266. importantly, failures do to freeing memory when a test exits.
  7267. - pthread_create(): Fix an (unlikely) error in fallback value in the
  7268. event of a failure (which should never occur).
  7269. * Common Drivers:
  7270. - STMPE811 Driver: In stmpe811_instanciate() when
  7271. CONFIG_STMPE811_MULTIPLE is enabled, and the call to
  7272. stmpe811_checkid() fails, then the linked device list is not
  7273. restored to its previous state. From Sebastien Lorquet.
  7274. - CAN driver: Fix an issue in the CAN driver where the rx_sem count
  7275. can grow beyond bounds.
  7276. * File System/Block Drivers:
  7277. - NFS client: Fix prototype of unbind method. The function prototype
  7278. was not updated for NFS after a recent change to the file system
  7279. interface. From Manuel St??.
  7280. * Networking/Network Drivers:
  7281. - netconfig.h: Fix some backward compilation that was emitting #error
  7282. in the wrong condition when SLIP was enabled.
  7283. - SLIP Driver: Fix a missed name change when many of network
  7284. interface names changed sometime back but were apparently never
  7285. updated for SLIP.
  7286. - Networking: Allow receipt of empty UDP packets. From Max Neklyudov.
  7287. * ARMv6-M:
  7288. - ARMv6-M: Fix Cortex-M0 assembly error when the interrupt stack is
  7289. enabled. From Alan Carvalho de Assis.
  7290. * Atmel SAMD/L Drivers:
  7291. - SAMD20, D21, L21: In the SAML21, SERCOM5 uses a different SLOW clock
  7292. channel (and, hence, also a different SLOW GCLK generator). This
  7293. means that the channel selection cannot be a global definition but
  7294. must be a per SERCOM configuration setting.
  7295. - SAMD/L: Several fixes to register definitions and types. From
  7296. Janne Rosberg.
  7297. * Atmel SAM3/4 Drivers:
  7298. - SAM3/4 UART: Back out an error introduced with commit
  7299. 02c33f66c5a8be774034cd40e4125e9323c7b4d8. Causes an infinite loop in
  7300. up_lowputc(). From Max Neklyudov.
  7301. - SAM4CM: Fix SUPC register definitions. From Max Neklyudov.
  7302. - SAM3/4 WDT: Correct some problems with SAM3/4 watchdog driver.
  7303. Includes some small improvements. From Max Neklyudov.
  7304. * Atmel SAMV7 Drivers:
  7305. - SAMV7 UART: Also back the bad cloned change o sam_lowputc.c for
  7306. SAMV7 platform.
  7307. * NXP LPC43xx Drivers:
  7308. - LPC4350: Correct some LPC4350 GPIO pin configurations. From
  7309. Alessandro Temil.
  7310. * SiLabs EMF32 Drivers:
  7311. - EFM32 SPI: Correct write to incorrect register in EFM32 SPI driver.
  7312. From Pierre-noel Bouteville.
  7313. * STMicro STM32 Drivers:
  7314. - STM32 F15x: STM322 F15x stm32_stdclockconfig() was calling
  7315. stm32_pw_setvos() which accessed PWR_CR via an inactive APB From
  7316. Juha Niskaneni.
  7317. - STM32 Ethernet: Extend STM32 Ethernet operating frequency to 180MHz.
  7318. From Sebastien Lorquet.
  7319. * STMicro STM32 Boards:
  7320. - SAMV7 Xplained: In clock configuration, divider was set to 25 to get
  7321. 25*12MHz=300MHz CPU clock. The correct multiplier is 24 because the
  7322. calculation if (24+1)*12MHz. So the board was running at 312MHz.
  7323. From Efim Monjak.
  7324. * ARMv7-A:
  7325. - Cortex-A5 vfork(): Fix a Cortex-A compilation error when system
  7326. calls are enabled in modes other than CONFIG_BUILD_KERNEL.
  7327. * Atmel SAMA5 Drivers:
  7328. - SAMA5Dx EHCI: Fix some bad conditional compilation that left a
  7329. function undefined if CONFIG_USBHOST_ASYNCH is not selected.
  7330. * C Library/Header Files:
  7331. - getopt(): Uninitialized variable can cause hardfault from getopt()
  7332. if required argument is missing. From George McWilliams.
  7333. * Applications: apps/nshlib:
  7334. - NSH/THHPD: Change decoding to handle the increased size of the
  7335. scheduling policy field in the TCB.
  7336. * Applications: apps/netutils:
  7337. - THTTPD: Fix compilation problems when
  7338. CONFIG_THTTPD_GENERATE_INDICES is defined.
  7339. - THTTPD: Missing gci-src as a dependency path when building with
  7340. BINFS enabled.
  7341. * Applications: apps/examples:
  7342. - poll() example: Fix a few bit-rot compilation errors.
  7343. - Nx Lines example: If CONFIG_NX_ANTIALIASING=y, then the nxlines
  7344. example now erases a line that is 2 pixels longer and 2 pixels wider
  7345. than the line it drew. That eliminates edges effects due to
  7346. applying the anti-aliasing algorithm twice. A better solution
  7347. would be to make anti-aliasing an option for each graphics call so
  7348. you would rend the line with anti-aliasing ON and clear it with
  7349. anti-aliasing OFF. but I don't have the wherewithal for that change
  7350. today.
  7351. - OS test: Improve synchronization in round robin tests. On very fast
  7352. processors, there are race conditions that make the test fail.
  7353. Need better interlocking to assure that the threads actually do start
  7354. at the same time.
  7355. NuttX-7.12 Release Notes
  7356. ------------------------
  7357. The 112th release of NuttX, Version 7.12, was made on October 1, 2015,
  7358. and is available for download from the Bitbucket.org website. Note
  7359. that release consists of two tarballs: nuttx-7.12.tar.gz and
  7360. apps-7.12.tar.gz. These are available from:
  7361. https://bitbucket.org/patacongo/nuttx/downloads
  7362. https://bitbucket.org/nuttx/apps/downloads
  7363. Both may be needed (see the top-level nuttx/README.txt file for build
  7364. information).
  7365. Additional new features and extended functionality:
  7366. * Graphics/Graphic Drivers:
  7367. - Added SSD1351 OLED controller support. Contributed by Paul
  7368. Alexander Patience.
  7369. * Common Device Drivers:
  7370. - MS58xx: Generalize the MS5805 altimeter driver to support other
  7371. family members. From Paul Alexander Patience.
  7372. - CAN driver interface: Add an error indication bit to the CAN
  7373. message report.
  7374. - Developed a new interface for QSPI. Most QSPI hardware (such as the
  7375. SAMV71) used a programmed interface to access the QuadSPI FLASH.
  7376. That programmed interface is no compatible with the simpler NuttX
  7377. SPI data transfer interface.
  7378. - Added a driver for ST25L1*K QuadSPI parts.
  7379. - Renamed the battery driver interface to battery_gauge since it
  7380. really only implements a battery fuel gauge. From Alan Carvalho de
  7381. Assis.
  7382. - Added a new framework to support a batter charger interface. From
  7383. Alan Carvalho de Assis.
  7384. - Added a BQ24250 battery charger driver. From Alan Carvalho de Assis.
  7385. * Networking:
  7386. - Added support for the local loopback device (dev lo, hostname localhost).
  7387. - Added NetDB support for the local loopback device.
  7388. - Network initialization: Automatically initialize all the TUN and
  7389. loopback devices if they arein the configuration.
  7390. * Simulation Platform:
  7391. - The simulation now runs under Cygwin64. Modern Cygwin X86_64
  7392. machines follow the Microsoft ABI for parameter passing. The Linux
  7393. System 5 ABI would not work on X86_64-based Cygwin machines. Newer
  7394. Cygwin tool chains do nor pre-pend symbol names with the underscore
  7395. character.
  7396. * Atmel SAMA5Dx:
  7397. - Added architectural support for the Atmel SAMA5D2 parts. Not fully
  7398. verified in this NuttX release.
  7399. * Atmel SAMA5Dx Boards:
  7400. - Added support for the Atmel SAMA45D2 Xplained Ultra board. Not
  7401. fully verified in this NuttX release.
  7402. * Atmel SAMV7 Drivers:
  7403. - SAMV7 USBHS DCD: The device controller driver is (finally)
  7404. functional.
  7405. * NXP LPC17xx:
  7406. - Implement options to use external SDRAM and or SRAM for the heap.
  7407. From Pavel Pisa.
  7408. * NXP LPC43x:
  7409. - Added architectural support for the LPC4370. From Lok Tep.
  7410. * NXP LPC43xx Drivers:
  7411. - Added Ethernet support. From Ilya Averyanov.
  7412. - Added LPC43xx EHCI driver from Ilya Averyanov.
  7413. * NXP LPC43xx Drivers:
  7414. - Added support for the NXP LPC4370-Link2 development board from Lok
  7415. Tep.
  7416. * STMicro STM32:
  7417. - Added architectural for STM32F303K6, STM32F303K8, STM32F303C6,
  7418. STM32F303C8, STM32F303RD, and STM32F303RE devices. From Paul
  7419. Alexander Patience.
  7420. * STMicro STM32 Drivers:
  7421. - Added OTG support for STM32F44x. From David Sidrane.
  7422. * STMicro STM32 Boards:
  7423. - Added support for the STMicro Nucleo F303ERE board from Paul
  7424. Alexander Patience.
  7425. * C Library/Header Files:
  7426. - stdlib: Add support for div() to the C library. From OrbitalFox.
  7427. Also added ldiv() and lldiv() which are equivalent to div() with
  7428. long and long long types, respectively, instead of int.
  7429. - Added an implementation of the standard shutdown function.
  7430. * Tools:
  7431. - tools/mksymtab: declare g_symtab array as const to occupy RO section
  7432. (Flash). From Pavel Pisa.
  7433. * Build/Configuration System:
  7434. - Simplify configs/ Makefiles by combining common logic into a new
  7435. Board.mk Makefile fragment. From Paul Alexander Patience.
  7436. * Applications: apps/system:
  7437. - apps/system/symtab: Optional canned symtab inclusion to the build.
  7438. When option CONFIG_SYSTEM_SYMTAB is selected and symbol table file
  7439. libc/symtab/canned_symtab.inc is prepared then application can use
  7440. system provided complete symbol table. The option has substantial
  7441. effect on system image size. Mainly code/text. If loading of
  7442. applications at runtime is not planned do not select this. From
  7443. Pavel Pisa.
  7444. * Applications: apps/canutils:
  7445. - apps/canutils/uavcan: Add support for libuavcan. From Paul Alexander Patience.
  7446. * Applications: apps/examples:
  7447. - apps/examples/can: Extend the CAN loopback test by adding more
  7448. command line options.
  7449. - apps/examples/usbserial: Can now be run as an NSH builtin-function.
  7450. Now uses a configurable IO buffer size.
  7451. - apps/examples/nettest: Add option to suppress network initialization.
  7452. This is necessary if the nettest is run from NSH which has already
  7453. initialized the network.
  7454. - apps/examples/nettest: Extend test so that can be performed using
  7455. the local loopback device.
  7456. - apps/examples/netloop: Add a test of the local loopback device.
  7457. - apps/examples/udpblaster: Add a test to stress the network by
  7458. sending UDP packets at a very high rate. .
  7459. - apps/examples/uavcan: libuavcan example from Paul Alexander Patience.
  7460. Bugfixes. Only the most critical bugfixes are listed here (see the
  7461. ChangeLog for the complete list of bugfixes and for additional, more
  7462. detailed bugfix information):
  7463. * Core OS:
  7464. - wd_create(): Correct a counting error in the number of available
  7465. watchdog timers. When the number of free timers is low, the counter
  7466. could be incremented below zero.
  7467. - mq_open(): When message queue is opened, inode_reserve() leaves the
  7468. reference count at zero. mq_open() logic must assure that the
  7469. reference count of the newly created inode is one.
  7470. - work_queue(): Logic that sets the queued indication and the logic
  7471. that does the actual queuing must be atomic.
  7472. * Binary Loader:
  7473. - Fix a memory leak in the built-in application logic: File was not
  7474. being closed. From Bruno Herrera.
  7475. * File System/Block Drivers:
  7476. - poll(): If we fail to setup the poll for any file descriptor, for
  7477. any reason, set the POLLERR bit.
  7478. - rwbuffer: Fix some logic errors. From Dmitry Nikolaev via Juha
  7479. Niskanen.
  7480. - ROMFS: One allocation was not being freed if there was a subsequent
  7481. failure to allocation I/O buffers resulting in a memory leak on
  7482. certain error conditions. From Bruno Herrera.
  7483. * Networking/Network Drivers:
  7484. - Fix a bug in tun interface driver. From Max Neklyudov.
  7485. - recvfrom(): Correct wait for new data when NET_UDP_READAHEAD is
  7486. enabled. Fix size accounting when recvfrom_udpreadahead() sets
  7487. state.rf_recvlen == -1. I have not checked if data are accumulated
  7488. to the right position in the buffer however. From Pavel Pisa.
  7489. - networking: Correct return value from psock_tcp_accept(). From
  7490. SaeHie Park.
  7491. - TCP: Fix a problem in when there are multiple network devices.
  7492. Polls were being sent to all TCP sockets before. This is not good
  7493. because it means that packets may sometimes be sent out on the wrong
  7494. device. That is inefficient because it will cause retransmissions
  7495. and bad performance. But, worse, when one of the devices is not
  7496. Ethernet, it will have a different MSS and, as a result, incorrect
  7497. data transfers can cause crashes. The fix is to lock into a single
  7498. device once the MSS is locked locked down.
  7499. - net/tcp: The logic that binds a specific network device to a
  7500. connection was faulty for the case of multiple network devices. On
  7501. bind(), the local address should be used to associate a device with
  7502. the connection (if the local address is not INADDR_ANY); On connect(),
  7503. the remote address should be used (in case the local address is
  7504. INADDR_ANY). On accept(), it does not matter but the remote address
  7505. is the one guaranteed to be available.
  7506. - net/tcp: Fix unbuffered send compilation error when Ethernet is not
  7507. enabled. From Alan Cavalho de Assis.
  7508. * ARMv7-M:
  7509. - All ARMV7-M IRQ setup: Always set the NVIC vector table address
  7510. unconditionally. This is needed in cases where the code is running
  7511. with a bootload and when the code is running from RAM. It is also
  7512. needed by the logic of up_ramvec_initialize() which gets the vector
  7513. base address from the NVIC. Suggested by Pavel Pisa.
  7514. - Fix some H/W floating point logic: In the original implementation,
  7515. !defined(CONFIG_ARMV7M_CMNVECTOR) was a sufficient test to determine
  7516. if lazy floating point register saving was being used. But recents
  7517. changes added common lazy register as well so now that test must be
  7518. (!defined(CONFIG_ARMV7M_CMNVECTOR) || defined(CONFIG_ARMV7M_LAZYFPU)).
  7519. - ARMv7-M, all "lazy" interrupt stack logic. Assembly instruction
  7520. that fetches the saved value is incorrect; replace with more
  7521. traditional push and pop. This is an important fix. Noted by
  7522. Stefan Kolb.
  7523. - All ARMV7-M: Force 8-byte stack alignment when calling from assembly
  7524. to C to interrupt handling.
  7525. - up_schedulesigaction(): Fix logic that determines if there is a
  7526. pending signal action before scheduling the next signal action.
  7527. Both the test and the scheduling action need to be atomic. This
  7528. problem was fixed on the ARMv7-M but also ported to other
  7529. architectures that had the same issue.
  7530. * NXP LPC43xx:
  7531. - LPC43xx: Fix NVIC_SYSH_PRIORITY_STEP define. From Ilya Averyanov.
  7532. - LPC43xx: Fix missing #define in eeprom. From Ilya Averyanov.
  7533. * NXP LPC43xx Drivers:
  7534. - Fixed the SPI driver. From Ilya Averyanov.
  7535. * Atmel SAMA5 Drivers:
  7536. - LPC31 and SAMA5D EHCI: Fix qh_ioccheck to move bp to next QH. From
  7537. Ilya Averyanov.
  7538. - LPC31 and SAMA5D EHCI: Performance improvement: Do not disable the
  7539. asynchronous queue when adding a new QH structure. From Ilya
  7540. Averyanov.
  7541. * C Library/Header Files:
  7542. - gethostbyname(): correct returned address format when DNS is used.
  7543. The hostent.h_addr_list should point to raw in_addr or in6_addr
  7544. as defined in the standard. Original implementation used that for
  7545. numeric addresses but for DNS lookup returned pointer to whole
  7546. sockaddr_in or sockaddr_in6. From Pavel Pisa .
  7547. - asin(): The function did not convert for some input values. asing()
  7548. did not convert for values which do not belong to the domain of the
  7549. function. But aside of that the function also did not converge for
  7550. allowed values. I achieved a conversion of the function by
  7551. reducing the DBL_EPSION and by checking if the input value is in
  7552. the domain of the function. This is a fix for the problem but the
  7553. function should always terminate after a given number of iterations.
  7554. From Stefan Kolb.
  7555. - Change all references from avsprintf to vasprintf. From Sebastien
  7556. Lorquet.
  7557. * Applications: apps/nshlib:
  7558. - Fix error handling in 'cat' command. On a failure to allocate
  7559. memory, a file was not being closed. From Bruno Herrera.
  7560. - Fix error handling in 'mv' command. On a failure to expand the
  7561. second path, the memory allocated for the expansion of the first
  7562. path was not being freed. From Bruno Herrera.
  7563. * Applications: apps/system:
  7564. - apps/system/netdb: Failed to build if CONFIG_NET_HOSTFILE was not
  7565. defined because gethostbyaddr() was not available. Noted by
  7566. OrbitalFox.
  7567. * Applications: apps/netutils:
  7568. - Various Kconfig files in netutils: Fix some changes from from
  7569. NETUTILS_DNSCLIENT to NETDB_DNSCLIENT. From Pavel Pisa.
  7570. * Applications: apps/modbus:
  7571. - Macros PR_BEGIN_EXTERN_C and PR_END_EXTERN_C were not defined in
  7572. all contexts. Replace with explicit expansion in all cases. From Stefan Kolb.
  7573. NuttX-7.13 Release Notes
  7574. ------------------------
  7575. The 113th release of NuttX, Version 7.13, was made on December 5, 2015,
  7576. and is available for download from the Bitbucket.org website. Note
  7577. that release consists of two tarballs: nuttx-7.13.tar.gz and
  7578. apps-7.13.tar.gz. These are available from:
  7579. https://bitbucket.org/patacongo/nuttx/downloads
  7580. https://bitbucket.org/nuttx/apps/downloads
  7581. Both may be needed (see the top-level nuttx/README.txt file for build
  7582. information).
  7583. Additional new features and extended functionality:
  7584. * Core OS:
  7585. - External RTC: Added OS support for external RTC chips.
  7586. - boardctl(): Add a command to the boardctl() interface to obtain a
  7587. board unique ID.
  7588. * File Systems:
  7589. - TMPFS: Add support for a new TMPFS, RAM file system. The TMPFS
  7590. file system does not require any significant amount of memory
  7591. itself. It will grow dynamically as files are added and shrink back
  7592. when files are deleted. A very low overhead way to retain temporary
  7593. files.
  7594. - VFS: The VFS was extended to support standard file operations on
  7595. block drivers (open, close, read, write, etc.). The open() interface
  7596. accomplishes this by creating a temporary characer driver to mediate
  7597. the character oriented accesses to tje block driver.
  7598. - HOSTFS: Added a HOSTFS file system for use with the simulator. The
  7599. HOSTFS file system mounts in the simulated Nuttx context by provides
  7600. proxied access to the file system on the host PC. This is useful for
  7601. providing file system content and nonvolatile storage of files in the
  7602. simulation environment. From Ken Pettit.
  7603. - MTD/PROCFS: Add an interface to un-register an MTD procfs entry.
  7604. From Ken Pettit.
  7605. - filemtd: A new MTD conversion layer that will convert a regular file
  7606. (or driver file) to an MTD device. This is useful for testing on the
  7607. simulation using the HOSTFS. From Ken Pettit.
  7608. - PROCFS: Extended to include networking entries in the procfs. Device
  7609. status, device statistics, and network statistics are now available
  7610. from the PROCFS.
  7611. - PROCFS: The PROCFS file system can now be configured so that it
  7612. supports runtime registration of PROCFS entries with
  7613. CONFIG_FS_PROCFS_REGISTER=y.
  7614. * Graphics/Graphic Drivers:
  7615. - ST7565 Driver: Extend to include support for the ERC12864-3. From
  7616. Pierre-noel Bouteville.
  7617. * Common Device Drivers:
  7618. - User buttons: Added a character driver to support application access
  7619. to board buttons. Supports notification of button activity via
  7620. signals.
  7621. - User LEDs: Added a character driver to support application access
  7622. to on-board LEDs.
  7623. - Zero Cross: Added a Zero Cross device driver support. From Alan
  7624. Carvalho de Assis.
  7625. - MAX6675: Added support to Thermocouple-to-Digital converter MAX6675.
  7626. From Alan Carvalho de Assis.
  7627. - BCH: Block-to-character (BCH) driver should forward ioctl() calls
  7628. to the contained block driver.
  7629. - S25FL1xx: Added a S25FL1xx QuadSPI FLASH driver.
  7630. - On-Chip FLASH: Added an upper half MTD device that can use the
  7631. interfaces defined in included/nuttx/progmem.h to provide a
  7632. standard MTD driver.
  7633. - Serial: Implemented high level DMA infrastructure for serial
  7634. devices. From Max Neklyudov.
  7635. - AT24XX: Add support for multiple AT24xx EEPROM parts, each with
  7636. unique I2C addresses, but otherwise identical.
  7637. - External RTC: Added drivers for external I2C RTC chips: DS3102,
  7638. DS1307, DS3231, DS3232, and NXP PCF85263.
  7639. - W25: Added support for byte write mode to the W25 FLASH driver. From
  7640. Ken Pettit.
  7641. - dev/loop: Added a loop character device. losetup() and loteardown()
  7642. should not be called directory from applications. Rather, these
  7643. functions are now available as IOCTL commands to the loop driver.
  7644. - dev/smart: Added support for a /dev/smart loop device. From Ken
  7645. Pettit.
  7646. * Networking:
  7647. - Driver Statistics: Most network drivers do not support statistics.
  7648. Those that do only supported them when DEBUG is enabled. Each
  7649. driver collected an architecture specific set of statistics and
  7650. there was no common mechanism to view those statistics. Thus,
  7651. the driver feature was mostly useless. This release standardizes
  7652. the driver statistics and puts the definition in the common network
  7653. device structure defined in netdev.h where they can be accessed by
  7654. network applications. All Ethernet drivers that collect statistics
  7655. have been adapted to use these common statistics.
  7656. * Simulation Platform:
  7657. - W25 FLASH: Added support for W25 FLASH simulation. From Ken Pettit.
  7658. - HOSTFS: Added support for the HOSTFS file system (see "File Systems",
  7659. above).
  7660. * Atmel SAMV7:
  7661. - SAME70: Added support for the SAME70 family of chips.
  7662. - Tickless: SAMV7 now supports the tickless mode of operation.
  7663. * Atmel SAMV7 Drivers:
  7664. - MPU: Added MPU and protected build support.
  7665. - QSPI: Added a QuadSPI FLASH driver. This driver operates in the
  7666. memory-mapped, Serial Memory Mode (SMM).
  7667. - FLASH: Added support to write on-chip FLASH.
  7668. - Timer/Counter: TC driver ported to SAMV7 from the SAMA5. Free-running
  7669. and one-short timer logic also ported.
  7670. - PCK: Brought programmable clock (PCK) logic from SAMA5 into SAMV7.
  7671. - Timer/Counter: Support PCK6 as an optional source for the timer/
  7672. counter clock.
  7673. * Atmel SAMV7 Boards:
  7674. - SAME70-Xplained: Add NSH and networking configurations for the
  7675. SAME70 Xplained board. Includes verified support for serial console,
  7676. LEDs, buttons, SDRAM, HSMCI SD card, and networking.
  7677. - SAMV7-XULT and SAME70-Xplained: If Tickless mode is selected then
  7678. enable PCK6 as a timer/counter clock source
  7679. * STMicro STM32:
  7680. - CCM PROCFS: Is no longer a part of the 'base' procfs entries and can
  7681. now only be supported via run time registration with
  7682. CONFIG_FS_PROCFS_REGISTER=y.
  7683. * STMicro STM32 Drivers:
  7684. - Timers: Add a compatible lower-half timer driver for use with the
  7685. common timer upper-half driver. From Wail Khemir.
  7686. * STMicro STM32 Boards:
  7687. - STM32F4-Discovery: Add low level support for the Zero Cross driver
  7688. for the STM32F4-Discovery. From Alan Carvalho de Assis.
  7689. - STM32F4-Discovery: Add board config to support for the MAX6675. From
  7690. Alan Carvalho de Assis.
  7691. * C Library/Header Files:
  7692. - bsearch(): Added the bsearch() function from NetBSD.
  7693. - freopen(): Added support for freopen().
  7694. - strftime(): Added day-of-week support (when avaialable).
  7695. * Tools:
  7696. - nxstyle: Add crappy style checking tool nxstyle.c. See thee tools/
  7697. README file for more info.
  7698. * Applications: NSH
  7699. - mksmartfs command: Add configuration option to supported multiple
  7700. rootdirectories. From Ken Pettit.
  7701. - Add support for 'basename' and 'dirname' commands.
  7702. - set command: Like bash, NSH set command now strips off any leading
  7703. or trailing whitespace.
  7704. - mount command: The mount commands now accepts mount options
  7705. (currently needed only for the hostfs file system). From Ken
  7706. Pettit.
  7707. - losetup command: NSH no longer calls losetup() and loteardown
  7708. directly. Now it opens /dev/loop and accomplishes these things
  7709. using ioctl() calls.
  7710. - ifconfig command: If CONFIG_NETDEV_STATISTICS=y, then print the
  7711. network driver statistics in the ifconfig.
  7712. - ifconfig, ifup, and ifdown: These commands now uses /proc/net/<dev>
  7713. to view network device configuration and status and /proc/net/stat
  7714. to show network statistics. A consequence of this is that you
  7715. cannot view this network information if the procfs is not enabled
  7716. and mounted at /proc.
  7717. - losmart command: Added a new NSH losmart command. losmart setups
  7718. up a loop device for the smart MTD driver similar to losetup but
  7719. with different syntax. From Ken Pettit.
  7720. - ps command: The 'ps' command now uses /proc/<pid>/ to obtain task
  7721. status information. A consequence of this is that you cannot use
  7722. the 'ps' command if the procfs is not enabled and mounted at /proc.
  7723. * Applications: apps/system:
  7724. - apps/system/hexed: Port the hexed command line hexadeciamal editor
  7725. to Nuttx. See http://apps.venomdev.net/hexed/.
  7726. * Applications: apps/fsutils:
  7727. - apps/fsutils/smartfs: Move into apps/fsutils from kernel, now uses
  7728. only open and ioctl. From Ken Pettit.
  7729. * Applications: apps/examples:
  7730. - apps/examples/fstest: Add a generic file system test. This is
  7731. essentially the same as examples/smart, but has all of the SmartFS
  7732. specific logic ripped out. This was created for testing the new
  7733. TMPFS.
  7734. - apps/examples/zerocross: Add a Zero Cross application example. From
  7735. Alan Carvalho de Assis.
  7736. - apps/examples/media: Add a simple test for access of media via a
  7737. block driver or MTD driver.
  7738. Bugfixes. Only the most critical bugfixes are listed here (see the
  7739. ChangeLog for the complete list of bugfixes and for additional, more
  7740. detailed bugfix information):
  7741. * Core OS:
  7742. - Fixed an error in clock_timespec_subtract(). Found by Lok.
  7743. - pthreads: CRITICAL BUGFIX: Logic was wiping out the indication that
  7744. of the type of a pthread. Hence, it could be confused as a task.
  7745. Found because this was causing a crash when /proc/nnn/cmdline was
  7746. printed.
  7747. * File System/Block Drivers:
  7748. - SMART MTD: Fix some Smart wear-leveling bugs. Fixed SmartFS wear
  7749. level error that occurs when the logical sector size is too small to
  7750. save all wear level status bytes in a single sector. Logical
  7751. sectors 1 and 2 were simply not being allocated and then the
  7752. read_sector and write_sector routines were failing. From Ken
  7753. Pettit.
  7754. * Graphics/Graphic Drivers:
  7755. - ILI9432: Fixed errors in orientation. Portrait, RPortrait, and
  7756. Landscript should work correly now. They were displayed mirrored.
  7757. From Marco Krahl.
  7758. * Common Drivers:
  7759. - CAN: Fix a problem in the CAN upper-half driver that occurs only
  7760. for CAN hardware that support a H/W FIFO of outgoing CAN messages.
  7761. In this case, there can be a hang condition if both the H/W and
  7762. S/W FIFOs are both full. In that case, there may be no event to
  7763. awaken the upper half driver. Add a new (conditional) CAN upper
  7764. half interface called can_txready() that can be used by the lower
  7765. half driver to avoid this hang condition.
  7766. - MS58xx: Fix some issues with initialization and with CRC
  7767. calculation. From Karim Keddam.
  7768. - W25: Fixed W25 FLASH driver page read/write logic. From Ken Pettit.
  7769. * Atmel SAMV7 Drivers:
  7770. - USART1 pin configuration: Reconfigure System I/O when using USART1.
  7771. From Frank Benkert.
  7772. - MCAN: Added a call to can_txready() to the MCAN driver.
  7773. * STMicro STM32 Drivers:
  7774. - stm32 F4: Fix some TIM12 pin mappings. From Max Kriegleder.
  7775. * STMicro STM32 Boards:
  7776. - STM32F429i-Disco: Calculated partition boundries based on page
  7777. block sizes but mtd_partition() is expecting calculations based on
  7778. erase block size. From Alan Carvalho de Assis.
  7779. * C Library/Header Files:
  7780. - sys/types.h: When building on a 64-bit machine, the size of size_t
  7781. should be 64-bits. In general, I believe that sizeof(size_t) should
  7782. be the same as sizeof(uinptr_t). mmsize_t should always be 32-bits
  7783. in any event. The last change to stddef has been backed out. With
  7784. these changes, the simulator builds without errors or warnings an a
  7785. 64-bit machine.
  7786. * Applications: apps/nshlib:
  7787. - The I/O buffer, g_iobuffer, should not be a global buffer. That
  7788. will not work in an environment where there are multiple NSH
  7789. sessions. The I/O buffer must, instead, be a part part of the
  7790. session-specific data defined in nsh_console.h.
  7791. NuttX-7.14 Release Notes
  7792. ------------------------
  7793. The 114th release of NuttX, Version 7.14, was made on January 28, 2016,
  7794. and is available for download from the Bitbucket.org website. Note
  7795. that release consists of two tarballs: nuttx-7.14.tar.gz and
  7796. apps-7.14.tar.gz. These are available from:
  7797. https://bitbucket.org/patacongo/nuttx/downloads
  7798. https://bitbucket.org/nuttx/apps/downloads
  7799. Both may be needed (see the top-level nuttx/README.txt file for build
  7800. information).
  7801. Additional new features and extended functionality:
  7802. * Core OS:
  7803. - modules: Add support for kernel modules: insmod, rmmod, support
  7804. functions. procfs support for user lsmod functioniality.
  7805. - SIGEV_THREAD: Add support for the SIGEV_THREAD notification method
  7806. in struct sigevent. This initial implementation will only work in
  7807. the FLAT build since it utilizes the work queue for signal
  7808. callbacks. See the top-level TODO file for additional details.
  7809. - 64-Bit Timer: If the 64-bit timer is selected, then use it whenever
  7810. clock_systimer() is called rather then chopping the 64-bit timer
  7811. down to 32-bits. Add a new type, systime_t to represent the 32- or
  7812. 64-bit system timer. This eliminates clock_systimer32() and
  7813. clock_systime64(); there is now only clock_systimer().
  7814. * Common Device Drivers:
  7815. - Telnet Driver: Move the Telnet driver from apps/ to
  7816. nuttx/drivers/net. It is a driver a belongs in the OS. Now works
  7817. like the loop device: A new interface called telnet_initialize()
  7818. registers a telnet session "factory" device at /dev/telnet. Via
  7819. ioctl, the factory device can create instances of the telnet
  7820. character devices at /dev/telnetN to support Telnet sessions.
  7821. - PCA9635PW: Add a driver for the PCA9635PW I2C LED driver IC which
  7822. can be used to control the intensity of up to 16 LEDs. From
  7823. Alexander Entinger.
  7824. - MCP9844: Driver for the MCP9844 I2C digital temperature sensor with
  7825. a selectable resolution. From Alexander Entinger.
  7826. - PN532: Add driver for the NXP PN532 NFC-chip. From Janne Rosberg
  7827. and others at Offcode Ltd.
  7828. - LSM9DS1: Add driver for the STMicro LSM9DS1 chip. The LSM9DS1 is a
  7829. system-in-package featuring a 3D digital linear acceleration sensor,
  7830. a 3D digital angular rate sensor, and a 3D digital magnetic sensor.
  7831. From Paul Alexander Patience.
  7832. - CAN Interface: Add more extensive error reporting capaibility to
  7833. the CAN interface definitions. From Frank Benkert.
  7834. - SPI Interface: Add an optional hwfeatures() method to the SPI
  7835. interface.
  7836. * Simulation Platform:
  7837. - NSH configuration uses the custom start up scriptwith a read-only
  7838. passwd file. Includes hooks for an MOTD message.
  7839. * ARMv7-R
  7840. - ARMv7-R: Add basic architecture support for the ARMv7-R processor
  7841. family.
  7842. * Atmel AVR:
  7843. - Atmega2560: Add support for the Atmega2560. From Dimitry Kloper.
  7844. - debug.h: Add an AVR-specific header file used when the AVR MEMX
  7845. pointer is used. From Dimitri Kloper.
  7846. * Atmel AVR Boards:
  7847. - Arduino-Mega2560: Add support for the Arduino-Mega2560. From
  7848. Dimitry Koper.
  7849. * Atmel SAMV7 Drivers:
  7850. - Port the TRNG driver from the SAMA5D3/4 to the SAMV7.
  7851. - Port the WDT driver from the SAMA5D3/4 to the SAMV7.
  7852. - Add an RSWDT driver.
  7853. * Atmel SAMV7 Boards:
  7854. - SAMV71-XULT: Add configuration for testing OS modules.
  7855. * Freescale Kinetis:
  7856. - MK60N512VLL100: Add support for the MK60N512VLL100 Kinetis part.
  7857. From Andrew Webster.
  7858. * Freescale Kinetis Boards:
  7859. - ENET: Numerous updates to the Kinetis ENET driver. That driver is
  7860. now functional. From Andrew Webster.
  7861. * NXP LPC43xx Boards:
  7862. - WaveShare LPC4337-WS: Support for the WaveShare LPC4337-WS board.
  7863. From Lok Tep.
  7864. * STMicro STM32 Drivers:
  7865. - Timer Capture: Add timer input capture driver. From Pierre-Noel
  7866. Bouteville.
  7867. * STMicro STM32 Boards:
  7868. - Olimex STM32 H407: Added a port to the Olimex STM32 H407 board.
  7869. This board features the STMicro STM32F407ZGT6 (144 pins).
  7870. Contributed by Neil Hancock.
  7871. * TI TMS550 Boards:
  7872. - TI LaunchXL-TMS57004: Add basic board support for TI LaunchXL-
  7873. TMS57004. Still a work in progress.
  7874. * C Library/Header Files:
  7875. - sys/time.h: Add timeradd(), timersub(), timerclear(), timerisset(),
  7876. and timercmp() as macros. These are non-POSIX interfaces, but
  7877. included in most BSD deriviatives, including Linux. From Manuel St??.
  7878. - AVR support: Introduce support for Atmel toolchain in-flash strings.
  7879. Atmel toolchain AVR compiler provides a transparent in-flash object
  7880. support using __flash and __memx symbols. The former indicates to
  7881. compiler that this is a flash-based object. The later used with
  7882. pointer indicates that the referenced object may reside either in
  7883. flash or in RAM. The compiler automatically makes 32-bit pointer
  7884. with flag indicating whether referenced object is in flash or RAM
  7885. and generates code to access either in run-time. Thus, any function
  7886. hat accepts __memx object can transparently work with RAM and flash
  7887. objects.
  7888. For platforms with a Harvard architecture and a very small RAM like
  7889. AVR this allows to move all constant strings used in trace messages
  7890. to flash in the instruction address space, releasing resources for
  7891. other things. This change introduces IOBJ and IPTR type qualifiers.
  7892. The 'I' indicates that the object may lie in instruction space on a
  7893. Harvard architecture machine. For platforms that do not have __flash
  7894. and __memx or similar symbols IOBJ and IPTR are empty, making the
  7895. types equivalent to, for example, 'const char' and 'const char*'.
  7896. For Atmel compiler these will become 'const __flash char' and
  7897. 'const __memx char*'. All printf() functions and syslog() functions
  7898. are changed so that the qualifier is used with the format parameter.
  7899. From Dimitry Kloper.
  7900. - debug.h: Add configuration to support an architecture-specific
  7901. debug.h header file. From Dimitri Kloper.
  7902. - netdb: Add support for the use of a DNS resolver file like
  7903. /etc/resolv.conf.
  7904. - TEA: Add an implementation of the Tiny Encryption Algorithm.
  7905. - math32.h: Add some utilities to support 64-bit arithmetic
  7906. operations for platforms that do not support long long types.
  7907. * Tools:
  7908. - tools/cnvwindeps.c: Add a tool that will convert paths in
  7909. dependencies generated by a Windows compiler so that they can be
  7910. used with the Cygwin make.
  7911. - tools/mkwindeps.sh: A script that coordinates use of cnvwindeps.exe.
  7912. Dependencies now work on the Cygwin platform when using a Windows
  7913. ative toolchain.
  7914. * Applications: NSH
  7915. - Module Commands: Add module commands: insmod, rmmod, and lsmod.
  7916. - Time Command: Add a 'time' command that may be used to time the
  7917. execution of other commands.
  7918. - Password Commands: Add useradd, userdel, and passwd commands.
  7919. - MOTD: Now supports a Message of the Day (MOTD) that will be
  7920. presented after the NSH greeting.
  7921. - Session Logins: All sessions may be protected with logins using the
  7922. encrypted password in /etc/passwd.
  7923. - Extended Logins. Added optional platform-specific function to
  7924. perform password verification and optional delay after each failed
  7925. login attempt.
  7926. * Applications: apps/fsutils:
  7927. - apps/fsutils/passwd: Utility library for accessing a password file
  7928. like /etc/passwd.
  7929. * Applications: apps/netutils:
  7930. - apps/netutils/telnetd: Now creates Telnet sessions by opening a new
  7931. factory device at /dev/telnet and then using ioctl calls to create
  7932. the session character drivers at /dev/telnetN.
  7933. - apps/netutils/netlib: Add netlib_get_dripv4addr() and
  7934. netlib_get_ipv4netmask(). From Pelle Windestam.
  7935. * Applications: apps/examples:
  7936. - apps/examples/module: Add a test harness for verifying NuttX kernel
  7937. modules.
  7938. - apps/examples/pca9635: Add a simple test of PCA9635PW PWM LED driver.
  7939. From Alan Carvalho de Assis.
  7940. - apps/examples/ostest: Add a test of POSIX timers using SIGEV_THREAD.
  7941. Bugfixes. Only the most critical bugfixes are listed here (see the
  7942. ChangeLog for the complete list of bugfixes and for additional, more
  7943. detailed bugfix information):
  7944. * Core OS:
  7945. - pthreads: CRITICAL BUGFIX: Logic was wiping out the indication that
  7946. of the type of a pthread. Hence, it could be confused as a task.
  7947. - waitpid: CRITICAL BUGFIX. Add a reference count to prevent waitpid
  7948. from using stale memory released by the waited-for task group.
  7949. - clock_systimespec(): Fix an error in a time conversion.
  7950. * File System/Block Drivers:
  7951. - poll(): Fix handling of sem_tickwait() return value sem_tickwait()
  7952. does not return an -1+errno, it returns a negated errno value.
  7953. Noted by Freddie Chopin.
  7954. * Common Drivers:
  7955. - TUN Driver: Fix a compile time error in the TUN driver. From
  7956. Vladimir Komendantskiy.
  7957. - USB Host HID Parser: Wrong size used in memcpy(). From Hang Xu.
  7958. - PCA9555: Fixed a bug in the function pca9555_setbit which occurs if
  7959. someone tries to set one of the pins 8-15. The problem is that
  7960. after the check if the pin is greater than 7 the variable addr is
  7961. incremented and used in the Call I2C_WRITEREAD. But later in the
  7962. call to the I2C_WRITE buf[0] is used as address but this address is
  7963. not incremented as it should be. Note address does mean the address
  7964. to the register in the ioexpander and not the I2C address. From
  7965. Stefan Kolb.
  7966. * Networking:
  7967. - TCP/IOB: Numerous fixes, mostly relate to TCP and IOB buffering
  7968. and race conditions. These were necessary for for the NuttX
  7969. networking later to be stable in some stress testing. From Andrew
  7970. Webster.
  7971. * Atmel SAMV7 Drivers:
  7972. - USBHS Device: In USBHS device driver, fix check if zero length
  7973. packet is needed.
  7974. * STMicro STM32 Drivers:
  7975. - OTG FS Host: Fix some backward arguments to stm32_putreg(). Note
  7976. by Hang Xu.
  7977. * Tools:
  7978. - tools/mkdeps.c: Extended/fixed support for --winpath option.
  7979. Dependencies now work under Cygwin with a native Windows toolchain.
  7980. * Build System:
  7981. - apps/platform/Makefile: Use a relative path to the board directory
  7982. link rather than the absolute path. For Cygwin, the absolute would
  7983. would need converted with cygpath. But just using the relative path
  7984. is a simpler solution.
  7985. NuttX-7.15 Release Notes
  7986. ------------------------
  7987. The 115th release of NuttX, Version 7.15, was made on March 27, 2016,
  7988. and is available for download from the Bitbucket.org website. Note
  7989. that release consists of two tarballs: nuttx-7.15.tar.gz and
  7990. apps-7.15.tar.gz. These are available from:
  7991. https://bitbucket.org/patacongo/nuttx/downloads
  7992. https://bitbucket.org/nuttx/apps/downloads
  7993. Both may be needed (see the top-level nuttx/README.txt file for build
  7994. information).
  7995. Additional new features and extended functionality:
  7996. * Core OS:
  7997. - Add a state variable that provides the current level of OS
  7998. initialization. This is needed by some logic that may attempt to
  7999. run early in the start-up sequence but cannot run if a sufficient
  8000. level of initialization has not yet occurred.
  8001. - Spinlocks: Add interface definitions for to support spinlocks as
  8002. needed for multi-CPU configurations.
  8003. - SMP support. Support for Symmetric Multi-Processing (SMP) added.
  8004. This affects many internal data structures, spinlock extensions
  8005. and renaming of interrupt enable/disable interfaces, new platform
  8006. interfaces to support CPU initialization and inter-actions, and
  8007. new application interfaces to manage CPU affinity. The changes
  8008. are too extensive to summarize here; see the SMP Wiki page at
  8009. http://www.nuttx.org/doku.php?id=wiki:nxinternal:smp. The
  8010. new platform interfaces are also described in the NuttX porting
  8011. guide: http://www.nuttx.org/doku.php?id=documentation:portingguide.
  8012. Only partially verified; awaiting hardware for the complete
  8013. verification.
  8014. - TLS: Basic definitions needed to support thread local storage
  8015. (TLS). TLS is not used anywhere yet (and may not be used in the
  8016. near future either).
  8017. - Performance Monitoring: Add a configuration option to buffer
  8018. RTOS instrumentation data in an in-memory buffer.
  8019. - boardctl(): Add boardctl() support that will permit applications
  8020. to control USB devices.
  8021. * File Systems/Block Drivers:
  8022. - procfs: Add /proc/kmm entry that shows that state of the kernel
  8023. heap. Only useful in PROTECTED and KERNEL build modes where there
  8024. is a kernel heap.
  8025. - procfs: Add support for showing CPU in the tast status if SMP is
  8026. enabled.
  8027. * Networking:
  8028. - ARP: Add support for IOCTL commands to manage the ARP table.
  8029. - IEEE 802.15.4 and 6LowPAN: There are some radio drivers and a
  8030. directory structure is in place. However, most of this
  8031. development is occurring on a fork and is not yet available in the
  8032. NuttX repositories. Hopefully in NuttX-7.16.
  8033. * Common Device Drivers:
  8034. - ADS1242: Driver for the 24-Bit Differential Input ADC ADS1242 that
  8035. communicates via SPI with a MCU. Reading the ADC conversion result
  8036. as well as configuring the ADC, setting the input channel, etc. is
  8037. implemented via ioctl calls. However, it does not yet implement
  8038. the standard ADC interface. From Alexander Entinger.
  8039. - U-Blox Modem: Add an upper half driver for the U-Blox Modem. From
  8040. Vladimir Komendantskiy.
  8041. - I2C: Add an I2C, "upper half", character drivers to support raw I2C
  8042. data transfers for test applications.
  8043. - RGB LED: Add a driver to manage a RGB LED via PWM. From Alan
  8044. Carvalho de Assis.
  8045. - Performance Monitoring: Add a character driver that will allow an
  8046. application to read buffered scheduler instrumentation data.
  8047. * Simulation Platform:
  8048. - SMP: Add multi-CPU support to the simulation to support SMP
  8049. investigation. There are issues with the simulation and it is less
  8050. than perfect but sufficient for some very preliminary testing of
  8051. the core SMP feature.
  8052. * ARMv7-A, ARMv7-R, and ARMv7-M:
  8053. - ARMv7-A, ARMv7-R, and ARMv7-M: Add test-and-set logic and
  8054. definitions needed to supports spinlocks.
  8055. - ARMv7-A: Added MPCOre Generic Interrupt Controller (GICv2) and
  8056. Global Timer support
  8057. - ARMv7-A: Now includes in MCU-specific hooks needed for SMP support.
  8058. * Atmel SAMV7 Drivers:
  8059. - HSMSI: HSMCI driver can now be configured to handle unaligned data
  8060. buffers.
  8061. * NXP Freescale LPC11xx/17xx/43xx and LPC2378 Drivers:
  8062. - I2C: Backported the LPC43XX I2C driver, replacing the LPC11XX,
  8063. LPC17XX, and LPC2378 I2C drivers. This gives us the I2C_TRANSFER
  8064. method in all I2C drivers.
  8065. * NXP Freescale LPC17xx Boards:
  8066. - Support for the u-blox GSM and GPS module evaluation board with
  8067. NXP LPCExpresso LPC1768. The GSM module is one of LISA-C200,
  8068. LISA-U200 or SARA-G350. The GPS module is one of MAX-M7 or
  8069. MAX-M8. From Vladimir Komendantskiy.
  8070. * NXP Freescale i.MX6:
  8071. - Basic support is in place for the i.MX6 Quad/Dual MCUs.
  8072. Verification is, however, waiting for the receipt of hardware.
  8073. * NXP Freescale i.MX6 Boards:
  8074. - Sabre-6Quad: Basic support for the NXP/Freescale Sabre 6Quad
  8075. board is in place but waiting for hardware for verification.
  8076. * STMicro STM32:
  8077. - STM32F46xx: Support for STM32F46xx from Paul Alexander Patience
  8078. - STM32L4: Add support for the STM32L4 family. From Sebastien
  8079. Lorquet.
  8080. * STMicro STM32 Boards:
  8081. - STM32F4 Discovery: Add PWM support for the onboard RGB LED. From
  8082. Alan Carvalho de Assis.
  8083. - Nucleo-L476: Add support for the Nucleo-L476 board. From Sebastien
  8084. Lorquet.
  8085. - STM32L476VG Discovery: Add support for the STM32L476VG Discovery
  8086. board. From Dave.
  8087. * Tools:
  8088. - tools/refesh.sh now has a --silent option so that it can be used in
  8089. batch modes without human input.
  8090. * Build System:
  8091. - Added a 'make olddefconfig' target that will refresh a .config file
  8092. without interaction.
  8093. * Applications: NSH
  8094. - 'arp': Add an 'arp' command that will support access to the OS ARP
  8095. table.
  8096. - 'ps': The 'ps' command will show CPU if SMP is enabled.
  8097. * Applications: apps/netutils:
  8098. - apps/netutils/chat: Chat logic contributed by Vladimir
  8099. Komendantskiy.
  8100. - apps/netutils/netlib: Add utility functions to support accesses to
  8101. the ARP table.
  8102. * Applications: apps/examples:
  8103. - apps/examples/chat: Chat example contributed by Vladimir
  8104. Komendantskiy.
  8105. - apps/sysem/ubloxmodem: Example to control the power
  8106. state of the modem in nsh. From Vladimir Komendantskiy.
  8107. - apps/examples/leds: An example to demonstrate use of LED driver.
  8108. - apps/examples/smp: Add a test to verify SMP configurations.
  8109. - apps/examples/rgbled: Example using the RGB LED driver to drive an
  8110. RGB LED via PWM. From Alan Carvalho de Assis.
  8111. - apps/examples/ostest: Add a test of TLS.
  8112. - apps/examples/sched_note: Add a simple example to exercise the
  8113. scheduler instrumentation logic.
  8114. Bugfixes. Only the most critical bugfixes are listed here (see the
  8115. ChangeLog for the complete list of bugfixes and for additional, more
  8116. detailed bugfix information):
  8117. * Core OS:
  8118. - Signals: Move the list of signal actions from the TCB to the group
  8119. structure. Signal handlers are not per thread but, rather, per task
  8120. group. I know, I preferred it the other way too, but this is more
  8121. compliant with POSIX.
  8122. - Semaphores: Add an internal, non-standard interface to reset a
  8123. semaphore count. This is sometimes needed by drivers in order to
  8124. recover from error conditions. Were previously using sem_init()
  8125. which is both inappropriate and incorrect if the semaphore count is
  8126. negative.
  8127. - Low-Priority Work Queue: Fix logic to find an IDLE worker thread;
  8128. the test for busy was backward. From Linfei Chen.
  8129. * File System/Block Drivers:
  8130. - FAT: Add an option to force all transfers to be performed
  8131. indirectly using the FAT file system's internal sector buffers.
  8132. This is a fix for the case where the user provided buffers are not
  8133. properly aligned for DMA (as with THTTPD).
  8134. - MTD: Increase block size in mtd_geometry_s to 32-bits.
  8135. * Common Drivers:
  8136. - I2C: Restructured the I2C interface as necessary to eliminate some
  8137. thread-safety issues inherent in the legacy I2C interface design.
  8138. This effects the interface definition, all I2C clients, and all low-
  8139. level I2C drivers. I have used caution, but I still expect a change
  8140. of this magnitude to introduce some errors. Any bug reports of bug
  8141. fixes will be much appreciated.
  8142. - I2C_RESET: Eliminate up_i2creset(). It should not be a global
  8143. function; Now it is an I2C interface method.
  8144. - PCA555: Add logic to make the PCA555 driver thread safe.
  8145. - syslog: If syslog timestamping is enabled, don't try to get the time
  8146. if the timer hardware has not yet been initialized.
  8147. - AT24xx driver: Correct missing address calculation logic. From Frank
  8148. Benkert.
  8149. * Networking:
  8150. - Networking drivers that support CONFIG_NET_NOINTS: Fix a race
  8151. condition that can cause the TX poll timer to stop running. From
  8152. Manuel Stuhn.
  8153. - Timer Poll: Fix some logic when there are multiple network
  8154. interfaces. In this case, TCP timeout events can really only being
  8155. processed when the poll from the correct device is received.
  8156. * Atmel SAMV7 Drivers:
  8157. - SAMV7 USB HS device: The USB driver has had some issue that would
  8158. occasionally cause loss of packets. Back last December, a fix was
  8159. put in for this but the fix apparently worsens the problem; now
  8160. causing hangs. The basic problem is that the number of busy banks
  8161. (NBUSYBKS) status is not real time but is delayed. This was fixed;
  8162. now when the DMA completes and NBUSYBKS > 0, the NBUSYBK is
  8163. interrupt is enabled and the operations are deferred until NBUSYBKS
  8164. is truly zero.
  8165. * Tools:
  8166. - tools/testbuild.sh: .config files were not being updated because
  8167. (a) kconfig-conf was being called in the wrong directory and (b)
  8168. apps/Kconfig had not yet been created. Now uses 'make
  8169. olddefconfig'.
  8170. * Applications: apps/system:
  8171. - apps/system/i2c: The I2C tool now obeys it OS interfacing: it now
  8172. uses an I2C character driver to access the I2C bus.
  8173. - apps/system/cdcacm, usbmsc, and composite: Use new boardctl()
  8174. instead of calling directly in the OS when possible.
  8175. * Applications: apps/netutils:
  8176. - apps/netutils/dhcpd: DHCPD no longer calls directly into the OS but
  8177. uses the new network IOCTL commands to modify the ARP table.
  8178. * Applications: apps/modbus:
  8179. - apps/modbus/nuttx/portserial.c: Was not returning an error on
  8180. failure to open the device driver. From Olololshka kokoko.
  8181. * Applications: apps/examples:
  8182. - apps/examples/usbserial, composite, usbterm: Use new boardctl()
  8183. instead of calling directly in the OS when possible. There are
  8184. still a few bad OS calls for USB device interfaces that do not yet
  8185. have boardctl() commands.
  8186. * Applications: apps/platform:
  8187. - Moved C++ initialization logic out of the RTOS and into the
  8188. application space, specifically to apps/platform/board, where it
  8189. belongs.
  8190. NuttX-7.16 Release Notes
  8191. ------------------------
  8192. The 116th release of NuttX, Version 7.16, was made on June 1, 2016,
  8193. and is available for download from the Bitbucket.org website. Note
  8194. that release consists of two tarballs: nuttx-7.16.tar.gz and
  8195. apps-7.16.tar.gz. These are available from:
  8196. https://bitbucket.org/nuttx/nuttx/downloads
  8197. https://bitbucket.org/nuttx/apps/downloads
  8198. Both may be needed (see the top-level nuttx/README.txt file for build
  8199. information).
  8200. Additional new features and extended functionality:
  8201. * Core OS:
  8202. - Power Management: Add activity domain to all PM interfaces and
  8203. driver callbacks. If CONFIG_PM_NDOMAINS == 1, then the legacy
  8204. behavior is preserved. If CONFIG_PM_NDOMAINS > 1, then multiple
  8205. PM domains are supported. This will allow separate control for
  8206. certain power management groups. For example, a network can be
  8207. shut down without affect an ongoing UI (and vice versa).
  8208. - board_app_initialize(): board_app_initialize() now accepts an
  8209. argument that may be used to support initialization in different
  8210. configurations.
  8211. * File System and Block and MTD Drivers:
  8212. - N25Qxxx: Add MTD support for Micron N25Qxxx family of QSPI flash.
  8213. From Dave (ziggurat29).
  8214. - SST26F: Add an MTD driver for SST26F spi/qspi flash devices (SPI
  8215. mode only). From Sebastien Lorquet.
  8216. - File Descriptor Detach: Add logic to detach a file structure from a
  8217. file descriptor. This is for use only within the OS. It permits an
  8218. open file or driver to be used across multiple threads.
  8219. * Networking and Network Drivers:
  8220. - listen()/accept(): Separate out psock_listen() and psock_accepti()
  8221. for internal, thread independent OS usage (i.e., without a socket
  8222. descriptor).
  8223. - VNC Server: Add support for a VNC server. This logic is code
  8224. complete and functional, but not well tested.
  8225. * Graphics and Graphic Drivers:
  8226. - Framebuffer driver: Add a display number to each interface in order
  8227. to support multiple display devices.
  8228. - VNC Server: Add support for a VNC server. This logic is code
  8229. complete and functional, but not well tested.
  8230. - LCD Backpack: Add support for PCF8574 LCD Backpack driver. This
  8231. driver supports an interface board that is based on the PCF8574 I/O
  8232. expander and supports the HD44780-based (or compatible) LCD modules.
  8233. There are a myriad of different vendors of such, but they are
  8234. principally the same, save wiring and minor features like jumpers
  8235. for I2C addresses. This driver supports known and unknown variants.
  8236. From Dave (ziggurat29).
  8237. * Common Device Drivers:
  8238. - RTC: Simplify the RTC interface. The old interface was way too
  8239. complex and was not fully implemented anywhere.
  8240. - BH1750FVI: Add a character driver for Rohm Ambient Light Sensor
  8241. BH1750FVI. From Alan Carvalho de Assis.
  8242. - CAN: Improve CAN error reporting. From Frank Benkert.
  8243. - aes.h: Modifications to the crypto API needed for LPC43xx. From
  8244. Alexander Vasiljev.
  8245. - ADC: Interface no longer uses global adc_receive() call. Added a
  8246. new bind() method to the ADC interface. Now the ADC upper half
  8247. driver will register its receipt-of-data callback. This change
  8248. allows the ADC lower half driver to be used with a differ ADC upper
  8249. half.
  8250. * Simulation Platform:
  8251. - Linux Host Networking: Enhance networking support for the
  8252. simulation under Linux. Includes updated support for Linux TUN/TAP,
  8253. and the addition of support for Linux bridge devices. From Steve.
  8254. * ARMv7-A, ARMv7-R, and ARMv7-M:
  8255. - ARMv7-M: Convert more assembly language files for use with the IAR
  8256. toolchain. From Kha Vo.
  8257. - ARMv7-A: Complete re-design of SMP-related logic to initialize each
  8258. CPUn, n > 0, when CONFIG_SMP=y.
  8259. * Atmel SAMV7:
  8260. - Add a JTAG config and ERASE config to Kconfig to set the
  8261. CCFG_SYSIO SYSIO Pins. From David Sidrane.
  8262. - System Reset: Add the up_systemreset interface to the samv7 arch. The
  8263. approach is slightly different in that: 1) It enables ARCH_HAVE_RESET
  8264. and allows the user to set if, and for how long, to drive External
  8265. nRST signal. It also does not contain a default board_reset, as that
  8266. really should be done in the config's src if CONFIG_BOARDCTL_RESET
  8267. is defined. From David Sidrane.
  8268. * Atmel SAMV7 Boards:
  8269. - SAMV71-XULT: Add configuration(s) that were be used to verify VNC
  8270. graphics output as well as mouse and keyboard input.
  8271. * NXP Freescale i.MX6 Boards:
  8272. - Sabre-6Quad: The basic i.MX6 port is complete. This is a minimal
  8273. port at present and probably still has some as-of-yet-undiscovered
  8274. issues.
  8275. - Sabre-6Quad: Basic SMP NSH configuration is now working. But this
  8276. is probably only because the SMP test case does not stress the
  8277. logic. There are know outstanding SMP issues as noted in the
  8278. Sabre-6Quad README.txt file.
  8279. * NXP Freescale LPC43xx:
  8280. - LPC4337jet100: Add definitions for the LPC4337jet100 chip. From
  8281. Alexander Vasiljev.
  8282. * NXP Freescale LPC43xx Drivers:
  8283. - AES: Add AES support. From Alexander Vasiljev.
  8284. * STMicro STM32:
  8285. - STM32 L4: Add configuration options to allow SRAM2 to be used for
  8286. heap, or not at all, and to zero-initialize it on OS start, or not
  8287. at all. From Dave dev@ziggurat29.com.
  8288. - STM32 L4: Add support for HSE and MSI clocks, and auto trim of MSI
  8289. to LSE (needed for USB). From Dave (ziggurat29)
  8290. - STM32 L4: Add support for unique id function to arch; modified board
  8291. to support unique id boardctl. From Dave (ziggurat29)
  8292. * STMicro STM32 Drivers:
  8293. - STM32 F4 RTC: Add a custom RTC driver with support for alarms. From
  8294. Neil Hancock.
  8295. - STM32 L4 QSPI: Add a QSPI driver with DMA support and (optional
  8296. memory mapped mode support. From Dave ziggurat29).
  8297. - STM32, STM32 L4, and STM32 F7 Serial: Add support for compliant
  8298. SD-style breaks. From David Sidrane.
  8299. - STM32 L4 CAN: Add CAN support for STM32L4. From Sebastien Lorquet.
  8300. - STM32 1-Wire: Add support for a custom 1-wire driver. The serial
  8301. driver already supports a 1-wire interface, but this driver uses the
  8302. same serial logic to implement a lower half driver much like the
  8303. I2C lower half driver. From Aleksandr Vyhovanec.
  8304. - STM32 L4 SPI: Add support for SPI 4 and 5 on stm32f411 chips. From
  8305. Konstantin Berezenko.
  8306. - STM32 ADC: Allow omitting use of channels in a lower part of PWM.
  8307. From Pierre-noel Bouteville.
  8308. - STM32 L4 I2C: Get I2C working for STM32L4. From Dave (ziggurat29).
  8309. * STMicro STM32 Boards:
  8310. - STM3220G-EVAL: Add support for both the IAR and uVision GCC IDEs.
  8311. From Kha Vo.
  8312. - STM32F429I Discovery: Add support for the uVision GCC IDE. From
  8313. Kha Vo.
  8314. - STM32F4 Discovery: Integrate BH1750FVI driver in the STM32F4 Discovery
  8315. board. From Alan Carvalho de Assis.
  8316. - STM32L476VG Discovery: Add support for QSPI based N25Qxxx flash.
  8317. From Dave (ziggurat29)
  8318. - STM32L476VG Discovery: Add board ioctls for allowing user application
  8319. to cause QSPI memory mapped mode to be engaged and disengaged. Also
  8320. partitioned QSPI flash for file system and other (eventually xip).
  8321. From Dave (ziggurat29)
  8322. - Nucleo-144: Basic port for the Nucleo-144 board with the STM32F746ZG
  8323. MCU. From Kconstantin Berezenko.
  8324. - STM32F103 Minimum: Add support for this minimual STM32F103CBT6 "blue"
  8325. board. From Alan Carvalho de Assis.
  8326. - STM32F411E Discovery: Add basic configuration for stm32f411e-disco
  8327. board with STM32F411VE chip. From Konstantin Berezenko.
  8328. * Build/Configuration System:
  8329. - Moved NuttX repository to https://bitbucket.org/nuttx/nuttx.
  8330. Eliminated use of sub-modules.
  8331. - Add support for the IAR toolchain for the limited case of the ARMv7-M
  8332. architecture and the STM32 chip. From Aleksandr Vyhovanec.
  8333. - make export: Pass top-level make to the script to allow -j greater
  8334. than 1. From David Sidrane.
  8335. - fs/Kconfig: Allow CONFIG_FS_WRITABLE to be manually selectable. This
  8336. is needed when there are no writable file systems, but write support
  8337. is still needed in BCH or FTL.
  8338. - arch/*/Makefile: Add definitions that can be overrided to use GCC
  8339. instead of LD in the final link. From Paul Alexander Patience .
  8340. * Applications: apps/netutils:
  8341. - apps/netutils/esp8266: ESP8266 driver application. From Pierre-noel
  8342. Bouteville.
  8343. * Applications: apps/examples:
  8344. - apps/examples/alarm: Add a simple test of the ALARM iotcl calls of
  8345. the RTC driver.
  8346. - apps/examples/nximage: Add a configuration option to select
  8347. greyscale.
  8348. * Platforms: apps/platform:
  8349. - apps/platform/nucleo-144: Add platform files for NUCLEO-144
  8350. (NUCLEO-F746ZG). From Mark Olsson.
  8351. - apps/examples/media: You can now override the default device driver
  8352. path by providing an alternal path on the command line. From
  8353. Sébastien Lorquet.
  8354. Works-In-Progress:
  8355. * IEEE802.14.5/6LowPAN. Hooks and framework for this effort were
  8356. introduced in NuttX-7.15. Work has continued on this effort on
  8357. forks from the main repositories, albeit with many interruptions.
  8358. The completion of this wireless feature will postponed until at
  8359. least NuttX-7.17.
  8360. * i.MX6 SMP. Partially functional, but there is more that still
  8361. needs to be done.
  8362. Bugfixes. Only the most critical bugfixes are listed here (see the
  8363. ChangeLog for the complete list of bugfixes and for additional, more
  8364. detailed bugfix information):
  8365. * Core OS:
  8366. - Various places: Search for places where a stray semicolon following
  8367. an if condition cause the if body to be executed unconditionally.
  8368. Fixes in all SAM DMA logic, unionfs, OS signalling logic, and others.
  8369. - enter/leave_critical_section() may attempt to access task lists
  8370. before they have been initialized in the SMP configuration.
  8371. * File System/Block Drivers:
  8372. - SMART MTD: Return code of smart_scan not checked, can cause success
  8373. result in failure case, leading to 'dev' pointer being invalid. From
  8374. Dave (ziggurat29)
  8375. - mount: Fix a backward debug assertion. Noted by David Sidrane.
  8376. * Common Drivers:
  8377. - NRF24L01: Fix backward calculation of relative frequency. Noted by
  8378. Henry Zhang.
  8379. - PCA9555 I/O expander: Fix an error in the PCA9555 driver: Under
  8380. certain error conditions, interrupts were not being re-enabled.
  8381. Sebastien Lorquet.
  8382. - ADS1255: Must not do SPI access from interrupt handler. Use the
  8383. worker thread instead. Must also lock the SPI bus before using it.
  8384. - Several SPI-based drivers modified. All drivers that use SPI must
  8385. call SPI_LOCK and SPI_UNLOCK. This is not optional.
  8386. - MS583730: Fix a bug in crc computation for ms583730. Implement
  8387. POSIX read.
  8388. * Atmel SAMV7:
  8389. - Fix typo in MATRIX register definitions. From Stefan Kolb.
  8390. - SAMV7 Tickless Mode: This is a fix to a problem in the handling of
  8391. the oneshot timer. Due to a wrong assumption concerning the behavior
  8392. directly after the start of the timer/counter the function
  8393. sam_oneshot_cancel(…) calculates the wrong remaining time. The code
  8394. assumes that the counter register is zero directly after the start
  8395. of the timer, but this is not true. To start the time/counter a
  8396. software trigger is invoked, this trigger starts the timer/count and
  8397. sets the counter register to zero, but the reset of the counter
  8398. register is not performed instantly. According to the datasheet:
  8399. "The counter can be reset by a trigger. In this case, the counter
  8400. value passes to zero on the next valid edge of the selected clock."
  8401. Thus the counter is set to zero between 0 and USEC_PER_TICK
  8402. microseconds after the clock was started.
  8403. In my fix I use the freerun count value to determine if at least one
  8404. tick passed since the start of the timer and thus if the value of
  8405. the oneshot counter is correct. I also tried to use the function
  8406. up_timer_gettime(…) to achieve this but, at least if compiled with
  8407. no optimization the problem vanishes without using the value of the
  8408. function, the function call takes too long.
  8409. Another problem treated in the fix is that if the oneshot timer/counter
  8410. is canceled, we only know the remaining time with a precision of
  8411. USEC_PER_TICK microseconds. This means the calculated remaining time
  8412. is between 0 and USEC_PER_TICK microseconds too long. To fix this I
  8413. subtract one tick if the calculated remaining time is greater than
  8414. one tick and otherwise set the remaining time to zero. By doing so
  8415. the measured times are much more precise as without it. From Stefan
  8416. Kolb.
  8417. * Atmel SAMA5:
  8418. - SAMA5: Stefan Kolb's change to the SAMV7 Oneshot Timer should also
  8419. be applied to the SAMA5 oneshot time since the drivers are identical.
  8420. * Atmel SAM3/4:
  8421. - SAM3/4: Stefan Kolb's change to the SAMV7 Oneshot Timer should also
  8422. be applied to the SAM3/4 oneshot time since the drivers are identical.
  8423. * Atmel SAMV7 Drivers:
  8424. - SAMV7 TWIHS (as well as SAM3/4 and SAMA5: Ensure that the TWIHS
  8425. (i2c) hw get's its clock set when the sequence of
  8426. sam_i2cbus_initialize(), sam_i2cbus_uninitialize(), then
  8427. sam_i2cbus_initialize() or twi_reset() is called. I found this a
  8428. while back in the stm32 family, so there may be more arch-es with
  8429. this sort of bug. I suppose any driver that has the notion of "do
  8430. not set the freq if it is already set" could be suspect. From David
  8431. Sidrane.
  8432. - USBHS Device: Remove disabling of whole USB on suspend of USBHS.
  8433. This fix removes the disabling of the whole USB peripheral on
  8434. suspend interrupt. Its enough to freeze the clock instead. When
  8435. disabling the whole peripheral, the next wakeup-interrupt comes up
  8436. with an disabled clocking. The unfreeze clock has no effect, because
  8437. the master clock is disabled. This makes all registers, including
  8438. the IDR unwriteable and the IRQ falls in an endless loop blocking
  8439. the whole system. Furthermore the disabling of the peripheral clock
  8440. prevents hotplugging or reconnecting the USB. From Frank Benkert.
  8441. - MCAN: Fix missing unlock of device in MCAN mcan_txempty(). From
  8442. Frank Benkert.
  8443. * STMicro STM32:
  8444. - STM32 L4 Clocking: Problem with resetting backup domain clears
  8445. clocking options set up before in *rcc.c use INITS flag to avoid
  8446. magic reg value to detect power up reset state of RTC correct a
  8447. problem clearing interrupt flags (they weren't) which prevented an
  8448. alarm from ever being used more than once per reset cycle. From
  8449. Dave (ziggurat29)
  8450. * STMicro STM32 Drivers:
  8451. - STM32L4 SPI: That STM32Lr SPI driver is quite different. They now
  8452. handle frames of arbitrary size between 4 and 16 bits. It was broken
  8453. before a new bit has to be set (RX fifo threshold) to handle <= 8-bit
  8454. transactions. If not set, the default is 16-bit packed >=8-bit
  8455. frames and the RXNE bit is never set (it is set when 16-bits are
  8456. received). weird things as always. This also add 8-bit access
  8457. routines to the data register, because a 16-bit access to the data
  8458. register when the frame size is below 9 bits is interpreted as a
  8459. packed dual frame exchange. Sebastien Lorquet.
  8460. - STM32: Correct some bad commits that broke the LTDC display example.
  8461. From Marco Krahl.
  8462. - STM32 F4 RTC: Fix logic in F4 RTCC driver that prevent ALARM
  8463. interrupt. From Neil Hancock.
  8464. - STM32 F1 ADC: Fix STM32 ValueLine ADC IRQ number selection. From
  8465. David Sidrane.
  8466. * STMicro STM32 Boards:
  8467. - STM32F429I Discovery: Correct some bad commits that broke the LTDC
  8468. display example. From Marco Krahl.
  8469. * TI Tiva:
  8470. - GPIO Interrupts: Fix a bug of GPIO falling-edge interrupt for tiva.
  8471. From Young.
  8472. * C Library:
  8473. - math: Add a NAN test on 'x' in asin function of lib_asin.c. Suggested
  8474. by Pierre-noel Bouteville.
  8475. * Build/Configuration System:
  8476. - Several Makefiles: Add .PHONY definitions to prevent 'clean up to date'
  8477. message weirdness when 'make clean' is done with no .config or
  8478. Make.defs file.
  8479. NuttX-7.17 Release Notes
  8480. ------------------------
  8481. The 117th release of NuttX, Version 7.17, was made on July 25, 2016,
  8482. and is available for download from the Bitbucket.org website. Note
  8483. that release consists of two tarballs: nuttx-7.17.tar.gz and
  8484. apps-7.17.tar.gz. These are available from:
  8485. https://bitbucket.org/nuttx/nuttx/downloads
  8486. https://bitbucket.org/nuttx/apps/downloads
  8487. Both may be needed (see the top-level nuttx/README.txt file for build
  8488. information).
  8489. Additional new features and extended functionality:
  8490. * File System and Block and MTD Drivers:
  8491. - drivers/mtd: Add a driver of IS25xP SPI flash devices. Based on
  8492. sst25xx driver. From Marten Svanfeldt.
  8493. * Networking and Network Drivers:
  8494. - Break out internal interface psock_ioctl().
  8495. * Common Device Drivers:
  8496. - PTYs: Added support for pseduo-terminals: Device drivers that can be
  8497. used for communications between tasks (usually with re-directed I/O).
  8498. Based on existing pipe logic.
  8499. - Button upper half driver: Added support for poll().
  8500. - CAN: Add support for poll. From Paul Alexander Patience.
  8501. - GPIO: Add support for a simple GPIO driver. It supports only pre-
  8502. configured input, output, and interrupting pins with basic input and
  8503. output operations. Interrupt events can lead to notification via a
  8504. signal.
  8505. - I/O Expander: Shadow-Mode: The output- and configuration registers of
  8506. the IO-Expander are held in the microcontrollers memory and only
  8507. written to the IO-Expander. This reduces bus traffic and is more
  8508. error-proof than the normal read-modify-write operation. Retry Mode:
  8509. If enabled and an error occurs while writing to the IO-Expander the
  8510. current transmission is automatically repeated once. From Michael
  8511. Spahlinger.
  8512. - Pipes/FIFOs: Add support to allocating different sizes for pipe and
  8513. fifo buffers. Adds mkfifo2() and pipe2() which are just like mkfifo()
  8514. and pipe(), but allow control of the size of the underlying, in-memory
  8515. circular buffer. Move pipe() and mkpipe() to the C library, they are
  8516. no longer core OS interfaces. Capability currenty used only by PTY
  8517. logic to support, configurable, smaller buffers for PTYs.
  8518. * SYSLOG/Debug Output:
  8519. - SYSLOG: Consolidated all SYSLOG logic in drivers/syslog. Added an
  8520. abstraction layer that supports: (1) redirection of SYSLOG outpout.
  8521. This is usually so that you can boot with one SYSLOG output but
  8522. transition to another SYSLOG output when the OS has initialialized,
  8523. (2) adds common serialization of interrupt output as a configuration
  8524. option. Without this configuration setting, interrupt level output
  8525. will be asynchronous. And (3) vsyslog is now a system call and is
  8526. usable with other-than-FLAT builds.
  8527. - SYSLOG: syslog() will now automatically redirect output to
  8528. lowsyslog() if called from an interrupt handler.
  8529. - Extended SYSLOG logic so that we can send SYSLOG output to a file.
  8530. - SYSLOG character device channel will now expand LF to CR-LF.
  8531. Controllable with a configuration option.
  8532. - Add a SYSLOG character device that can be used to re-direct output
  8533. to the SYSLOG channel (Not be be confused the SYSLGO output to a
  8534. character device).
  8535. - Debug features are now enabled separately from debug output.
  8536. (1) CONFIG_DEBUG is gone. It is replaced with CONFIG_DEBUG_FEATURES.
  8537. (2) The macros dbg() and vdbg() have renamed as _err() and _info(),
  8538. respectively. This also applies to all of the variants as well,
  8539. XXdbg() and XXvdbg(). (3) Add a new debug level, _warn() (and
  8540. all variants XXwarn(), XXvwarn(), etc.). (4) Debug assertions can
  8541. now be enabled separately from debug output. (5) You can now enable
  8542. subsystem/device driver debug output at different output levels. For
  8543. example, CONFIG_DEBUG_FS no longer enables file system debug output
  8544. It enables general file system debug logic and enables selection of
  8545. CONFIG_DEBUG_FS_ERROR, CONFIG_DEBUG_FS_WARN, and CONFIG_DEBUG_FS_INFO.
  8546. - Since the SYSLOG layer now automatically handles low-level vs.
  8547. high-level output, the low-level (ll) variants of the debug macros
  8548. were eliminated.
  8549. - Reviewed all uses of *err(). These macro family should indicate
  8550. only error conditions. Convert *err() to either *info() or add
  8551. ERROR:, depending on if an error is reported.
  8552. - _alert(): New debug macro: _alert(). This is high priority,
  8553. unconditional output and is used to simplify and standardize crash
  8554. error reporting.
  8555. - Many CONFIG_DEBUG_* options did not have matching macros defined in
  8556. include/debug.h. Rather, there were various definitions scattered
  8557. throughout the sourse tree. These were collected together and
  8558. centralized with single macro definitions in include/debug.h
  8559. * Simulation Platform:
  8560. - Added the simulated QSPI (N25Q) flash to the simulation and extened
  8561. flash simulation capabilities to run with MTD drivers based on config
  8562. options (currently m25p, sst26 and w25). From Ken Pettit.
  8563. * Atmel SAMV7 Drivers:
  8564. - SPI: SPI-Freq. 40MHz; VARSELECT; hw-features This change adds the
  8565. following improvements:
  8566. o Increase the allowed SPI-Frequency from 20 to 40 MHz.
  8567. o Correct and rename the "VARSELECT" option This option was
  8568. included in the code as "CONFIG_SPI_VARSELECT" but nowhere
  8569. defined in a Kconfig file. The change renames it to
  8570. "CONFIG_SAMV7_SPI_VARSELECT" and corrects the implementation
  8571. according the datasheet of Atmel. In short, this option
  8572. switches the processor from "fixed peripheral selection"
  8573. (single device) to "variable peripheral selection" (multiple
  8574. devices on the bus).
  8575. o Add a new Function to the interface to control the timing and
  8576. delays of the chip according the ChipSelect lines. This function
  8577. can control the delay between the assertion of the ChipSelect and
  8578. the first bit, between the last bit and the de-assertion of the
  8579. ChipSelect and between two ChipSelects. This is needed to tune
  8580. the transfer according the specification of the connected devices.
  8581. o Add three "hw-features" for the SAMV7, which controls the behavior
  8582. of the ChipSelect:
  8583. - force CS inactive after transfer: this forces a (short) de-
  8584. assertion of the CS after a transfer, even if more data is
  8585. available in time
  8586. - force CS active after transfer: this forces the CS to stay
  8587. active after a transfer, even if the chip runs out of data.
  8588. Btw.: this is a prerequisit to make the LASTXFER bit working
  8589. at all.
  8590. - escape LASTXFER: this suppresses the LASTXFER bit at the end
  8591. of the next transfer. The "escape"-Flag is reset automatically.
  8592. From Frank Benkert
  8593. - TWISHS: Driver improvements from Michael Spahlinger.
  8594. - GPIO-Driver fixed for Open-Drain Pins:
  8595. o sam_gpioread: Now the actual line level from the pin is read
  8596. back. This is extremely important for Open-Drain Pins, which
  8597. can be used bidirectionally
  8598. o Re-Implemented twi_reset-function and enhanced it so it can be
  8599. called from inside the driver (see next point)
  8600. o Glitch-Filter: Added a configuration option to enable the twi-
  8601. built-in glitch filter
  8602. o Added a "Single Master Mode": In EMC Testing the TWI-Bus got
  8603. stuck because the TWI-Master detected a Multi-Master access (but
  8604. there is no second master). With the option "Single Master" we
  8605. detect these events and automatically trigger a twi_reset. We
  8606. also do an automatic recovery if a slave got stuck (SDA stays
  8607. low).
  8608. With the above changes I²C-Bus reliability in harsh environments (eg.
  8609. EMC) is greatly improved. The small change in the GPIO-Driver was
  8610. necessary because otherwise you cannot read back the correct line
  8611. status of Open-Drain Outputs and this is needed by the twi_reset
  8612. function. From Michael Spahlinger
  8613. * NXP Freescale LPC43xx Drivers:
  8614. - EMC: Extend LPC43xx EMC code to support SDRAM on a dynamic memory
  8615. interface. From Vytautas Lukenskas.
  8616. * NXP Freescale Kinetis:
  8617. - Kinetis K64: Add basic support for the K64 family. I leveraged the
  8618. changes from https://github.com/jmacintyre/nuttx-k64f and merged
  8619. into the existing kinetis code with a lot of changes and additions
  8620. (like pin multiplexing definitions).
  8621. * NXP Freescale Kinetis Drivers:
  8622. - Add a KinetisUSB device controller driver. Derived from the pic32mx
  8623. usb driver, which uses the same usb controller. From kfazz.
  8624. - Kinetis pwm support, based on the KL pwm driver. From kfazz.
  8625. - Kinetis Ethernet: Add support for the KSZ8081 PHY.
  8626. - Kinetis Ethernet: Modified Ethernet driver to try all PHY addresses
  8627. and then only fail if the driver cannot find a usable PHY address.
  8628. This means that you no longer have to specific the PHY address in
  8629. advance.
  8630. - Kinetis Ethernet: Add support for CONFIG_NET_NOINTS. The driver no
  8631. longer runs the networking at interrupt level but can defer interrupt
  8632. work to the high-priority work queue.
  8633. * NXP Freescale Kinetis Boards:
  8634. - Teensy-3.x: Add USB support and a usbnsh configuration.
  8635. From kfazz (2016-06).
  8636. - Freedom-K64F: Add support for the NXP Freedom-K64F board at 120MHz.
  8637. This is primarily the work of Jordan Macintyre. I leveraged this
  8638. code from https://github.com/jmacintyre/nuttx-k64f which was, itself,
  8639. a leverage from the old K60 TWR configuration. This includes
  8640. significant corrections (LEDs, buttons, README, etc) and extensions
  8641. and updates to match more recent BSPs.
  8642. - Freedom-K64F: Added a configuration that supports networking.
  8643. * STMicro STM32:
  8644. - STM32 F1-4: Added support for the STM32F105R. From Konstantin
  8645. Berezenko.
  8646. - STM32 F4: Added support for the STM32FF76xxx and STM32FF7xx
  8647. families. From David Sidrane.
  8648. - STM32 F1-4: Add support for Tickless mode (two timer
  8649. implementation). From Max Neklyudov.
  8650. - STM32 L4: Add support for tickless OS, and incidentally timers,
  8651. PWM, oneshot, free-running.... From ziggurat29.
  8652. * STMicro STM32 Drivers:
  8653. - STM32 F1-4: Add the up_getc() function to STM32 in order to support
  8654. the minnsh configuration. From Alan Carvalho de Assis.
  8655. - STM32 F7: Add SPI driver. From David Sidrane.
  8656. - STM32 F7: Add SPI, I2C, and ADC drivers. From Lok Tep.
  8657. - STM32 L4: Add ioctls to set/get CAN bit timing in stm32l4. Add
  8658. ioctl hooks to allow future management of can id filters. From
  8659. Sebastien Lorquet.
  8660. - STM32 L4: Add some CAN mode IOCTL calls. These will be useful for
  8661. device autotest when the application boots. They are redundant
  8662. with the CONFIG_CAN_LOOPBACK option, which can now just be
  8663. interpreted as a default setting. From Sebastien Lorquet.
  8664. - STM32 F1-4: Port STM32L4 CAN IOCTLs to STM32. From Sebastien Lorquet.
  8665. - STM32 L4: Implementation of loopback IOCTLs. From Sebastien
  8666. Lorquet.
  8667. - STM32 F7: Added SDMMC1 support for stm32F7 74-75. From Lok Tep.
  8668. - STM32 F7: Add USB support. From Lok Tep.
  8669. - STM32 F7: Added PWR, RTC, and BBSRAM support for stm32f7. From David
  8670. Sidrane.
  8671. - STM32 F7: Added STMF7xxx RTC. From David Sidrane.
  8672. - STM32 F7: Added STM32F7 DBGMCU. From David Sidrane.
  8673. - STM32 L4: Port support for both RX FIFOs from STM32 CAN. From Paul
  8674. Alexander Patience.
  8675. * STMicro STM32 Boards:
  8676. - Added a minnsh configuration for the STM32F103-Minimum board. From
  8677. Alan Carvalho de Assis .
  8678. - Added support for the Nucleo-F767ZI board. From David Sidrane.
  8679. - Nucleo-144/Nucleo-F767ZI: Add test for STM32 F7 SPI. From David
  8680. Sidrane.
  8681. - Nucleo-144: Added SDMMC support to Nucleo-144. From David Sidrane.
  8682. - Olimex STM32-E4077: Add support for Olimex STM32 E407 board. From
  8683. Mateusz Szafoni.
  8684. - Nucleo-144: Added USB OTG device to Nucleo-144. From David Sidrane.
  8685. - Nucleo-144: Added bbsram test to Nucleo-144. From David Sidrane.
  8686. - STM32F4 Disovery: add CAN support for STM32F4 Discovery. From
  8687. Matthias Renner.
  8688. - STM32F4 Disovery: added a canard configuration files. From
  8689. Matthias Renner.
  8690. - STM32F4 Discovery: Add FPU support for ostest for the STM32F4
  8691. Disovery platform. From David Alessio.
  8692. - STM32L476 Discovery: Update stm32l476 disco to include init code for
  8693. smartfs and nxffs for cases where those fs are included in build.
  8694. From ziggurat29.
  8695. * C Library/Header Files:
  8696. - include/assert.h: Check if NDEBUG is defined. From Paul Alexander
  8697. Patience.
  8698. - assert.h: Define static assert for C++ usage. From Paul Alexander
  8699. Patience.
  8700. - Add crc64 support. From Paul Alexander Patience.
  8701. - hex2bin: Move the portable library portion of apps/system/hex2bin
  8702. the C library with the OS internals. It is used in certain internal
  8703. boot-loader builds.
  8704. - Add raise().
  8705. - libm: This change should significantly improve the performance of
  8706. single precision floating point math library functions. The vast
  8707. majority of changes have to do with preventing the compiler from
  8708. needlessly promoting floats to doubles, performing the calculation
  8709. with doubles, only to demote the result to float. These changes only
  8710. affect the math lib functions that return float. From David Alessio.
  8711. - printf(): If there are no streams, let printf() fall back to use
  8712. syslog() for output.
  8713. - Move pipe() and mkpipe() to nuttx/libc, they are no
  8714. longer core OS interfaces. Capability currenty used only by PTY logi
  8715. to support, configurable, smaller buffers for PTYs.
  8716. - Move driver-related files from include/nuttx to include/nuttx/drivers.
  8717. Move driver related prototypes out of include/nuttx/fs/fs.h and into
  8718. new include/drivers/drivers.h.
  8719. - include /nuttx/lib: Move library-related files from include/nuttx to
  8720. include/nuttx/lib.
  8721. * Build/Configuration System:
  8722. - Custom Board Configuration: Add logic to support custom board
  8723. directories that include a Kconfig file. During the context phase
  8724. of the build, any Kconfig file in the custom board directory is
  8725. copied into configs/dummy, replacing the existing Kconfig file with
  8726. the target Kconfig file.
  8727. - Remove the includes/apps link to apps/include. It is no longer
  8728. used. From Sebastien Lorquet.
  8729. * Tools:
  8730. - tools/tesbuild.sh will now build NxWM configurations.
  8731. * Appplication Build/Configuration System:
  8732. - Change to the way that apps/ Kconfig files are generated in
  8733. order to better support reuse of the apps/ directory in NuttX
  8734. products. Changes include: Make the full tree use wildcards
  8735. make.defs, Add empty preconfig rules to 'leaf' makefiles, Use
  8736. directory.mk for recursive dir makefiles, Individual app kconfig
  8737. fixes, Recursive Kconfig autogeneration, Add kconfig files for
  8738. pcode and tiff, and fix a gitignore rule, From Sébastien Lorquet.
  8739. - apps/include directory structure reorganized. There are no longer
  8740. any header files in the apps/include/. directory. Rather, sub-
  8741. directories were added to match the partitioning of apps/ sub-
  8742. directories and the header files were moved into the appropriate
  8743. sub-directory. This change is intended to help with some changes
  8744. being considered by Sébastien Lorquet.
  8745. - Call all includes from <apps/bla/bla.h> to "bla/bla.h". From Sebastien
  8746. Lorquet.
  8747. - Add apps/include to include path in top-level Make.defs file.
  8748. * Applications: apps/nshlib:
  8749. - Make NSH net-initialization be a configuration option. From Marten
  8750. Svanfeld.
  8751. - Add NTP client initialization in NSH network startup logic. From
  8752. David S. Alessio .
  8753. - 'ps' command now prints out the stack usage if stack coloration is
  8754. enabled. From Frank Benkert.
  8755. - Allow stack usage to be disabled on constrained systems. From David
  8756. Sidrane.
  8757. * Applications: apps/netutils:
  8758. - NTP Client: Add retries. From David S. Alessio.
  8759. - NTP Client: The NTP client will now optionally use pool.ntp.org as
  8760. the NTP server; and reset the retry count upon success -- more robust.
  8761. From David Alessio.
  8762. - ESP8266: Add logic to set the BAUD rate. From Pierre-noel Bouteville.
  8763. - ESP8266: In Kconfig, select ARCH_HAVE_NET when NETUTILS_ESP8266 is
  8764. selected. This allows, among other things, support for network debug
  8765. output. From Pierre-noel Bouteville.
  8766. * Applications: apps/fsutils:
  8767. - flash_eraseall: IOCTL wrapper for MDCIO_BULKERASE command. Was in
  8768. nuttx/drivers/mtd. Moved to apps/fsutils because the call directly into
  8769. the OS was incorrect.
  8770. * Applications: apps/canutils:
  8771. - canlib: Basic CAN utility library. From Sebastien Lorquet.
  8772. * Platforms: apps/system:
  8773. - flash_eraseall: Now uses the IOCTL wrapper at apps/fsutils/flash_eraseall.
  8774. * Platforms: apps/platform:
  8775. - Add platform files for Olimex STM32 E407. From Mateusz Szafoni.
  8776. * Applications: apps/examples:
  8777. - apps/examples/canard: Add canard example application. From
  8778. Matthias Renner.
  8779. - apps/examples/pty_test: PTY test program. From Alan Carvalho de
  8780. Assis.
  8781. Works-In-Progress:
  8782. * IEEE802.14.5/6LowPAN. Hooks and framework for this effort were
  8783. introduced in NuttX-7.15. Work has continued on this effort on
  8784. forks from the main repositories, albeit with many interruptions.
  8785. The completion of this wireless feature will postponed until at
  8786. least NuttX-7.18.
  8787. * i.MX6 SMP. Partially functional, but there is more that still
  8788. needs to be done.
  8789. Bugfixes. Only the most critical bugfixes are listed here (see the
  8790. ChangeLog for the complete list of bugfixes and for additional, more
  8791. detailed bugfix information):
  8792. * Core OS:
  8793. - semaphores: Need to set errno to EINVAL on errors in sem_post()
  8794. and sem_wait(). From Paul Alexander Patience.
  8795. * File System/Block Drivers/MTD Drivers:
  8796. - Several MTD FLASH drivers nullify the freed 'priv' structure and
  8797. failed to return NULL as stated in the comments. Result, will
  8798. operate on a NULL pointer later. Noted by David Sidrane.
  8799. - VFS ioctl(). Per comments from David Sidrane, file_ioctl() should
  8800. not return succeed if the ioctl method is not supported. It
  8801. probably should return ENOTTY in that case.
  8802. - SST26 Driver: Before accessing the sst26 flash, the "Global Unlock"
  8803. command must me executed, which I do in the sst26 driver. BUT re-
  8804. reading the datasheet, the WREN instruction is required to enable
  8805. the execution of this command. This was not done. I have no idea how
  8806. the driver currently works except by chance. The writes should never
  8807. happen at all, the flash is half-enabled! From Sebastien Lorquet.
  8808. - N25Qxx Driver: Alter the notion of 'blocksize' to be equivalent to
  8809. 'flash write page size' in order to align with assumptions in the
  8810. smartfs driver (at least, maybe other things do as well). Correct a
  8811. bug that was previously masked by having blocksize=eraseblocksize
  8812. which would cause buffer overflows and delicious hardfaults.
  8813. Trivial spelling changes in comments, etc. From ziggurat29.
  8814. - SmartFS: Fix a 32-byte memory leak. From Ken Pettit.
  8815. - SMART MTD layer: Fixes freesector logic error when sectorsPerBlk=256,
  8816. adds DEBUGASSERT for invalid geometry and additional memory debug
  8817. logic. Also fixes the dangling pointer on error bug. From Ken
  8818. Pettit.
  8819. * Common Drivers:
  8820. - USB CDC/ACM Device Class: cdcacm_unbind leaks write request objects.
  8821. This arises due to freeing the bulk IN endpoint before the loop
  8822. that frees the requests via cdcasm_freereq. That function checks
  8823. the parameters and skips the freeing if either is NULL. Freeing
  8824. the bulk IN enpoint will cause the first param to be NULL, thereby
  8825. bypassing the free operation. To fix, I moved the release of the
  8826. bulk IN endpoint until after to loop (much as was the case for the
  8827. OUT and read requests, which did not exhibit the problem). From
  8828. ziggurat29.
  8829. - Pipes and FIFOs: Add missing configuration for pipe ring buffer
  8830. size. From Frank Benkert.
  8831. - UART 16550: Handle when CONFIG_SERIAL_UART_ARCH_IOCTL is not
  8832. enabled. From Heath Petersen.
  8833. - Common Serial Upper Half: Fix a race condition noted by Stefan
  8834. Kolb. Between the test if the TX buffer is full and entering a
  8835. critical section, bytes may be removed from the TX buffer making
  8836. the wait unnecessary. The unnecessary wait is an inefficiency,
  8837. but not really a problem. But with USB CDC/ACM it can be a problem
  8838. because the entire TX buffer may be emptied when we lose the race.
  8839. If that happens that uart_putxmitchar() can hang waiting for data
  8840. to be removed from an empty TX buffer.
  8841. - USB MSC Device Class: Add locks when removing request from queue.
  8842. From Wolfgang Reissnegger.
  8843. - USB MSC Device Class: Fix reversed logic on waiting for SCSI thread
  8844. start. The scsi thread was waiting for the wrong condition.
  8845. However, this was masked by the fact that the code creating the
  8846. scsi thread was also holding usbmsc_scsi_lock(priv) while
  8847. initializing data, hence this lock synchronized the scsi thread
  8848. start with init completion. From Wolfgang Reissnegger.
  8849. * Graphics and Graphic Drivers:
  8850. - Correct conditional compilation in ST7565 LCD driver. From Pierre-
  8851. noel Bouteville
  8852. * Networking:
  8853. - In both IPv6 and IPv4 incoming logic: (1) Should check if the
  8854. packet size is large enough before trying to access the packet
  8855. length in the IP header. (2) In the comparison between the IP
  8856. length and the full packet length, need to subtract the size of
  8857. he link layer header before making the comparison or we will get
  8858. false positives (i.e., the packet is really too small)
  8859. - TCP Networking: While working with version 7.10 I discovered a
  8860. problem in TCP stack that could be observed on high network load.
  8861. Generally speaking, the problem is that RST flag is set in
  8862. unnecessary case, in which between loss of some TCP packet and its
  8863. proper retransmission, another packets had been successfully sent.
  8864. The scenario is as follows: NuttX did not receive ACK for some sent
  8865. packet, so it has been probably lost somewhere. But before its
  8866. retransmission starts, NuttX is correctly issuing next TCP packets,
  8867. with sequence numbers increasing properly. When the retransmission
  8868. of previously lost packet finally succeeds, tcp_input receives the
  8869. accumulated ACK value, which acknowledges also the packets sent in
  8870. the meantime (i.e. between unsuccessful sending of lost packet and
  8871. its proper retransmission). However, variable unackseq is still set
  8872. to conn->isn + conn->sent, which is truth only if no further
  8873. packets transmission occurred in the meantime. Because of incorrect
  8874. (in such specific case) unackseq value, few lines further condition
  8875. if (ackseq <= unackseq)is not met, and, as a result, we are going to
  8876. reset label. From Jakub Lagwa.
  8877. * ARMv7-M:
  8878. - ARM stack check: Fix double fault on IDLE task with stack size = 0.
  8879. From David Sidrane.
  8880. * Atmel SAMV7 Drivers:
  8881. - CAN: CAN Message Filtering fixed: (1) stdfilters didn't work because
  8882. the filter was never enabled (wrong number of bits to shift), and
  8883. (2) Filters were never used because the configuration register
  8884. cannot be written without using the initialization mode. Both bugs
  8885. are fixed by this change. Filtering has been tested with both
  8886. standard and extended identifiers and is now working properly. From
  8887. Michael Spahlinger.
  8888. * Atmel SAMA5:
  8889. * Atmel SAM3/4 Drivers:
  8890. - Fix some errors in AFEC header file. From OrbitalFox.
  8891. - DAC: DACC_WPMR_WPKEY_MASK -> DACC_WPMR_WPKEY. From Wolfgang
  8892. Reissnegge.
  8893. - Timer: Fix ops check in TCIOC_STOP. From Wolfgang Reissnegge.
  8894. - I2C: Fix reversed logic in twi_startmessage(). From Wolfgang
  8895. Reissnegger.
  8896. - SAM3/4 UDP: Fix handling of endpoint RX FIFO banks. This fixes
  8897. a race condition where the HW fills a FIFO bank while the SW is
  8898. busy, resulting in out of sequence USB packets.
  8899. * Atmel SAMV7 Drivers:
  8900. - USBHS Device: This change solves a problem which causes data loss
  8901. while sending data via USB. This problem is caused by an incorrect
  8902. handling of the endpoint state in the USB driver sam_usbdevhs. This
  8903. leads under some circumstances to situations in which an DMA
  8904. transfer is setup while a previous DMA transfer is currently active.
  8905. Amongst other things I introduced the new endpoint state
  8906. USBHS_EPSTATE_SENDING_DMA for the fix. To reproduce the problem, I
  8907. used a program which send as many data as possible via a CDC/ACM
  8908. device and verified the received data on the PC. From Stefan Kolb.
  8909. * NXP Freescale Kinetis Drivers:
  8910. - Timers: Support up to 8 channels per timer. From kfazz.
  8911. * NXP Freescale Kinetis Boards:
  8912. - Teensy 3.x clock fixes: The High Gain bit in MCG_C1 was preventing
  8913. teensy from booting except after a programming session. The second
  8914. change doesn't appear to change any functionality, but complies with
  8915. restrictions in the k20 family reference manual on FEI -> FBE clock
  8916. transiions. From kfazz.
  8917. * NXP Freescale LPC17xx Drivers:
  8918. - LPC17 Ethernet: Needs to correctly ignore PHYID2 revision number
  8919. when comparing PHY IDs.
  8920. * NXP Freescale LPC43xx Drivers:
  8921. - Fix errors in GPIO interrupt logic. From v01d (phreakuencies)
  8922. - Ethernet: Correct auto-negotiation mode in the LPC43xx Ethernet.
  8923. From Alexander Vasiljev
  8924. - Writing zero to NVIC_IRQ_ENABLE has no effect. Disable interrupts
  8925. with NVIC_IRQ_CLEAR. From Paul Alexander Patience.
  8926. - SPIFI: If CONFIG_SPIFI_SECTOR512 undefined, lpc43_bwrite doesn't do
  8927. actual write (probably copy/paste errors). Still not sure about
  8928. current state of lpc43_spifi implementation, but for me NXFFS works
  8929. with this change. From Vytautas Lukenskas.
  8930. * Qemu-i486:
  8931. - Fix qemu-i486/ostest/Make.defs test for M32. From Heath Petersen.
  8932. * SiLabs EFM32 Drivers:
  8933. - Fix EFM32 FLASH conditional compilation. From Pierre-noel
  8934. Bouteville
  8935. - Writing zero to NVIC_IRQ_ENABLE has no effect. Disable interrupts
  8936. with NVIC_IRQ_CLEAR. From Paul Alexander Patience.
  8937. * STMicro STM32:
  8938. - STM32 F1-F4: In PWM driver, just update duty if frequency is not
  8939. changed and PSM started. This removeis glitch or blinking when
  8940. only duty is frequently changed. From Pierre-noel Bouteville.
  8941. * STMicro STM32 Drivers:
  8942. - STM32 F7: Fixed STM32F7 DMA stm32_dmacapable. DMA working on SDMMC.
  8943. From David Sidrane.
  8944. - STM32 F1-F4 Timer Driver: Change calculation of per- timer pre-scaler
  8945. value. Add support for all timers
  8946. - STM32 F1-F4: Correct conditional compilation in STM32 timer capture
  8947. logic. From Pierre-noel Bouteville
  8948. - STM32 F1-F4: Fix STM32 DMA code and configuration for STM32F37X chips.
  8949. From Marten Svanfeldt.
  8950. - STM32 F1-F4: Fix compilation errors in debug mode of stm32_pwm.c.
  8951. From Konstantin Berezenko.
  8952. - STM32 F1-F4: Correct the CAN2 RX IRQ number for stm32f10xx chips.
  8953. From Konstantin Berezenko.
  8954. - STM32 F1-F4: Move backup domain reset to to earlier in the
  8955. initialization sequence (stm32_rcc.c() in order to avoid disabling
  8956. LSE during RTC initialiation. From Alan Carvalho de Assis.
  8957. - STM32 F1-F4: When configuring a GPIO via stm32_configgpio() the
  8958. function will first set the mode to output and then set the initial
  8959. state of the gpio later on. If you have an application with an
  8960. externaly pulled-up pin, this would lead to a glitch on the line
  8961. that may be dangerous in some applications (e.G. Reset Line for
  8962. other chips, etc). This changes sets the output state before
  8963. configuring the pin as an output. From Pascal Speck .
  8964. - STM32 F7: Apply Pascal Speck's GPIO STM32 change to STM32 L4.
  8965. - STM32 L4: Apply Pascal Speck's GPIO STM32 change to STM32 L4.
  8966. From Sebastien Lorquet.
  8967. - STM32 F7: BUGFIX: PLLs IS2 and SAI P Calculation. From David
  8968. Sidrane.
  8969. - STM32 L4: STM32 CAN fixes need to be backported to STM32L4 as well.
  8970. - STM32 F1-F4 and L4: Writing zero to NVIC_IRQ_ENABLE has no effect.
  8971. Disable interrupts with NVIC_IRQ_CLEAR. From Paul Alexander
  8972. Patience.
  8973. - STM32 F7: STMF7xxx RTC: (1) Remove proxy #defines, (2) Ensure the
  8974. LSE(ON) etal are set and remembered in a) A cold start (RTC_MAGIC
  8975. invalid) of the RTC, and b) A warm start (RTC_MAGIC valid) of the
  8976. RTC but a clock change. The change was needed because in bench
  8977. testing a merge of the latest's STM32 53ec3ca (and friends) it
  8978. became apparent that the sequence of operation is wrong in the
  8979. reset of the Backup Domain in the RCC code. PWR is required before
  8980. the Backup Domain can be futzed with. !!!This Code should be tested
  8981. on STM32 and if needed rippled to the STM32 families. From David
  8982. Sidrane.
  8983. - STM32 F1-F4: STM32 BBSRAM fixed (and formatted) flags. From David
  8984. Sidrane.
  8985. - STM32 F7: STM32F7 BBSRAM fixed (and formatted) flags. From David
  8986. Sidrane.
  8987. - STM32 L4: Fix incorrect clock setup for LPTIM1. From ziggurat29.
  8988. - STM32 F4/L4 RTC ALARM: were enabling interrupts too early in the
  8989. power-up sequence, BEFORE the interrupt system was being
  8990. initialized.
  8991. * STMicro STM32 Boards:
  8992. - STM32 board.h: Fix STM32 timer input clock definitions. From David
  8993. Sidrane.
  8994. * TI Tiva Drivers:
  8995. - Bug Fix in tiva_serial.c - UART5, UART6 and UART7 were not being
  8996. configured as TTYS0 for printing over serial console. From Shirshak
  8997. Sengupta.
  8998. * C Library/Header Files:
  8999. - include/signal.h: Change type of SIG_ERR, SIG_IGN, ... to
  9000. _sa_handler_t. The type void does not work with the IAR toolchain.
  9001. From Aleksandr Vyhovanec.
  9002. - crc16: fix error. From Paul Alexander Patience.
  9003. - strtoul() and strtoull(): Fix errno settings required by function
  9004. definition. Resolved Bitbucket Issue #1. From Sebastien Lorquet.
  9005. * Build/Configuration System:
  9006. - Build system: This change fixes a build problem that only occurs
  9007. when reconfiguring from Linux to Windows or vice-versa. It is a
  9008. problem that was present but not usually experienced until two
  9009. things happened: (1) The pre_config target was added to run before
  9010. the menconfig operation and (2) the context target was added before
  9011. the pre_config target in order to set up the correct symbolic links
  9012. (in the apps/platform directory) needed by the pre_config target.
  9013. But then now if you start with a Linux system and run 'make
  9014. menuconfig' to switch to Linux, the context target will execute
  9015. first and set up POSIX style symbolic links before doing the
  9016. menuconfig. Then after the menuconfig, the make will fail on
  9017. Windows if you are using a Windows native toolchain because that
  9018. native toolchain cannot follow the Cygwin- style symbolic links.
  9019. The fix here is to also execute the clean_context AFTER executing
  9020. menuconfig. A lot more happens now: It used to be that doing
  9021. 'make menuconfig' only did the menuconfig operation. Now it does
  9022. context, pre_config, menuconfig, clean_context. Not nearly as
  9023. snappy as it used to be.
  9024. - Need to build the drivers/ directory even it file descriptors are
  9025. not supported. There are things in the drivers/ directory that are
  9026. still needed (like SYSLOG logic).
  9027. - Remove all inclusion of header files from the apps/include
  9028. directory from NuttX core logic. There should be no dependency on
  9029. logic within NuttX on logic within apps/. This caused a lot of
  9030. reshuffling of logic: binfmt pcode support, usbmonitor is now a
  9031. kernel thread, TZ/Olson database moved to libc/zoneinfo.
  9032. * Application Build/Configuration System:
  9033. - Make sure that APPNAME is defined in all Makefiles that generate
  9034. applications. From Sebastien Lorquet.
  9035. * apps/builtins:
  9036. - apps/builtins: exec_builtin was not using the provided open flags.
  9037. As a result >> redirection was not working; it was treated the same
  9038. as >.
  9039. * apps/nshlib:
  9040. - apps/nshilib: PS Command: When Priority Inheritance is enabled, the
  9041. format of /proc/<PID>/status changes to show both the current
  9042. priority and the thread’s base priority. This messes up the format
  9043. of cmd_ps. From David Alessio.
  9044. * apps/netutils:
  9045. - apps/netutils, uIP webserver: Fix a data declaration in a header
  9046. file.
  9047. * apps/canutils:
  9048. - apps/canutils/libuavcan: Fix for recent change to STM32 timer
  9049. frequency definiitions.
  9050. * apps/examples:
  9051. - apps/examples/alarm: ioctl call was clobbering file descriptor.
  9052. - apps/examples/can: Some variables were not declared in all required
  9053. cases. From Sebastien Lorquet.
  9054. - apps/examples/media: media example was intended to take either a
  9055. command line argument, or a compiled-in default value from config.
  9056. However, the default was ignored, leading to confusing error
  9057. messages. From ziggurat29.
  9058. NuttX-7.18 Release Notes
  9059. ------------------------
  9060. The 118th release of NuttX, Version 7.18, was made on October 8, 2016,
  9061. and is available for download from the Bitbucket.org website. Note
  9062. that release consists of two tarballs: nuttx-7.18.tar.gz and
  9063. apps-7.18.tar.gz. These are available from:
  9064. https://bitbucket.org/nuttx/nuttx/downloads
  9065. https://bitbucket.org/nuttx/apps/downloads
  9066. Both may be needed (see the top-level nuttx/README.txt file for build
  9067. information).
  9068. Additional new features and extended functionality:
  9069. * Core OS:
  9070. - Add standard adjtime() interface and basic timekeeping support.
  9071. Normally used with an NTP client to keep system time in
  9072. synchronization. From Max Neklyudov.
  9073. - Use the oneshot timer with optional entropy to measure CPU load if
  9074. so configured.
  9075. * File System and Block and MTD Drivers:
  9076. - Add Fujistu MB85RS256B ramtron support. From Beat Küng.
  9077. - SPI-based MTD driver for Macronix MX25L3233F or MX25L6433F. From
  9078. Aleksandr Vyhovanec.
  9079. * Graphics/Display Drivers:
  9080. - SH1106 0.96 OLED module support (SSD1306 compatible) + I2C fixes.
  9081. From v01d (phreakuencies).
  9082. * Sensor Drivers:
  9083. - Add KXTJ9 Accelerometer driver from the Motorola Moto Z MDK.
  9084. - Add MFRC522 RFID ISO14443 and Mifare transceiver driver. From Alan
  9085. Carvalho de Assis.
  9086. - Add driver for the LIS3MDL 3 axis magnetometer. From Alexander
  9087. Entinger.
  9088. - Add driver for the MLX90393 3 axis magnetometer. From Alexander
  9089. Entinger.
  9090. - Add driver for the LIS3DSH 3 axis accelerometer. From Alexander
  9091. Entinger.
  9092. - Add driver for the Bosch BMG160 3 axis gyroscope. From Alexander
  9093. Entinger.
  9094. - Add support for the Sensixs XEN1210 3D-board. This sensor is used
  9095. on NANOSATC-BR2 a Brazillian CUBESAT project. From Alan Carvalho
  9096. de Assis.
  9097. - Add a new ioctl command (set MAXPOS) for Tiva QEI. From Young.
  9098. * Other Common Device Drivers:
  9099. - I/O Expander: Remove hard-coded PCA9555 fields from ioexpander.h
  9100. definitons. Add support for an attach() method that may be used
  9101. when any subset of pin interrupts occur.
  9102. - I/O Expander Interface: Encode and extend I/O expander options to
  9103. include interrupt configuration.
  9104. - PCA9555 Driver: Replace the signalling logic with a simple callback
  9105. using the new definitons of ioexpander.h. This repartitioning of
  9106. functionality is necessary because (1) the I/O expander driver is
  9107. the lower-lower part of any driver that uses GPIOs (include the GPIO
  9108. driver itself) and should not be interacting directly with the much
  9109. higher level application layer. And (2) in order to be compatible
  9110. with the GPIO driver (and any arbitrary upper half driver), the
  9111. PCA9555 should not directly signal, but should call back into the
  9112. upper half. The upper half driver that interacts directly with the
  9113. application is the appropriate place to be generating signal.
  9114. - Add a skeleton I/O Expander driver (based on the PCA9555 driver).
  9115. - Add PCF8574 I/O Expander driver.
  9116. - GPIO driver: Add IOCTLs to get the pin type and to unregister a
  9117. signal handler.
  9118. - Add a GPIO lower-half driver that can be used to register a GPIO
  9119. character driver for accessing pins on an I/O expander.
  9120. - Add an SPI helper function that encapsulates and manages a sequence
  9121. of SPI transfers.
  9122. - Add an SPI character driver that will permit access to the SPI bus
  9123. for testing purposes.
  9124. - Add oneshot timer lower half interface definition.
  9125. - Add an upper-half, oneshot timer character driver.
  9126. - Add Audio Tone Generator for NuttX. From Alan Carvalho de Assis.
  9127. - Add USB host support for composite devices. This feature is not
  9128. well tested.
  9129. - drivers/ioexpander: Add an (untested) TCA64XX I/O Expander driver
  9130. leveraged from Project Ara.
  9131. * Simulation Platform:
  9132. - Add a simulated I/O Expander driver.
  9133. - Add simulator-based test support for apps/examples/gpio.
  9134. - Add a configuration useful for testing Mini Basic.
  9135. - Add a simulated oneshot lowerhalf driver.
  9136. * Atmel SAM3/4 Drivers:
  9137. - SAM4CM: Add option to support oneshot timer without free-running
  9138. timer. Add oneshot lower half driver.
  9139. * Atmel SAMA5 Drivers:
  9140. - SAMA5D: Add option to support oneshot timer without free-running
  9141. timer. Add oneshot lower half driver.
  9142. * Atmel SAMV7 Drivers:
  9143. - SAMV71/SAME70: Add option to support oneshot timer without
  9144. free-running timer. Add oneshot lower half driver.
  9145. - Add support for SAMV7 DACC module. From Piotr Mienkowski.
  9146. * NXP Freescale Kinetis Drivers:
  9147. - Add support for I2C and RTC. From v01d (phreakuencies).
  9148. * NXP Freescale Kinetis Boards:
  9149. - Add teensy 3.x I2C support. From v01d (phreakuencies).
  9150. * STMicro STM32:
  9151. - Add IAR-style STM32F1xx vectors. Tested on STM32F103RB and
  9152. STM32F107RC. From Aleksandr Vyhovanec.
  9153. * STMicro STM32 Drivers:
  9154. - Add timekeeping support for the STM32 tickless mode. From Max
  9155. Neklyudov.
  9156. - Add a oneshot, lower-half driver for STM32.
  9157. - STM32 L4: Add oneshot lower half driver for STM32 L4.
  9158. - STM32 L4: Add support for quadrature encoders on STM32L4. Sebastien
  9159. Lorquet.
  9160. * STMicro STM32 Boards:
  9161. - stm32f103-minimum: Add board support to MFRC522 driver. From Alan
  9162. Carvalho de Assis.
  9163. - Add oneshot board initialization to stm32f103-minimum. From Alan
  9164. Carvalho de Assis.
  9165. - stm32f103-minimum: Add board configuration to initialize Audio Tone
  9166. Generator. From Alan Carvalho de Assis.
  9167. - stm32bufferfly2: Add support for the Kamami stm32butterfly2
  9168. development board with optional ETH phy. From Michal Lyszczek.
  9169. - stm32f103-minimum: Add board config support to SPI LCD module
  9170. JLX12864G-086. From Alan Carvalho de Assis.
  9171. - stm32l476-mdk: Support basic booting and nsh on Motorola MDK. The
  9172. Motorola MDK is based off of an earlier version of NuttX.
  9173. This only provides a basic NSH shell. From Jim Wylder.
  9174. - STM32 F4 Discovery: Add support for XEN1210 3D-board. From Alan
  9175. Carvalho de Assis.
  9176. - stm32f103-minimum: Add stm32_bringup support and userled example to
  9177. STM32F103 Minimum board. From Alan Carvalho de Assis.
  9178. - Add support for qencoders on various nucleo boards. From Sebastien
  9179. Lorquet.
  9180. - olimex-stm32-e407: Add some networking configurations. From Mateusz
  9181. Szafoni.
  9182. * TI Tiva Drivers:
  9183. - Add tiva PWM lower-half driver implementation. From Young.
  9184. - Tiva QEI: Add QEI lower-half driver for Tiva series chip. From
  9185. Young.
  9186. * C Library/Header Files:
  9187. - Separate XorShift128 PRNG from /dev/urandom and make it generally
  9188. available.
  9189. - Add POSIX type sig_atomic_t. From Sebastien Lorquet.
  9190. - Add the difftime() function. The function depends on the toolchain-
  9191. dependent CONFIG_HAVE_DOUBLE so is not available on tiny platforms.
  9192. From Sebastien Lorquet.
  9193. - Add support for remove(). From Sebastien Lorquet.
  9194. - Add system() to stdlib.h. Actual implementation is in
  9195. apps/system/system.
  9196. * Build/Configuration System:
  9197. - Rename arch/sh to arch/renesas.
  9198. - Remove contactless drivers from drivers/wireless to drivers
  9199. contactless. From Sebastien Lorquet.
  9200. - Move all modem-related IOCTL commands to a common file to assure
  9201. that they will be unique.
  9202. * Tools:
  9203. - Add sethost.sh. This is a script that you can use to quickly
  9204. change the host platform from Linux to Windows/Cygwin. Might save
  9205. you a lot of headaches.
  9206. * Applications: apps/nshlib:
  9207. - Add logic to support an NSH-specific system command.
  9208. - Add printf command to NSH, e.g., controlling /dev/userleds from
  9209. command line: nsh> printf \x01 > /dev/userleds. From Alan Carvalho
  9210. de Assis.
  9211. * Platforms: apps/system:
  9212. - Port tee command from NetBSD.
  9213. - Add a generic system command. Current implentation cannot use
  9214. /bin/sh and spawns the custom NSH system command directly.
  9215. * Platforms: apps/platform:
  9216. - Add C++ support for STM32L476-MDK.
  9217. * Platforms: apps/interpreters:
  9218. - Add a port of Mini Basic, version 1.0, written by Malcom McLean and
  9219. released under the Creative Commons Attribution license.
  9220. * Applications: apps/examples:
  9221. - Add a simple test of the GPIO driver.
  9222. - Add RFID_READUID sample application. From Alan Carvalho de Assis.
  9223. - Add Oneshot timer example.
  9224. - Add a simple test of the system command.
  9225. Works-In-Progress:
  9226. * IEEE802.14.5/6LowPAN. Hooks and framework for this effort were
  9227. introduced in NuttX-7.15. Work has continued on this effort on
  9228. forks from the main repositories, albeit with many interruptions.
  9229. The completion of this wireless feature will postponed until at
  9230. least NuttX-7.19.
  9231. Bugfixes. Only the most critical bugfixes are listed here (see the
  9232. ChangeLog for the complete list of bugfixes and for additional, more
  9233. detailed bugfix information):
  9234. * Core OS:
  9235. - Explicitly initialize the group tg_exitsem with sem_init(). The
  9236. existing logic worked because the correct initialization value is
  9237. all zero, but it is better to initialize the semaphore explicitly.
  9238. - The TCB nchildren field should not be incremented when pthreads are
  9239. created.
  9240. - Move fields related to parent/child task relationship out of TCB
  9241. into group structure where they belong. Child is a group, not a
  9242. thread.
  9243. - mq_send() was not setting the errno value on certain failures to
  9244. allocate a message.
  9245. - Define 'group' even if HAVE_GROUPID is not set. From Mateusz
  9246. Szafoni.
  9247. - Vector table should have dimension NR_IRQS, not NR_IRQS+1. From
  9248. Sagitta Li.
  9249. - pthreads: When a pthread is started, there is a small bit
  9250. of logic that will run on the thread of execution of the new
  9251. pthread. In the case where the new pthread has a lower
  9252. priority than the parent thread, then this could cause both the
  9253. parent thread and the new pthread to be blocked at the priority of
  9254. the lower priority pthread (assuming that CONFIG_PRIORITY_INHERITANCE
  9255. is not selected). This change temporarily boosts the priority of the
  9256. new pthread to at least the priority of the new pthread to at least
  9257. the priority of the parent thread. When that bit of logic has
  9258. executed on the thread of execution of the new pthread, it will then
  9259. drop to the correct priority (if necessary) before calling into the
  9260. new pthread's entry point.
  9261. * File System/Block Drivers/MTD Drivers:
  9262. - FAT performance improvement. In large files, seeking to a
  9263. position from the beginning of the file can be very time consuming.
  9264. ftell does lssek(fd, 0, SET_CURR). In that case, that is wasted
  9265. time since we are going to seek to the same position. This fix
  9266. short-circuits fat_seek() in all cases where we attempt to seek to
  9267. current position. Suggested by Nate Weibley.
  9268. - MTD: Fixed cloned typos in several FLASH drivers. From Aleksandr
  9269. Vyhovanec.
  9270. - mount: Corrects a bad assertion noted by Pierre-noel Bouteville.
  9271. Also fixes a reference counting problem in an error condition:
  9272. When the mountpoint inode is found but is not an appropriate
  9273. mountpoint, the reference count on the inode was not being
  9274. decremented.
  9275. * Common Drivers:
  9276. - Various serial drivers: Fix FIONWRITE and add FIONSPACE. All
  9277. implementations of FIONWRITE were wrong. FIONWRITE should return
  9278. the number of bytes waiting in the outgoing send queue, not the free
  9279. space. Rather, FIONSPACE should return the free space in the send
  9280. queue.
  9281. - Add missing prototype for btn_lower_initialize().
  9282. - Make DAC sample structure packed. From Marc Rechté.
  9283. * Networking:
  9284. - TCP: tcp_ipvX_bind() not actually using the port selected with
  9285. port==0. Also removes duplicate call to pkt_input(). Issues noted
  9286. by Pascal Speck.
  9287. - drivers/net: NET_TUN=y => NET_MULTIBUFFER=y. From Vladimir
  9288. Komendantskiy.
  9289. - slip driver: Fix calculations using MSEC_PER_TICK. If
  9290. USEC_PER_TICK is less than 1000, then MSEC_PER_TICK will be
  9291. zero. It will be inaccurate in any case.
  9292. * Atmel SAM3/4 Drivers:
  9293. - SAM3/4 GPIO: Enable peripheral clock for GPIO port when GPIO is
  9294. configured as input. The value of a GPIO input is only sampled when
  9295. the peripheral clock for the port controller the GPIO resides in is
  9296. enabled. Therefore we need to enable the clock even when polling a
  9297. GPIO. From Wolfgang Reissnegger.
  9298. - All SAM Ethernet Drivers: Add support so that the drivers can be
  9299. built with CONFIG_NET_MULTIBUFFER=y.
  9300. - SAM3/4: Fix GPIO pull-up/down code. Enabling the pull-down resistor
  9301. while the pull-up resistor is still enabled is not possible. In this
  9302. case, the write of PIO_PPDER for the relevant I/O line is discarded.
  9303. Likewise, enabling the pull-up resistor while the pull-down resistor
  9304. is still enabled is not possible. In this case, the write of
  9305. PIO_PUER for the relevant I/O line is discarded. From Wolfgang
  9306. Reißnegger.
  9307. * Atmel SAMV7 Drivers:
  9308. - All SAM Ethernet Drivers: Add support so that the drivers can be
  9309. built with CONFIG_NET_MULTIBUFFER=y.
  9310. - SAM GPIO: Apply Wolfgang's change for SAM3/4 to SAMA5 and SAMV7.
  9311. * Atmel SAMA5:
  9312. - Add missing oneshot max_delay method.
  9313. - All SAM Ethernet Drivers: Add support so that the drivers can be
  9314. built with CONFIG_NET_MULTIBUFFER=y.
  9315. - SAM GPIO: Apply Wolfgang's change for SAM3/4 to SAMA5 and SAMV7.
  9316. * NXP Freescale LPC43xx Drivers:
  9317. - LPC43xx serial: Fix typos in LPC43 serial driver. Found by Vytautas
  9318. Lukenskas.
  9319. - LPC43xx Serial: There are some small problems in LPC43xx RS485 mode
  9320. configuration. In particular: (1) UART0,2,3 do not have DTR pins
  9321. (different from UART1), so, Kconfig needs to be adjusted. (2)
  9322. lpc43_uart.c in RS485 mode only configures DIR pin, but doesn't
  9323. enable pin output for UART0,2,3. (3) should be option to reverse DIR
  9324. control pin output polarity. (4) lpc43xx/chip/lpc43_uart.h doesn't
  9325. have USART3 definitions. NOTE: I didn't modified and didn't tested
  9326. USART1, as it has different hardware. From Vytautas Lukenskas.
  9327. From Vytautas Lukenskas.
  9328. * SiLabs EFM32 Drivers:
  9329. - EFM32 SPI drivers adopted incompatible conventions (See STM32 for
  9330. details of the issue).
  9331. * STMicro STM32 Drivers:
  9332. - STM32, STM32 L4, and EFM32 SPI drivers adopted incompatible
  9333. conventions somewhere along the line. They set the number of bits
  9334. to negative when calling SPI_SETBITS which had the magical side-
  9335. effect of setting LSB first order of bit transmission. This is not
  9336. only a hokey way to pass control information but is supported by no
  9337. other SPI drivers. This change three things: (1) It adds
  9338. HWFEAT_LSBFIRST as a new H/W feature. (2) It changes the
  9339. implementations of SPI_SETBITS in the STM32 and EFM32 drivers so
  9340. that negated bit numbers are simply errors and it adds the
  9341. SPI_HWFEATURES method that can set the LSB bit order, and
  9342. (3) It changes all calls with negative number of bits from all
  9343. drivers: The number of bits is now always positive and
  9344. SPI_HWFEATURES is called with HWFEAT_LSBFIRST to set the bit order.
  9345. - Add missing SPI2 and SPI3 support for STM32F3F3. Add STM32F37XX DMA
  9346. channel configuration. For STM32F37XX, SYSCFG_EXTICR_PORTE defined
  9347. twice. From Alan Carvalho de Assis.
  9348. - STM32: Make stm32_pwr_enablebkp thread safe. From Max Neklyudov.
  9349. - Fix bad pllmul values for STM32F1XX connectivity line. STM32F1XX
  9350. connectivity line supports only x4, x5, x6, x7, x8, x9 and x6.5
  9351. values. From Michal Lyszczek.
  9352. - STM32F3 SPI: Fix the number of bit setting for the F3. That and
  9353. data packing work differently on the STM32F3 than for other STM32
  9354. parts.
  9355. - STM32 and STM32 L4: Enabling SPI DMA loses other bits in CR2.
  9356. - STM32F3 SPI: Cannot write always 16-bit value to DR register
  9357. because of how the F3 implements data packing.
  9358. - STM32F411 and STM32F446 map i2c2_sda_4 to different alternate
  9359. function numbers. From Konstantin Berezenko.
  9360. - STM32 DMA Fix: Change stm32 adc dma callback to send channel
  9361. number instead of index. From Konstantin Berezenko.
  9362. - STM32 OTGFS device: Fix for lost first word from FIFO
  9363. 1) Do not overwrite Reserved Bits in GINTSTS (per ref manual)*
  9364. 2) Acknowledge all pending int on entry to ISR that are Only rc_w1*
  9365. 3) Do not disable RXFVL*
  9366. 4) Loop until RXFVL is cleared*
  9367. 5) Only clear the NAK on the endpoint on the OTGFS_GRXSTSD_PKTSTS_SETUPDONE to not loose the first WORD of FIFO all the data (Bug Fix)
  9368. Changed marked *are just driver clean up and ensure ints are not lost. The bug fix is #5
  9369. Test case open putty and observer the Set/Get LineCoding. Without this fix #5 the Get will not match the Set, and in fact the data might be skewed by 4 bytes, that are lost from the FIFO if the OTGFS_DOEPCTL0_CNAK bit is set in the OTGFS_GRXSTSD_PKTSTS_SETUPRECVD as opposed to the OTGFS_GRXSTSD_PKTSTS_SETUPDONE
  9370. Set Line Coding DATA1: 4B | 00 c2 01 00 00 00 08 | c8 1B
  9371. Get Line Coding DATA1: 4B | .. .. .. .. 00 00 08 c8 .. 00 00 07 | 7a 72
  9372. From David Sidrane.
  9373. - STM32 L4 OTGFS device: Apply stm32 fix to stm32l4. From Sebastien
  9374. Lorquet.
  9375. - STM32 F7: Remove duplicate call to pkt_input from Ethernet driver.
  9376. Issues noted by Pascal Speck.
  9377. - STM32 L4: Add support for USART3-USART5. For STM32L4 parts, the
  9378. higher number USART ports supported varies. Add the HAVE_USARTx
  9379. definitions to the configuration to allow enabling the higher
  9380. numbered USART ports. From Jim Wylder.
  9381. - STM32 USB: Set USB address to avoid a failed assertion. From
  9382. Pierre-noel Bouteville.
  9383. - STM32 L4 and L7 USB: Pierre's assertion-avoidance change should
  9384. also be applied to STM32 F7 and L4.
  9385. - STM32, L4, and F7: Remove GPIO_ETH_RMII_TX_CLK. TX_CLK is not
  9386. present in RMII. Mateusz Szafoni.
  9387. - STM32 Ethernet: Correct typo in conditional logic. From Neil
  9388. Hancock.
  9389. - STM32 L4 USB Device: Fixed L4 USB Driver by avoiding SETUPDONE and
  9390. EPOUT_SETUP. From David Sidrane.
  9391. - STM32 SPI: stm32_modifycr2 should be available on all platforms if
  9392. DMA is enabled.
  9393. - STM32 DMA2D: fix an error in up_dma2dcreatelayer where an invalid
  9394. pointer was returned when a certain underlying function failed.
  9395. From Jens Gräf.
  9396. * TI Tiva Drivers:
  9397. - Fix two bugs of tiva pwm lower-half driver implementation. From
  9398. Young.
  9399. - Tiva Ethernet: Needs support for CONFIG_NET_MULTIBUFFER=y.
  9400. * C Library/Header Files:
  9401. - lib_dumpbuffer() now prints a large on-stack buffer first to avoid
  9402. problems when the syslog output is prefixed with time. From
  9403. Pierre-noel Bouteville.
  9404. - libc/math: This fixes the following libc/math issues: (1) asin[f l]()
  9405. use Newton’s method to converge on a solution. But Newton’s method
  9406. converges very slowly (> 500,000 iterations) for values of x close to
  9407. 1.0; and, in the case of asinl(), sometimes fails to converge (loops
  9408. forever). The attached patch uses an trig identity for values of
  9409. x > sqrt(2). The resultant functions converge in no more than 5
  9410. iterations, 6 for asinl(). (2) The NuttX erf[f l]() functions are
  9411. based on Chebyshev fitting to a good guess. The problem there’s a
  9412. bug in the implementation that causes the functions to blow up with
  9413. x near -3.0. This patch fixes that problem. It should be noted that
  9414. this method returns the error function erf(x) with fractional error
  9415. less than 1.2E-07 and that’s fine for the float version erff(), but
  9416. the same method is used for double and long double version which
  9417. will yield only slightly better precision. This patch doesn't
  9418. address the issue of lower precision for erf() and erfl(). (3) a
  9419. faster version of copysignf() for floats is included. From David S.
  9420. Alessio.
  9421. - strtod() was not returning endptr on error conditions.
  9422. - libc/math: floor(), floorf(), and floorl(): Fix logic error. Was
  9423. not correctly handling negative integral value.
  9424. - isatty() should be prototyped in unstid.h, not termios.h. From
  9425. Sebastien Lorquet.
  9426. - nxglib: Fix handling of near-horizontal lines of width 1 in
  9427. nxgl_splitline(). Missing handling for degenerate condition caused
  9428. width 1 lines such as (0, 0) - (100, 10) to have gaps in the
  9429. drawing. From Petteri Aimonen.
  9430. * Build/Configuration System:
  9431. - Top-Level Makefiles: Fix a chicken-and-egg problem. In the menuconfig
  9432. target, the context dependency was executed before kconfig-mconf. That
  9433. was necessary because the link at apps/platform/board needed to be set
  9434. up before creating the apps/Kconfig file. Otherwise, the platform
  9435. Kconfig files would not be included. But this introduces the chicken-
  9436. and-egg problem in some configurations. In particular: (1) An NX
  9437. graphics configuration is used that requires auto-generation of
  9438. source files using cpp, (2) the configuration is set for Linux, but
  9439. (3) we are running under Cygwin with (4) a Windows native toolchain.
  9440. In this case, POSIX-style symbolic links are set up but the Windows
  9441. native toolchain cannot follow them. The reason we are running
  9442. 'make menuconfig' is to change from Linux to Cygwin, but the target
  9443. fails. During the context phase, NX runs CPP to generate source files
  9444. but that fails because the Windows native toolchain cannot follow
  9445. the links. Checkmate. This was fixed by changing all of the make
  9446. menuconfig (and related) targets. They no longer depend on context
  9447. being run. Instead, they depend only on the dirlinks target. The
  9448. dirlinks target only sets up the directory links but does not try
  9449. to run all of the context setup; the compiler is never invoked; no
  9450. code is autogenerated and things work.
  9451. - CXXFLAGS: add -fcheck-new whenever -fno-exceptions is used. From
  9452. Beat Küng.
  9453. * Tools
  9454. - tools/refresh.sh: Recent complexities added to apps/ means that
  9455. configuration needs the correct Make.defs file in place in order to
  9456. configure properly.
  9457. - tools/kconfig2html.c: Update to handle absolute paths when sourcing
  9458. Kconfig files.
  9459. - tools/mkfsdata.pl was still generating the old-style apps/include
  9460. inclusion paths.
  9461. * Application Build/Configuration System:
  9462. - Add DIRLINK and DIRUNLINK tool definitions to apps/Make.defs.
  9463. * apps/nshlib:
  9464. - Fix FIFO_SIZE vs PIPE_SIZE.
  9465. - Fix hex representation of IP address in Kconfig. Noted by Michal
  9466. Lyszczek.
  9467. - nsh_syscmds.c: missing semicolon. From Mateusz Szafoni.
  9468. - In system command, don't try to flush output streams if stdio
  9469. buffered I/O is not supported.
  9470. * apps/canutils:
  9471. - libuavcan: Under certain circumstances, DELIM is not be defined in
  9472. Makefile.
  9473. - Add definition for APPNAME in apps/canutils/canlib. From Sebastien
  9474. Lorquet.
  9475. * apps/gpsutils:
  9476. - Fix an error minmea. From Aleksandr Vyhovanec.
  9477. * apps/examples:
  9478. - apps/examples/oneshot: If the requested delay is > max_delay, then
  9479. break the delay up into several pieces.
  9480. NuttX-7.19 Release Notes
  9481. ------------------------
  9482. The 119th release of NuttX, Version 7.19, was made on December 26, 2016,
  9483. and is available for download from the Bitbucket.org website. Note
  9484. that release consists of two tarballs: nuttx-7.19.tar.gz and
  9485. apps-7.19.tar.gz. These are available from:
  9486. https://bitbucket.org/nuttx/nuttx/downloads
  9487. https://bitbucket.org/nuttx/apps/downloads
  9488. Both may be needed (see the top-level nuttx/README.txt file for build
  9489. information).
  9490. Additional new features and extended functionality:
  9491. * Core OS:
  9492. - sched/semaphore, sched/phread/, libc/semaphore, libc/pthread: Add
  9493. pthread_mutexattr_get/set_protocol and non-standard
  9494. sem_get/set_protocol. These may use to enable or disable priority
  9495. inheritance on a single semaphore.
  9496. - Spinlocks: Added capability to provide architecture-specific memory
  9497. barriers.
  9498. - SMP: Add spin_trylock(). Use this in conditions where other CPUs need
  9499. to stopped but we cannot call enter_critical_section().
  9500. - sched note: Extend OS instrumentation to include some SMP events.
  9501. Also add spinlock instrumentation; In SMP configurations, add a
  9502. filter mask to log only notes from certain CPUs.
  9503. - sched note: Permit spinlock and critical section notes in in-memory
  9504. buffer iff sched_not_get() interfaces is disabled.
  9505. - sched note: Add additional note to see if/when CPU is started in SMP
  9506. mode.
  9507. - sched note: Record ID enumeration now results on constant values; ID
  9508. values do not change with configuration. This makes writing post-processing software much easier.
  9509. - boardctl: Add new boardctl() command, BOARDIOC_NX_START, to start the
  9510. NX server as a kernel thread.
  9511. - pthreads: Add pthread_cleanup_push() and pthread_cleanup_pop().
  9512. - pthreads: Added pthread_setcanceltype() and pthread_testcancel().
  9513. - pthreads: Add support for cancellation points.
  9514. - task_delete() now obeys all cancellation point semantics.
  9515. - Add task_setcancelstate(), task_setcanceltype(), and
  9516. task_testcancel(). These are non-standard interfaces analogous to the
  9517. correponding pthread_ interfaces that provide cancellation controls
  9518. for tasks.
  9519. * Graphics/Display Drivers:
  9520. - boardctl: Add new boardctl() command, BOARDIOC_NX_START, to start the
  9521. NX server as a kernel thread.
  9522. * Networking/Network Drivers:
  9523. - Network drivers: Add option to use low-priority work queue to all
  9524. Ethernet and MAC level drivers.
  9525. - Network Drivers: Adapt all Ethernet (and other MAC) drivers to work
  9526. as though CONFIG_NET_MULTIBUFFER were set. Remove all references to
  9527. CONFIG_NET_MULTIBUFFER.
  9528. - Eliminate CONFIG_NO_NOINTS. There is no longer any support for
  9529. interrupt level processing of the network stack. Lots of files changed.
  9530. * Other Common Device Drivers:
  9531. - Vishay VEML6070: Add Vishay VEML6070 driver. From Alan Carvalho de
  9532. Assis.
  9533. * ARMv7-A
  9534. - ARMv7-A/i.MX6: Add SCU register definitions. Add some controls to
  9535. enable SMP cache coherency in SMP mode. Makes no difference, however
  9536. -- cache still incoherent on i.MX6.
  9537. - ARMv7 GIC: SGIs are non-maskable but go through the same path as
  9538. other, maskable interrupts. Added logic to serialize SGI processing
  9539. when necessary.
  9540. * Atmel SAM3/4:
  9541. - SAM3/4: Add SMP support for the dual-core SAM4CM. From Masayuki
  9542. Ishikawa.
  9543. * Atmel SAM3/4 Drivers:
  9544. - Add support for the SAM5CMP-DB board. From Masayuki Ishikawa.
  9545. * Atmel SAM3/4 Boards:
  9546. - SAM4CMP-DB: Add support for the Atmel SAM4CMP-DB board running in an
  9547. SMP configuration. From Masayuki Ishikawa.
  9548. - SAM4CMP-DB: Add hooks to auto-mount the procfs file system on startup
  9549. in board bring-up logic.
  9550. * Atmel SAMV7 Drivers:
  9551. - SAMv7: Register the watchdog device at the configured device path
  9552. CONFIG_WATCHDOG_DEVPATH vs. hard-coded /dev/wdt. From Frank Benkert.
  9553. * Calypso
  9554. - Calyps: Remove all Calypso board configurations. Remove Calypso
  9555. architecture support and support for Calypso SERCOMM driver.
  9556. * Misoc LM32:
  9557. - Misoc LM32: Adds basic support for the Misoc procoessors and the LM32
  9558. in particular. From Ramtin Amin.
  9559. - Misoc LM32: Add signal handling logic. From Ramtin Amin.
  9560. - Misoc LM32: Add logic to flush/invalidate caches. From Ramtin Amin.
  9561. * Misoc LM32 Drivers:
  9562. - Misoc LM32 Serial: Add interrupting Misoc serial driver. From Ramtin
  9563. Amin.
  9564. - Misoc LM32 Timer: Add timer driver. From Ramtin Amin.
  9565. - Misoc LM32: Add Misoc Ethernet driver From Ramtin Amin.
  9566. * Misoc LM32 Boards:
  9567. - Misoc LM32 Qemu: Board support for testing Misoc LM32 with Qemu. From
  9568. Ramtin Amin.
  9569. - Misoc LM32 Qemu: Integrate network support into configs/misoc/hello.
  9570. From Ramtin Amin.
  9571. - Misoc LM32 Qemu: Remove configs/misoc/include/generated directory. I
  9572. suppose the intent now is that this is a symbolic link? DANGER!
  9573. This means that you cannot compile this code with first generating
  9574. these files a providing a symbolic link to this location! There is a
  9575. sample directory containing generated sources. This is really only
  9576. useful for performing test builds. You really must generate the Misoc
  9577. architecture for a real-life build. From Ramtin Amin.
  9578. * NXP Freescale i.MX6 Drivers:
  9579. - i.MX6: Add an untested SPI driver taken directly from the i.MX1 port.
  9580. * NXP Freescale Kinetis:
  9581. - Kinetis: Added missing headers. Kinetis broke out SPI to
  9582. kinetis/kinetis_spi.h. Broke out DMA to use the modern Nuttx chip
  9583. inclusion - still STUBS. Add Kinetis support for ARMV7-M Common
  9584. Vector and FPU. Allow CONFIG_ARMV7M_CMNVECTOR,
  9585. CONFIG_STACK_COLORATION, CONFIG_ARCH_FPU. Fix i2c driver offset
  9586. swapped for value in kinetis_i2c_putreg. From David Sidrane.
  9587. * NXP Freescale Kinetis Drivers:
  9588. - Kinetis: Add UID Unique ID. From Neil Hancock.
  9589. * NXP Freescale Kinetis Boards:
  9590. - Freedom-K64F board: Add support for UID Unique ID. From Neil Hancock.
  9591. * NXP Freescale LPC17xx Boards:
  9592. - Olimex-LPC1766-STK: Enable procfs in NSH configuration. Automount
  9593. /proc on startup.
  9594. * NXP Freescale LPC43xx Drivers:
  9595. - LPC43xx: Add timer driver: From Alan Carvalho de Assis.
  9596. - LPC43xx GPDMA driver: The GPDMA block is basically the same as the
  9597. LPC17xx. Only the clock configuration is different and LPC43xx has
  9598. four different DMA request sources, where LPC17xx has only two. From
  9599. Alan Carvalho de Assis.
  9600. * NXP Freescale LPC43xx Boards:
  9601. - Bambino 200E: Add basic support to Micromint Bambino 200E board.
  9602. This includes contributions from Jim Wolfman. From Alan Carvalho de
  9603. Assis.
  9604. - Bambino 200E: Add support for timer driver. From Alan Carvalho de
  9605. Assis.
  9606. * RGMP:
  9607. - Remove RGMP and RGMP drivers.
  9608. * RISC-V:
  9609. - RISC-V: Add support for the RISC-V architecture and
  9610. configs/nr5m100-nexys4 board. The board support on this is pretty
  9611. thin, but it seems like maybe a good idea to get the base RISC-V stuff
  9612. in since there are people interested in it. From Ken Pettit.
  9613. * STMicro STM32 Drivers:
  9614. - STM32 F3: Implemention of the STM32 F37xx SDADC module. There are
  9615. also changes to ADC, DAC modules. SDADC has only been tested in DMA
  9616. mode and does not support external TIMER triggers. This is a work in
  9617. progress. From Marc Rechté.
  9618. - STM32 F3: Add PWM driver support for STMF37xx. The changes have been
  9619. tested successfuly for TIM4 and TIM17 (different IPs). From Marc
  9620. Rechté.
  9621. - STM32 F4: Support oversampling by 8 for the STM32 F4. From David
  9622. Sidrane.
  9623. - STM32 F4: Added Timers 2-5 and control of SAI and I2S PLLs. Added
  9624. support for stmf469 SAI and I2S PLL configuration and STM446 fixes.
  9625. From David Sidrane.
  9626. - STM32 F4: Expanded OTGFS support to stm32F469 and stm32f446. Added
  9627. missing bit definitions, Used stm32F469 and stm32f446 bit
  9628. definitions, Removed unsed header file. From David Sidrane.
  9629. - STM32 F4: Allow dma in 1 bit mode in STM32F4xxx. From David Sidrane.
  9630. - STM32 F7: Allow the config to override the clock edge setting. From
  9631. David Sidrane.
  9632. - STM32 L4: Support Complementary PWM outputs on STM32L4. From
  9633. Sebastien Lorquet.
  9634. - STM32 L4: Add implementation of dumpgpio for stm32l4, was required
  9635. for pwm debug. From Sebastien Lorquet.
  9636. * STMicro STM32 Boards:
  9637. - STM32F103 Minimum: Add button support. From Alan Carvalho de Assis.
  9638. - STM32F103 Minimum: Add support to PWM on STM32F103-Minimum board.
  9639. From Alan Carvalho de Assis.
  9640. - STM32F103 Minimum: Add RGB LED support on STM32F103 Minimum board.
  9641. From Alan Carvalho de Assis.
  9642. - STM32F103 Minimum: Add Vishay VEML6070 driver support to the
  9643. STM32F103-Minimum board. From Alan Carvalho de Assis.
  9644. - Nucleo-F303RE: Add STM32 F303RE hello configuration. From Marc
  9645. Rechté.
  9646. - Nucleo-L476: Support PWM testing on board Nucleo L476. From
  9647. Sebastien Lorquet.
  9648. - Nucleo L476: Add support for timers to Nucleo L476. From Sebastien
  9649. Lorquet.
  9650. - Hymini STM32v: Enable CONFIG_RTC in the hymini-stm32v/nsh2
  9651. (kitchensink) config. From Maciej Wójcik.
  9652. - Olimex STM32-p407: Add support for the Olimex STM32 P407 board.
  9653. * TI Tiva Drivers:
  9654. - Tiva PWM: Support PWM_PULSECOUNT feature for TI tiva. From Young.Mu.
  9655. * Xtensa/ESP32
  9656. - Xtensa ESP32: Basic architectural support for Xtensa processors and
  9657. the Expressif. ESP32 added.
  9658. - Xtensa ESP32: Add EXPERIMENTAL hooks to support lazy Xtensa
  9659. co-processor state restore in the future.
  9660. - Xtensa ESP32: Basic port is function in both single CPU and dual CPU
  9661. SMP configurations. There is an NSH configuration for each CPU
  9662. configuration. Outstanding issues include missing clock configuration
  9663. logic, missing partition tables to support correct configuration from
  9664. FLASH, and some serial driver pin configuration issues.
  9665. - Xtensa ESP32: Add stack checking logic.
  9666. * Xtensa/ESP32 Boards:
  9667. - ESP32 Core v2: Basic support for Expressif ESP32 Core v2 board
  9668. added. The initial release includes an NSH and an SMP test
  9669. configuration.
  9670. - ESP32 Core v2: Add configuration to support linking NuttX for
  9671. execution out of IRAM.
  9672. - ESP32 Core v2: Automatically mount /proc at start-up.
  9673. - ESP32 Core v2: Add an OS test to verify the port.
  9674. * C Library/Header Files:
  9675. - libc/locale: Add a dummy setlocale() function to avoid drawing the
  9676. function from newlib. Add clocale header file.
  9677. - include/locale.h: Modify locale.h to add localeconv() and lconv
  9678. structure. From Alan Carvalho de Assis.
  9679. - libc/locale: Allows c++ code to compile with or without
  9680. CONFIG_LIBC_LOCALE and will generate a link error if
  9681. CONFIG_LIBC_LOCALE is not defined and setlocale is referenced. With
  9682. CONFIG_LIBC_LOCALE defined setlocale will act as if MB string is not
  9683. supported and return "C" for POSIX. C and "". From David Sidrane.
  9684. - libc/wchar: Add wcslen, wmemchr, wmemcmp, wmemcpy wmemset, btowc,
  9685. mbrtowc, mbtowc, wcscmp, wcscoll, and wmemmove to NuttX. From Alan
  9686. Carvalho de Assis.
  9687. - libc/wctype: Add functions wcrtomb, wcslcpy, wcsxfrm, wctob, wctomb,
  9688. wctype, localeconv, strcoll, strxfrm, swctype, towlower, towupper and
  9689. wcsftime. Add wctype.h; Move lib_wctype.c to libc/wctype. From Alan
  9690. Carvalho de Assis.
  9691. - include/ctype.h : Add isblank() macro to ctype.h. From Alan Carvalho
  9692. de Assis.
  9693. - lic/stdlib: Add strtof() and strtold() as simply a copy of strtod
  9694. with types and limits changed.
  9695. - sscanf(): Use strtof() instead of strtod() if a short floating point
  9696. value was requested. The should help performance with MCUs with
  9697. 32-bit FPU support with some additional code size.
  9698. - sscanf(): Add scansets to the scanf function. Enabled
  9699. CONFIG_LIBC_SCANSET option. From Aleksandr Vyhovanec.
  9700. - include/inttypes.h: Add architecture-specific inttypes.h. From Paul
  9701. A. Patience.
  9702. - C Library: Allow option to enable IP address conversions even when
  9703. the IP address family is not supported.
  9704. * Build/Configuration System:
  9705. - The Smoothie project needs to compile C++ inside config/boardname/src/
  9706. to use with High Priority Interruption, then I modified the board
  9707. configs Makefile to support it. It works fine for the first time
  9708. compilation, but if we execute "touch config/boardname/src/Pin.cxx"
  9709. and execute "make" it will not detect that Pin.cxx was modified. I
  9710. think there is some other place I should modify, but I didn't find
  9711. it. From Alan Carvalho de Assis.
  9712. * Tools:
  9713. - tools/: Add tools/showsize.sh.
  9714. * NSH: apps/nshlib:
  9715. - NSH: dd command will show statistics. From Masayuki Ishikawa.
  9716. * Applications: apps/system:
  9717. - apps/system/sched_note: Extend to include additions to instumentation
  9718. for SMP.
  9719. - apps/system/sched_note: Add support for spinlock notes.
  9720. - apps/system/sched_note: Add support for new scheduler instrumentation.
  9721. * Platforms: apps/platform:
  9722. - ESP32 Core v2: Add platform support for the ESP32 core v2 board.
  9723. - Olimex STM32-p407: Add platform support for the Olimex STM32 P407.
  9724. * Graphics: apps/graphics
  9725. - graphics/traveler/tcledit and libwld: Add an X11 Tcl/Tk tool that can
  9726. be used to edit Traveler world files.
  9727. - Graphics: Remove all NX server taks. Instead, call boardctl() to the
  9728. NX server kernel thread.
  9729. * Applications: apps/examples:
  9730. - examples/buttons: Add a new buttons example that uses the button
  9731. character driver instead of the architecture buttons directly. From
  9732. Alan Carvalho de Assis.
  9733. - examples/cctype: Add an example to verify cctype functions.
  9734. - Remove RGMP example.
  9735. - examples/ostest: Extend the pthread cancellation test to exercise
  9736. pthread_cleanup_push() (and pthread_cleanup_pop() indirectly via
  9737. pthread_cancel() and pthread_exit().
  9738. - examples/ostest: enhance pthread cancellation test some.
  9739. Works-In-Progress:
  9740. * IEEE802.14.5/6LowPAN. Hooks and framework for this effort were
  9741. introduced in NuttX-7.15. Work has continued on this effort on
  9742. forks from the main repositories, albeit with many interruptions.
  9743. The completion of this wireless feature will postponed until at
  9744. least NuttX-7.20.
  9745. Bugfixes. Only the most critical bugfixes are listed here (see the
  9746. ChangeLog for the complete list of bugfixes and for additional, more
  9747. detailed bugfix information):
  9748. * Core OS:
  9749. - sched/semaphore: Within the OS, when a thread obtains a semaphore
  9750. count it must call sem_addholder() if CONFIG_PRIORITY_INHERITANCE is
  9751. enabled. If a count is available, then sem_wait() calls
  9752. sem_addholder(), otherwise it waited for the semaphore and called
  9753. sem_addholder() when it eventually received the count. This caused a
  9754. problem when the thread calling sem_wait() was very low priority.
  9755. When it received the count, there may be higher priority threads
  9756. "hogging" the CPU that prevent the lower priority task from running
  9757. and, as a result, the sem_addholder() may be delayed indefinitely.
  9758. The fix was to have sem_post() call sem_addholder() just before
  9759. restarting the thread waiting for the semaphore count. This problem
  9760. was noted by Benix Vincent who also suggested the solution.
  9761. - Many files: Make sure that priority inheritance is not enabled for
  9762. semaphores whose primary use is signaling (vs locking of resources) by
  9763. calling sem_setprotocol().
  9764. - sched/semaphore: sem_trywait() no longer modifies the errno value
  9765. UNLESS an error occurs. This allows these functions to be used
  9766. internally without clobbering the errno value. From Freddie Chopin.
  9767. - sched/clock: Correct clock initialization. The correct range for the
  9768. month is 0-11 but is entered as 1-12 in the .config file. Add ranges
  9769. to START_YEAR, MONTH, and DAY in sched/Kconfig.
  9770. - sched/clock: Correct calculation for the case of Tickless mode with a
  9771. 32-bit timer. In that case, the calculation was returning millisecond
  9772. accuracy. That is not good when the timer accuracy is < 1 msec. From
  9773. Rajan Gill.
  9774. - Work Queue: When queuing new LP work, don't signal any threads if
  9775. they are all busy. From Heesub Shin.
  9776. - Work Queue: Signal sent from work_signal() may interrupt the low
  9777. priority worker thread that is already running. For example, the
  9778. worker thread that is waiting for a semaphore could be woken up by the
  9779. signal and break any synchronization assumption as a result. It also
  9780. does not make any sense to send signal if it is already running and
  9781. busy. This change fixes it. From Heesub Shin.
  9782. - Fix DEBUGASSERT() in group_signal.c. From Masayuki Ishikawa.
  9783. - Eliminate bad boardctl() commands: Remove all references to
  9784. BOARDIOC_PWMSETUP and board_pwm_setup(). Remove all references to
  9785. BOARDIOC_ADCSETUP and board_adc_setup(). Remove
  9786. BOARDIOC_CAN_INITIALIZE. CAN initialization is now done in the board
  9787. initialization logic just like every other device driver.
  9788. - pthreads: Fix an error in pthread_mutex_destroy(). An error could
  9789. occur while destroying a mutex after a pthread has been canceled while
  9790. holding the mutex.
  9791. - task_restart: Make sure new task starts with pre-emption disabled and
  9792. not in a critical section.
  9793. - Enter/leave Critical Sections. Major redeign to
  9794. enter/leave_critical_section logic to deal with the case where
  9795. interrupts are disabled only on the local CPU. In this case, some
  9796. rather complex spinlocks must be used to maintain the critical section
  9797. accross all CPUs.
  9798. - SMP Critical Sections: Fixes for the SMP case: (1) Change order for
  9799. SMP case in enter_critical_section: (1) Disable local interrupts
  9800. BEFORE taking spinlock and (2) If SMP is enabled, if any interrupt
  9801. handler calls enter_critical_section(), it should take the spinlock.
  9802. - SMP wdogs: Wdog timers use a tasking interface that to manipulate
  9803. wdogs, and a different interface in the timer interrupt handling logic
  9804. to manage wdog expirations. In the single CPU case, this is fine.
  9805. Since the tasking level code calls enter_critical_section, interrupts
  9806. are disabled and no conflicts can occur. But that may not be the case
  9807. in the SMP case. Most architectures do not permit disabling
  9808. interrupts on other CPUs so enter_critical_section must work
  9809. differently: Locks are required to protect code. this change adds
  9810. locking (via enter_critical section) to wdog expiration logic for the
  9811. the case if the SMP configuration.
  9812. - SMP vfork(): Fix a race condition in the SMP case. Existing logic
  9813. depended on the fact that the child would not run until waitpid was
  9814. called because the child had the same priority as the parent. BUT in
  9815. the SMP case that is not true... the child may run immediately on a
  9816. different CPU.
  9817. - SMP: This change adds a new internal interfaces and fixes a problem
  9818. with three APIs in the SMP configuration. The new internal interface
  9819. is sched_cpu_pause(tcb). This function will pause a CPU if the task
  9820. associated with 'tcb' is running on that CPU. This allows a different
  9821. CPU to modify that OS data stuctures associated with the CPU. When
  9822. the other CPU is resumed, those modifications can safely take place.
  9823. The three fixes are to handle cases in the SMP configuration where one
  9824. CPU does need to make modifications to TCB and data structures on a
  9825. task that could be running running on another CPU. Those three cases
  9826. are task_delete(), task_restart(), and execution of signal handlers.
  9827. In all three cases the solutions is basically the same: (1) Call
  9828. sched_cpu_pause(tcb) to pause the CPU on which the task is running,
  9829. (2) perform the necessary operations, then (3) call up_cpu_resume() to
  9830. restart the paused CPU.
  9831. - SMP: Add logic to avoid a deadlock condition when CPU1 is hung waiting
  9832. for g_cpu_irqlock with interrupts interrupts and CPU0 is waiting for
  9833. g_cpu_paused.
  9834. - SMP: Enforce this rule: Tasks which are normally restored when
  9835. sched_unlock() is called must remain pending (1) if we are in a
  9836. critical section, i.e., g_cpu_irqlock is locked , or (2) other CPUs
  9837. still have pre-emption disabled, i.e., g_cpu_schedlock is locked. In
  9838. those cases, the release of the pending tasks must be deferred until
  9839. those conditions are met.
  9840. * File System/Block Drivers/MTD Drivers:
  9841. - AT24XX EEPROM MTD driver: Added EEPROM timeout. Fromo Aleksandr
  9842. Vyhovanec.
  9843. - fs/procfs: Fix procfs status for SMP case.
  9844. * Graphics/Graphic Drivers:
  9845. - Fonts: Correct some default font IDs. From Pierre-Noel Bouteville.
  9846. * Common Drivers:
  9847. - usbhost/enumerate: Fix possible buffer overwrite. From Janne Rosberg.
  9848. - usbhost/composite: Fix compile; missing semicolons. From Jann Rosberg.
  9849. - syslog: Fixes required for file syslog output. From Max Kriegleder.
  9850. - SPI configuration: Fix Kconfig warning. This change moves the
  9851. ARCH_HAVE_SPI options outside the check for SPI. Those options don't
  9852. depend on SPI, and Kconfig files in arch/ enable them even if SPI
  9853. isn't enabled. Source the driver's Kconfig in drivers/Kconfig only
  9854. if support for the driver is enabled prevents us from defining these
  9855. ARCH_HAVE options in the driver's Kconfig. We should probably remove
  9856. the other checks in drivers/Kconfig and check if the drivers are
  9857. enabled only in their Kconfig. From Paul A. Patience.
  9858. - drivers/timer: Remove the timer driver TIOC_SETHANDLER IOCTL call.
  9859. This calls directly from the timer driver into application code. That
  9860. is non-standard, non-portable, and cannot be supported. Instead, add
  9861. timer driver hooks to support signal notification of timer
  9862. expiration. Signal notification logic added by Sebastien Lorquet.
  9863. - All timer lower half drivers. Port Sebastien's changes to all other
  9864. implementations of the timer lower half.
  9865. - USB MSC Device: Fix length of mode6 sense reply packet. From
  9866. Wolfgang Reißnegger.
  9867. - USB Composite Host: Fix end offset in usbhost_copyinterface(). From
  9868. Janne Rosberg.
  9869. - USB CDC/ACM Host: Add CDC_SUBCLASS_ACM and CDC_PROTO_ATM to
  9870. supported class and proto. From Janne Rosberg.
  9871. - SSD1306: Fix errors in SPI mode configuration. From Gong Darcy.
  9872. - CDC/ACM Device Class: uart_ops_s portion of cdcacm will not be
  9873. initalized with correct functions if CONFIG_SERIAL_DMA is selected.
  9874. * Networking/Network Drivers:
  9875. - drivers/net/tun.c: Fix bug in TUN interface driver. From Max Nekludov.
  9876. * ARMv7-A:
  9877. - ARMv7-A SMP: Add SMP logic to signal handling.
  9878. * ARMv7-M:
  9879. - ARMv7-M: Fix double allocation of MPU region in mmu.h.
  9880. * ARMv7-R:
  9881. - ARMv7-R: Fix compilation error. This change fixes compilation errors
  9882. on MPU support for ARMv7-R. From Heesub Shin.
  9883. - ARMv7-R: fix invalid drbar handling. In ARMv7-R, [31:5] bits of DRBAR
  9884. is physical base address and other bits are reserved and SBZ. Thus,
  9885. there is no point in passing other than the base address. From Heesub
  9886. Shin.
  9887. - ARMv7-R: Remove the redundant update on SCTLR. mpu_control() is
  9888. invoking cp15_wrsctlr() around SCTLR update redundantly. From Heesub
  9889. Shin.
  9890. - ARMv7-R: add new Kconfig entries for d/i-cache. Unlike in ARMv7-A/M,
  9891. Kconfig entries for data and instruction caches are currently missing
  9892. in ARMv7-R. This change adds those missing Kconfig entries. Actual
  9893. implmenetation for those functions will be added in the subsequent
  9894. patches. From Heesub Shin.
  9895. - ARMv7-R: Add cache handling functions. This change adds functions for
  9896. enabling and disabling d/i-caches which were missing for ARMv7-R.
  9897. From Heesub Shin.
  9898. - ARMv7-R: Fix typo in mpu support. s/ARMV7M/ARMV7R/g. From Heesub Shin.
  9899. - ARMv7-R: Fix CPSR corruption after exception handling. A sporadic
  9900. hang with consequent crash was observed when booting. It seemed to be
  9901. caused by the corrupted or wrong CPSR restored on return from
  9902. exception. NuttX restores the context using code like this: msr spsr,
  9903. r1. GCC translates this to: msr spsr_fc, r1. As a result, not all
  9904. SPSR fields are updated on exception return. This should be: msr
  9905. spsr_fsxc, r1. On some evaluation boards, spsr_svc may have totally
  9906. invalid value at power-on-reset. As it is not initialized at boot, the
  9907. code above may result in the corruption of cpsr and thus unexpected
  9908. behavior. From Heesub Shin.
  9909. - ARMv7-R: Fix to restore the Thumb flag in CPSR. Thumb flag in CPSR is
  9910. not restored back when the context switch occurs while executing thumb
  9911. instruction. From Heesub Shin.
  9912. * Atmel SAM3/4 Drivers:
  9913. - SAM3/4 UDP: Add delay between setting and clearing the endpoint RESET
  9914. bit in sam_ep_resume(). We need to add a delay between setting and
  9915. clearing the endpoint reset bit in SAM_UDP_RSTEP. Without the delay
  9916. the USB controller will (may?) not reset the endpoint. If the
  9917. endpoint is not being reset, the Data Toggle (DTGLE) bit will not to
  9918. be cleared which will cause the next transaction to fail if DTGLE is
  9919. 1. If that happens the host will time-out and reset the bus. Adding
  9920. this delay may also fix the USBMSC_STALL_RACEWAR in usbmsc_scsi.c,
  9921. however this has not been verified yet. From Wolfgang Reißnegger.
  9922. - SAM3/4: Remove unused 'halted' flag from UDP driver. From Wolfgang
  9923. Reißnegger.
  9924. - SAM3/4: Remove 'stalled' flag from the UDP driver. This flag is not
  9925. necessary because the state of the endpoint can be determined using
  9926. 'epstate' instead. From Wolfgang Reißnegger.
  9927. * Atmel SAM3/4 Boards:
  9928. - SAM4S Xplained Pro: Configuration uses old, improper timer interface.
  9929. CONFIG_TIMER disabled in configuration. Remove obsolete timer
  9930. initialization logic.
  9931. * Atmel SAMV7 Drivers:
  9932. - SAMv7 USBDEVHS: A problem occurred with the SAMV7 USBDEVHS driver if
  9933. the USB cable is unplugged while a large amount of data is send over
  9934. an IN endpoint using DMA. If the USB cable is plugged in again after a
  9935. few seconds it is not possible to send data over this IN endpoint
  9936. again, all other endpoints work as expected. The problem occurs
  9937. because if the USB cable is unplugged while an DMA transfer is in
  9938. flight the transfer is canceled but the register SAM_USBHS_DEVDMACTRL
  9939. is left in an undefined state. The problem was fixed the problem by
  9940. resetting the register SAM_USBHS_DEVDMACTRL to a known state.
  9941. Additionally all pending interrupts are cleared. From Stefan Kolb.
  9942. - SAMV7 MCAN: Prevent Interrupt-Flooding of ACKE when not connected to
  9943. CAN-BUS. An Acknowledge-Error will occur every time no other CAN Node
  9944. acknowledges the message sent. This will also occur if the device is
  9945. not connected to the can-bus. The CAN-Standard declares, that the Chip
  9946. has to retry a given message as long as it is not sent successfully
  9947. (or it is not cancelled by the application). Every time the chip tries
  9948. to resend the message an Acknowledge-Error-Interrupt is generated. At
  9949. high baud rates this can lead in extremely high CPU load just for
  9950. handling the interrupts (and possibly the error handling in the
  9951. application). To prevent this Interrupt-Flooding we disable the ACKE
  9952. once it is seen as long we didn't transfer at least one message
  9953. successfully. From Frank Benkert.
  9954. - SAMV7 MCAN: Make delete_filter functions more robust. From Frank
  9955. Benkert.
  9956. * Atmel SAMA5 Drivers:
  9957. - SAMA5 PWM: Driver does not build when executing from SDRAM before
  9958. board frequencies are not constant. Rather, the bootloader configures
  9959. the clocking and we must derive the clocking from the MCK left by the
  9960. bootloader. This means lots more computations. This is untested on
  9961. initial change because I don't have a good PWM test setup right now.
  9962. * Misoc LM32:
  9963. - Misoc LM32: Corrects a bug that never occured in qemu on simulation or
  9964. real fpga. The error was that the r1 register was being modified out
  9965. of context switching and not restoring it. From Ramtin Amin
  9966. * NXP Freescale i.MX6:
  9967. - i.MX6 interrupt handling: Additional logic needed to handle nested
  9968. interrupts when an interrupt stack is used. Nesting can occur because
  9969. SGI interrupts are non-maskable.
  9970. * NXP Freescale LPC43xx Drivers:
  9971. - LPC43xx serial: Fix a typo in ioctl TIOCSRS485 ioctl. From Vytautas
  9972. Lukenskas.
  9973. - LPC43xx serial: Restore RS485 mode on serial port open (if RS485 is
  9974. enabled via menuconfig). From Vytautas Lukenskas.
  9975. - LPC43xx SD/MMC: Correct some definitions on SMMC control register in
  9976. lpc43_sdmmc.h. From Alan Carvalho de Assis.
  9977. - LPC43xx SD card: Correct pin configuration options needed for SD card
  9978. pins. From Alan Carvalho de Assis.
  9979. * SiLabs EFM32:
  9980. - EFM32: Fix a compilation error. From Pierre-noel Bouteville.
  9981. * STMicro STM32 Drivers:
  9982. - STM32 CHxN channels are always outputs. From Sebastien Lorquet.
  9983. - STM32 DAC: Fix shift value whenever there are is a DAC2 and, hence,
  9984. up to three interfaces. From Marc Rechté.
  9985. - STM32 F1: Add TIM8 to STM32F103V pinmap. From Maciej Wójcik.
  9986. - STM32 F1: Fix for F1 RTC Clock, tested on F103. From Maciej Wójcik.
  9987. - STM32 F3: STM32F303xB and STM32F303xC chips have 4 ADCs. From Paul
  9988. A. Patience.
  9989. - STM32 F4: A new implementation of the STM32 F4 I2C bottom half. The
  9990. common I2C as this did not handled correctly in the current
  9991. implementation (see also https://github.com/PX4/NuttX/issues/54). The
  9992. changes almost exclusively affect the ISR. From Max Kriegleder.
  9993. - STM32 F4 OTGHS Host: If STM32F446 increase number of channels to
  9994. 16. From Janne Rosberg.
  9995. - STM32 F4: I think, that Size is (highest address+1 - Base address).
  9996. Base address has been removed and if address+count >= size we are
  9997. outside of the Flash. From David Sidrane.
  9998. - STM32 F4: Fix ADC compilation error when DMA isn't enabled. From Paul
  9999. A. Patience.
  10000. - STM32 F4: STM32F427 was rebooting. Over reached family. From David
  10001. Sidrane.
  10002. - STM32 F4: Added STM32F469 RAM size and deliberated STM32F446 size.
  10003. From David Sidrane.
  10004. - STM32 F4: Typo in stm32f76xxxx_pinmap.h edited online with
  10005. Bitbucket. From David Sidrane.
  10006. - STM32 F7: stm32_i2c.c Dejavu. Fixes a bug previously found in the
  10007. F4. From David Sidrane.
  10008. - STM32 F7: OTGDEV fixed typo. From David Sidrane.
  10009. - STM32 F7: Fix to SPI-Master driver. Without this the chip select
  10010. decoding feature will not work properly. From Michael Spahlinger.
  10011. - STM32 F7: STM32F7 SD/MMC driver depends on CONFIG_SDIO_DMA which is
  10012. only defined in stm32/Kconfig. Changed to CONFIG_STM32F7_SDMMC_DMA
  10013. and defined in stm32f7/Kconfig.
  10014. - STM32 F7: Fix some STM32F7 copy paste errors. From David Sidrane.
  10015. - STM32 L4: Complementary PWM outputs on STM32L4" (1) too many
  10016. parentheses when calculating max chan count and (2) channel 4 does not
  10017. have a complementary output. From Sebastien Lorquet.
  10018. - STM32 L4: Fix I2C devices RCC registers. From Sebastien Lorquet.
  10019. - STM32 L4: Enable and renaming for 32l4 UARTs 4 and 5. From Sebastien
  10020. Lorquet.
  10021. - STM32 L4: Change the way to configure quadrature encoder prescalers.
  10022. From Sebastien Lorquet.
  10023. - STM32 L4: Correct USART1/2 definitions. Use default mbed UART4
  10024. settings. From Sebastien Lorquet.
  10025. * STMicro STM32 Boards:
  10026. - STM32F103 Minimum: Fix Timers 2 to 7 clock frequencies. From Alan
  10027. Carvalho de Assis.
  10028. - Nucleo-F303RE: Remove duplicate setting from board.h. From Marc
  10029. Rechté.
  10030. - Nucleo F303RE: Various fixes to get the ADC configuration building
  10031. again after PR. Refresh all configurations.
  10032. - Nucleo L476RG: Add better selection of timer.
  10033. * TI Tiva Boards:
  10034. - DK-TM4C129x: Typo fix. From Wolfgang Reißnegger.
  10035. * Xtensa ESP32:
  10036. - ESP32 core v2: Flush the UART TX buffer in the esp32 serial shutdown
  10037. routine. The ROM bootloader does not flush the FIFO before handing
  10038. over to user code, so some of this output is not currently seen when
  10039. the UART is reconfigured in early stages of startup. From Angus
  10040. Gratton.
  10041. - Xtensa ESP32: Corrects a problem with dispatching to signal
  10042. handlers: Cannot vector directly to the signal handling function as
  10043. in other ABIs under the Xtensa Window ABI. In that case, we need to
  10044. go through a tiny hook when performs the correct window call (call4)
  10045. otherwise registers will be scrambled in the signal handler.
  10046. * Xtensa ESP32 Boards:
  10047. - ESP32 core v2: Changes the openocd config file's default flash
  10048. voltage from 1.8V to 3.3V. This is not necessary right now, but may
  10049. save some hard-to-debug moments down the track (3.3V-only flash
  10050. running at 1.8V often half-works and does weird things...). From
  10051. Angus Gratton.
  10052. * C Library/Header Files:
  10053. - libc/stdio: Fixes sscanf() %sn where strlen(data) < n. From David
  10054. Sidrane.
  10055. - libc/stdio: Include wchar.h in lib_libvsprintf.c to fix compilation
  10056. error. From Alan Carvalho de Assis.
  10057. - include/sys/time.h: timersub macro modified per recommendations of
  10058. phreakuencies.
  10059. - include/ctype.h and cxx/cctype: Implement ctype.h functions as inline
  10060. if possible. cctype can then properly select namespace.
  10061. - include/: Fix a number of header files with mismatched 'extern C {'
  10062. and '}'.
  10063. - libc/unisted: Change brings strtol() and related functions more
  10064. conformant with POSIX. Corner cases like strtol(-2147483648, NULL,
  10065. 10) now pass clang -fsanitize=integer without warnings. From Juha
  10066. Niskanen.
  10067. - libc/unistd: sleep() was returning remaining nanoseconds (kind of),
  10068. instead the remaining seconds. From Eunbong Song.
  10069. - termios.h: Fix CRTSCTS define to include input and output flow. From
  10070. Lorenz Meier.
  10071. * Build/Configuration System:
  10072. - configs/*/defconfig: The buttons example was changed to archbuttons.
  10073. As a result all of the button configurations are broken and need some
  10074. renaming in the defconfig files. Noted by Frank Berkert.
  10075. - config/*/defconfgs: More fallout from name change of
  10076. apps/examples/buttons to archbuttons.
  10077. - configs: All QE encoder files. Last change made timer hard-coded to
  10078. 3. Make configurable.
  10079. - configs: Remove all traces of the no-longer existent ARCHBUTTONS
  10080. example. Remove all button configurations that depended on the
  10081. obsoleted ARCHBUTTON example.
  10082. - minnsh Configurations: Remove minnsh configurations and support
  10083. logic: up_getc() and lowinstream. This was an interesting exercise
  10084. to see just how small you could get NuttX, but otherwise it was not
  10085. useful: (1) the NSH code violated the OS interface layer by callup
  10086. up_getc() and up_putc() directly, and (2) while waiting for character
  10087. input, NSH would call up_getc() which would hog all of the CPU. Not a
  10088. reasonable solution other than as a proof of concept.
  10089. * Application Build/Configuration System:
  10090. - Make.defs: Using wrong link script if native window tool used with
  10091. Cygwin.
  10092. * apps/platform:
  10093. - ESP32 Core v2 Platform: Fix some naming that prevented building the
  10094. C++ support.
  10095. * apps/nshlib:
  10096. - NSH Library: nsh_getdirpath(), use snprint instead of sprintf to
  10097. avoid possibility of buffer overrun. Noted by Chung Hwan Kim.
  10098. * apps/system:
  10099. - Remove std_readline(). This called up_getc() and up_putc() directly,
  10100. violating the POSIX OS interface.
  10101. * apps/netutils:
  10102. - FTPD: Fixed bug that didn't free ftpd ressources on exit. From Pascal
  10103. Speck.
  10104. - NTP client: Fix missing left parenthesis. From Pierre-Noel Bouteville.
  10105. - cJSON: Import patch to fix:cJSON_PrintUnformatted() behaves unexpected
  10106. if an empty array shall be printed to text. from Jerome Lang
  10107. 2012-04-19. From Pierre-Noel Bouteville.
  10108. - esp8266 update cosmetic and many bug fix. From Pierre-Noel Bouteville.
  10109. - FTPD: Fix bug un ftpd file or socket may be not closed. From
  10110. Pierre-Noel Bouteville.
  10111. * apps/modbus:
  10112. - Modbus Master is missing many files and doesn't compile at all. More
  10113. details in
  10114. https://groups.yahoo.com/neo/groups/nuttx/conversations/topics/13734.
  10115. From Vytautas Lukenskas.
  10116. * apps/examples:
  10117. - The examples/qencoder app was trying to init the encoder by a direct
  10118. call into the board, cheating in a local header to declare the
  10119. normally unavailable function prototype. From Sebastien Lorquet.
  10120. - apps/examples/timer: Should detach signal handler before exiting.
  10121. - examples/qencode: The examples/qencoder app was trying to init the
  10122. encoder by a direct call into the board, cheating in a local header to
  10123. declare the normally unavailable function prototype. From Sebastien
  10124. Lorquet.
  10125. - apps/examples/archbuttons: Removed becaue it violates OS interface
  10126. principles.
  10127. - examples/adc, pwm, can: Remove all usage of BOARDIOC_ADCTEST_SETUP,
  10128. BIOARDIOC_PWMSETUP. Remove BOARDIOC_CAN_INITIALIZE. CAN
  10129. initialization is now done in the board initialization logic just like
  10130. every other device driver.
  10131. - examples/ostest: Add some delays to the pthread cancellation test.
  10132. With deferred cancellation enabled, things happen more asynchronously.
  10133. NuttX-7.20 Release Notes
  10134. ------------------------
  10135. The 120th release of NuttX, Version 7.20, was made on March 8, 2017,
  10136. and is available for download from the Bitbucket.org website. Note
  10137. that release consists of two tarballs: nuttx-7.20.tar.gz and
  10138. apps-7.20.tar.gz. These are available from:
  10139. https://bitbucket.org/nuttx/nuttx/downloads
  10140. https://bitbucket.org/nuttx/apps/downloads
  10141. Both may be needed (see the top-level nuttx/README.txt file for build
  10142. information).
  10143. Additional new features and extended functionality:
  10144. * Core OS:
  10145. - Kernel Modules: Module initializer may now return a symbol table.
  10146. - Modules: Extend the module interface so that we can access symbols
  10147. exported by the module.
  10148. - Shared Libraries: In the FLAT build mode, kernel modules may be
  10149. used to provide minimal shared library functionality.
  10150. - Modules/Shared Libraries: Add support for dependencies between
  10151. modules.
  10152. - Module Library: Add build a configuration logic for a shared module
  10153. library.
  10154. - Shared Libraries: Implement module based shared libraries for the
  10155. PROTECTED mode build.
  10156. - Interrupt handling: irq_attach() now includes an argument of type
  10157. xcpt_t that retained with the handler address. That argument is
  10158. then provided to the interrupt handler when the interrupt occurs.
  10159. The common parameter passing replaces the ad hoc parmater passing
  10160. implemented in current drivers. From Mark Schulte.
  10161. - Adapt many drivers to utilize the IRQ argument feature.
  10162. - All functions that used to return an xcpt_t old handler value, now
  10163. return an int error code. The oldhandler value is no longer useful
  10164. with the recent changes to the interrupt argument passing. Some of
  10165. the functions effected include board_button_irq(), arch_phy_irq(),
  10166. STM32 EXTI functions (Alarm, COMP, PVD), GPIO interrupt logic like
  10167. kinetis_pinirq(), stm32_gpiosetevent(), and others.
  10168. - IRQ subsystem: Add support for smaller interrupt tables as
  10169. described at
  10170. http://www.nuttx.org/doku.php?id=wiki:howtos:smallvectors . This
  10171. is partially the work of Mark Schulte.
  10172. * File Systems/Block and MTD Drivers
  10173. - Pseudo File System: Add support for soft links in the top-level
  10174. pseudo file system.
  10175. - Soft links: Add an implementation of readlink().
  10176. - Add fstat() support. Implement fstat() method in binfs, romfs,
  10177. unionfs, tmpfs, nxffs, nfx, hostfs, procfs, and smartfs.
  10178. - fstat: Add fstat() support to FAT. From Alan Carvalho de Assis.
  10179. * Graphics/Display Drivers:
  10180. - Fonts: Add support for Tom Thumb small mono-space font. From Alan
  10181. Carvalho de Assis.
  10182. - Graphics: Separated of font cache from graphics/nxterm. Now in
  10183. libnx/nxfronts where it can be shared with other grapics
  10184. applications.
  10185. * Networking/Network Drivers:
  10186. - Ethernet drivers: Add framework for serialization in the case where
  10187. multiple low-priority work queues are used.
  10188. * Other Common Device Drivers:
  10189. - Add capabilities() method to SDIO interface. Remove
  10190. CONFIG_SDIO_WIDTH_D1_ONLY. That should not be a global propertie,
  10191. but rather a capability/limitation of single slot when there may be
  10192. multiple slots.
  10193. - Removed dmasupported() method from the SDIO interface. That is now
  10194. a bit in the capability set.
  10195. - drivers/sensors: Add driver for the ST L3GD20 3 axis gyro. From
  10196. raiden00.
  10197. * Atmel SAM3/4:
  10198. - SAM3/4: Add support for ATSAM4S4C. From Wolfgang Reißnegger.
  10199. * NXP Freescale i.MX6 Boards:
  10200. - Sabre 6quad: Enable examples/smp test in i.MX6 SMP/NSH
  10201. configurations.
  10202. * NXP Freescale Kinetis:
  10203. - Kinetis: Added support for CHIP_MK60FN1M0VLQ12 chip. From Maciej
  10204. Skrzypek.
  10205. - Kinetis: Add support for K64/K66 RTC lower half driver. From Neil
  10206. Hancock.
  10207. - Kinetis: Extensive modification of MCG support based feature
  10208. configuration. From David Sidrane.
  10209. - Kinetis: Add support for K66 family. From David Sidrane.
  10210. - Kinetis: Created a kinetis SIM versioning scheme pulled in by
  10211. Kinetis chip.h. From David Sidrane.
  10212. - Created a kinetis PMC versioning scheme pulled in by Kinetis
  10213. chip.h. From David Sidrane.
  10214. - Kinetis: Extend clock configuration logic. Refactor
  10215. implementation. From David Sidrane.
  10216. * NXP Freescale Kinetis Drivers:
  10217. - Kinetis Ethernet: Kinetis Support RMII clock source select. This
  10218. defined the RMII clock source select bits and allows the selection
  10219. to be made via Kconfig. From David Sidrane. Freedom-K66F uses
  10220. ENET_1588_CLKIN as RMII clock
  10221. - Kinetis Serial: Added configurable 1|2 stop bits.
  10222. HAVE_SERIAL_CONSOLE -> HAVE_UART_CONSOLE to be consistent with
  10223. HAVE_LPUART_CONSOLE naming. From David Sidrane.
  10224. - Kinetis LPserial: Add LPUART serial driver and Clock
  10225. configuartaion to freedom-k66f board. From David Sidrane.
  10226. - Kinetis USB device: Refactor clocking in kinetis_usbdev. From
  10227. David Sidrane.
  10228. * NXP Freescale Kinetis Boards:
  10229. - Add support for NXP Freedom-k66f development board. From David
  10230. Sidrane.
  10231. - Kinetis Freedom K66F: Add Ethernet support. From David Sidrane.
  10232. - Add twr-k64f120m config. From Marc Rechté.
  10233. * NXP Freescale LPC43xx Boards:
  10234. - Bamboo-200E: Add netnsh configuration. From Alan Carvalho de Assis.
  10235. - Add usbnsh config to Bambino 200E board. From Alan Carvalho de
  10236. Assis.
  10237. * STMicro STM32:
  10238. - STM32 F7: Allow board to configure HSE clock in bypass-mode. This
  10239. is needed to enable HSE with Nucleo-F746ZG board. From Jussi
  10240. Kivilinna.
  10241. - STM32 F7: stm32_allocateheap: allow use DTCM memory for heap.
  10242. STM32F7 has up to 128KiB of DTCM memory that is currently left
  10243. unused. This change adds DTCM to main heap if
  10244. CONFIG_STM32F7_DTCMEXCLUDE is not enabled. From Jussi Kivilinna.
  10245. - Add basic support for the STM32F334. From Mateusz Szafoni.
  10246. - STM32F33XX DAC, OPAMP, COMP, ADC, HRTIM headers. From Mateusz
  10247. Szafoni.
  10248. * STMicro STM32 Drivers:
  10249. - STM32 F7 SDMMC: Add support for single bit operation on SDMMC2.
  10250. - STM32 L4: Port STM32L4 SAI driver from MDK.
  10251. - STM32 L4: Bring power management logic from Motrola MDK into NuttX.
  10252. - STM32 L4: Bring LPTIM driver in from the Motorola MDK.
  10253. - STM32 L4 COMP: Port from Motorola MDK.
  10254. * STMicro STM32 Boards:
  10255. - STM32F429i Discovery: Add support for NxWM on STM32F429i-Disco
  10256. board. From Alan Carvalho de Assis.
  10257. - STM32F103 Minimum: Add support for nRF24 on STM32F103-Minimum
  10258. board. From Alan Carvalho de Assis.
  10259. - Olimex STM32 P407: Add a NSH protected build configuration; Enable
  10260. procfs/ in all configurations.
  10261. - Olimex STM32 P407: Add support for on-board microSD slot.
  10262. - STM32F429i Discovery: add support for the L3GD20 driver. From
  10263. raiden00.
  10264. - STM32F103 Minimum: Add support to QEncoder on STM32F103 Minimum
  10265. board. From Alan Carvalho de Assis.
  10266. - Olimex STM32 P407: Add external SRAM support.
  10267. - Add basic support for the Nucleo F334R8 board. From Mateusz
  10268. Szafoni.
  10269. - STM32F103 Minimum: Add SDCard support over SPI on STM32F103-Minimum
  10270. board. From Alan Carvalho de Assis.
  10271. - STM32F103 Minimum: Add support to USB Device on STM32F103-Minimum
  10272. board. From Alan Carvalho de Assis.
  10273. * C Library/Header Files:
  10274. - compiler.h: packed_struct replaced by begin_packed_struct and
  10275. end_packed_struct. Now support IAR style packed structures. From
  10276. Aleksandr Vyhovanec.
  10277. - Math library: Leverage optimized ARMv8-M functions from BSD license
  10278. ARM file.
  10279. - Shared libraries: Add a non-standard dllfnc.h function to set the
  10280. symbol table.
  10281. - C Library: Add a support for setvbuf(). This is a collaborative
  10282. effort. Alan Carvalho de Assis did the initial prototype.
  10283. - C Library: Add setbuf() which is a trivial wrapper around setvbuf().
  10284. - C library: Add swab().
  10285. - C library: Add strtoimax and strtoumax.
  10286. - C library: Add ffs(), rindex(), an index(). Add strings.h. Move
  10287. strcasecmp, strncasecmp, bzero, bcmp, and bcopy to where they
  10288. belong in strings.h.h, not string.h. bzero, bcmp, and bcopy are
  10289. legacy functions; the contemporary counterparts should be used
  10290. instead.
  10291. - C library: Add fstatfs().
  10292. - Update cwchar. Add cwctype.
  10293. * Build/Configuration System:
  10294. - Add configuration support for builds with Ubuntu under Windows 10.
  10295. * Tools:
  10296. - tools/noteinfo.c: A hack tool that I use to analyze some sched_note
  10297. output. Needs a home and may be useful to others.
  10298. - tools/mkconfig.c: Add logic to keep all of the buffering options in
  10299. sync.
  10300. * NSH: apps/nshlib:
  10301. - NSH: Add support for the 'ln' command.
  10302. - NSH ls command: if node is a symobolic link, use readlink() to get
  10303. and the display the target of the symblic link.
  10304. - NSH: Add readlink command.
  10305. * Applications: apps/examples:
  10306. - apps/examples/nxtext: Make line spacing configurable.
  10307. - apps/system/zmodem/host/nuttx/compiler.h synchronized with
  10308. nuttx/nuttx/include/nuttx/compiler.h. From Aleksandr Vyhovanec.
  10309. - apps/examples/sotest: Add a test for shared libraries.
  10310. - apps/examples/ostest: Add a test of setvbuf().
  10311. - apps/examples/stat: Add a simple test for stat(), fstat(),
  10312. statfs(), and fstatfs().
  10313. Works-In-Progress:
  10314. * IEEE802.14.5/6LowPAN. Hooks and framework for this effort were
  10315. introduced in NuttX-7.15. Work has continued on this effort on
  10316. forks from the main repositories, albeit with many interruptions.
  10317. The completion of this wireless feature will postponed until at
  10318. least NuttX-7.21.
  10319. Bugfixes. Only the most critical bugfixes are listed here (see the
  10320. ChangeLog for the complete list of bugfixes and for additional, more
  10321. detailed bugfix information):
  10322. * Core OS:
  10323. - SMP: There were certain conditions that we must avoid by preventing
  10324. the release of the pending tasks while withn a critical section.
  10325. But this logic was incomplete; there was no logic to prevent other
  10326. CPUs from adding new, running tasks while on CPU is in a critical
  10327. section. This commit corrects this. This is matching logic in
  10328. sched_addreadytorun to avoid starting new tasks within the critical
  10329. section (unless the CPU is the holder of the lock). The holder of
  10330. the IRQ lock must be permitted to do whatever it needs to do.
  10331. - SMP: Make checks for CPU lock set more robust. There are certain
  10332. conditions early in initialization on during interrupt handling
  10333. where things need to be done a little differently.
  10334. - sched_cpulocked: Avoid use of spinlock. That has been reported to
  10335. cause a deadlock (2016-12-28).
  10336. - SMP: Fix a gap where we may try to make modifications to the task
  10337. lists without being in a critical sections. That permits
  10338. concurrent access to the tasks lists and many subtle problems.
  10339. This fix just remains in the critical section throughout the
  10340. operation (and possible until the task is restore in the event of a
  10341. context switch). Makes a big difference in stability.
  10342. - SMP: Fix an error in critical section logic when performing a
  10343. context switch from an interrupt handler. The g_cpu_irqset bit was
  10344. not being set for the CPU so other CPUs did not know about the
  10345. critical section.
  10346. - SMP Signals: Fix some SMP signal delivery logic. Was not handling
  10347. some critical sections correctly and was missing logic to signal
  10348. tasks running on other CPUs.
  10349. - SMP: Fix timer related issues: Round robin and sporadic
  10350. scheduling were only being performed for tasks running on the CPU
  10351. that processes the system timer interrupt. Similary, CPU load
  10352. measurements were only be processed for running on the CPU that
  10353. receives the sampling interrupt.
  10354. - sched_note: Fix spinlock instrumentation. From Masayuki Ishikawa.
  10355. - In all implementations of _exit(), use enter_critical_section() vs.
  10356. disabling local interrupts.
  10357. - sigtimedwait: When timer expires, up_unblock_task() is called.
  10358. This is okay in the single CPU case because interrupts are disable
  10359. in the timer interrupt handler. But it is insufficient in the SMP
  10360. case. enter_ and leave_critical_section() must be called in order
  10361. to manage spinlocks correctly.
  10362. - Fix a compile error: in sched_cpuload.c:Line136, the variables ts
  10363. and secs are not defined if CONFIG_CPULOAD_ONESHOT_ENTROPY = 0.
  10364. However, these variables are used regardless of
  10365. CONFIG_CPULOAD_ONESHOT_ENTROPY at lines~180:onwards. From Rajan Gill.
  10366. - CPU load: Correct computation of the nominal period to use when the
  10367. source is a oneshot timer.
  10368. - Cancellation points: Fix some backward logic in conditional
  10369. compilation.
  10370. - Remove an unused variable when calling sigwaitinfo() and
  10371. sigtimedwait(). From Masayuki Ishikawa.
  10372. * File System/Block and MTD Drivers:
  10373. - procfs: Correct to snprintf-related errors in fs_procfsproc.c.
  10374. Resolves issue #24.
  10375. - Add logic to VFS rename: If target of rename exists and is a
  10376. directory, then the source file should be moved 'under' the target
  10377. directory. POSIX also requires that if the target is a file, then
  10378. that old file must be deleted.
  10379. - Fix open() a block device with
  10380. CONFIG_DISABLE_PSEUDOFS_OPERATIONS=y. From Masayuki Ishikawa.
  10381. - File System: Don't build block driver proxy if PSEUDOFS_OPERATIONS
  10382. are disabled.
  10383. - sendfile(): Fix error introduced with commit
  10384. ff73be870e38959b0aaee5961dc47b4b58dc2d86. Noted by Maciej Wójcik.
  10385. * Graphics/Graphic Drivers:
  10386. - NxWM configurations. If using a 7-bit character set, then the
  10387. cursor character cannot be 137 (graphic block). Use 95
  10388. (underscore) instead.
  10389. - NX server: Correct message queue names. Should not be at /dev,
  10390. but rather relative to /var/mqueue.
  10391. * Common Drivers:
  10392. - MMCSD_SDIO: Only wait for card ejected if card detection is
  10393. supported. From Alan Carvalho de Assis.
  10394. - Typos withim mtd/ with Macronix MX25L. In
  10395. NuttX/drivers/mtd/Make.defs letters X between M and 25 are
  10396. missing. Noted by Oleg Evseev.
  10397. - USBMSC: Always set LUN readonly flag. From Wolfgang Reißnegger.
  10398. - drivers/lcd: ssd1306_configspi() must have global scope.
  10399. - MMC/SD SDIO: Some drivers need to start DMA before sending CMD24
  10400. and some AFTER. From Alan Carvalho de Assis.
  10401. - drivers/tone.c: Handle configuration with multiple PWM channels.
  10402. This resolves issue #30: Audio Tone Generator and PWM Multiple
  10403. Output Channel options.
  10404. - drivers/tone.c: 50% duty needs to be expressed a a fixed precision
  10405. number.
  10406. - drivers/spi/Kconfig: There is too much SPI in the configuration
  10407. menu; SPI Driver Support menu is empty. From Maciej Wójcik.
  10408. - option to enable Memory Card debug output was hidden with SD cards
  10409. connected through SPI. From Maciej Wójcik.
  10410. - usbhost_cdcacm: fix tx outbuffer overflow and remove now invalid
  10411. assert. From Janne Rosberg.
  10412. * Networking/Network Drivers:
  10413. - Networking: Fixed some issues that prevented IPv6 from working with
  10414. IPv4 enabled. From Pascal Speck.
  10415. - Networking: fixed a nullptr-dereference on iob_clone. From Pascal
  10416. Speck.
  10417. - Ethernet: Need two work structures (minimum) in all Ethernet
  10418. drivers so that pending poll work is not lost when an interrupt
  10419. occurs.
  10420. * ARMv7-R:
  10421. - I found an issue inside the cp15_coherent_dcache function: The
  10422. "mcr CP15_BPIALLIS(r0)" should only be used with SMP
  10423. configurationa. In non-SMP configuration this instruction could
  10424. become undefined. From Manohara HK.
  10425. * Atmel SAM3/4 Drivers:
  10426. - SAM3/4: GPIO bit numbering typo fixes. From Wolfgang Reißnegger.
  10427. * Atmel SAM3/4 Boards:
  10428. - Add missing sched_note_*() calls in sam4cm SMP functions.
  10429. * NXP/Freescale Kinetis:
  10430. - Kinetis: Fixed wrong MCG VDIV calculation on new NXP K60. From
  10431. Maciej Skrzypek.
  10432. - Kinetis: Need to set HAVE_UART_DEVICE when UART4 is selected. From
  10433. Maciej Skrzypek.
  10434. - Kinetis MCG: Wrong FRDIV set in MCG_C1. From Maciej Skrzypek.
  10435. * NXP/Freescale Kinetis Drivers:
  10436. - Kinetis Serial: Fixed compile error when UART5 is selected. From
  10437. Maciej Skrzypek.
  10438. - Kinetis SDHC - Enable clock after selected. From David Sidrane.
  10439. - Kinetis: Correct some SPI and I2C configuration issues. From
  10440. David Sidrane.
  10441. - Kinetis Ethernet: Add #define for number of loops for auto
  10442. negotiation to complete. From Marc Rechté.
  10443. - Kinetis Werial: Fixed up_rxint - did not disable the RX
  10444. interuppts. There was an OR where and AND NOT was needed. From
  10445. David Sidrane.
  10446. * NXP/Freescale LPC43xx:
  10447. - LPC43 pinset definitions: Add more 1 bit to pinset to reach
  10448. SFSCLK0-SFSCLK3. Remove PINCONFIG_DIGITAL. From Alan Carvalho de
  10449. Assis.
  10450. * NXP/Freescale LPC43xx Drivers:
  10451. - LPC43 serial: Correct conditional logic that selects /dev/ttySN.
  10452. Problem noted by Alan Carvalho de Assis.
  10453. * NXP/Freescale i.MX6:
  10454. - i.MX6: Fix clearing GPT status register. From Masayuki Ishikawa.
  10455. * STMicro STM32:
  10456. - STM32, STM32L4 Oneshot: Fix logic so that it can support multiple
  10457. oneshot timers.
  10458. - STM32 F7: Added missing ARCH_HAVE_RESET for F7. From David Sidrane.
  10459. - STM32: Add missing STM32_BKP_BASE. From David Sidrane.
  10460. - STM32 and STM32F7: Fixes the BKP reference counter issue. From
  10461. David Sidrane.
  10462. * STMicro STM32 Drivers:
  10463. - Fix for SAMv7 SPI: DLYBS value was calculated, but never written to
  10464. any registers. This led to incorrect timings on the bus. From
  10465. Michael Spahlinger.
  10466. - STM32 QEncoder: Fix QEncoder driver, based on STM32L4 driver. From
  10467. Alan Carvalho de Assis.
  10468. - STM32 QEncoder: Enable clocking to the timer on QE setup; disable
  10469. clock on QE teardown.
  10470. - STM32 Ethernet: Need two work structures so that pending poll work
  10471. is not lost when an interrupt occurs. This change has also been
  10472. ported to all all other effected Ethernet drivers.
  10473. - STM32 OTGHS host: stm32_in_transfer() fails and returns NAK if a
  10474. short transfer is received. This causes problems from class
  10475. drivers like CDC/ACM where short packets are expected. In those
  10476. protocols, any transfer may be terminated by sending short or NUL
  10477. packet. From Janne Rosberg. Adapted Janne Rosberg's patch to
  10478. STM32 OTGHS host to OTGFS host, and to similar USB host
  10479. implementations for STM32 L4 and F7.
  10480. * STMicro STM32 Boards:
  10481. - STM32F4 Discovery: Fix issues with QEncoder support. From Alan
  10482. Carvalho de Assis.
  10483. * C Library/Header Files:
  10484. - Add debug assertion in libdtoa to catch attempts to use floating
  10485. point output formats from within an interrupt handler. That will
  10486. cause assertions or crashes downstream because __dtoa will attempt
  10487. to allocate memory. From Pierre-noel Bouteville.
  10488. - libc: Fix ARMv7-A/R memcpy assembly.
  10489. - Fix return value if x is NaN. From Aleksandr Vyhovanec.
  10490. * apps/nshlib:
  10491. - NSH: Eliminate a warning when all memory inspection commands are disabled.
  10492. * apps/graphics:
  10493. - apps/graphics/traveler/tools: Fix linkage issue. The -lm should
  10494. come after -o binname. From Alan Carvalho de Assis.
  10495. * apps/netutils:
  10496. - The CONFIG_NETUTILS_HTTPD_PATH constant is used by httpd_mmap.c and
  10497. httpd_sendfile.c but It was not present in Kconfig menu. From
  10498. Maciej Wójcik.
  10499. * apps/examples:
  10500. - Configurations that enable OSTEST must not disable signals.
  10501. - apps/examples/ostest: Was ignoring
  10502. CONFIG_EXAMPLES_OSTEST_FPUTESTDISABLE.
  10503. - In apps/examples/mtdpart/mtdpart_main.c where
  10504. CONFIG_EXAMPLES_MTDPART_NPARTITIONS defining is checked should be
  10505. #ifndef instead of #ifdef. Noted by Oleg Evseev.
  10506. NuttX-7.21 Release Notes
  10507. ------------------------
  10508. The 121st release of NuttX, Version 7.21, was made on June 6, 2017,
  10509. and is available for download from the Bitbucket.org website. Note
  10510. that release consists of two tarballs: nuttx-7.21.tar.gz and
  10511. apps-7.21.tar.gz. These are available from:
  10512. https://bitbucket.org/nuttx/nuttx/downloads
  10513. https://bitbucket.org/nuttx/apps/downloads
  10514. Both may be needed (see the top-level nuttx/README.txt file for build
  10515. information).
  10516. Additional new features and extended functionality:
  10517. * Core OS:
  10518. - pthread rwlocks: Add an implementation for read/write locks
  10519. (rwlocks) into the pthread library. These locks are writer
  10520. priority, such that if any writers come in they are given priority
  10521. for writing. From Mark Schulte.
  10522. - pthread robust mutexes: Implement robust mutex support:
  10523. pthread_mutex_lock() and trylock() will return EOWNERDEAD if the
  10524. mutex is locked by a thread that no longer exists. Add
  10525. pthread_mutex_consistent() to recover from this situation. Keep
  10526. list of all mutexes held by a thread in a list in the pthread's TCB.
  10527. When pthread exits or is cancelled, mutexes held by thread are
  10528. marked inconsistent and the highest priority thread waiting for the
  10529. mutex is awakened. There is a configuration option to (a) support
  10530. only robust mutexes, (b) support only traditional unsafe mutexes,
  10531. or (c) Support both unsafe and robust mutexes via
  10532. pthread_mutexattr_get/setrobust().
  10533. - pthread cancellation points: Add logic to disable cancellation
  10534. points within the OS. This is useful when an internal OS function
  10535. that is NOT a cancellation point calls an OS function which is a
  10536. cancellation point. In that case, irrecoverable states may occur if
  10537. the cancellation is within the OS. From Juha Niskanen.
  10538. - clock: Add clock_resynchronize and use subseconds RTC. Add
  10539. clock_resynchronize for better synchronization of CLOCK_REALTIME and
  10540. CLOCK_MONOTONIC to match RTC after resume from low-power state. Add
  10541. up_rtc_getdatetime_with_subseconds under
  10542. CONFIG_ARCH_HAVE_RTC_SUBSECONDS to allow initializing (and
  10543. resynchronizing) system clock with subseconds accuracy RTC. From
  10544. Jussi Kivilinna.
  10545. - clock: Add new type ssystime_t for relative 64-bit ticks, change
  10546. ticks<->time conversion functions to use ssystime_t. From Jussi
  10547. Kivilinna.
  10548. - clock: Add testing for 32-bit overflow of 64-bit system timer. From
  10549. Jussi Kivilinna.
  10550. * File Systems/Block and MTD Drivers
  10551. - drivers/mtd/w25.c: Erase sector only if it is not in erased state.
  10552. From Jussi Kivilinna.
  10553. * Graphics/Display Drivers:
  10554. - drivers/lcd: Extend st7565 driver to include support for the
  10555. AQM_1248A. From Masayuki Ishikawa.
  10556. - drivers/lcd: Add driver for Nokia 5110 (Philips PCD8544). From Alan
  10557. Carvalho de Assis.
  10558. * Networking/Network Drivers:
  10559. - Extensive modifications to support wireless network (see below).
  10560. - TUN driver: Implement TAP (OSI layer 2) mode. Enable by setting the
  10561. IFF_TAP flag instead of the IFF_TUN flag in ifr_flags. From Thomas
  10562. Keh.
  10563. - Add user-space networking stack API (usrsock). User-space
  10564. networking stack API allows user-space daemon to provide TCP/IP
  10565. stack implementation for NuttX network. Main use for this is to
  10566. allow use and seamless integration of HW-provided TCP/IP stacks to
  10567. NuttX. For example, user-space daemon can translate /dev/usrsock
  10568. API requests to HW TCP/IP API requests while rest of the user-space
  10569. can access standard socket API, with socket descriptors that can be
  10570. used with NuttX system calls. From Jussi Kivilinna.
  10571. - net/: Network driver now retains Ethernet MAC address in a union so
  10572. that other link layer addresses may be used in a MULTILINK
  10573. environment.
  10574. * Wireless Networking/Wireless Drivers:
  10575. - BCM43362: Support for Broadcom's BCM43362 WiFi chip was contributed
  10576. by Simon Piriou as part of the port of the Particle Photon board.
  10577. Only station functionality is available at present. This work
  10578. includes not on the WiFi driver, but the support Particle Photon
  10579. board, the infrasture for IEEE 802.11 FullMAC networking including
  10580. the network device interface, WiFi configuration, AP scanning and
  10581. authentication and association with an AP.
  10582. - IEEE 802.11 networking tools and support.
  10583. - IEEE 802.15.4 MAC support. This is an effort that was started some
  10584. time back by Sebastien Lorquet (with some help from Matte Poppe).
  10585. Recently, Anthony Merlino has taken on this effort and has made
  10586. some significant progress. Using the Microchip MRF24J40 module with
  10587. the Mikroe Clicker2-STM32 board along with a PC-based IEEE 802.15.4
  10588. sniffer, Anthonly has verified correct transmittion and receipt of
  10589. basic frames.
  10590. - Microchip MRF24J40: As mentioned above, this IEEE 802.15.4 radio
  10591. driver is now basically functional.
  10592. - IEEE 802.15.4 Network Driver: A driver that interfaces the NuttX
  10593. network with the IEEE 802.15.4 MAC has been developed but is still
  10594. incomplete and has not been verified.
  10595. - IEEE 802.15.4 Network Loopback Driver: A simple IEEE 802.15.4 MAC
  10596. loopback driver was developed. This driver allowed for parallel
  10597. development of the IEEE 802.15.4 MAC and 6LoWPAN.
  10598. - 6LoWPAN: The Contiki 6LoWPAN stack has been ported so that works
  10599. within the NuttX networking framework and interfaces with the new
  10600. IEEE 802.15.4 MAC via the network driver. Live testing with
  10601. IEEE 802.15.4 radios has not yet been done; all testing has used
  10602. the loopback driver. There are no known problems and the stack
  10603. is ready for additional testing.
  10604. - Add option to enable wireless debug output.
  10605. * Other Common Device Drivers:
  10606. - Add entropy pool and strong random number generator. Entropy pool
  10607. gathers environmental noise from device drivers, user-space, etc.,
  10608. and returns good random numbers, suitable for cryptographic use.
  10609. Based on entropy pool design from *BSDs and uses BLAKE2Xs algorithm
  10610. for CSPRNG output. Patch also adds /dev/urandom support for using
  10611. entropy pool RNG and new 'getrandom' system call for getting
  10612. randomness without file-descriptor usage (thus avoiding file-
  10613. descriptor exhaustion attacks). The 'getrandom' interface is similar
  10614. as 'getentropy' and 'getrandom' available on OpenBSD and Linux
  10615. respectively. From Jussi Kivilinna.
  10616. - XBox One controller: Adds USB host driver support for the XBox One
  10617. controller. Currently only the latest version (XBox One X)
  10618. controller works. The older XBox One controllers do not enumerate
  10619. correctly. From Brian Webb.
  10620. - drivers/analog: Add basic COMP driver. From Mateusz Szafoni.
  10621. - drivers/analog: Add driver for the LTC1767L ADC. From Martin
  10622. Lederhilger.
  10623. - drivers/analog: Add basic OPAMP driver. From Mateusz Szafoni.
  10624. - drivers/sensors: Add driver for ST HTS221 humidity sensor. From
  10625. Juha Niskanen.
  10626. - drivers/sensors: Add driver for ST LPS25H pressure sensor. From
  10627. Juha Niskanen.
  10628. - drivers/sensors: Add driver for ST LIS2DH accelerometer. From Timo
  10629. Voutilainen.
  10630. - drivers/usbmisc: Add driver for Fairchild FUSB301 USB type-C
  10631. controller. From Harri Luhtala.
  10632. - RTC: Add interface for check if RTC time has been set. New
  10633. interface allows checking if RTC time has been set. This allows to
  10634. application to detect if RTC has valid time (after reset) or should
  10635. application attempt to get real time by other means (for example, by
  10636. launching ntpclient or GPS). From Jussi Kivilinna.
  10637. - Buttons: Change return value of board_buttons() and the type of
  10638. btn_buttonset_t to uint32_t so that more than 8 buttons can be
  10639. supported.
  10640. - drivers/syslog: Use monotonic clock for timestamp when available.
  10641. From Jussi Kivilinna.
  10642. - SPI: Add an instance argument to the SPIDEV definitions. Thus,
  10643. instead of specifying a FLASH device, for example, as SPI_FLASH, you
  10644. would now use SPI_FLASH(0) where the "instance" argument now
  10645. distinguishes multiple FLASH devices on the same SPI bus. From
  10646. Sebastien Lorquet.
  10647. - IOBs: Move from net/iob to a better location in mm/iob where they
  10648. can be shared outside of the networking logic. Current also used
  10649. by IEEE 802.15.4 MAC and by syslog (when buffering enabled).
  10650. - syslog: Add option to buffer SYSLOG output to avoid interleaving.
  10651. Uses new shareable IOBs. Additional logic to assure that the the
  10652. write from the buffer is a single atomic write in normal debug
  10653. output.
  10654. - drivers/can: Move CAN subsystem to its own directory and put device
  10655. drivers there. From Alan Carvalho de Assis.
  10656. - drivers/can: Add Microchip MCP2515 CAN Bus controller driver. From
  10657. Alan Carvalho de Assis.
  10658. - drivers/audio: Add cs43l22 audio driver. From Taras Drozdovsky.
  10659. - drivers/input: Add Cypress MBR3108 CapSense touch button driver.
  10660. From Juha Niskanen.
  10661. * Simulation
  10662. - configs/sim/sixlowpan: Configuration for testing the 6LoWPAN with
  10663. the IEEE 802.15.4 loopback network driver.
  10664. * Infineon XMC4xxx:
  10665. - arch/arm/src/xmc4: Initial, partial support for Infineon XMC4xxx.
  10666. * Infineon XMC4xxx Boards:
  10667. - XMC4500 Relax: Add basic board support infrastructure of Infineon
  10668. XMC4500 Relax Lite v1. Basic serial, LED, and button button support
  10669. for a simple NSH configuration. There are still stome remaining
  10670. issues with serial communications.
  10671. * MicroChip PIC32MX Boards:
  10672. - pic32mx7mmb: Add support for the Pinquino toolchain.
  10673. - pic32mx7mmb: Add support for PROCFS file system.
  10674. * NXP Freescale Kinetis:
  10675. - Kinetis: Allow board to add pullups on SDHC lines. From David
  10676. Sidrane.
  10677. - Kinetis: Use optional BOARD_OSC_CR and BOARD_OSC_DIV in clock
  10678. configuration. From David Sidrane.
  10679. * NXP Freescale Kinetis Drivers:
  10680. - Kinetis: Add Timer PWM Module (TPM) to K66 chip. From David
  10681. Sidrane.
  10682. - Kinetis: Added HW flow control and termios. From David Sidrane.
  10683. - Kinetis: Add ARCH_HAVE_I2CRESET. From David Sidrane.
  10684. * NXP Freescale LPC43xx:
  10685. - Add support for LPC4337FET256. From Andreas Bihlmaier.
  10686. * STMicro STM32:
  10687. - Change STM32 tickless to use only one timer. From Konstantin
  10688. Berezenko.
  10689. - STM32 F7: Add support for LSE RTC and enable RTC subseconds. From
  10690. Jussi Kivilinna.
  10691. - STM32 L1: stm32l15xx_rcc: Add support for using MSI as system
  10692. clock. From Juha Niskanen.
  10693. - STM32 L1: stm32l15xxx_rcc: configure medium performance voltage
  10694. range and zero wait-state when allowed by SYSCLK setting. Zero
  10695. wait-state for flash can be configured when: (1) Range 1 and
  10696. SYSCLK <= 16 Mhz, (2) Range 2 and SYSCLK <= 8 Mhz, or (3) Range 3
  10697. and SYSCLK <= 4.2 Mhz. Medium performance voltage range (1.5V)
  10698. can be configured when SYSCLK is up to 16 Mhz and PLLVCO up to
  10699. 48 Mhz. From Juha Niskanen.
  10700. - STM32 F0: Add basic support for STM32F0. From Alan Carvalho de
  10701. Assis.
  10702. - STM32 F0: Add basic support for STM32F07x family.
  10703. - STM32 L1: stm32l15xx_rcc: Allow board to configure HSE clock in
  10704. bypass-mode. Allows using MCO output from ST-link chip (on Nucleo
  10705. and Discovery boards) as HSE input. From Juha Niskanen.
  10706. - STM32 L1: Add support for STM32L152CC, STM32L152RC and STM32L152VC.
  10707. From Juha Niskanen.
  10708. - STM32 F0: Add support for HSI48.
  10709. - STM32 L4: Add support for the STM32L496XX family. From Juha
  10710. Niskanen.
  10711. - STM32 L4: modularize Kconfig to support different product
  10712. lines/families. This is modeled after STM32F7. Idea is to declare
  10713. each chip in Kconfig but allow for flash size override. Commit adds
  10714. many STM32L4_HAVE_XXX feature test macros. From Juha Niskanen.
  10715. - STM32 L4: Separate SYSCFG into product line specific files for
  10716. clarity. From Juha Niskanen.
  10717. - STM32 L4: Add support for many new MCUs from the STM32L4X3XX
  10718. product line. From Juha Niskanen.
  10719. - STM32 L4: Add dbgmcu header files. From Juha Niskanen.
  10720. - STM32 F410: Add support for STM32F410. STM32F410 is a version of
  10721. STM32F4 with 32 KB of RAM and 62 or 128 KB of flash. From Gwenhael
  10722. Goavec-Merou.
  10723. * STMicro STM32 Drivers:
  10724. - SDIO: Extensions to support the SDIO interface to the BCM43362 from
  10725. Simon Piriou.
  10726. - STM32 F2: Add USB OTG HS support for stm32f20xxx cores. From Simon
  10727. Piriou.
  10728. - STM32 F2, F4, and F7: Add BOARD_DISABLE_USBOTG_HSULPI flag. From
  10729. Simon Piriou.
  10730. - STM32 F33: Move DMA logic to a separate files + add ADC support.
  10731. From Mateusz Szafoni.
  10732. - STM32 F3: Add COMP support. From Mateusz Szafoni.
  10733. - STM32 F33: Support for COMP character driver. From Mateusz Szafoni.
  10734. - STM32 F4: Implement DMA support for the STM32F4 I2C. From Rajan Gill.
  10735. - STM32 F7: Add stm32 RNG support. This is copied from stm32l4.
  10736. Tested on STM32F746ZG board. From Juha Niskanen.
  10737. - STM32 L1: Add STM32L162VE to chip.h. From Juha Niskanen.
  10738. - STM32 F4: Add I2C3 SDA pin mapping for STM32F411. From no1wudi.
  10739. - STM32 L1: stm32_flash: Add EEPROM writing for STM32L15XX. From
  10740. Juha Niskanen.
  10741. - STM32 F7: Serial: Add interface to get uart_dev_t by USART number,
  10742. stm32_serial_get_uart. From Jussi Kivilinna.
  10743. - STM32 F4: Provide TIM5 definition for STM32F429. From Matias v01d.
  10744. - STM32 F0: Add an untested port of the F1 USB device to the STM32F0.
  10745. - STM32 F0: Add support for the STM32F09X family. From Juha
  10746. Niskanen.
  10747. - STM32 F0: Initial cut at I2C driver. Still a work in progress.
  10748. From Alan Carvalho de Assis.
  10749. - STM32 F33: Add OPAMP support. From Mateusz Szafoni.
  10750. - STM32 L4: stm32l4_i2c: Add I2C4 code. From Juha Niskanen.
  10751. - STM32 L4: Add GPIO_PORTI definition. From Juha Niskanen.
  10752. - STM32 F7 Serial: Allow configuring Rx DMA buffer size. From Jussi
  10753. Kivilinna.
  10754. - STM32 L4: Firewall for stm32l4x3xx. Not tested for any product
  10755. family, but now it at least compiles. L496 devices can have one bit
  10756. wider Volatile Data Segment. From Juha Niskanen.
  10757. - STM32 TIM: Add method to get timer width. Freerun timer: Use timer
  10758. width to get the correct clock rollover point.
  10759. - STM32 L4: Add internal flash write support. From Juha Niskanen.
  10760. - STM32 L4: Port stm32l4_serial_get_uart function from STM32F7. From
  10761. Juha Niskanen.
  10762. - STM32 Ethernet: Add support for KSZ8081 PHY interrupts. From
  10763. Sebastien Lorquet.
  10764. - STM32 F4: Add I2S driver. From Taras Drozdovsky.
  10765. - STM32 L4: Add IWDG peripheral. This is the same as for STM32
  10766. except that prescale and reload can be changed after watchdog has
  10767. been started, as this seems to work on L4. From Juha Niskanen.
  10768. - STM32 F7: Add SPI DMA support. From Jussi Kivilinna.
  10769. * STMicro STM32 Boards:
  10770. - Support for the Particle Photon board was contributed by Simon
  10771. Piriou. The Photon board is based on a STM32F205G MCU with and on-
  10772. board BCM43362 WiFi chip that interfaces via the STM32's SDIO
  10773. interface. Board configuration support includes, in addition,
  10774. buttons, LEDS, IWDG, USB OTG HS, and procfs support. Configurations
  10775. available for nsh, usbnsh, and wlan configurations.
  10776. - Clicker2-STM32: Support for the Mikroelektronika Clicker 2 for
  10777. STM32 was added by Anthony Merlino. This board, along with the
  10778. MRF24J40 Click board is the platform used to deveop the IEEE
  10779. 802.15.4 support. The boad configuration includes the MRF24J40
  10780. intialization logic and SPI support. Configurations exist for nsh,
  10781. knsh, usbnsh, and mrf24j40-radio.
  10782. - Nucleo_F334R8: Add ADC example. From Mateusz Szafoni.
  10783. - Nucleo-F334R8: Add COMP support. From Mateusz Szafoni.
  10784. - Nucleo-F334R8: Use new COMP driver. From Mateusz Szafoni.
  10785. - Adds USB host support to stm32f411-disco board. From Brian Webb.
  10786. - Add stm32f0discovery board support. From Alan Carvalho de Assis.
  10787. - Nucleo-F072RB: Add board configuration.
  10788. - Nucleo-F334R8: Add OPAMP support. From Mateusz Szafoni.
  10789. - Nucleo-F072RB: Add support for the I2C driver used by I2C tools.
  10790. - Nucleo-L496ZG: Add nucleo-l496zg board files. From Juha Niskanen.
  10791. - Nucleo-F091RC: Add nucleo-f091rc board files. From Juha Niskanen.
  10792. - Nucleo-L432KC: Add nucleo-l432kc board files. From Sebastien
  10793. Lorquet.
  10794. - Nucleo-L452RE: Add nucleo-l452re board files. From Juha Niskanen.
  10795. - stm32f103-miniumum: Add board support to use the Nokia 5110
  10796. LCD display driver. From Alan Carvalho de Assis.
  10797. * C Library/Header Files:
  10798. - C library: Add strerror_r().
  10799. - C Library: Add wcstoull(), swprintf(), wcstod(), wcstof(), wcstol(),
  10800. wcstold(), wcstoul(), wcstoll() functions. Add mbsnrtowcs() and
  10801. wcsnrtombs() (just returning success). Add mbtowc() and wctomb() to
  10802. C++ std namespace. From Alan Carvalho de Assis.
  10803. - C Library: Add ffsl(), ffsll(), fls(), flsl(), flsll() and use
  10804. GCC's __builtin_ctz/__builtin_clz for faster implementation of these.
  10805. From Jussi Kivilinna.
  10806. - fixedmath: Add square root and b32_t conversion operators. From
  10807. Jussi Kivilinna.
  10808. - locale.h: Add a bogus definition of locale_t.
  10809. - C library: Versions mbrlen and mbsrtowcs taken and adapted from
  10810. FreeBSD code (at https://github.com/freebsd/freebsd/). From Matias
  10811. v01d.
  10812. * Build/Configuration System:
  10813. - Include C++ library in 'make export'. From Alan Carvalho de Assis.
  10814. - configs: Remove all setenv.sh and setenv.bat files. Remove all
  10815. references to setenv.sh and setenv.bat from all config README files.
  10816. - Kconfig/deconfigs: Add CONFIG_ARCH_TOOLCHAIN_GNU to indicate that
  10817. the toolchain is based on GNU gcc/as/ld. This is in addition to the
  10818. CPU-specific versions of the same definition.
  10819. - Move prototype for up_cxxinitialize() from nuttx/include/nuttx/arch.h
  10820. to apps/include/platform/cxxinitialize.h.
  10821. * Tools:
  10822. - Add initialconfig.c so that perhaps in the future we will be able to
  10823. use this to generate a new configuration from scratch (rather than
  10824. having to derive new configurations from existing configurations).
  10825. NOTE: Not yet intregated into the build system.
  10826. * NSH: apps/nshlib:
  10827. - Added support for set [{+|-}{e|x|xe|ex}] [<name> <value>]. Set the
  10828. 'exit on error control' and/or 'print a trace' of commands when
  10829. parsing scripts in NSH. The settinngs are in effect from the point
  10830. of exection, until they are changed again, or in the case of the init
  10831. script, the settings are returned to the default settings when it
  10832. exits. Included child scripts will run with the parents settings and
  10833. changes made in the child script will effect the parent on return.
  10834. Use 'set -e' to enable and 'set +e' to disable (ignore) the exit
  10835. condition on commands. The default is -e. Errors cause script to
  10836. exit. Use 'set -x' to enable and 'set +x' to disable (silence)
  10837. printing a trace of the script commands as they are ececuted. The
  10838. default is +x. No printing of a trace of script commands as they are
  10839. executed. From David Sidrane.
  10840. - Print expanded variables if -x. From David Sidrane.
  10841. - ifconfig command: Extend ifconfig to support 6LoWPAN. Adapt to
  10842. some changes in configuration variable usage.
  10843. - Network initialization: If IEEE802.11 selected use wlan0 instead of
  10844. eth0 for network device name.
  10845. - Network initialization: NSH now has configuration options to select
  10846. the wireless properties. It builds the configuration structure and
  10847. passes this to wpa_driver_wext_associate() so that it will set the
  10848. network as configured.
  10849. - Network initialization: Add a new option CONFIG_NSH_NETLOCAL that
  10850. will suppress some built in operations and will support manual
  10851. configuration of a wireless network through command line tools.
  10852. * Examples/Tests: apps/examples:
  10853. - examples/xbc_text: Adds a test program for the XBox One controller
  10854. driver. From Brian Webb.
  10855. - examples/ostest: Add a test of robust mutexes.
  10856. - examples/ostest: Add tests for pthread_rwlock. Adding tests to be
  10857. used to verify the pthread_rwlock lock works. From Mark Schulte.
  10858. - examples/ostest: Additional test for rwlock and one for cancel
  10859. cleanup handlers. From Juha Niskanen.
  10860. - examples/usrsocktest: Add application for USRSOCK testing. From
  10861. Jussi Kivilinna.
  10862. - examples/nettest: Adapt for use in testing 6LoWPAN.
  10863. - examples/nettest: If doing loopback, but not using the official
  10864. loopback device, then use the server should use the configured client
  10865. IP address.
  10866. - examples/udpblaster: Several fixes to work with 6LoWPAN.
  10867. - examples/udpblaster: Add logic to bind the local UDP socket to a
  10868. well-known address.
  10869. - examples/configdata: Add stacksize and priority. From Juha Niskanen.
  10870. * Network Utilities: apps/netutils:
  10871. - netutils/netlib: Add IEEE 802.11 wireless IOCTL wrappers.
  10872. - netutils/netlib: Add a helper function to convert a string to a
  10873. 6LoWPAN node address.
  10874. - netlib and NSH: Add logic to get/set the IEEE802.15.4 PAN ID.
  10875. - netutils/dhcpc: Make the network device name a configuration
  10876. option. Was hardcoded to eth0 but may, instead, need to be wlan0.
  10877. - netutils/dhcpc: Remove hard-coded interface device. Now passed as
  10878. a parameter to dhcpc_open(). From Sebastien Lorquet.
  10879. * Wireless Utilities: apps/wireless:
  10880. - wireless/wapi: Port of Wapi wireless services. The original
  10881. depended on features not supported by NuttX: Removed logic that
  10882. depends on Linux netlink. Removed functionality that depended on
  10883. the Linux procfs: This includes only 1) listing of available
  10884. interfaces and 2) listing of all routes.
  10885. - wireless/wapi: Create command line Wapi application based on
  10886. Wapi sample code.
  10887. - wireless/wapi: wpa_driver_wext_associate() now accepts a
  10888. configuration parameter that can be used to specify the wireless
  10889. properties.
  10890. - wireless/wapi: Add basic wapi_event_stream_extract implementation.
  10891. From Simon Piriou.
  10892. - wireless/ieee802154: Add iwpan and i8sak tools. iwpan is similar
  10893. in concept to wapi. From Anthony Merlino (i8sak was originally
  10894. by Sebastien Lorquet).
  10895. - wireless/ieee802154/libmac: IEEE 802.15.4 MAC library.
  10896. - wireless/wext: Add drivers_wext from the WPA supplicant; Integrate
  10897. into NSH. From Simon Piriou.
  10898. * System Utilities (apps/system)
  10899. - apps/system/dhcpc: Add a command to renew or establish a lease on an
  10900. IPv4 address.
  10901. - apps/system/ntpc: Add a command to start or stop the NTPC daemon.
  10902. - apps/system/ramtest: Make stacksize and priority conigurable.
  10903. * Platform-Specific Support (apps/platform)
  10904. - apps/platform: Create gnu/ subdirectory that contains the one and
  10905. only GNU C++ initialization function. Remove all other C++
  10906. initialization functions.
  10907. Bugfixes. Only the most critical bugfixes are listed here (see the
  10908. ChangeLog for the complete list of bugfixes and for additional, more
  10909. detailed bugfix information):
  10910. * Core OS:
  10911. - Priority inheritance: When CONFIG_SEM_PREALLOCHOLDERS==0, there is
  10912. only a single, hard-allocated holder structure. This is problem
  10913. because in sem_wait() the holder is released, but needs to remain in
  10914. the holder container until sem_restorebaseprio() is called. The call
  10915. to sem_restorebaseprio() must be one of the last things the
  10916. sem_wait() does because it can cause the task to be suspended. If in
  10917. sem_wait(), a new task gets the semaphore count then it will fail to
  10918. allocate the holder and will not participate in priority
  10919. inheritance. This fix is to add two hard-allocated holders in the
  10920. sem_t structure: One of the old holder and one for the new holder.
  10921. - Priority inheritance: sem_holder sem_findholder missing
  10922. inintalization of pholder. sem_findholder would fail and code
  10923. optimization covered this up. From David Sidrane.
  10924. - Partial Fix priority inheritance CONFIG_SEM_PREALLOCHOLDERS=0. From
  10925. David Sidrane.
  10926. - Priority inheritance: sem_boostholderprio prevent overrun of
  10927. pend_reprios. The second case rtcb->sched_priority <=
  10928. htcb->sched_priority did not check if there is sufficient space in
  10929. the pend_reprios array. From David Sidrane.
  10930. - lp_worker: Guard from pend_reprios overlow. From David Sidrane.
  10931. - Priority inheritance: Fixes improper restoration of base_priority in
  10932. the case of CONFIG_SEM_PREALLOCHOLDERS=0. The call to
  10933. sem_restorebaseprio_task context switches in the
  10934. sem_foreachholder(sem, sem_restoreholderprioB, stcb); call prior to
  10935. releasing the holder. So the running task is left as a holder as is
  10936. the started task. Leaving both slots filled thus failing to perform
  10937. the boost/or restoration on the correct tcb. This PR fixes this by
  10938. releasing the running task slot prior to reprioritization that can
  10939. lead to the context switch. To faclitate this, the interface to
  10940. sem_restorebaseprio needed to take the tcb from the holder prior to
  10941. the holder being freed. In the failure case where sched_verifytcb
  10942. fails it added the overhead of looking up the holder. There is also
  10943. the additional thunking on the foreach to get from holer to
  10944. holder->tcb. An alternate approach could be to leve the interface
  10945. the same and allocate a holder on the stack of sem_restoreholderprioB
  10946. copy the sem's holder to it, free it as is done in this pr and and
  10947. then pass that address sem_restoreholderprio as the holder. It could
  10948. then get the holder's tcb but we would keep the same sem_findholder
  10949. in sched_verifytcb. From David Sidrane.
  10950. - Priority inheritance: Fixes improper restoration of base_priority.
  10951. From David Sidrane.
  10952. - sem_holder: Indexing error. From David Sidrane.
  10953. if (sem->holder[0].htcb != NULL || sem->holder[**1**].htcb != NULL)
  10954. - realloc(): When realloc() has to fall back to calling malloc(), size
  10955. including overhead was being provided to malloc(), causing a slightly
  10956. larger allocation than needed. Noted by initialkjc@yahoo.com.
  10957. - scheduler: Fix tg_flags check with GROUP_FLAG_NOCLDWAIT. From Masayuki
  10958. Ishikawa.
  10959. - scheduler: Fix CHILD_FLAG_EXITED in include/nuttx/sched.h. From
  10960. Masayuki Ishikawa.
  10961. - binfmt/elf: Fix offset value when calling elf_read() in
  10962. elf_symname(). From Masayuki Ishikawa.
  10963. - binfmt/elf: Fix offset value when calling elf_read() in
  10964. elf_sectname(). From Masayuki Ishikawa.
  10965. - There can be a failure in IOB allocation to some asynchronous
  10966. behavior caused by the use of sem_post(). Consider this scenario:
  10967. (1) Task A holds an IOB.  There are no further IOBs.  The value of
  10968. semcount is zero. Task B calls iob_alloc().  Since there are not
  10969. IOBs, it calls sem_wait().  The value of semcount is now -1. (2)
  10970. Task A frees the IOB.  iob_free() adds the IOB to the free list and
  10971. calls sem_post() this makes Task B ready to run and sets semcount to
  10972. zero NOT 1.  There is one IOB in the free list and semcount is zero.
  10973. When Task B wakes up it would increment the sem_count back to the
  10974. correct value. (3) But an interrupt or another task runs occurs
  10975. before Task B executes.  The interrupt or other tak takes the IOB off
  10976. of the free list and decrements the semcount.  But since semcount is
  10977. then < 0, this causes the assertion because that is an invalid state
  10978. in the interrupt handler. So I think that the root cause is that
  10979. there the asynchrony between incrementing the semcount. This change
  10980. separates the list of IOBs: Currently there is only a free list of
  10981. IOBs. The problem, I believe, is because of asynchronies due
  10982. sem_post() post cause the semcount and the list content to become out
  10983. of sync. This change adds a new 'committed' list: When there is a
  10984. task waiting for an IOB, it will go into the committed list rather
  10985. than the free list before the semaphore is posted. On the waiting
  10986. side, when awakened from the semaphore wait, it will expect to find
  10987. its IOB in the committed list, rather than free list. In this way,
  10988. the content of the free list and the value of the semaphore count
  10989. always remain in sync.
  10990. - binfmt: Fix .dtor memory allocation. From Masayuki Ishikawa.
  10991. * File System/Block and MTD Drivers:
  10992. - SmartFS: If whence is SEEK_END, the file offset shall be set to the
  10993. size of the file plus offset. Noted by eunb.song@samsung.com.
  10994. - mtd/progmem: Fix incorrect target address calculation.
  10995. progmem_read/write() is incorrectly calculating the target address,
  10996. expecting the offset argument is given in a block number. This is
  10997. completely wrong and as a result invalid flash region is accessed.
  10998. Byte-oriented read/write interfaces of mtd device accept the target
  10999. address in a byte offset, not a block number. From Heesub Shin.
  11000. - procfs: Fix wrong member IDs are displayed when 'cat
  11001. /proc/<pid>/group/status'. From Nobutaka Toyoshima.
  11002. - procfs: Fix incorrect uptime with CONFIG_SYSTEM_TIME64. From
  11003. Masayuki Ishikawa.
  11004. - vfs/poll: round timeout up to next full tick. Calling poll() with
  11005. timeout less than half tick (thus MSEC2TICK(timeout) => 0) caused
  11006. returning error with EAGAIN. Instead of rounding timeout down, value
  11007. should be rounded up. Open Group spec for poll says:
  11008. "Implementations may place limitations on the granularity of timeout
  11009. intervals. If the requested timeout interval requires a finer
  11010. granularity than the implementation supports, the actual timeout
  11011. interval will be rounded up to the next supported value." From Jussi
  11012. Kivilinna.
  11013. - mtd/config: erase block between block read and write. From Juha
  11014. Niskanen.
  11015. - mtd: Build RAMTRON and AT45DB drivers only if selected. From Juha
  11016. Niskanen.
  11017. - mtd/config: Fix byte read interface test. From Juha Niskanen.
  11018. - mtd: Fix some unallocated and NULL pointer issues. rwb->wrflush and
  11019. rwb->wrmaxblocks in rwbuffer could get unallocated values from
  11020. ftl_initialize() in some configurations. Also fixes related assert:
  11021. up_assert: Assertion failed at file:rwbuffer.c line: 643
  11022. that can happen with the following configuration:
  11023. CONFIG_FTL_WRITEBUFFER=y
  11024. CONFIG_DRVR_WRITEBUFFER=y
  11025. # CONFIG_FS_WRITABLE is not set
  11026. These problems are caused by CONFIG variable differences between the
  11027. buffer layers. TODO: This is not a perfect solution. readahead
  11028. support has similar issues. From Juha Niskanen.
  11029. - net procfs: Fix buffer corruption and refactor netdev_statistics.c.
  11030. From Masayuki Ishikawa.
  11031. - FAT: Fix 'Missing unlock' in fs_fat32.c. From Masayuki Ishikawa.
  11032. - VFS fdopen: Add missing file stream flags clearing. Clear file
  11033. stream structure regardless of config options. Structure clearing is
  11034. needed as previous use of stream list entry might leave fs_flags
  11035. set. From Harri Luhtala.
  11036. - mtd/smart: Fix use of uninitialized variable. From Jussi Kivilinna.
  11037. - mtd/w25.c: Enable short delay after sector/chip erase. From Jussi
  11038. Kivilinna.
  11039. - mtd/config: Add some error checks for I/O errors. From Juha
  11040. Niskanen.
  11041. * Graphics/Graphic Drivers:
  11042. - net procfs: Some long lines were being generated that cause buffer-
  11043. related problems and corrupted output.
  11044. * Networking/Network Drivers:
  11045. - Fixed wrong assert on udp dgram send. From Pascal Speck.
  11046. - TCP/IPv6: Fix a compile issue when IPv6, but not IPv4 is enabled.
  11047. - net/socket/accept: Fix building with CONFIG_NET_LOCAL_STREAM. From
  11048. Jussi Kivilinna.
  11049. - Argument of network device IOCTL should be unsigned long, just as
  11050. will all other IOCTL methods.
  11051. - net/socket: Fix cloning of local and raw sockets. From Jussi
  11052. Kivilinna.
  11053. - TCP: Wait for 3-Way Handshare before accept() returns. From Simon
  11054. Piriou.
  11055. - TCP: Send RST if applicaiton 'unlistens()' before we complete the
  11056. connection sequence.
  11057. - TCP: An RST received during the 3-way handshake requires a little
  11058. more clean-up.
  11059. - IPv6: Fix net_ipv6_pref2mask(). From Masayuki Ishikawa.
  11060. - network IOCTL commands: The only place in net/netdev/netdev_ioctl.c
  11061. where the interface state should change is for SIOCSIFFLAGS. The
  11062. other ones .. SIOCSIFADDR, SIOSLIFADDR, SIODIFADDR .. should not
  11063. change the link state. From Sebastien Lorquet.
  11064. - TCP: Fix tcp_findlistner() in dual stack mode. From Masayuki
  11065. Ishikawa.
  11066. * Common Drivers:
  11067. - Fix as5048b by adding missing frequency parameter. From Andreas
  11068. Bihlmaier.
  11069. - multiple fixes in nrf24l01 driver: (1) signal POLLIN if there is
  11070. already data in the FIFO, (2) send ETIMEDOUT to userspace after 2
  11071. seconds if TX IRQ was not received, (3) handle FIFO overflow, (4)
  11072. handle invalid pipes/empty FIFO, and (5) multiple cosmetics (missing
  11073. static, duplicate define, missing \n). From Leif Jakob.
  11074. - input/mxt: Prevent overriding i2c transfer return value.
  11075. put_reg/get_reg function was overriding i2c transfer error code with
  11076. i2creset return value, that lead to OK status although actual
  11077. transfer failed. From Juha Niskanen.
  11078. - drivers/audio/wm8904: WM8904 has same problem as that fixed by Juha
  11079. Niskanen in the MaxTouch driver.
  11080. - UART 16550: Missing left parenthesis in function prototype. This is
  11081. Bitbucket Issue #41.
  11082. - USBMSC: Fix a wrong lun number issue. From Masayuki Ishikawa.
  11083. - drivers/i2c: Fix compile issues if CONFIG_DISABLE_PSEUDOFS_OPERATIONS
  11084. is enabled.
  11085. - drivers/serial: I discovered a problem in the file
  11086. drivers/serial/serial.c concerning the function uart_close(…). In the
  11087. case that a serial device is opened with the flag O_NONBLOCK the
  11088. function uart_close(…) blocks until all data in the buffer is
  11089. transmitted. The function close(…) called on an handle opened with
  11090. O_NONBLOCK should not block. The problem occurred with a CDC/ACM
  11091. device. From Stefan Kolb.
  11092. - drivers: Fix some bad NULL checks. From Juha Niskanen.
  11093. - drivers: Rename newly introduced up_i2creset to I2C_RESET. From
  11094. Juha Niskanen.
  11095. - drivers/bch: BCH character driver bch_ioctl() always returns -ENOTTY
  11096. for DIOC_GETPRIV command. It should returns OK if DIOC_GETPRIV
  11097. command succeeds. From EunBong Song.
  11098. - Replace sprintf() with snprintf() in pipe.c. From Nobutaka Toyoshima.
  11099. - drivers/bch: Fix 'Missing Unlock' in bchdev_driver.c. From Masayuki
  11100. Ishikawa.
  11101. - button_upper: Fix interrupt enabling for poll-events. From Jussi
  11102. Kivilinna.
  11103. - drivers/{sensors,usbmisc}: Fix uninitialized I2C frequency. From
  11104. Juha Niskanen.
  11105. * ARM:
  11106. - Set EABI stack alignment for all ARM architectures (remove OABI
  11107. code). From David Cabecinhas.
  11108. - Remove redundant interrupt stack coloring and OABI code. From David
  11109. Cabecinhas.
  11110. - Fix off-by-one interrupt stack allocation in 8-byte aligned
  11111. architectures. From David Cabecinhas.
  11112. * ARMv6-M:
  11113. - CONFIG_DEBUG_HARDFAULT should be available for Cortex-M0 too.
  11114. * Microchip/Atmel SAM3/4 Drivers:
  11115. - SAM3/4: Fixed configurations for TWI master. Obviously an
  11116. incomplete port from SAMA5.
  11117. * Microchip/Atmel SAMv7 Drivers:
  11118. - SAMV7: Watchdog: Fix Forbidden Window Value. According the Datasheet
  11119. the WDD Value is the lower bound of a so called Forbidden Window and
  11120. to disable this we have to set the WDD Value greater than or equal to
  11121. the WDV Value. This seems to be a bug in the datasheet. It looks
  11122. like we have to set it to a greater value than the WDV to really
  11123. disable this Thing. When triggering the Watchdog faster than the
  11124. (very slow) clock source of the Watchdog fires, this Forbidden Window
  11125. Feature resets the System if WDD equals to WDV. This Changeset
  11126. disables the Forbidden Window by setting the WDD Value to the Maximum
  11127. (0xfff) Value possible. From Frank Benkert.
  11128. - SAMV7 EMAC: Add conditional logic to account the fact that the
  11129. SAMV71 has 6 rather than 3 queues after version 1. From Ian McAfee.
  11130. * NXP/Freescale Kinetis Drivers:
  11131. - Kinetis: Fixed GPIO _PIN_OUTPUT_LOWDRIVE swapped with
  11132. _PIN_OUTPUT_OPENDRAIN. From David Sidrane.
  11133. - Ensure interrupts are back on BEFORE running code dependant on
  11134. clock_systimer. From David Sidrane.
  11135. - Kinetis k66, k64, k60, k40, k20: Pin mux configure all I2C signals as
  11136. Open Drain. The output structure of the GPIO for I2C needs to be
  11137. open drain. When left at the default, one can observe on a scope the
  11138. slave contending with the push-pull during the ACK. From David
  11139. Sidrane.
  11140. - Kinetis K66: Fixed TMP2_CH1 definition. From David Sidrane.
  11141. - Kinetis K66: Define ALT1 to match ref manual. From David Sidrane.
  11142. - Kinetis K66: GPIO and pin mux cleanup. From David Sidrane.
  11143. - Kinetis ADC: Various corrections and updates. From David Sidrane.
  11144. * NXP/Freescale LPC43xx:
  11145. - Add missing PINCONF_INBUFFER in several places of
  11146. lpc4310203050_pinconfig.h. From Andreas Bihlmaier.
  11147. - Fix logic in preprocessor checks and correct arguments to
  11148. lpc43_pin_config initialization. From Andreas Bihlmaier.
  11149. * NXP/Freescale LPC43xx Drivers:
  11150. - Fix logic error in lpc43_adc. From Andreas Bihlmaier.
  11151. - Use correct macro for irqid (fortunately both point to
  11152. LPC43_IRQ_EXTINT+18). From Andreas Bihlmaier.
  11153. - Actually write modified value to register. From Andreas Bihlmaier.
  11154. - Increase number of supported PWM channels from 4 to 6. From Andreas
  11155. Bihlmaier.
  11156. * Silicon Labs EFM32 Drivers:
  11157. - EFM32 I2C: Fix timeout calculation. From Masayuki Ishikawa.
  11158. * STMicro STM32:
  11159. - As discovered by dcabecinhas. This fix assume the 8 byte alignment
  11160. options for size stack size or this will overwrite the first word
  11161. after TOS. See
  11162. https://github.com/PX4/Firmware/issues/6613#issuecomment-285869778.
  11163. From David Sidrane.
  11164. - STM32 F7: In stm32_allocateheap.c There are 5 not 4 configurations.
  11165. From David Sidrane.
  11166. * STMicro STM32 Drivers:
  11167. - STM32, STM32 F7, STM32 L4: OTG host drivers: Do not do data toggle
  11168. if interrupt transfer is NAKed. Sugested by webbbn@gmail.com.
  11169. - Save elapsed time before handling I2C in stm32_i2c_sem_waitstop().
  11170. This change follows the same logic as in previous fix to
  11171. stm32_i2c_sem_waitdone(). It is possible that a context switch
  11172. occurs after I2C registers are read but before elapsed time is saved
  11173. in stm32_i2c_sem_waitstop(). It is then possible that the registers
  11174. were read only once with "elapsed time" equal 0. When scheduler
  11175. resumes this thread it is quite possible that now "elapsed time" will
  11176. be well above timeout threshold. In that case the function returns
  11177. and reports a timeout, even though the registers were not read
  11178. "recently". Fix this by inverting the order of operations in the loop
  11179. - save elapsed time before reading registers. This way a context
  11180. switch anywhere in the loop will not cause an erroneous "timeout"
  11181. error. From Freddie Chopin.
  11182. - STM32, STM32 F7, and STM32 L4: Clone Freddie Chopin's I2C change to
  11183. similar STM32 I2C drivers. From David Sidrane.
  11184. - STM32: OTG host implementations of stm32_in_transfer() must obey the
  11185. polling interval for the case of isochronous and interrupt endpoints.
  11186. - STM32: Fix erase sector number for microcontrolers with more than 11
  11187. sectors. Erase a sector from the second bank cause the bit 4 of SNB
  11188. being set but never unsed, so trying to erase a sector from the first
  11189. bank was acually eraseing a sector from the second bank. From José
  11190. Roberto de Souza.
  11191. - STM32: Make up_progmem thread safe. Writing to a flash sector while
  11192. starting the erase of other sector have a undefined behavior so lets
  11193. add a semaphore and syncronize access to Flash registers. But for
  11194. the semaphore to work it needs to be initialized so each board needs
  11195. call stm32_flash_initialize() on initialization, so to avoid runtime
  11196. problems it is only using semaphore and making it thread safe if
  11197. initialized, after all boards starts to call stm32_flash_initialize()
  11198. we can remove the boolean and the check. From José Roberto de Souza.
  11199. - STM32: Add workaround for flash data cache corruption on
  11200. read-while-write. This is a known hardware issue on some STM32 see
  11201. the errata of your model and if you make use of both memory banks you
  11202. should enable it. From José Roberto de Souza.
  11203. - STM32 Flash fixes. From José Roberto de Souza.
  11204. - STM32 Flash: Missing unlock on F1 HSI off path. From David Sidrane.
  11205. - STM32 F4 I2C: I needed to use DS3231, I remember that in past it
  11206. worked ok, but now for stm32f4xx is used another driver (chip
  11207. specific, stm32f40xxx_i2c.c) and DS3231 driver doesn't work. After
  11208. investigating a problem I found that I2C driver (isr routine) has a
  11209. few places there it sends stop bit even if not all messages are
  11210. managed. So, e.g., removing stm32_i2c_sendstop (#1744) and adding
  11211. stm32_i2c_sendstart after data reading helps to make DS3231 working.
  11212. From Alexander Oryshchenko; verified by David Sidrane.
  11213. - STM32 F7 Serial: Serial fix for dropped data: (1) Revert the
  11214. inherited dma bug from the stm32. see
  11215. https://bitbucket.org/nuttx/nuttx/commits/df9ae3c13fc2fff2c21ebdb098c520b11f43280d
  11216. for details. And (2) Most all CR1-CR3 settings can not be configured
  11217. while UE is true. Threfore we make all operation atomic and disable
  11218. UE and restore it's originalstate on exit. From David Sidrane.
  11219. - STM32 L1: Fix IWDG and WWDG debug mode stop for STM32L15XX. From
  11220. Juha Niskanen.
  11221. - STM32 F7: Fix UART7 and UART8 IFLOWCONTROL options. From Jussi
  11222. Kivilinna.
  11223. - STM32 F7: Add warning for RXDMA + IFLOWCONTROL combination.
  11224. Combination of RXDMA + IFLOWCONTROL does not work as one might
  11225. expect. Since RXDMA uses circular DMA-buffer, DMA will always keep
  11226. reading new data from USART peripheral even if DMA buffer underruns.
  11227. Thus this combination only does following: RTS is asserted on USART
  11228. setup and deasserted on shutdown and does not perform actual RTS
  11229. flow-control. Data loss can be demonstrated by doing long up_mdelay
  11230. inside irq critical section and feeding data to RXDMA+IFLOWCONTROL
  11231. UART. From Jussi Kivilinna.
  11232. - STM32 F7 Serial: Do not stop processing input in SW flow-control
  11233. mode. From Jussi Kivilinna.
  11234. - STM32 L4 DMA: Correct bad channel definition. From Sebastien Lorquet.
  11235. - STM32 F7: Warn if no DMA2 configured when using ADC with DMA. Also
  11236. correct ADC channel numbers that DMA callback passes to upper half
  11237. driver. From Juha Niskanen.
  11238. - STM32 F7 ADC: Do not override ADCPRE_DIV when measuring
  11239. internal voltage. From Juha Niskanen.
  11240. - STM32 L4: Don't think these chips have DPFPU, DTCM or ITCM. From
  11241. Juha Niskanen.
  11242. - STM32 F7 Flash: macro naming errors, there is no FLASH_CONFIG_F for
  11243. F7. From Juha Niskanen.
  11244. - STM32 L4: stm32l4x6xx_pinmap: Update I2C4 and DCMI pins. From Juha
  11245. Niskanen.
  11246. - STM32 L4: stm32l4_i2c: change wrong macro to CONFIG_I2C_POLLED. From
  11247. Juha Niskanen.
  11248. - Fix STM32F7 I2C interrupt handler. From Jussi Kivilinna.
  11249. - STM32: Serial Allow configuring Rx DMA buffer size. From David
  11250. Sidrane.
  11251. - STM32 CAN: I had the problem that the transmit FIFO size (= actual
  11252. elements in FIFO) was slowly increasing over time, and was full after
  11253. a few hours. The reason was that the code hit the line
  11254. "canerr("ERROR: No available mailbox\n");" in stm32_cansend, so
  11255. can_xmit thinks it has sent the packet to the hardware, but actually
  11256. has not. Therefore the transmit interrupt never happens which would
  11257. call can_txdone, and so the size of the FIFO size does not decrease.
  11258. The reason why the code actually hit the mentioned line above, is
  11259. because stm32can_txready uses a different (incomplete) condition than
  11260. stm32can_send to determine if the mailbox can be used for sending,
  11261. and thus can_xmit forwards the packet to stm32can_send.
  11262. stm32can_txready considered mailboxes OK for sending if the mailbox
  11263. was empty, but did not consider that mailboxes may not yet be used if
  11264. the request completed bit is set - stm32can_txinterrupt has to
  11265. process these mailboxes first. Note that I have also modified
  11266. stm32can_txinterrupt - I removed the if condition, because the CAN
  11267. controller retries to send the packet until it succeeds. Also if the
  11268. condition would not evaluate to true, can_txdone would not be called
  11269. and the FIFO size would not decrease also. From Lederhilger Martin.
  11270. - STM32 Serial: Fix freezing serial port. Serial interrupt
  11271. enable/disable functions do not disable interrupts and can freeze
  11272. device when serial interrupt is received while execution is at those
  11273. functions. Trivially triggered with two or more threads write to
  11274. regular syslog stream and to emergency stream. In this case, freeze
  11275. happens because of mismatch of priv->ie (TXEIE == 0) and actually
  11276. enabled interrupts in USART registers (TXEIE == 1), which leads to
  11277. unhandled TXE interrupt and causes interrupt storm for USART. From
  11278. Jussi Kivilinna.
  11279. - STM32 I2C: Make private symbols static. From Juha Niskanen.
  11280. - STM32 L4 GPIO: Put back EXTI line source selection. From Juha
  11281. Niskanen.
  11282. - STM32 L4 RTC: Store RTC MAGIC to backup reg, not to address zero.
  11283. From Juha Niskanen.
  11284. * STMicro STM32 Boards:
  11285. - Disable serial console on stm32f103-minimum usbnsh example project
  11286. config. Devices enumerate after this change. From Bob Ryan.
  11287. - Nucleo-144: Default for choice in Kconfig was not one of the
  11288. possible choices.
  11289. - Nucleo-F4X1RE User LEDS: Issue #51 reports compilation problems with
  11290. stm32_userled.c. Reported by Gappi92.
  11291. * TI Tiva Drivers:
  11292. - Tiva I2C: Correct an error in conditional compilation.
  11293. - Tiva SSI: Resolves issue 52 'Copy-Paste error in
  11294. tiva_ssibus_initialize()' submitted by Aleksandr Kazantsev.
  11295. * C Library/Header Files:
  11296. - C Library vsnprintf(): Fix precision for string formatting. Fixes
  11297. use of format precision to truncate input string. From Jussi
  11298. Kivilinna.
  11299. - C Library vsnprintf(): If size is zero, then vsnprintf() should
  11300. return the size of the required buffer without writing anything.
  11301. From Jussi Kivilinna.
  11302. - C Library netdb: in dns_query_callback, ret != -EADDRNOTAVAIL
  11303. condition consumes error returns including EAGAIN in this case,
  11304. dns query retransmission doesn't work. From Ritajina.
  11305. - C Library netdb: Fix time info in lib_dnscache.c. From Masayuki
  11306. Ishikawa.
  11307. - C Library netdb: Fix bugs in lib_gethostbynamer.c. This fix sets
  11308. h_name in struct hostent returned by gethostbyname(). From Masayuki
  11309. Ishikawa.
  11310. - C Library Defect Workaround: replace '%6.6u' format with an
  11311. equivalent '%06u'. From Tomasz Wozniak.
  11312. * Tools
  11313. - Fix mksyscall host binary name. From Alan Carvalho de Assis.
  11314. * Applications (apps/)
  11315. - Fix some calls to task_create(): argv[0] is the first parameter, not
  11316. the name of the task.
  11317. - Bitbucket Issue 5: I found an unexpected behavior in apps/
  11318. configuration generation. Adding external symbolic link in apps/
  11319. directory and using Make.defs for Kconfig generation, Kconfig file
  11320. has a wrong path in the source argument. It contains original dir
  11321. path outside of the source tree instead path to sub-directory in
  11322. apps/. The problem is connected with make/system symbolic link path
  11323. resolution. Corrected by a patch submitted by Artur Madrzak with
  11324. Issue 5.
  11325. - apps/: Make more globals static to avoid name clashes. From Juha
  11326. Niskanen.
  11327. * NSH: apps/nshlib:
  11328. - NSH library: In nsh_argexand(), if CONFIG_NSH_ARGCAT is defined but
  11329. CONFIG_NSH_CMDPARMS defined and/or CONFIG_DISABLE_ENVIRON not
  11330. defined, then there is a situation that causes an infinite loop in
  11331. the parser. Noted by Freddie Chopin.
  11332. - NSH library: Fix building when CONFIG_NET_USRSOCK enabled with other
  11333. link-layers. From Jussi Kivilinna.
  11334. - NSH library: Fix some warnings about integer/pointer casts of
  11335. different sizes (probably only effects 64-bit simulation).
  11336. - NSH library: Fix open flags in nsh_codeccmd.c. From Masayuki
  11337. Ishikawa.
  11338. - I need to look at the registers that are at or around 0xe000ef90.
  11339. Using mw and xd, I see that nsh does not support pointers greater
  11340. than 0x7fffffff. A quick look at the source shows that the pointers
  11341. for those two commands are set with calls to strtol() rather than
  11342. strtoul(). Changing the two pointer-setting instances to strtoul()
  11343. fixes the problem, at least for my architecture/config. From Ian
  11344. McAfee.
  11345. - NSH library: Fix a resource leak in cmd_hexdump(). From Nobutaka
  11346. Toyoshima.
  11347. * Examples/Tests: apps/examples:
  11348. - apps/examples/hidkbd: Remove call to arch_usbhost_initialize().
  11349. That is violation of the OS interfacing rules and will no longer be
  11350. supported. USB host should be initialized as part of the normal
  11351. board bring-up logic as with any other devices and should not involve
  11352. illegal calls from applications into the OS.
  11353. - apps/examples/usbterm: Removed because it is not very useful and
  11354. because it can be configured to use an illegal call into the OS.
  11355. - examples/mm: Fix Makefile. Built-in was not being registered.
  11356. - examples/hidkbd: Add some missing configuration settings.
  11357. - examples/random: Avoid stack overflows. From Juha Niskanen.
  11358. - examples/nettest: Fix an error in pre-processor expression.
  11359. - examples/mtdpart: Prevent part array overflow. mtdpart examples
  11360. create partions and allocate from 1 index not a 0 index to part[]
  11361. array. This cause buffer overflow for part array. This change fixes
  11362. this problem. From EunBong Song.
  11363. - examples/can: Fix can example app to print data when
  11364. CONFIG_EXAMPLES_CAN_READ is defined. From Alan Carvalho de Assis.
  11365. * Network Utilities: apps/netutils:
  11366. - Not a clean fix, but at least makes DHCP working with
  11367. CONFIG_NETDEV_MULTINIC. From Andreas Bihlmaier.
  11368. - Ensure netlib will not be broken when setip will not bring the
  11369. network up anymore. From Sebastien Lorquet.
  11370. * CAN Utilities: apps/canutils:
  11371. - Fix libcanard github download link to get it compiling correctly.
  11372. From Alan Carvalho de Assis.
  11373. - Fix to use the new canardInit() function. From Alan Carvalho de
  11374. Assis.
  11375. * System Utilities (apps/system)
  11376. - system/dhcpc: Add missing argument of fprintf.
  11377. * Tools (apps/tools):
  11378. - The dedicated windows tool at tools/mkkconfig.bat uses $APPSDIR,
  11379. which is not a windows shell variable, and is left uninitialized, but
  11380. in fact should be the current directory. From Sebastien Lorquet.
  11381. NuttX-7.22 Release Notes
  11382. ------------------------
  11383. The 122nd release of NuttX, Version 7.22, was made on September 9, 2017,
  11384. and is available for download from the Bitbucket.org website. Note
  11385. that release consists of two tarballs: nuttx-7.22.tar.gz and
  11386. apps-7.22.tar.gz. These are available from:
  11387. https://bitbucket.org/nuttx/nuttx/downloads
  11388. https://bitbucket.org/nuttx/apps/downloads
  11389. Both may be needed (see the top-level nuttx/README.txt file for build
  11390. information).
  11391. Additional new features and extended functionality:
  11392. * Core OS:
  11393. - pthreads: Move functions from sched/pthreads to libc/pthreads. These
  11394. functions just coordinate other OS interface calls but are not a
  11395. fundamental OS interfaces and, hence, do not belong within the OS:
  11396. pthread_yield(), pthread_once(), pthread_cond_init(),
  11397. pthread_cond_destroy(), pthread_barrier_init(),
  11398. pthread_barrier_destroy(), and pthread_barrier_wait().
  11399. - Add power-related debug output.
  11400. * File Systems/Block and MTD Drivers
  11401. - RAMTRON: Add support for splitting block writes in chunks. Some
  11402. Re-RAMs like MB85AS4MT have a write buffer size limitation. From
  11403. Boris Astardzhiev.
  11404. - MTD: Add driver for Macronix QuadSPI flash memory. From Simon Piriou.
  11405. * Graphics/Display Drivers:
  11406. - SSD1306 LCD Driver: (1) Separate lcd_dev_s setup to separate object.
  11407. g_oleddev takes 1 KiB because framebuffer and was allocated to .data
  11408. section because of lcd_dev_s function pointer setup. Move lcd_dev_s
  11409. setup out, so that g_oleddev goes to .bss and avoid wasting ROM. (2)
  11410. Fix memory corruption caused by ssd1306_getrun(). ssd1306_getrun was
  11411. writing one extra byte (with value 0) past target buffer when pixlen
  11412. is multiple of 8. When pixlen was not multiple of 8, last byte of
  11413. buffer was fully cleared, instead of modifying only the (pixlen % 8)
  11414. bits of last byte. (3) Add support for board power control.
  11415. ThingseeOne has regulator for controlling display power on/off. Patch
  11416. adds support for board based power control to SSD1306 driver. (4) Add
  11417. DD-12864WO-4A/SSD1309 support to SSD1306 driver. From Jussi Kivilinna.
  11418. * Networking/Network Drivers:
  11419. - Sockets: Support listening sockets in the getsockname() function.
  11420. From Roland Takacs.
  11421. - IP Forwading: At the IP level, network may be configured to forward
  11422. IP packets that are not destined for the target through a different
  11423. network device, decrementing the packet TTL.
  11424. - IP forwarding: Add optional support to forward broadcast and
  11425. multicast packets. Add missing ICMP support.
  11426. - ICMPv6: Add 6LoWPAN and IP forwarding support.
  11427. - ICMPv6: Support source link-layer address option in RA. From
  11428. Masayuki Ishikawa.
  11429. - TUN Driver: Add definitions that will permit TUN-only networking.
  11430. - Socket I/F: Created a socket interface used to provide socket support.
  11431. Each address family has an interface that describes how to perform
  11432. socket operations on that address family. Currently only a couple of
  11433. methods are defined in the socket interface call table
  11434. - Remove CONFIG_NET_MULTILINK. This increases code size by a little,
  11435. but greatly reduces the complexity of the network code.
  11436. - Network procfs: Add support for routing tables at proc/net/route.
  11437. - Network procfs: Add support for network procfs statistics for the
  11438. PF_IEEE802154 address family.
  11439. - Network Driver Backlog: Remove driver based backlog support. This
  11440. affects the entire network, but is used by only one driver. The only
  11441. supported RX backlog is now via common read-ahead buffering.
  11442. * Wireless Networking/Wireless Drivers:
  11443. - IEEE 802.15.4 MAC / MRF24J60 Driver: Extensive updates for
  11444. association/beacon-enabled networks. From Anthony Merlino.
  11445. - IEEE 802.15.4 MAC / MRF24J60 Driver: Hook in setdevmode from newly
  11446. added radio attribute setting. From Anthony Merlino.
  11447. - IEEE 802.15.4 MAC: Supports get request for coordinator address. From
  11448. Anthony Merlino.
  11449. - IEEE 802.15.4 MAC: Notify radio layer of changes in devmode. From
  11450. Anthony Merlino.
  11451. - IEEE 802.15.4: Add special attribute that can be used to perform a
  11452. regdump of the radio. From Anthony Merlino.
  11453. - IEEE 802.15.4 loopback driver: Better simulation addressing: short
  11454. and extended addresses, panid, and IP address conversion.
  11455. - IEEE 802.15.4 Network Driver: Add logic to setup the network mask,
  11456. update the MAC-based IPv6 addressing when the network is brought up.
  11457. The idea is that addressing changes are supposed to occur only while
  11458. the network is down but won't take effect until the network is up
  11459. again.
  11460. - PktRadio: Add an infrastructure to support networking on generic
  11461. (non-IEEE 802.15.4) packet radios.
  11462. - PktRadio Loopback Driver: Add a PktRadio loopback network driver to
  11463. testing testing with 6LoWPAN and PktRadios on the simulator.
  11464. - Spirit Network Driver: The Spirit1 radio (SPSGRF-915) is the first
  11465. generic PktRadio Network driver. Based on STMicros STack packets
  11466. with 8-bit addressing. We need to use the STack packets in order to
  11467. provide the source address and automatic ACKing.
  11468. - Network procfs: Fix so that PktRadio address are shown correctly.
  11469. - Networking: Add support for some packet radio IOCTL commands.
  11470. - 6LoWPAN: Added handling for TCP and ICMPv6 packets.
  11471. - 6LoWPAN: Add configurable support for 6LoWPAN star topology. With
  11472. this change, the endpoints which are the 'points' of the star will
  11473. forward all traffic to the coordinator. The coordinator is assumed to
  11474. be the 'hub' of the star. This function also used IPv6 forwarding.
  11475. - 6LoWPAN: The original, Contiki-based design used only a single buffer
  11476. for reassemblying larger packets. This could be a problem issue for
  11477. hub configurations which really need the capability concurrently
  11478. reassemble multiple incoming streams concurrently. These was also a
  11479. design issue in that the reassembly buffer could be corrupted by
  11480. outgoing packets. The design was extended to support multiple
  11481. reassembly buffers, each associated with the reassembly tag and source
  11482. address. This assures that there can be be no corruption of the
  11483. reassembly once it has started.
  11484. - 6LoWPAN PktRadio: Now radio agnostic. All IEEE 802.15.4 dependencies
  11485. have been removed or isolated so that 6LoWPAN can be used with any
  11486. kind of packet radio. This involved things like: (1) generalizing
  11487. the representation of radio MAC meta-data, (2) changes to handle
  11488. variable-length radio addresses, (3) removal of all explicit IEEE
  11489. 802.15.4 types, references, and interfaces, (4) a new radio driver
  11490. interface to return 'capabilities' of the drvier.
  11491. - ICMPv6: Update so that ICMPv6 can be used with 6LoWPAN.
  11492. - IPv6 Neighbor: Update table format to support IEEE 802.15.4 MAC
  11493. addresses.
  11494. - PF_IEEE802154 Address Family: Add support for the PF_IEEE802154
  11495. address family socket type. This socket is similar to the PF_PACKET,
  11496. "raw" packet address family except that: (1) it supports only
  11497. SOCK_DRAM, not SOCK_RAW, and (2) works only with IEEE 802.15.4
  11498. MAC-based radios. This address family permits simple access to IEEE
  11499. 802.15.4 IOCTLs and frame-level network transfers.
  11500. * Other Common Device Drivers:
  11501. - Dynamically configurable USB composite devices: We developed a huge
  11502. Changeset over a year ago to make USB Composite configuration
  11503. dynamical and be able to instantiate the CDC/ACM multiple times inside
  11504. this device. We use this feature to switch between one in typical USB MSC + CDC/ACM configuration and up to three CDCACMs dynamically.
  11505. I've changed the interface for some USB-Functions to receive also the
  11506. dynamic configuration. From Frank Benkert.
  11507. - Franks' change remained on a branch until all issues were resolved.
  11508. the current version in Master is complete and ready for use.
  11509. - power: battery_charger: add ioctl for charging input current. From
  11510. Juha Niskanen.
  11511. - SMPS driver: Add generic upper-half driver for SMPS. From Mateusz
  11512. Szafoni.
  11513. - LED Driver: Add support for inverted LEDS. From Jeff.
  11514. - LED Driver: Add lightness correction for RGB LED driver. From Jeff.
  11515. - LTC4151 Driver: Add driver for LTC4151 current and voltage monitor.
  11516. From Giorgio Groß.
  11517. - Serial TERMIOS: tcdrain() implementation based on a new term ioctl.
  11518. From Sebastien Lorquet.
  11519. - Serial TERMIOS: Add support for TCFLUSH. From Sebastien Lorquet.
  11520. - syslog: Add option to use the CLOCK_MONOTONIC for time stamping. From
  11521. Jussi Kivilinna.
  11522. - HC-SR04 Driver: Add support to HC-SR04 distance sensor. From Alan
  11523. Carvalho de Assis.
  11524. - COMP Driver: Add poll support. From Pekka Ervasti.
  11525. - BQ2429X Driver: add driver for TI BQ2429X battery charger. From Juha
  11526. Niskanen.
  11527. - ADC Driver: Add poll support. From Juha Niskanen.
  11528. - BCH Driver: Add poll support. From Jussi Kivilinna.
  11529. - RTC Driver: Extend the RTC framework with an alarm read ioctl
  11530. (RTC_RD_ALARM). Through it consumer could get configuration settings
  11531. about previously scheduled hardware alarms (active status, hours,
  11532. minutes, seconds). From Boris Astardzhiev.
  11533. * Simulation
  11534. - sim/ipforward: Add an IP forwarding configuration using TUN devices
  11535. and apps/examples/tun.
  11536. - Console: Add non blocking read to devconsole driver. From Simon
  11537. Piriou.
  11538. - Networking: Poll for TX frames to speed up driver. From Simon Piriou.
  11539. - pf_ieee802154: Add configuration for testing PF_IEEE802154 address
  11540. family sockets.
  11541. - ARM Simulator: Adds necessary functionality to build Simulator under
  11542. ARM Linux. Tested only on Raspberry3. Currently setjmp/longjmp do not
  11543. save/restore floating point registers. From Nickolay Semyonov.
  11544. * MicroChip/Atmel SAML21 Drivers:
  11545. - SAML21 I2C driver. Developed for and contributed with permissin from
  11546. Filament company. From Alan Carvalho de Assis.
  11547. - SAMD/L21 USB Driver: Add a USB driver. Developed for Filament Inc.
  11548. by Offcode, LTD. From Janne Rosberg.
  11549. * MicroChip/Atmel SAMv7 Boards:
  11550. - SAMV71-XULT: Add support for the MRF24J40 radio and create a
  11551. mrf24j40-starhub configuration.
  11552. - SAME70-Xplained: Add MRF24J40 support.
  11553. * NXP Freescale Kinetis Drivers:
  11554. - Kinetis USB Improvements: usbdev clean up ensuring proper use of HW.
  11555. Rework suspend and resume logic so they perform properly. Made attach
  11556. and detach functions optional. As they do not make sense for a bus
  11557. powered device. From David Sidrane.
  11558. - Kinetis SPI driver: From David Sidrane.
  11559. - Kinetis: I2C driver added I2C3, reference counting and reset.
  11560. Refactored the driver to support reference counting and reset added
  11561. I2C3. From David Sidrane.
  11562. - Kinetis RTC: Implementation of the alarm read function.
  11563. * NXP Freescale Kinetis Boards:
  11564. - configs/teensy-3.x USB: Define USBOTG-FS Read from FLASH access in
  11565. board config. Allow the board config to define the USBOTG-FS to have
  11566. Read access to FLASH. From David Sidrane.
  11567. - configs/teensy-3.x: Removed call to khci_usbattach. The call is not
  11568. need by the driver if CONFIG_USBDEV_BUSPOWERED=y. On a USB powered device if we are running we are attached. From David Sidrane.
  11569. - freedom-k66f: Use SPI driver. Initalize SPI1 on connector J6. No
  11570. real use, as of yet. From David Sidrane.
  11571. * NXP Freescale LPC43xx:
  11572. - LPC43xx: Modify up_allocate_(k)heap() to support PROTECTED mode. From
  11573. Alan Carvalho de Assis.
  11574. * NXP Freescale LPC4xx Boards:
  11575. - configs/Bambino: Add protected mode configuration to Bambino board.
  11576. From Alan Carvalho de Assis.
  11577. * On Semiconductor LC823450
  11578. - LC823450: Initial support for ON Semiconductor LC823450. From Masayuki
  11579. Ishikawa.
  11580. - LC823450: eMMC/SD and USB support for LC823450. From Masayuki Ishikawa.
  11581. * On Semiconductor LC823450 Boards
  11582. - LC823450-XGEVK: LC823450-XGEVK board support. From Masayuki
  11583. Ishikawa.
  11584. - LC823450-XGEVK: Add eMMC/SD and USB support. From Masayuki Ishikawa.
  11585. * STMicro STM32:
  11586. - STM32 L4: Add support for the STM32L475 family.
  11587. - STM32 L4 RCC: Enable ADC clock source. From Juha Niskanen.
  11588. - STM32: Allow clock frequencies > 168 Mhz on stm32f427/429. We need
  11589. to enable the power overdrive for this case. This change allows the
  11590. required bits to be set in proper sequence. It also modifies the
  11591. local register access operations to allow more than 16-bit registers.
  11592. From Sebastien Lorquet .
  11593. - STM32 F4: Add support for STM32F433RC. From Alan Carvalho de Assis.
  11594. - STM32 F7: Add new configuration option for enabling flash ART
  11595. Accelerator and flash prefetcher. From Jussi Kivilinna.
  11596. * STMicro STM32 Drivers:
  11597. - STM32 TIM: Add the set counter function for stm32 timers. From
  11598. Sergey Ustinov.
  11599. - STM32 HRTIM: Update HRTIM definitions. Add HRTIM driver. From
  11600. Mateusz Szafoni.
  11601. - STM32 HRTIM: Add HRTIM character driver. From Mateusz Szafoni.
  11602. - STM32 HRTIM: Fix DAC triggers configuration, Add missing master timer
  11603. logic, enable DAC triggering. From Mateusz Szafoni.
  11604. - STM32 HRTIM: Add DMA configuration. From Mateusz Szafoni.
  11605. - STM32 HRTIM: Add burst mode configuration. From Mateusz Szafoni.
  11606. - STM32 RTC: Port Boris Astardzhiev's RTC change for STM32L4 to STM32.
  11607. - STM32 DAC: Add support for HRTIM triggering. Separate dma buffer
  11608. configuration for channels. From Mateusz Szafoni.
  11609. - STM32 DAC: Conditional logic for timer triggering, fix TSEL
  11610. configuration when HRTIM, DMA request remapping, Add DMA buffers
  11611. initialization logic. From Mateusz Szafoni.
  11612. - STM32 DAC: Support external triggering for DMA transfer. From Mateusz
  11613. Szafoni.
  11614. - STM32 L1 TIM: Add base address for TIM11. From Juha Niskanen.
  11615. - STM32 F4 FLASH: Enable/disable the flash write protection on any
  11616. sector. I have verified it to work on the STM32 F427. From Sebastien
  11617. Lorquet.
  11618. - STM32 F4 Clocking: To use an external oscillator module (not just a
  11619. crystal) with the STM32F4, one needs to enable the HSEBYP bit in the
  11620. RCC_CR register. This change allows an integrator to define
  11621. STM32_RCC_CR_HSEBYP in their board.h file if they want this
  11622. configuration. From Jeff.
  11623. - STM32 F4 USB: I'm working on bringing up USB full-speed support on
  11624. STM32F405.  My board does not include a USB power switch, VBus
  11625. sensing, over current detection, or ID pin. This commit add a
  11626. config STM32_OTGFS_VBUS_ CONTROL which lets us selectively disable
  11627. VBus sensing and control.  I also sneaked in a change to disable the
  11628. configgpio call for the ID pin, which is only used in OTG mode which
  11629. isn't supported yet.  The only pins that need to be initialized should
  11630. be OTGFS_DP and OTGFS_DM. From Jeff.
  11631. - STM32 FLASH: Add CONFIG_STM32_STM32F469 support. From David Sidrane.
  11632. - STM32 COMP: Add default INM configuration and some missing COMP
  11633. 1,3,5,7 code. From Mateusz Szafoni.
  11634. - STM32 F33: Add missing SYSCFG CFGR3 definitions. From Mateusz Szafoni.
  11635. - STM32 L4 Serial: Allow configuring Rx DMA buffer size. From Juha
  11636. Niskanen.
  11637. - STM32 L4 COMP: Input minus pin extended selection. From Juha Niskanen.
  11638. - STM32 L4 COMP: Bind to upper half comp driver. From Pekka Ervasti.
  11639. - STM32 L4 DAC: Port from STM32. Add ADC register definitions. From
  11640. Juha Niskanen.
  11641. - STM32 L4 DAC: Add option for routing DAC output to ADC. Actually
  11642. write something to the DAC DMA buffer. From Juha Niskanen.
  11643. - STM32 L4 DAC: Separate DMA buffer configuration for channels. From
  11644. Juha Niskanen.
  11645. - STM32 L4 ADC: Implement peripheral. From Juha Niskanen.
  11646. - STM32 F7: Definitions for I2C4, SDMMC2. Adapted RAM start / size to
  11647. internal SRAM. From Titus von Boxberg.
  11648. - STM32 F7 I2C4: I2C4_SDA can also be on GPIO PB7. From Titus von
  11649. Boxberg.
  11650. - STM32 F7 LTDC: Option for DSI output, inconsistency: the stm32f746
  11651. does not feature a DSI interface. compilable with LTDC_INTERFACE and
  11652. LTDC_USE_DSI. From Titus von Boxberg.
  11653. - STM32 F7 Clocking: Added functions for DSI clock source selection.
  11654. From Titus von Boxberg.
  11655. - STM32 F7 Clocking: Enable APB2 DSI clock. From Titus von Boxberg.
  11656. - STM32 F7 LTDC: No board specific dithering values used; corrected
  11657. dithering init. Corrected LIPOS/LIPCR calculation. Change only
  11658. polarity bits in LTDC_GCR. From Titus von Boxberg.
  11659. - STM32 F7 Reset: Added function for reset. From Titus von Boxberg.
  11660. - STM32 F7 DMA: DMA add dcache alignment check in stm32_dmacapable. In
  11661. the case dcache write-buffed mode is used (not write-through) buffer
  11662. alignment is required for DMA transfers because a)
  11663. arch_invalidate_dcache could lose buffered writes data and b)
  11664. arch_flush_dcache could corrupt adjacent memory if the maddr and the
  11665. mend+1, the next next address are not on ARMV7M_DCACHE_LINESIZE
  11666. boundaries. From David Sidrane.
  11667. - STM32 F7 SDMMC: SDMMC remove widebus limitation on DMA. There is no
  11668. documantation for the STM32F7 that limits DMA on 1 bit vrs 4 bit
  11669. mode. From David Sidrane.
  11670. - STM32 F7 SDMMC: SDMMC add dcache alignment check in
  11671. dma{recv|send}setup. In the case where CONFIG_SDIO_PREFLIGHT is not
  11672. used.
  11673. - STM32 F7 RTC: Port Boris Astardzhiev's RTC change for STM32L4 to
  11674. STM32F7.
  11675. * STMicro STM32 Boards:
  11676. - STM32F103-Minimum: Add GPIO device driver example. From Alan
  11677. Carvalho de Assis.
  11678. - STM32F103-Minimum: Add small hello example for STM32F103-Minimum
  11679. board. From Alan Carvalho de Assis.
  11680. - STM32F103-Minimum: Add support for SmartFS on Winbond W25 SPI NOR
  11681. Flash. From Alan Carvalho de Assis.
  11682. - STM32F103-Minimum: (1) Enable CONFIG_MTD_PARTITION in Kconfig if flash
  11683. partition is enabled and (2) Update the README.txt file with info
  11684. needed to get SmartFS working. From Alan Carvalho de Assis.
  11685. - Nucleo-F334R8: Add HRTIM initialization. From Mateusz Szafoni.
  11686. - Nucleo-F334R8: UART2 is default serial port (STLINK Virtual Port).
  11687. From Mateusz Szafoni.
  11688. - Clicker2-STM32: Add a configuration that was used with the MRF24J60
  11689. for 6loWPAN testing.
  11690. - Clicker2-STM32: Allow both IEEE 802.15.4 MAC character and network
  11691. devices to be registered.
  11692. - Clicker2-STM32: Add configurations to support the endpoint and hub
  11693. roles in a star topology.
  11694. - Clicker2-STM32: Add support for per-function-call stack checking.
  11695. From Anthony Merlino.
  11696. - Clicker2-STM32: Configure EDBG SPI CS just to make that it is
  11697. disabled.
  11698. - STM32F4 Discovery: Add logic to register the button driver and the
  11699. user led driver if so configured. From Jan Pobrislo.
  11700. - STM32F4-Discovery: Add a configuration for testing libc++. From Alan
  11701. Carvalho de Assis.
  11702. - B-L475E-IOT01A: Add support for the STMicro B-L475E-IOT01A board.
  11703. From Simon Piriou.
  11704. - B-L475E-IOT01A: Add support for the SPSRGF/Spirit1 radio module. Add
  11705. a configuration for testing sprit radio.
  11706. - B-L475E-IOT01A: Add configurations to support a star topology.
  11707. - B-L475E-IOT01A: add basic support for external Macronix QuadSPI flash
  11708. memory. From Simon Piriou.
  11709. - B-L475E-IOT01A: Enable UDP broadcast test in the spirit-starhub
  11710. configuration.
  11711. - STM32F334-DISCO: Add STM32F334-DISCO basic support. From Mateusz
  11712. Szafoni.
  11713. - STM32F746-Disco: Add ADC3 support. From Ivan Ucherdzhiev.
  11714. - STM32L476-Disco: Add a knsh configuration that may be used to test
  11715. the PROTECTED build mode.
  11716. - STM32F769I-DISCO: Initial port to STM32F769I-DISCO. From Titus von
  11717. Boxberg.
  11718. * C Library/Header Files:
  11719. - Move TUN ioctl command to include/nuttx/net/ioctl.h so that it will
  11720. always be unique.
  11721. - Math Library: Port gamma() and lgamma() from FreeBSD to NuttX. From
  11722. Alan Carvalho de Assis.
  11723. - C++: Compilation with recent C++ compiler needs an overloaded delete
  11724. operator that includes a size_t size argument. New sized delete
  11725. operators are only for C++14 and above.
  11726. * Build/Configuration System:
  11727. - Initial clang compile. From Goran Mekic.
  11728. - Add CLANG definitions in Kconfig and Toolchain.defs.
  11729. - drivers/wireless/ieee802154: Moved radios to individual
  11730. sub-directories. From Anthony Merlino.
  11731. - Makefile.unix: Add savedefconfig target. From Gwenhael Goavec-Merou.
  11732. - Add Gwenhael's change to Makefile.win and update README.txt to
  11733. described the new make target.
  11734. - All defconfig files are now in the compressed format created with
  11735. 'make savedefconfig.' The original .config file can be reconstituted
  11736. using 'make olddefconfig.'
  11737. - Build System: It is no longer necessary to have a unique Make.defs
  11738. file for each configuration. A board may share a common Make.defs
  11739. file in the scripts directory. Duplicate Make.defs files removed;
  11740. common Make.defs file moved to the scripts/ sub-directory for each
  11741. board.
  11742. - Networking: Move INET socket interface out of net/sockets to its own
  11743. directory net/inet.
  11744. * Tools:
  11745. - testbuild.sh: Added -x to fail build on errors for continous
  11746. integration (CI). On CI we want to know ASAP of a failure. From
  11747. David Sidrane.
  11748. - Improve configure.sh behavior: (1) enable to call from top directory.
  11749. (2) enable to designate direct path for config. (3) install .gdbinit
  11750. if the target has. From Hidetaka Takano.
  11751. - Update tools/configure.c to same functionality as configure.sh. Add
  11752. an array of optional file names. Currently, .gdbinit is the only
  11753. optional file but other things like IDE-specific project files might
  11754. need to be copied as well.
  11755. - tools/configure.sh will now copy Eclipse project files if they are
  11756. present in the board directory file.
  11757. - Update configure.sh, configure.bat, configure.c: With compressed
  11758. format, part of the installation requires that we run 'make
  11759. olddefconfig' to restore the uncompressed defconfig format. Also,
  11760. while I was at it, I also added options to select host platform on
  11761. configure command line.
  11762. - tools/refresh.sh: Now runs make savedefconfig before copying the new
  11763. defconfig file in place; Also, added a new option --defaults. Since
  11764. the number of defaults that you now have to answer is so large, the
  11765. option lets you just accept the default values. So it works just like
  11766. --silent but still prompts you for the decision to save or discard the
  11767. new defconfig file.
  11768. - tools/refresh.sh: Update so that it can find the Make.defs file in
  11769. the new location.
  11770. * NSH: apps/nshlib:
  11771. - NSH Library: Add a Telnetd command. This is needed when network
  11772. initialization is deferred. In that case, telnet daemon cannot be
  11773. started until the network is finally initialized. The telnetd command
  11774. was added just for that case: So that the telnet daemon can be
  11775. started from the NSH command line after the network is configured.
  11776. - NSH Library: Misc changes needed for PktRadio support.
  11777. - NSH Library: Extend ifconfig command so that it can set variable
  11778. length packet radio addresss.
  11779. - NSH Library: Update addroute and delroute command. The would support either
  11780. IPv4 or IPv6, but not both. Allow expression of the netmask in IPv4 CIDR or
  11781. IPv6 slash notation. This really reduces the pain of using the commands,
  11782. especially for IPv6.
  11783. - NSH Library: Add a route command that will dump the content of routing table.
  11784. * Examples/Tests: apps/examples:
  11785. - examples/udp: Add configurable network device name; Add option to
  11786. suppress network initialization which is not needed if started by NSH
  11787. or for 6LoWPAN.
  11788. - examples/udp: Fix registration as a built-in program; Change some
  11789. naming to make room for a second target. Current one endpoint is the
  11790. target and one is the host. This will (eventually) allow two targets
  11791. to be both endpoints of the test. Change build so that both server
  11792. and client can be on a target, rather than one on the target one on
  11793. the host PC. Server IP address may not be provided on the command line.
  11794. - examples/udp: Port numbers need to be configurable to work with
  11795. 6LoWPAN. Need to bind the client socket to a port number. This was
  11796. not required before so is a apparently a change in the UDP packet
  11797. dispatch logic.
  11798. - examples/udp: Enable testing with the broadcast address.
  11799. - examples/nettest: Support target boards on both ends of the test.
  11800. Separate out network initialization so that it may be used by both a
  11801. target server and a target client. Fix client/server naming
  11802. confusion; Add command line option to select the server address on the
  11803. target. Add support for both enpoints on target boards vs. one on a
  11804. target and one on the host PC.
  11805. - examples/nettest: The send buffer size is now a configuration option.
  11806. - examples/nettest: Loopback option should be available in Kconfig for
  11807. PktRadio.
  11808. - examples/keypadtest: REMOVED and warehoused in the Obsoleted
  11809. repository. This was just a bad clone of apps/examples/hidkbd for a
  11810. keypad driver that was removed years ago. It also uses illegal
  11811. function calls into the OS. So it has no purpse: It is redundant, it
  11812. uses illegal interfaces, and is a test for non-existent code.
  11813. - examples/ipforward: Add an IP forwarding example using only TUN
  11814. devices. Test extended to test forwarding of ICMPv6 multicast messages.
  11815. - Implement powermonitor example for ltc4151 current and voltage
  11816. monitor. From Giorgio Groß.
  11817. - examples/pf_ieee802154: Add for testing PF_IEEE802154 sockets. Add
  11818. PANID to command line options; Cannot bind to address zero... There is
  11819. no counterpart to INADDR_ANY for these radios (not now at least).
  11820. - examples/dac: add DAC example. From Juha Niskanen.
  11821. * Network Utilities: apps/netutils:
  11822. - netutils/telnetc: This a port of libtelnet to NuttX.
  11823. - netutils/telnetd and users of telnetd: Add support for IPv6.
  11824. - netutils/thttpd: Remove the netstats demo. This depends on an
  11825. illegal function call and cannot be supported. That example could be
  11826. replaced with logic that uses the procfs network entries as was done
  11827. for NSH which had the same issue. But I am too lazy to implement that.
  11828. - netutils/netlib: Add support for PktRadio IOCTL commands.
  11829. - netutils/netlib: Add a helper to decode short addresses.
  11830. * Wireless Utilities: apps/wireless:
  11831. - wireless/ieee802154/i8sak: Rewrote i8sak to be test CLI for IEEE
  11832. 802.15.4 MAC layer. From Anthony Merlino.
  11833. - wireless/ieee802154/i8sak: Updates to i8sak for
  11834. association/beacon-enabled changes to IEEE 802.15.4. From Anthony
  11835. Merlino.
  11836. - wireless/ieee802154/i8sak: Add option to make it easy to send large
  11837. frame for testing purposes. From Anthony Merlino.
  11838. - wireless/ieee802154/i8sak: Add scan command. From Anthony Merlino.
  11839. - wireless/ieee802154/i8sak: Add coordinfo command allowing you to
  11840. poll various attributes related to the coordinator. From Anthony
  11841. Merlino.
  11842. - wireless/ieee802154/i8sak: Add a option to retry on failures to the
  11843. assoc command (usually meaning tht the coordinator is not yet up).
  11844. - iwireless/ieee802154/8sak: Add reset command to reset the MAC layer.
  11845. Adds option to assoc command -t to specify how long to wait for a
  11846. response from the Coordinator. From Anthony Merlino.
  11847. - ieee802154/i8sak: Adds command to trigger regdump of radio. From
  11848. Anthony Merlino.
  11849. * System Utilities (apps/system)
  11850. - apps/system/composite: Update to apps/system/composite assocated with
  11851. big changes to the composite device logic. From Frank Benkert.
  11852. - apps/system/composite: Remove CDC/ACM and MSC configuration logic.
  11853. This belongs in the OS composite initialization. Add and argument so
  11854. that you can select the USB composite configuration to be attached.
  11855. Restore USB tracing; remove unused field in a structure. Remove
  11856. configuration settings that are no longer used. Fix configuration
  11857. selecting.. was setting the port number, not the configure ID. Also
  11858. add a configuration option to select the default configuration.
  11859. - apps/system/composite: Add a configuration option to the boardctl()
  11860. calls to support multiple composite device configurations dynamically.
  11861. - apps/system/composite: Remove references to USBMSC. There still
  11862. dependencies on CDC/ACM in the serial USB trace output.
  11863. - apps/system/telnet: Add Telnet Chat deamon and and client from
  11864. libtelent.
  11865. * Platform-Specific Support (apps/platform)
  11866. Bugfixes. Only the most critical bugfixes are listed here (see the
  11867. ChangeLog for the complete list of bugfixes and for additional, more
  11868. detailed bugfix information):
  11869. * Core OS:
  11870. - Fix ELF loader up_checkarch on ARM arch. From Cristian Condurache.
  11871. - pthread_mutex_unlock(): Missing check for the case where
  11872. pthread_mutex_lock() is called when the mutex is not locked. In that
  11873. case, it would increment the underlying semaphore above 1. This is
  11874. the fix for a problem noted by initialkjc@yahoo.com.
  11875. - sig_timedwait(): Pending signal structure used after it has been
  11876. releasd. From anonymous Bitbucket Issue 59.
  11877. - mm_mallinfo: do heap end debug assert check with heap semaphore held.
  11878. From Jussi Kivilinna.
  11879. - sched/: Fix return value in sched_setaffinity(). From Masayuki
  11880. Ishikawa.
  11881. - Work Queues: work_queue() must cancel existing work prior to queuing
  11882. new work, otherwise the work queue list structure can become
  11883. corrupted. Problem noted by Pascal Speck.
  11884. - waitpid(): Corrects two problems when CONFIG_SCHED_HAVE_PARENT +
  11885. CONFIG_SCHED_CHILD_STATUS are enabled: (1) Was erroring out if the
  11886. waited for task had already exited, and (2) was not freeing resources
  11887. when a wait was completed. From Boris Astardzhiev.
  11888. * File System/Block and MTD Drivers:
  11889. - VFS poll(): Fix timeout calculation. From Jim Paris.
  11890. - VFS poll(): Fix poll for regular files and block devices. Open Group
  11891. documentation says that poll (and select) support regular files and
  11892. that 'Regular files shall always poll TRUE for reading and writing'.
  11893. From Jussi Kivilinna.
  11894. - VFS epoll(): Fix epoll_wait function. From Simon Piriou.
  11895. - Smart FS: Fix wrong freeing of device structure and use-after-free
  11896. issues on error paths. From Jussi Kivilinna.
  11897. - MTD FLASH drivers: The byte write method of several drivers had a
  11898. cloned error: It was not locking the bus while performing byte write
  11899. operations.
  11900. - MTD M2PX: If we READ while a write/erase is pending, the command is
  11901. ignored and the write/erase continues. If we dont catch this situation
  11902. we will return garbage to the user because the flash will not execute
  11903. the command. So READ MUST wait for write completion, and before that,
  11904. the bus must be locked since it's a precondition to calling
  11905. waitwritecomplete(). From Sebastien Lorquet.
  11906. - MTD FLASH drivers: Clone Sebastien Lorquet's m25px change to at25,
  11907. is25xp, ramtron, and sst25xx.
  11908. - MTD W25: Add missing locking and fix SPI_SELECT usage for
  11909. w25_unprotect. From Jussi Kivilinna.
  11910. - MTD W25: Wait for BUSY flag to clear in w25_readid and
  11911. w25_unprotect. W25Q128 datasheet says that all instructions expect
  11912. 'Read Status Register' and 'Erase/Program Suspend' are ignored when
  11913. BUSY flag in status register is '1'. Therefore wait for busy flag to
  11914. clear in w25_readid() and w25_unprotect(). From Jussi Kivilinna.
  11915. - Automounter: FS_AUTOMOUNTER should depend on SCHED_LPWORK. From
  11916. Nickolay Semyonov.
  11917. * Networking/Network Drivers:
  11918. - TCP Listen: Throw error when error happens in the tcp_listen
  11919. function. From Roland Takacs.
  11920. - Nework Device Management: Do not search net device when all-zeros
  11921. address is used. From Roland Takacs.
  11922. - Network Device Management: Fix a error in netdev_register(); it was
  11923. not handling device names properly when TUN is the only network device.
  11924. - Network Device Management: Fix netdev_dev_lladdrsize(). In some
  11925. configurations, it could return the wrong size for the address of a
  11926. packet radio.
  11927. - Network Device Management: Fix typo for 802.11 devices in
  11928. netdev_register(). Was being masked before because depended on
  11929. CONFIG_NET_MULTLINK.
  11930. - TUN Driver: Use critical section instead of semaphore in
  11931. tun_ifdown(). From Masayuki Ishikawa.
  11932. - TUN Driver: Do all polling on worker thread. Otherwise, the stack
  11933. gets very deep.
  11934. - TUN Driver: Currently cannot support TAP mode unless Ethenet is
  11935. enabled.
  11936. - netdb: Fixed buffer size used for sending DNS queries should depend
  11937. on the configured DNS name size. From Ritjaina.
  11938. - UDP networking: The TTL (time to live) was not being set in the IPv4
  11939. or IPv6 header unless the UDP socket was bound.
  11940. - UDP Networking: Fix a copy-paste error that could effect networking
  11941. when both IPv4 and IPv6 are enabled.
  11942. - UDP Networking: When upd_input() cannot process a packet, it returns
  11943. ERROR so that network drivers may try calling ipv4_input() later. In
  11944. this case, it must also set d_len to zero. Otherwise, all network
  11945. drivers will assume tht there is also an outgoing packet. This
  11946. results in a gratuitous ARP.
  11947. - TCP Networking: Correct some issues that prevent TCP from working
  11948. correctly when both IPv4 and IPv6 are enabled.
  11949. - TCP Networking: TCP disconnection callbacks are not retained in a
  11950. list. This will support mutiple callbacks per lower-level TCP
  11951. connection structure. That is necessary for the cae where a socket is
  11952. dup'ed and shares the same lower-level connection structure. NOTE:
  11953. There still needs to be a call to tcp_start_monitor() when the socket
  11954. is dup'ed.
  11955. - TCP Networking: Start the network monitor for a socket when a TCP
  11956. socket is dup'ed.
  11957. - TCP Networking: If one of the dup'ed socket's is closed, then network
  11958. monitor resources associated with that one socket must be recovered.
  11959. Also, in the event that socket is being used on one thread, but then
  11960. closed on another, any threads waiting for events from the socket
  11961. should be informed of the closure. That latter requirement is not
  11962. implemented because current data structures do not support it.
  11963. - TCP Networking: Fix a race condition. The accept() operation is
  11964. performed with the network locked. However, the network is unlocked
  11965. BEFORE the connected state is set. Therefore, a context switch may
  11966. occur and the socket may no longer be connected when it is marked so.
  11967. Noted by Pascal Speck.
  11968. - Network routing tables: Fix a compilation error when IPv6 and
  11969. routing are enabled.
  11970. - Network procfs: Fix some spacing when both IPv6 and IPv4 are enabled.
  11971. - Network Local Sockets: Fix accept for local stream sockets. From
  11972. Jussi Kivilinna.
  11973. - Network Local Sockets: Fix server lc_waitsem overflow. From Jussi
  11974. Kivilinna.
  11975. - IPv6 Networking: Remove comparisons to the address with all ones
  11976. set. IPv6 does not support broadcast addresses and certainly not in
  11977. that form. Replace with multicast addresses beginning with 0xff02.
  11978. - ICMPv6 Networking: Fix a compilation issue with
  11979. CONFIG_NET_ICMPv6_AUTOCONF=y. From Masayuki Ishikawa.
  11980. - Networking: Fix net_lock returning ERROR when instead of real error
  11981. code on failure. From Jussi Kivilinna.
  11982. - IGMPv2 Networking: Remove special support for interrupt level
  11983. processing (there is none) and fix some timer cancellation logic. In
  11984. many files, correct comments. There is no interrupt level processing
  11985. in the networking layer.
  11986. * Wireless/Wireless Drivers:
  11987. - IEEE 802.15.4 MAC: Need counting protection on the logic that
  11988. releases the notification resources. Otherwise, notification handlers
  11989. may be operating with a stale pointer.
  11990. - IEEE 802.15.4 MAC: Improves internal timer logic to handle work
  11991. serially. Before, the MAC timer used a watchdog to schedule work with
  11992. the high priority worker queue. However, since everything in the MAC
  11993. is supposed to be serialized through the use of the high priority work
  11994. queue, but the timer uses a watchdog, there are some unintended
  11995. consequences. To simplify, we now use the delayed work feature of the
  11996. work queue. From Anthony Merlino.
  11997. - IEEE 802.15.4 Network Driver: Update RX statistics in network driver.
  11998. - IEEE 802.15.4 MRF24J40 Driver: Minor timing fix. Matches recommended
  11999. value in datasheet. Splits up driver into multiple files to make it
  12000. easier to navigate. Fixes issue with non-beacon enabled mode. From
  12001. Anthony Merlino.
  12002. - IEEE 802.15.4 MRF24J40 Driver: Fix a bug causing radio to cease
  12003. transmitting. From Anthony Merlino.
  12004. - IEEE 802.15.4 MRF24J40 Driver: Fixes issues with sleeping for beacon
  12005. enabled networking. From Anthony Merlino.
  12006. - EEE 802.15.4 MRF24J40 Driver: Fix math error for calculating sleep
  12007. count values. From Anthony Merlino.
  12008. - IEEE 802.15.4: Fix timing issues for beacon enabled coordinators and
  12009. endpoints. From Anthony Merlino.
  12010. - iIEEE 802.15.4: Fix issue with association on beacon-enabled
  12011. networking. From Anthony Merlino.
  12012. - 6LoWPAN: Correct a few addressing issues. Also reserve two bytes at
  12013. the end of the frame for the FCS.
  12014. - 6LoWPAN: Fixes needed when extended addressing is enabled; broke short
  12015. addressing. Loopback driver needs to initialize the MAC meta data;
  12016. Address decompression logic must have the MAC address to handle the
  12017. most common compression cases. Fix a src/dest address confusion and
  12018. other addressing problems.
  12019. - 6LoWPAN: Add missing IPv6 address creation to HC1 decode logic. Fix a
  12020. typo in an index that prevented use with HC1 and extended addresses.
  12021. - 6LoWPAN: TCP logic was not obeying MTU packet size limitations.
  12022. - 6LoWPAN: Major re-architecting of TCP logic to properly handle TCP
  12023. stuff like ACKs and TDP windowing which were not properly covered in
  12024. the initial design.
  12025. - 6LoWPAN: HC06, copy TCP header as though it were data. TCP packet
  12026. reassembly now seems to work OK.
  12027. - 6LoWPAN: Fix duplicate and bad memcpy in loopback driver.
  12028. - 6LoWPAN: Fix a misconception about HC06 16-bit IPv6 address
  12029. compression.
  12030. - 6LoWPAN: TCP send logic was returning a failure in one case when, in
  12031. fact, the send was successful.
  12032. * Common Drivers:
  12033. - USB MSC: Use struct instead of pointer to the struct as sizeof
  12034. argument in memset in usbmsc.c. Otherwise it leads to error: argument
  12035. to sizeof in memset call is the same pointer type struct usbmsc_lun_s
  12036. * as the destination. From Oleg Evseev.
  12037. - USB MSC: Add missing logic to define endpoints. The composite
  12038. changes broke the the non-composite, USB MSC only case because it omitted the critical setup when USB MSC was not part of the composite.
  12039. - USB CDC/ACM. Fix several known problems resulting from merge of USB
  12040. composite device. That merge now breaks some of the non-composite USB
  12041. devices.
  12042. - Button Driver: Interrupts weren't enabled since nothing updates them
  12043. after btn_poll() marks the file descriptor structure as being polling.
  12044. From Jan Pobrislo.
  12045. - ADC Driver: Fix some data alignment issues in the ADC driver.
  12046. - I2C Drivers: Handle I2C_TRANSFER return value consistently. Some I2C
  12047. peripherals transfers return zero on success, others number of
  12048. completed transfers. Make drivers robust against this. From Juha
  12049. Niskanen.
  12050. - COMP Driver: Fix compilation errors when poll disabled. From Mateusz
  12051. Szafoni.
  12052. * Simulation:
  12053. - Simulation: Fix mkdir issue in GNU target. From Simon Piriou.
  12054. - Simulation: x86 stack needs to be aligned to 16-byte boundaries.
  12055. - Simulation: Fix building 32-bit simulation on 32-bit X86. From Jussi
  12056. Kivilinna.
  12057. * ARM:
  12058. - ARM: The older ARM7 and ARM9 configurations were determining CFLAGS
  12059. based on the GCC version 4.x.x or not. That needx to be extended for
  12060. 5.x.x and 6.x.x which also behave like 4.x.x.
  12061. * ARMv7-M:
  12062. - Fixed ARMv7-M Toolchain setting. Cortex-M4 only have Single
  12063. Precision FPU. From Hidetaka Takano.
  12064. - ARMv7-M syscall logic: Clear bit 0 in PC settings. Bit 0 is the
  12065. thumb mode indication and should not be set in the PC. This extra bit
  12066. has not caused problems in the past, but seeing it set in the PC is
  12067. unnerving.
  12068. * Expressif ESP32:
  12069. - Fix ESP32 gpio enable reg and default UART pin. Modify default UART
  12070. pin for ESP-WROOM-32. Fix gpio enable reg. From Sungki Kim.
  12071. * Microchip/Atmel SAMD21 Drivers:
  12072. - SAMD21: Fix some SPI-related issues. From Matt Thompson.
  12073. - SAMD21 SPI: I was having issues with the bus freezing up .. slaves
  12074. holding SDL low.. so I rewrote a good portion of the interrupt logic
  12075. based on the application notes from Atmel. One major improvement is
  12076. using the RXNACK flag in the STATUS register, which indicates that no
  12077. device responded to an address packet. Assuming that the chip will
  12078. always give an interrupt status, I believe it's possible to eliminate
  12079. the timer as well. From Matt Thompson.
  12080. - SAMD/L21: Need to preserve errno value across syslog() call.
  12081. - SAMD21: Changes needed to get USB working. From Matt Thompson.
  12082. * Microchip/Atmel SAMv7 Drivers:
  12083. - SAMv7 TWIHS: TWIHS driver add reference counting. From David Sidrane.
  12084. - SAMv7 CAN: We discovered a problem with the samv7 mcan driver which
  12085. results, under some circumstances, in a very high CPU load. The
  12086. problem occurs, and is easily reproducible, if the device is connected
  12087. to a CAN network with a wrongly configured CAN speed (baud rate). In
  12088. our tests we set the CAN speed of the device to 1000000 and the speed
  12089. of the other CAN nodes to 500000. The device is restarted and sends a
  12090. CANopen "bootup message" to the CAN network. This results in huge
  12091. amount of errors messages on the CAN bus, probably because of the CAN
  12092. feature for acknowledging error messages. The error messages can’t be
  12093. read by the device because of the misconfigured CAN speed, instead the
  12094. CAN chip reports lots of errors, which are reported to the application
  12095. which uses the CAN driver (CONFIG_CAN_ERRORS is enabled). The CAN
  12096. errors are reported from the CAN chip via interrupts and thus the
  12097. interrupt load is very high in this scenario. To fix the problem the
  12098. driver now disables each RX error interrupt after it is occurred. The
  12099. RX error interrupts are turned back on if at least one CAN message is
  12100. received successfully. From Stefan Kolb.
  12101. - SAMv7 CAN: I discovered while working on the SAMV7 mcan driver that
  12102. the implementation of the CAN error handling is suboptimal. In the
  12103. current implementation the many errors are implemented as pending
  12104. errors. But those errors are not pending, the errors occurred and are
  12105. gone directly afterwards. This commit changes the described behavior
  12106. and simplifies the handling of CAN errors. From Stefan Kolb.
  12107. * Microchip/Atmel SAMv7 Boards:
  12108. - SAMv71-XULT: Fix MRF24J40 interrupt GPIO number.
  12109. * NXP/Freescale Kinetis:
  12110. - Kinetis MPU: Disable MPU when not in protected mode. The hardware
  12111. reset state of the the MPU precludes any bus masters other then DMA
  12112. access to memory. Unfortunately USB and SDHC have there own DMA and
  12113. will not have access to memory in the default reset state. This change
  12114. disabled the MPU if present on system startup. From David Sidrane.
  12115. - Kinetis MPU: Fixed warning for kinetis_mpudisable. Missing header
  12116. file added. From David Sidrane.
  12117. - Kinetis SIM: Ensure isolation of clock dividers for 0 value case.
  12118. This fixes a bug were a SoC does not have a clockdivN register and
  12119. passes a 0 for the init value. This prevents overflow of the 0
  12120. decremented to -1 (0xffffffff) spilling over to other clockdivN
  12121. fields. From David Sidrane.
  12122. * NXP/Freescale i.MX6 Drivers:
  12123. - i.MX6: Fix a wrong parameter passed when calling irq_attach() in
  12124. imx_serial.c. From Masayuki Ishikawa.
  12125. - Based on Masayuki's change, I review all serial driver vector
  12126. attachment. I Found one additional error and updated all relevant
  12127. drivers to current interrupt parameter passing.
  12128. * STMicro STM32:
  12129. - STM32 F410 Kconfig: Fix peripherals available on the STM32 F410.
  12130. This also adds a select for STM32_HAVE_DAC1 present on this STM32
  12131. flavor. From Gwenhael Goavec-Merou.
  12132. - STM32 L4 DMA: Correct USART3_RX bad channel definition. From Juha
  12133. Niskanen.
  12134. - STM32 L4 PWR: Correct PWR_SR2 REGLPS and REGLPF bits, add port I
  12135. registers. Also remove duplicate section from Kconfig. From Juha
  12136. Niskanen.
  12137. - STM32 F7: do not enable read-modify-write on DTCM. "AN 4667 - STM32F7
  12138. Series system architecture and performance" recommends to disable
  12139. read-modify-write on DTCM: "If the DTCM-RAM is used as data location
  12140. and the variables used are byte or/and halfword types, since there is
  12141. no ECC management in this RAM on the STM32F7 Series, it is recommended
  12142. to disable the read-modify-write of the DTCM-RAM in the DTCM interface
  12143. (inthe DTCMCR register) to increase the performance." From Jussi
  12144. Kivilinna.
  12145. * STMicro STM32 Drivers:
  12146. - STM32 TIM3/4 are always 16-bits; never 32-bits. Noted by Eetu
  12147. Nevalainen..
  12148. - STM32 ADC: Invalidate dma buffer before use. Missing invalidation
  12149. caused old samples being fetched from cache. From Jussi Kivilinna.
  12150. - STM32, STM32L4, STM32F7 ADC: Fix channel 18 sample time. From Juha
  12151. Niskanen.
  12152. - STM32 DAC: Fix some configuration logic. When STM32_NDAC is greather
  12153. than 1, then second channel is always DAC1OUT2. From Mateusz Szafoni.
  12154. - STM32 DAC: Fix compilation when DMA disabled for channel. From
  12155. Mateusz Szafoni.
  12156. - STM32 F0: Fix some funny shifts in DAC header files. From Juha
  12157. Niskanen.
  12158. - STM32 F1 RTC fixes: (1) Compile issues because of missing RTC_MAGIC
  12159. #defines, (2) missing functionality based on RTC_MAGIC in RTC based on
  12160. stm32_rtcounter.c, (3) IRQ setup from up_rtc_initialize was later
  12161. reset in up_irqinitialize, (4) write access to backup registers
  12162. without enabling access to backup domain, (5) possible races in
  12163. set/cancel alarm. tested with STM32F103C8 only. device now wakes up
  12164. from forced STANDBY mode by alarm. From Leif Jakob.
  12165. - STM32/STM32 L4 PWM: While attempting to output a 70 MHz square wave
  12166. from the timer output of a STM32 clocked at 140 MHz, found that the
  12167. reload calculation was off by one. This correction does allow the
  12168. output up to 70 MHz. I am not sure this affects most users
  12169. generating slow PWM but for frequencies close to the PCLK, the
  12170. difference becomes significant. From JM.
  12171. - STM32 L4 I2C: Set I2C SDA and SCL pins to open drain mode. From Pekka
  12172. Ervasti.
  12173. - STM32 L4 I2C: I2C4 was writing to wrong RCC registers. From Juha
  12174. Niskanen.
  12175. - STM32 L4 DAC: Report transfer as completed in DMA callback. Without
  12176. this even O_NONBLOCK writes block the calling task if DAC was using
  12177. DMA. From Juha Niskanen.
  12178. - STM32 L4 COMP: comparators share RCC enable bit with SYSCFG. From
  12179. Juha Niskanen.
  12180. - STM32 L4 ADC: Correct EXTSEL macros. From Juha Niskanen.
  12181. - STM32 L4 TIM: TIM15,16,17 are always in APB2. From Juha Niskanen.
  12182. - STM32 F7 I2C: Set I2C4 SDA and SCL pins to open drain mode. From Juha
  12183. Niskanen.
  12184. - STM32 F4 RTCC: ISR register and write protection fix. From Eetu
  12185. Nevalainen.
  12186. - STM32 F7 Ethernet: Fix typo in header; Add memory sync barrier
  12187. between writing to DMA TX descriptor and restarting DMA TX. Avoid
  12188. calling work_queue on pollwork if it's already queued, just skip a
  12189. poll cycle instead. Nucleo-144: Fix RMII TXD1 signal, connected to
  12190. PB13 not to PG14. From savinz.
  12191. - STM32 F7: Added missing config option for register value debugging.
  12192. From Titus von Boxberg.
  12193. - STM32 F7: No FSMC, only FMC for STM32F7. From Titus von Boxberg.
  12194. - STM32 F7: HEAP2 depends on CONFIG_ARCH_HAVE_HEAP2, not on particular
  12195. FMC RAM type. From Titus von Boxberg.
  12196. - STM32 F7: STM32_RCC_DCKCFGR2 has nothing to do with PLLI2S; PLLI2S is
  12197. not dependent on LTDC, instead on SAICLK1/2 generated from PLLI2S.
  12198. From Titus von Boxberg.
  12199. - STM32F7: Some STM32F7 builds failed in build testing due to undefined
  12200. STM32_SRAM1_BASE. I think that is because stm32_allocateheap.c was
  12201. not including chip/stm32_memorymap.h.
  12202. - STM32 F7: dcache write-buffed mode is used (not write-through) buffer
  12203. alignment is required for DMA transfers because a)
  12204. arch_invalidate_dcache could lose buffered writes data and b)
  12205. arch_flush_dcache could corrupt adjacent memory if the buffer and the
  12206. bufflen, are not on ARMV7M_DCACHE_LINESIZE boundaries. From David
  12207. Sidrane.
  12208. * STMicro STM32 Boards:
  12209. - STM32F103-Minumum SPI: SPIDEV_WIRELESS used when this has
  12210. changed to SPIDEV_CONTACTLESS. From Nicolas Estibals.
  12211. - configs/: a few more places where SPIDEV_WIRELELSS should be
  12212. SPIDEV_CONTACTLESS.
  12213. - STM32F103-Minumum: Fix a BUG when reading from output pin. We need
  12214. a different read_ops to read from output pin. This patch fixes the
  12215. issue. From Alan Carvalho de Assis.
  12216. - STM32F103-Minumum: Use separated read_ops for GPIO interrupt pins.
  12217. From Alan Carvalho de Assis.
  12218. - STM32F103-Minumum: Fix compiler error in MCP2415 logic.
  12219. - STM32F746G-DISCO: Fix for compilation of STM32F746G-DISCO. From Ivan
  12220. Ucherdzhiev.
  12221. - STM32F746G-DISCO: Fix for stm32f746g-disco board for button support
  12222. with interrupt. This change is tested with buttons app example and it
  12223. is working with interrupts (signals). I tried the test with polling
  12224. but at this point it doesn't work. From Ivan Ucherdzhiev.
  12225. * Build System
  12226. - Fix -Werror=implicit-fallthrough on gcc7. From Julien Lecoeur.
  12227. - configs/Board.mk: Remove comment form end of line. In windows native
  12228. build, it appears to be trying to make that an extra parameter to the
  12229. AR command. From Jeff.
  12230. - configs/Board.mk: Remove quotes from CONFIG_ARCH_FAMILY. Causes
  12231. problems with Windows native build. From Jeff.
  12232. - Makefile.win would only create uboot images for ARM. MIPS support
  12233. also needed. From Lwazi Dube.
  12234. * C Library/Header Files:
  12235. - C++: Fix C++ __guard implementation for ARM. The standard C++ ABI
  12236. that most platforms follow defines __guard to be 64 bits. The existing
  12237. implementation of libxx_cxa_guard.cxx follows this. However, the
  12238. 32-bit ARM C++ ABI defines it as 32 bits instead, and changes the
  12239. meaning slightly so only the lowest bit is used. This matters because
  12240. GCC creates guard symbols without regards to what libxx_cxa_guard.cxx
  12241. says. So on ARM, gcc allocates 4 bytes, but __cxa_guard_release
  12242. writes 8 bytes, zeroing out another unlucky variable nearby. Fix it
  12243. by special-casing 32-bit ARM in libxx_cxa_guard. From Jim Paris.
  12244. - C++: In cwchar it uses CONFIG_LIBC_WCHAR to only export the wc/mb
  12245. functions. When a build does not want to use wide or multibyte char
  12246. CONFIG_LIBC_WCHAR is not set. Therefore we should to only export the
  12247. wc/mb functions when defined. Regardless of the stat of
  12248. CONFIG_LIBC_WCHAR the non mb/wc definitions such as mbstate_t,
  12249. wint_t, wctype_t need to be exported. From David Sidrane.
  12250. - C Library: Fix an error in mkstemp() the could result in an infinite
  12251. loop. From Alan Carvalho de Assis.
  12252. - C Library: (1) Fix an error in mkstemp() the could result in an
  12253. infinite loop. (2) Fix for wrong output in some cases. For Example:
  12254. (a) input: "FILEXX", output: "FILE00" and repeats same output for
  12255. further invocations of mkstemp(). But, the ouput has to be FILE01,
  12256. FILE02, ...., FILEZZ. (b) input: "FILEXXXXXX", output: "FILE100000",
  12257. for next invocation "FILE200000" and so on. But it's good, if the
  12258. ouput goes like FILE000001, FILE000002, ..., FILE000101, ... From
  12259. Lokesh B V.
  12260. - C Library: gethostbyname_r: Fix check for space in buffer.
  12261. - C Library: inet_ntop() was printing negative values for fields >127.
  12262. - Math Library: Fix wrong ouput in modf() API. The sign of integral
  12263. part given by the modf() should be same as sign of input. But for
  12264. inputs between 0 and 1, the sign of integral part was not same as
  12265. sign of input. From Lokesh B V.
  12266. - Math Library: Fix wrong ouput in ceil() API. Ex:for input x = 1.0,
  12267. the output should be 1.0, but the ouput was 2.0. From Lokesh B V.
  12268. * Tools
  12269. - tools/testbuild.sh: Fix missing $ before variable name.
  12270. - tools/mkdeps.c: Eliminate a warning. MAX_PATH may already be defined
  12271. in included system files. From Jeff.
  12272. * Applications: apps/
  12273. - All apps/ Makefiles: Add .PRECIOUS: apps/libapps.a to every
  12274. Makefile. Hopefully this will end awkward problems when you Control-C
  12275. out of a build and libapps.a is deleted.
  12276. - platform/Makefile: More attempts to fix for Windows native build.
  12277. Backslash as a delimiter causes problems in pattern subsitutions.
  12278. * NSH: apps/nshlib:
  12279. - NSH network initialization: Fix some ieee 802.15.4 initialization
  12280. logic. It should not set the saddr or panid; those cannot be
  12281. hard-coded but must come from the coordinator. Re-factor a function
  12282. that has gotten too big and too complex. Do not set the IP address
  12283. for 6loWPAN. The 6loWPAN stack uses IP address that derive from the
  12284. ieee 802.15.4 addressing and cannot be (safely) configured by the user.
  12285. - NSH Library: Fix copy-paste typo in nsh_usbconsole.c. From Oleg
  12286. Evseev.
  12287. - NSH Library: fix size of 6LoWPAN extended address.
  12288. - NSH Library: Fix build break in nsh_command.c with IPv4/IPv6 dual
  12289. stack. From Masayuki Ishikawa.
  12290. - NSH Library: Correct parsing of ifconfig so that you can specify the
  12291. HW address without specifying the IP address.
  12292. * Examples/Tests: apps/examples:
  12293. - examples/smart: Fix some compilation errors. Obviously this test has
  12294. not been used in a LONG time.
  12295. - examples/udp: Renaming some files to prevent name collision in
  12296. libapps.a. Fix naming of a configuration setting.
  12297. - examples/nettest: Renaming some files to prevent name collision in
  12298. libapps.a
  12299. - examples/nximage: Remove unused global variable.
  12300. - examples/nsh: Remove APPNAME, PRIORITY, and STACKSIZE settings from
  12301. Makefile to avoid showing nsh in Builtin Apps. From Masayuki Ishikawa.
  12302. * Network Utilities: apps/netutils:
  12303. - netutils/tftpc: Missing header file causes errors in some
  12304. configurations.
  12305. - netutils/tftpc: TFTPC depends on CONFIG_NET_IPv4.
  12306. - netutils/netlib: Fixes to work when only USRSOCK is enabled.
  12307. - netutils/netlib: Fix netlib_nodaddrconv() so that its return type is
  12308. the same as other address conversion functions.
  12309. - netutils/netlib: If only PF_IEEE802154 socket family is enabled, then
  12310. must use SOCK_DGRAM.
  12311. - netutils/ftpc: Fix some memory leaks. From Boris Astardzhiev.
  12312. - netutils/thttpd: Fix a malformed if condition detected by GCC 6.x.x.
  12313. - netutils/dhcpd: Prevent buffer overflow in dhcpd_addoption. offset
  12314. represents distance from start of option buffer. So this should be
  12315. changed current option pointer minus start of buffer. From EunBong
  12316. Song.
  12317. * Wireless Utilities: apps/wireless:
  12318. - wireless/ieee802154/i8sak: Need to increment the next_saddr after
  12319. each successful association.
  12320. * System Utilities (apps/system)
  12321. - correct copy-paste typo in comments in composite_main.c From Oleg
  12322. Evseev.
  12323. - system/dhcpc: The DHCPC renew command did not build correctly due to
  12324. naming problems. Noted by Masayuki Ishikawa.
  12325. - system/dhcpc: Fix warning about renew_main.o appear twice in rule.
  12326. * Tools (apps/tools):
  12327. - tools/mkkconfig.bat: Use %cd% instead of %~dp0 for usage of APPSDIR
  12328. in this batch file.
  12329. - tools/mkkconfig.bat: Remove quotes in echo. These were begin
  12330. Echo'ed and generating double quots in the output. From Jeff.
  12331. - Windows build fixes: tools/mkkconfig.bat - switch APPSDIR path to
  12332. use forward slashes for kconfig-frontends. interpreters/ficl -
  12333. Reorder some targets that causes GNUwin32 make to behave badly. From
  12334. Jeff.
  12335. NuttX-7.23 Release Notes
  12336. ------------------------
  12337. The 123rd release of NuttX, Version 7.23, was made on December 4, 2017,
  12338. and is available for download from the Bitbucket.org website. Note
  12339. that release consists of two tarballs: nuttx-7.23.tar.gz and
  12340. apps-7.23.tar.gz. These are available from:
  12341. https://bitbucket.org/nuttx/nuttx/downloads
  12342. https://bitbucket.org/nuttx/apps/downloads
  12343. Both may be needed (see the top-level nuttx/README.txt file for build
  12344. information).
  12345. Additional new features and extended functionality:
  12346. * Core OS:
  12347. - sem_open() should return SEM_FAILED on any failures. This is change
  12348. in the POSIX specification since the original sem_open() was written
  12349. so many years ago.
  12350. - exec(): The non-standard interface exec() is now enshrined as a
  12351. official NuttX API. I really dislike doing this but I think that
  12352. this is probably the only want to load programs in the protected
  12353. mode. It is currently used by some example code under apps/ that
  12354. generate their own symbol tables for linking. Other file execution
  12355. APIs relay on a symbol table provided by the OS. In the protected
  12356. mode, the OS cannot provide any meaning symbol table for execution
  12357. of code in the user-space blob so that is they exec() is really
  12358. needed in that build case. And, finally, the interface is
  12359. completely useless and will not be supported in the KERNEL build
  12360. mode where the contrary is true: An application process cannot
  12361. provide any meaning symbolic information for use in linking a
  12362. different process.
  12363. - OS Internal Functions: Rename many OS internal functions so it is
  12364. clear that they are not part of the application interface. All
  12365. internal functions with the sem_* prefix became nxsem_*, sig* become
  12366. nxsig_*, mq_* become nxmq_*, etc.
  12367. - Cancellation Points: Add new cancellation point interface,
  12368. check_cancellation_point().
  12369. - Signals: Add logic to wake up a thread that is waiting on a signal
  12370. if it is canceled.
  12371. - sigtimedwait(): Add logic to suppress the wait if there is a
  12372. pending cancellation.
  12373. - clock_nanosleep(): Implement clock_nanosleep(). nanosleep() is now
  12374. reduced to a libc wrapper around clock_nanosleep().
  12375. - task_delete(): Do not permit user applications to delete kernel
  12376. threads.
  12377. - kthread_create(): Rename kernel_thread() to kthread_create() for
  12378. better naming consistency with task_create() and kthread_delete().
  12379. - boardctl(): Remove the BOARDIOC_GRAPHICS_SETUP command.
  12380. - TCB: Move POSIX thread specific data from pthread TCB to common TCB
  12381. structure. This change allows using pthread_getspecific and
  12382. pthread_setspecific from main thread. Patch also enables using
  12383. pthread data with config option CONFIG_DISABLE_PTHREAD=y. From Jussi
  12384. Kivilinna.
  12385. - mm: Remove the CONFIG_GRAN_SINGLE configuration option. It adds no
  12386. technical benefit (other than some minor reduction in the number of
  12387. interface arguments) but adds a lot of code complexity. Better
  12388. without it.
  12389. - mm: Add a function to get information about the state of the
  12390. granule allocator. This is the moral equivalent of mallinfo().
  12391. * File Systems/Block and MTD Drivers
  12392. - MT25Q Serial FLASH: Add support for Micron MT25Q series MT25Q128.
  12393. From Sebastien Lorquet.
  12394. - MX35LFxGE4AB: Add an MTD driver for Macronix MX35LFxGE4AB serial
  12395. NAND flash. From Ekaterina Kovylova.
  12396. - FileMTD: Add block device MTD interface. Block MTD interface
  12397. allows using block device directly as MTD instead of having to use
  12398. file-system in between. NOTE that this provides the opposite
  12399. capability of FTL which will let you use an MTD interface directly
  12400. as a block device. From Jussi Kivilinna.
  12401. - BCH: The character driver to block device access now supports an
  12402. IOCTL to get the geomtry of the underlying block device.
  12403. - mkfatfs: Remove mkfatfs from the OS. This is a user-space
  12404. application and belongs in apps, not in the OS.
  12405. - procfs: Implements procfs /proc/fs/blocks and /proc/fs/usage files,
  12406. replacing the NSH df command. Also implements procfs /proc/fs/mount
  12407. file, replacing the NSH mount command when there are no arguments.
  12408. - procfs: Add /proc/meminfo. This is an alternative way to get the
  12409. information that was previoulsy available in apps/system/free.
  12410. apps/system/free was removed beause it made illegal calls into the
  12411. OS violating the portable interface. This new procfs entry provides
  12412. the same information with no such violation. it also provides
  12413. information about the kernel heap (formerly /proc/kmm), about the
  12414. use of program memory(formerly /proc/progmem). And also information
  12415. for the page table usage in the KERNEL build.
  12416. - UserFS: Adds the UserFS client and of the UserFS feature in
  12417. general. Initially used Unix domain local sockets instead of
  12418. message queues. Easier to transfer big data in local sockets than
  12419. message queues. However, that lead to certain inescapable deadlock
  12420. conditions So the IPC was converted to UDP LocalHost loopback
  12421. sockets. The problem with the local sockets is that they do require
  12422. operations on the top level pseudo-file system inode tree. That
  12423. tree must be locked during certain traversals such as enumerate
  12424. mountpoints or enumerating directory entries. This conversion is
  12425. unfortunate in the sense that Unix local domain sockets are
  12426. relatively lightweight. LocalHost UDP sockets are much heavier
  12427. weight since they rely on the full UDP stack.
  12428. * Graphics/Display Drivers:
  12429. - Framebufer character driver: Add framebuffer character device driver.
  12430. - LCD Framebuffer: Add support for a generic front-end that will
  12431. convert any LCD driver into a framebuffer driver.
  12432. - Framebufer character driver: Include support for LCD drivers that
  12433. use a simulated framebuffer and must receive explicit notification
  12434. when there is an update to a region in the framebuffer.
  12435. - LCD: Make LCD driver configuration indepently selected from NX
  12436. graphics configuration. This makes things awkward and loses some
  12437. error checking but is a necessary step in order to make LCD drivers
  12438. usable when the NX graphics system is disabled.
  12439. * Networking/Network Drivers:
  12440. - Networking: Add implementation of logic for SIOCGIFCONF and
  12441. SIOCGLIFCOF IOCTL commnds.
  12442. - Network IOCTLs: Add support for the SIOCGIFBRDADDR ioctl() command.
  12443. - Routing Tables: Permit IPv4 and IPv6 routing tables to be of
  12444. different sizes.
  12445. - Routing Tables: Adds support for read-only routing tables. Prior
  12446. to this change, routing tables were only support in RAM and had to
  12447. be initialized with explicit logic to add the necessary routes to
  12448. the routing table. With this change, routes may be defined in the
  12449. pre-initialized, read-only routing table provided by the
  12450. board-specific logic.
  12451. This would be particularly useful, for example, in the case where
  12452. there is only a single network adaptor and you want all output
  12453. packets to go to the single adaptor in all cases. So for that
  12454. behavior you could add a read-only routing table to the
  12455. board-specific long that contains a single entry, the default route:
  12456. 0.0.0.0/0.
  12457. - Routing Tables. Added support for routing tables in files in a file
  12458. system. This might be useful for customized, per-unit routing
  12459. tables. There are two issues with it however:
  12460. 1. Reading from file system on a per packet basis could be slow. I
  12461. think it probably should have a small, in-memory cache of most
  12462. frequently used routes for good problem.
  12463. 2. Currently the delroute logic is disabled due to a problem with
  12464. the design. NuttX does not currently support truncate().
  12465. Therefore, it is not possible to delete entries from the routing
  12466. table file. In this current implementation, that leaves the last
  12467. entry intact at the end of the file. An alternative design
  12468. might include a tag on each record to indicate if the record is
  12469. valid or not. That would work but would add complexity to the
  12470. other routing table functions.
  12471. - Routing Tables: Add support for an in-memory routing table cache in
  12472. order to improve performance when the routing table is retained in a
  12473. file. The cache holds the most recently used routing table entries
  12474. and so can eliminate some file access. Flush the in-memory cache
  12475. when any entry is deleted from the routing table. When a router
  12476. matching an IP address is found, add the routing table entry to the
  12477. cache.
  12478. - Routing Tables: Add logic to mark a route as most-recently-used in
  12479. the route cache.
  12480. - ICMP: This change adds support for semi-standard IPPROTO_ICMP
  12481. AF_INET datagram sockets. This replaces the old ad hoc, nonstandard
  12482. way of implementing ping with a more standard, socket interface.
  12483. - ICMPV6: This commit adds support for semi-standard IPPROTO_ICMP6
  12484. sockets. This is a replacement for the non-standard ICMPv6 ping
  12485. support that violated the portable POSIX OS interface.
  12486. - ICMPv6: Add option to manually specify router prefix in router
  12487. advertisement message. From Sakari Kapanen.
  12488. - Local Sockets: This commit modifies the Unix domain local socket
  12489. design. Local sockets are built on top of pipes. The Local socket
  12490. implementation maintained file descriptors to interrupt with the
  12491. pipes. File descriptors have the bad property that they are valid
  12492. only while running on the thread within the task that created the
  12493. local socket.
  12494. As a policy, all internal OS implementations must use "detached"
  12495. files which are valid in any context and do not depend on the
  12496. validity of a file descriptor at any point in time. This commit
  12497. converts the usage of file descriptors to detached files throughout
  12498. the local socket implementation.
  12499. * Wireless Networking/Wireless Drivers:
  12500. - IEEE-802154: Adds support for receiving MAC events via IOCTL through
  12501. socket interface. From Anthony Merlino.
  12502. - IEEE-802154: Simplifies notify() and rxframe() calls to a single
  12503. notify() call. dataind's and all other "notifs" are now "primitives"
  12504. which aligns with standard terminology From Anthony Merlino.
  12505. - MAC802154: Add support for getting promiscuous mode state From
  12506. Anthony Merlino.
  12507. - MAC802154 Character Driver: When in promiscuous mode, the char
  12508. driver sends the entire frame, including the MAC header. This
  12509. change adds an offset field indicating the header-payload boundary.
  12510. It is set to 0 when not in promiscuous mode as the header is not
  12511. passed to the application
  12512. - 6LoWPAN: Remove CONFIG_NET_6LOWPAN_FRAMELEN. In this case where
  12513. multiple radios are supported, this may not be a constant. 6LoWPAN
  12514. now always queries the driver to get the maximum frame length.
  12515. - 6LoWPAN: Support sending to a router that is on-link and may be
  12516. able to forward the packet for us if the destination is not
  12517. reachable directly. From Anthony Merlino.
  12518. - XBee: Adds XBee S2C (802.15.4 firmware) support. XBee driver
  12519. emulates mac802154 interface. From Anthony Merlino.
  12520. * Other Common Device Drivers:
  12521. - PowerLED: Add upper-half driver for high power LED driver (powerled)
  12522. From Mateusz Szafoni.
  12523. - RTC Driver: Add periodic alarms to upper and lower halves. From
  12524. Juha Niskanen.
  12525. - Pipes: Fix writing large buffers not triggering POLLIN for reader
  12526. poll. From Jussi Kivilinna.
  12527. - USB CDC/ACM Device: Add support for RX flow control to the CDC/ACM
  12528. driver.
  12529. - USB CDC/ACM Device: Add support for flow control TERMIOs in CDC/ACM
  12530. driver.
  12531. - USB RNDIS Device: Add RNDIS-over-USB driver. From Sakari Kapanen
  12532. with added Hi-Speed support from Masayuki Ishikawa.
  12533. - Loop Driver: Don't use file descriptors... Use the internal file
  12534. system interfaces so that the loop device can be shared across
  12535. threads.
  12536. - APA102 LED controller: Add driver for APA102 LED controller. These
  12537. LEDs are used on LED Strips and are controlled over SPI.
  12538. - INA219. Add INA219 Driver. The INA219 is a combined voltage and
  12539. current sensor that can measure up to 26 volts and a current that
  12540. depends on an external shunt resistor. Connection happens via
  12541. i2c/smbus and the chip features a power supply rail that is
  12542. independent from the measured voltage, so it can measure low
  12543. voltages. Right now it measures bus voltage and current, and does
  12544. not use the internal calibrated current reading, nor the available
  12545. power measurement. From Sebastien Lorquet.
  12546. - PCA9555: The IRQ subsystem now supports passing a void * parameter
  12547. to IRQ handlers. Use that method to support multiple PCA9555
  12548. devices, by passing a pointer to the device to the board defined irq
  12549. handler. Now the CONFIG_ for multiple PCA devices just allocates
  12550. device structures dynamically instead of statically when not enabled.
  12551. The same interrupt handler is entered with the device structure
  12552. parameter in all situations, multiple or single PCA. One should
  12553. still be careful if multiple PCA devices share the same IRQ. From
  12554. Sebastien Lorquet.
  12555. - APDS-9960: Add driver for the APDS-9960 gesture sensor. From Alan
  12556. Carvalho de Assis.
  12557. - MAX7219: Add support to MAX7219 LED Matrix as LCD interface. From
  12558. Alan Carvalho de Assis.
  12559. - WM8774: Add WM8774 audio DAC support. From Masayuki Ishikawa.
  12560. - Nunchuck: Add Nintendo Wii Nunchuck driver. From Alan Carvalho de
  12561. Assis.
  12562. * Simulation
  12563. - Simulation: Add a configuration for non-graphical testing of the
  12564. frambuffer character driver using apps/example/fb.
  12565. - Simulation: Add a configuration for testing the UserFS using
  12566. apps/examples/userfs.
  12567. * Broadcom BCM2708:
  12568. - BCM2708: Add enough infrastructrue (more stubs) to get a clean
  12569. compilation of the Pi Zero configuration (with many undefined things
  12570. at link time). This includes several register definition header
  12571. files (some from Alan Carvalho de Assis), basic interrupt handling
  12572. logic, boot-up files, GPIO support, tickless timer, build and
  12573. configuration logic
  12574. * Broadcom BCM2708 Boards:
  12575. - Raspberry Pi Zero. Basic board support at configs/pizero. Untested
  12576. in this release and still some remaining issues.
  12577. * Infineon XMC4xxx Boards:
  12578. - XMC4500-Relax: Add config for UART3 on RXD P0.0 and TXD P0.1 pins.
  12579. From Alan Carvalho de Assis.
  12580. * NXP Freescale LPC17xx Boards:
  12581. - Open1788: Add initialization of Framebuffer driver. Add
  12582. configuration for testing the framebuffer driver.
  12583. * NXP Freescale LPC43xx Drivers:
  12584. - LPC43xx: Add LPC43xx CAN driver. From Alexander Vasiljev.
  12585. * NXP Freescale LPC43xx Boards:
  12586. - MCB1700: Add support for Keil MCB1700 board. From Alan Carvalho de
  12587. Assis.
  12588. - Open1788: Add support for the discrete joystick driver.
  12589. - Open1788: Add a configuration for testing pdcurses with discrete
  12590. joystick.
  12591. * On Semiconductor LC823450
  12592. - LC823450: Add ADC driver and watchdog drivers. From Masayuki
  12593. Ishikawa.
  12594. - LC823450: Add IPL2 support. From Masayuki Ishikawa.
  12595. - LC823450: Add I2S support. From Masayuki Ishikawa.
  12596. - LC823450: Add auto LED for CPU activity. From Masayuki Ishikawa.
  12597. * On Semiconductor LC823450 Boards
  12598. - LC823450-XGEVK: Enable ADC and watchdog driver. From Masayuki
  12599. Ishikawa.
  12600. - LC823450-XGEVK: Add IPL2 support. From Masayuki Ishikawa.
  12601. - LC823450-XGEVK: Add WM8774 support. From Masayuki Ishikawa.
  12602. - LC823450-XGEVK: Add auto LED support. From Masayuki Ishikawa.
  12603. - LC823450-XGEVK: Enable CONFIG_SMP for audio. From Masayuki Ishikawa.
  12604. - LC823450-XGEVK: Add rndis configuration. From Masayuki Ishikawa.
  12605. * STMicro STM32:
  12606. - ARM Kconfig: Add support for classic ARM11 architecture selections.
  12607. - STM32 Tickless: Removes the restriction to 16-bit counts when a
  12608. 32-bit timer is used for tickless operation on the stm32. As it
  12609. was, the restriction is very limiting, especially if one wants high
  12610. granularity and large achievable intervals and has the hardware
  12611. (namely the 32bit timers) available. From Rajan Gill.
  12612. - STM32 L4 Kconfig: Add some L486 and L496 chips. From Juha Niskanen
  12613. - STM32 F7: Adds architecture support for the STM32 F72x and F73x
  12614. families. From Bob Feretich.
  12615. - STM32 F7: Allow changing voltage output scaling setting and
  12616. prevents enabling over-drive mode for low frequencies (STM32 F74xx,
  12617. 75xx, 76xx, 77xx). From Jussi Kivilinna. Changes replicated for
  12618. the 72xx and 73xx families.
  12619. * STMicro STM32 Drivers:
  12620. - STM32 ADC: Added support for ADC's IO_ENABLE_TEMPER_VOLT_CH ioctl
  12621. on STM32F10XX and STM32F20XX. From Dmitriy Linikov.
  12622. - STM32 Wakeup: Add logic for enabling wakeup pins. From Oleg Evseev.
  12623. - STM32 PWR: Adds stm32_pwr_getsbf and stm32_pwr_getwuf functions
  12624. that return the standby flag and the wakeup flag PWR power
  12625. control/status register. From Oleg Evseev.
  12626. - STM32 HRTIM: Sdd support for capture, chopper, deadtime and dump
  12627. registers. From Mateusz Szafoni.
  12628. - STM32 RTC: Canceling an alarm marks it as inactive. From Juha
  12629. Niskanen
  12630. - STM32 Serial: Add interface to get uart_dev_t by USART number,
  12631. stm32_serial_get_uart(). From Juha Niskanen.
  12632. - STM32 F33xx ADC: Initial ADC support for the STM32F33XX. From
  12633. Mateusz Szafoni.
  12634. - STM32 F33xx ADC: Add ADC DMA support to STM32F33 configuration. From
  12635. Mateusz Szafoni.
  12636. - STM32 L4 ADC: Port analog watchdog ioctl commands from the Motorola
  12637. MDK. From Juha Niskanen
  12638. - STM32 L4 ADC: Add option for routing ADC data to DFSDM, fix DFSDM
  12639. DMA. From Juha Niskanen
  12640. - STM32 L4 ADC: Add PM hooks from Motorola MDK
  12641. - STM32 L4 FLASH: Add function for modifying device option bytes,
  12642. From Juha Niskanen.
  12643. - STM32 L4 DFSDM: Add peripheral support for digital filters for
  12644. sigma-delta ADCs. Initial version. Timer trigger support is not
  12645. completed and there is some issue with DMA. From Juha Niskanen.
  12646. - STM32 L4 I2C: Port then STM32 F7 I2C driver to STM32 L4. STM32L4 I2C
  12647. driver is in work-in-progress state (plentiful of TODOs and
  12648. #warnings) and lags many features found in more up-to-date STM32 I2C
  12649. drivers. The peripheral on STM32F7 and STM32L4 are identical except
  12650. for L4's 'wakeup from stop mode' flag and STM32F7's I2C driver is in
  12651. more 'ready to use' state. The I2C clock configuration is kept the
  12652. same as before (I2CCLK = PCLK1 80 Mhz) instead of switching to
  12653. STM32F7 arch default that is I2CCLK=HSI. Further work would be to
  12654. add configuration option for choosing I2C clock source instead of
  12655. current hard-coded default. From Jussi Kivilinna.
  12656. - STM32 L4 RTC: Add up_rtc_getdatetime_with_subseconds
  12657. - STM32 L4 RTC: Change maximum alarm time from 24h to one month. From
  12658. Juha Niskanen.
  12659. - STM32 L4 RTC: Add support for periodic interrupts with
  12660. (experimental) CONFIG_RTC_PERIODIC. From Juha Niskanen.
  12661. - STM32 L4 SDMMC: Add support for an SDMMC driver. From Miha Vrhovnik.
  12662. - STM32 L4 Serial: Suspend serial for Stop mode. From Juha Niskanen.
  12663. - STM32 L4 Serial/PM: STM32L4 serial PM interface improvements:
  12664. Check rx/tx buffers for pending data in pmprepare. Remove adhoc PM
  12665. interfaces and move serial suspend functionality behind CONFIG_PM.
  12666. From Jussi Kivilinna.
  12667. * STMicro STM32 Boards:
  12668. - STM32F103-Minimum: Add board support for APA102 driver. From Alan
  12669. Carvalho de Assis.
  12670. - STM32F103-Minimum: Add ADC support on stm32f103-minimum board.
  12671. From Alan Carvalho de Assis.
  12672. - STM32F103-Minimum: Add support for LM75 in the stm32f103-minimum
  12673. board. From Alan Carvalho de Assis.
  12674. - STM32F103-Minimum: Add an ADPS-9960 example configuration. From
  12675. Alan Carvalho de Assis.
  12676. - STM32F103-Minimum: Add board support for MAX7219 LED Matrix
  12677. controller. From Alan Carvalho de Assis.
  12678. - STM32F103-Minimum: Add USB MSC device initialzation to
  12679. stm32f103-minimum. From Alan Carvalho de Assis.
  12680. - STM32F103-Minimum: Add framebuffer driver initialization for
  12681. stm32f103-minimum board. From Alan Carvalho de Assis.
  12682. - STM32F103-Minimum: Add Nunchuck board support for
  12683. stm32f103-minimum board. From Alan Carvalho de Assis.
  12684. - STM32F4 Discovery: Add support for JLX12864G display on STM32F4
  12685. Discovery board. From Alan Carvalho de Assis.
  12686. - Viewtool-STM32F107: Add support to auto-mount the procfs file system.
  12687. - Photon: Support SPI1 and SPI3. From Anthony Merlino.
  12688. - STM32F334-DISCO: Add lower half driver for high power LED
  12689. (powerled). From Mateusz Szafoni.
  12690. - STM32F334-DISCO: Add flash mode support for powerled driver. From
  12691. Mateusz Szafoni.
  12692. - STM32F334-DISCO: Add powerled example configuration. From Mateusz
  12693. Szafoni.
  12694. - STM32F334-DISCO: Add lower-half driver for SMPS (buck-boost onboard
  12695. converter). From Mateusz Szafoni
  12696. - Nucleo-F334R8: Add logic for zero latency high priority interrupts
  12697. example. From Mateusz Szafoni.
  12698. - Nucleo-F334R8: Add highpri example configuration. From Mateusz
  12699. Szafoni.
  12700. - STM32 F4 Discovery: Added support for the LIS3DSH accelerometer on
  12701. the STM32F4 Discovery rev. C boards. From Florian Olbrich.
  12702. - STM32 F4 Discovery: ROMFS for STM32F4 Discovery board. From Tomasz
  12703. Wozniak.
  12704. - STM32 F4 Discovery: Add a USB MSC configuration. From Alan Carvalho
  12705. de Assis.
  12706. - STM32 F4 Discovery: RNDIS support on STM32F4Discovery + DM-STF4BB.
  12707. NOTE: MAC address for the host side starts 0xaa. This assignment
  12708. scheme should be fixed later. From Masayuki Ishikawa.
  12709. - STM32 F4 Discovery: Add STM32F4 Discovery board support for
  12710. Nunchuck joystick. From Alan Carvalho de Assis.
  12711. - STM3240G-EVAL: Add a configuration for testing the Framebuffer
  12712. character driver using the LCD framebuffer front.
  12713. - STM3240G-EVAL: Mount procfs if enabled.
  12714. - STM3240G-EVAL: Add support for pdcurses and the pdcurses demo
  12715. programs in the 'fb' configuration.
  12716. - Clicker2-STM32: Adds SD card, automount, and syslog file
  12717. support and fixes a few minor issues. From Anthony Merlino.
  12718. - Clicker2-STM32: Adds support for USB RNDIS device. From Anthony
  12719. Merlino.
  12720. - Olimex STM32-H407: Add serial support on the on-board UEXT
  12721. connector. Add USART6 for UEXT connector. Add nsh_uext
  12722. configuration and README update. From Jan Pobríslo.
  12723. - Nucleo-F410RB: Add support for the nucleo-F410RB board. From
  12724. Gwenhael Goavec-Merou.
  12725. - STM32F429i-DISCO: Add framebuffer driver initialization. Add a
  12726. framebuffer (fb) configuration.
  12727. - STM32F429i-DISCO: Add logic to auto-mount procfs. Enable procfs in
  12728. all configurations that use NSH.
  12729. - STM32F429i-DISCO: Enable support for the STMPE811 touchscreen
  12730. controller. Enable touchscreen and also the touchscreen testa at
  12731. apps/examples/touchscreen in the fb configuration.
  12732. - STM32F429i-DISCO: Convert NxWM configuration to use LTDC
  12733. framebuffer driver instead of SPI serial. Also reduce number of
  12734. layers from 4 to 1 in fb configuration. Only one layer is used.
  12735. - STM32L476-MDK: Add support for the on-board LEDs.
  12736. - Nucleo-L496ZG: Add DFSDM initialization. From Juha Niskanen
  12737. - Nucleo-L496ZG: Add support for SDMMC driver. From Miha Vrhovnik.
  12738. - Nucleo-L496ZG: Enable I2C4 bus with i2ctool in NSH configuration.
  12739. From Jussi Kivilinna.
  12740. - Nucleo-L496ZG: Make HSE on Nucleo-L496ZG default to enable USB.
  12741. From Miha Vrhovnik.
  12742. - Nucleo-F746ZG: Use the serial console over /dev/ttyACM0 by default.
  12743. The Nucleo-F746ZG doesn't come with Arduio RS-232 shield, then it is
  12744. better to use the serial over the /dev/ttyACM0 that is created
  12745. automatically when the board is plugged in the computer. From Alan
  12746. Carvalho de Assis.
  12747. - Nucleo-144: Adds support for the Nucleo-144 boards with
  12748. STM32F722ZE. From Bob Feretich.
  12749. * ZiLOG Z80
  12750. - z80/include: compiler.h, limits.h, types.h: Update SDCC/z80 files
  12751. to include support for long long, inline, __FILE__, and __func__.
  12752. * C Library/Header Files:
  12753. - include/: Add stdnoreturn.h. Holds definitions for the C11
  12754. noreturn keyword. Applies to C too.
  12755. - include/netinet/tcp.h: Add trivial standard tcp.h header file.
  12756. - libc: Add support for readv() and writev().
  12757. - libc: Adds tcflow().
  12758. - libc: Add support for sigwait().
  12759. - libnx: Changes to allow the font subsystem to be built without
  12760. enabling the entire graphics system (CONFIG_NX). Adds
  12761. CONFIG_NXFONTS and CONFIG_NXGLIB. Needed to duplicate some Kconfig
  12762. setting for NXFONTs if it can be configured and built independently
  12763. of NX.
  12764. * Tools:
  12765. - tools/configure.sh: Add special support so that you can start with a
  12766. windows native configuration and install on a different host (and
  12767. vice versa).
  12768. - tools/configure.c: Duplicate new functionaity added to configure.sh.
  12769. - tools/configure.sh: This commit adds a -m option for macOS. For
  12770. anyone not aware, Apple renamed OSX to macOS recently; thus the 'm'
  12771. instead of 'o'. This does not change the other uses of *_OSX to
  12772. macOS. From jeditekunum.
  12773. - tools/configure.c: Update functionality to match last change to
  12774. tools/configure.sh.
  12775. * NSH: apps/nshlib:
  12776. - apps/nshlib: mount command no long uses the non-standard OS
  12777. interface foreach_mountpoint(). Now simply cats /proc/fs/mount
  12778. when there are no arguments to the mount command.
  12779. - apps/nshlib: df command no long uses the non-standard OS interface
  12780. foreach_mountpoint(). Now simply cats /proc/fs/blocks or
  12781. /proc/fs/usage.
  12782. - apps/nshlib: The free commands no longer used mallinfo() to get
  12783. the state of the use heap. Two reasons: That is not useful
  12784. information in the kernel build. And (2) there are other memory
  12785. resources of interest in other configurations such as the Kernel
  12786. heap in PROTECTED and KERNEL builds, and the prog mem uses when
  12787. FLASH is used to hold modifiable data. The free command has been
  12788. extended to just dump the content of procfs entries and to include
  12789. all of these other memory resources of the procfs entries are
  12790. available.
  12791. * Examples/Tests: apps/examples:
  12792. - apps/examples/fb: Add a simple test for the framebuffer character
  12793. driver..
  12794. - apps/examples/ostest: sem_open() now returns SEM_FAILED in the
  12795. event of a failure.
  12796. - examples/ostest: Extend cancellation test to make sure that
  12797. cancelable threads waiting on a message queue or on a signal can be
  12798. canceled.
  12799. - Added a simple reader example for the LIS3DSH acceleration sensor
  12800. on STM32F4Discovery. From Florian Olbrich.
  12801. - apps/examples/apa102: Add a Rainbow example for APA102 LED Strip.
  12802. From Alan Carvalho de Assis.
  12803. - apps/examples/flowc: Add a simple test of serial hardware flow
  12804. control.
  12805. - Add powerled driver example. From Mateusz Szafoni.
  12806. - apps/examples/ina219: A simple infinite loop that polls the INA219
  12807. sensor and displays the measurements. From Sebastien Lorquet.
  12808. - apps/examples/alarm: Add options for reading alarm value and
  12809. canceling it. From Juha Niskanen.
  12810. - Add -n samples to lm75 app and replace Centigrade with Celsius.
  12811. From Alan Carvalho de Assis.
  12812. - apps/examples/adps9960: Add ADPS-9960 example. From Alan Carvalho
  12813. de Assis.
  12814. - apps/examples/obd2: Add OBD2 example application. From Alan
  12815. Carvalho de Assis.
  12816. - apps/examples/userfs: Add a test case for verifying UserFS.
  12817. - apps/examples/smps: add SMPS driver example. From Mateusz Szafoni.
  12818. - apps/examples/pdcurses: Bring in pdcurses demos and make them
  12819. conform to the NuttX coding style.
  12820. - apps/examples/pdcurses: Add a very simple example that just shows
  12821. the entire character set (7-bit only). It adapts to the size of
  12822. the framebuffer and, hence, can be used with very tiny displays.
  12823. In fact it looks really dumb on big displays.
  12824. - apps/examples/nunchuck: Add Nunchuck example application. From
  12825. Alan Carvalho de Assis.
  12826. * File System Utilities: apps/fsutils:
  12827. - apps/fsutils/mkfatfs: Move mkfatfs from the OS to here.
  12828. * Network Utilities: apps/netutils:
  12829. - apps/netutils/netlib: Add netlib_ipv6adaptor() and
  12830. netlib_ipv4adaptor().
  12831. - apps/netutils/netlib: Add helpers for reading the routing table:
  12832. netlib_read_ipv4route() and netlib_read_ipv6route().
  12833. - apps/netutils/netlib: Add new utilities netlib_ipv[4|6]router()
  12834. that can be used to determine the IP address of a router that would
  12835. be used some some destination IP address that is not locally
  12836. accessible.
  12837. - apps/netutils/ftpc: Adds support for IPv6 and fixes various
  12838. transfer issues. From Anthony Merlino.
  12839. * CANUtilities: apps/canutils:
  12840. - apps/canutils/libobd2: Add libobd2 for NuttX. From Alan Carvalho
  12841. de Assis.
  12842. * Graphics: apps/graphics:
  12843. - graphics/traveler: Convert to use the framebuffer driver.
  12844. - apps/graphics/pdcurs34: This commit brings the public domain
  12845. pdcurses library into NuttX. NuttX graphics support based on the
  12846. framebuffer character drivers has been integrated. Input is
  12847. currently limited to a discrete joystick driver.
  12848. * Wireless Utilities: apps/wireless:
  12849. - apps/wireless/ieee802154/i8sak: Adds socket interface support. You
  12850. can now use both socket or char driver to control the MAC layer.
  12851. From Anthony Merlino.
  12852. - apps/wireless/ieee802154/i8sak: Adds sniffer port option and a few
  12853. other get/set parameters. From Anthony Merlino.
  12854. - apps/wireless/ieee802154/i8sak: Changes 'notif' to 'primitive'
  12855. corresponding to the changes in the Kernel. From Anthony Merlino.
  12856. - apps/wireless/ieee802154/i8sak: Channel setting is now saved
  12857. locally, so when performing a startpan or assoc, the channel
  12858. previously set is still used, even though the MAC layer gets reset.
  12859. From Anthony Merlino.
  12860. - apps/wireless/ieee802154/i8sak: Adds ability to get/set rxonidle
  12861. setting for MAC layer. From Anthony Merlino.
  12862. - apps/wireless/ieee802154/i8shark: Adds i8shark, a sniffer "adapter"
  12863. that captures all 802.15.4 traffic, packages it into a Wireshark ZEP
  12864. packet, and sends it to a host running Wireshark From Anthony
  12865. Merlino.
  12866. * System Utilities (apps/system)
  12867. - apps/system/ping and ping6: This commit removes the ping and ping6
  12868. commands from NSH and replaces then with the apps/system/ping and
  12869. apps/system/ping6 built-in commands. The NSH ping[6] commands had
  12870. to be removed because they violated the portable POSIX OS interface.
  12871. The apps/system/png and ping6 command uses the sem-standard
  12872. IPPROTO_ICMP and IPPROTO_ICMP6 socket interfaces.
  12873. * Platform-Specific Support (apps/platform)
  12874. Bugfixes. Only the most critical bugfixes are listed here (see the
  12875. ChangeLog for the complete list of bugfixes and for additional, more
  12876. detailed bugfix information):
  12877. * Core OS:
  12878. - Task Environment Creation: Fix an error in the duplication of the
  12879. child tasks environment in the special case where the parent's
  12880. environment was created, but then all of the variables were unset.
  12881. In that case, there is still an allocation in place but the size of
  12882. the allocation is zero. This case was not being handled correctly
  12883. when a child task attempts to create its environment and inherit the
  12884. zero-size partent environment. Noted by Anthony Merlino.
  12885. - timer_create(): Fix watchdog resource leak if cannot allocate a new
  12886. timer. From Bruno Herrera.
  12887. - OS Internal Functions: Internal OS functions should not return error
  12888. information via the user errno variable: This includes functions
  12889. like file_seek(), file_read(), file_write(), etc. The complete list
  12890. is too long to duplicate here (please refer to the ChangeLog for
  12891. details).
  12892. - OS Internal Functions: Not only should internal OS functions not
  12893. modify the errno variable, they should never introduce cancellation
  12894. points: psock_connect(), psock_listen(), psock_getsockopt(), etc.
  12895. The list is too long to duplicate here (please refer to the
  12896. ChangeLog for details).
  12897. - OS Internal Functions: Create OS internal versions of many
  12898. applications functions that were used by the OS. The new versions
  12899. differ from the application interfaces in that (1) they do not
  12900. return error information via the errno variable, and (2) they never
  12901. create cancellation points. This includes new internal interfaces
  12902. like nxsem_init() that is like sem_init(), etc. There are too many
  12903. to list here (see the ChangeLog for details).
  12904. - Task Exit: task_exithook.c fails to link if signals are disabled
  12905. because was unconditionally trying to send the SIGCHLD signal to the
  12906. parent in certain configurations. Noted by Jeongchan Kim.
  12907. - memalign(): Fix heap corruption caused by using unaligned chunk
  12908. size. Unaligned nodes generated by memalign later cause heap
  12909. corruptions when nodes are shrink further (for example, 24 bytes ->
  12910. 8 bytes, when alignment is 16 bytes). From Jussi Kivilinna.
  12911. - SMP: In sched/sched/sched_cpuselect.c, in order to find the cpu
  12912. with the lowest priority thread, we have to remember the already
  12913. found lowest priority. Noted by Anonymous in Issue #75.
  12914. - spinlocks: Disable local interrupts in spin_setbit() and
  12915. spin_clrbit() in order to avoid a deadlock condition. From Masayuki
  12916. Ishikawa.
  12917. - atexit()/on_exit(): Clear atexit()/on_exit() function pointer
  12918. before calling it. On most archs, up_assert() calls exit() so
  12919. without this change, if atexit() function triggers an assertion we
  12920. are in endless loop. From Juha Niskanen.
  12921. * File System/Block and MTD Drivers:
  12922. - tmpfs: Fixed directory unlocking in tmpfs_opendir. From Dmitriy
  12923. Linikov.
  12924. - fcntl(): fcntl() did not return success fail for F_SETFL. Reported
  12925. by Jussi Kivilinna.
  12926. - tcdrain(): tcdrain() was recently added to the NuttX C library.
  12927. But there is a problem. The specification of tcdrain() requires
  12928. that it be a cancellation point. In order to do this, tcdrain was
  12929. moved from the C library into the OS and the addition cancellation
  12930. point hooks were added. In non-FLAT builds, access via system calls
  12931. is also now supported.
  12932. - FS FAT: Fix hard-fault when listing contents of FAT root. From
  12933. Jussi Kivilinna.
  12934. - procfs: Correct a problem that was causing an apparent directory to
  12935. be reported as a file instead of a directory by opendir. This
  12936. happened after adding these three new procfs entries: fs/block,
  12937. fs/mount, and fs/usage. Of course, there is no directory fs in this
  12938. case, only three files that have fs/ in their relative pathnames.
  12939. The logic was detecting that fs was the name of the enty to report,
  12940. but it was then declaring that fs was a file (because fs/block is of
  12941. type file). This was fixed by adding a check for matching lenghts.
  12942. i.e., if strlen(fs) != strlen(fs/block), then report fs as a
  12943. directory instead of a file.
  12944. - procfs: Fix uptime being clse to maximum 32-bit value in certain
  12945. config. From Juha Niskanen.
  12946. * Binary Loader:
  12947. - binfmt/: Don't schedule starthook if there are no constructors.
  12948. * Graphics/Display Drivers:
  12949. - LCD: ILI9341 initialize method not permitted to set errno.
  12950. * Networking/Network Drivers:
  12951. - Networking: net/netdev/netdev_ifconfig.c: Was not returning all of
  12952. the address info.
  12953. - Networking: In some cases, packets are still not sent behind the
  12954. router. I found that NuttX sends the ARP requests not to the router
  12955. but to the target. Mistake in file net/route/netdev_router.c. From
  12956. Aleksandr Kazantsev.
  12957. - SIOCGIFCONF and SIOCGLIFCONF IOCTL commands should only report on
  12958. network adatpors in the UP state.
  12959. - recvfrom(): Fix double leave_cancellation_point on error path.
  12960. From Jussi Kivilinna.
  12961. - send(): Verify that sock descriptor is valid. Fixes assertion when
  12962. using send on closed socket. From Jussi Kivilinna.
  12963. - sendto(): Remove assert check for null psock and buf input
  12964. pointers. Removes check as 'psock == NULL' altogether because that
  12965. checked for later in psock_send and psock_sendto. Change null check
  12966. for 'buf' so that it is handled same as in recvfrom.c (return
  12967. -EINVAL instead of assert). From Jussi Kivilinna.
  12968. - sockgetname() files need to include udp/udp.h and tcp/tcp.h or
  12969. otherwise NET_UDP_HAVE_STACK and NET_TCP_HAVE_STACK are undefined
  12970. and the logic is never compiled. Noted by Anthony Merlino.
  12971. - dup()/dup2(): There was a reference counting problem in the TPC
  12972. logic of net_clone(). net_clone() which is the common logic
  12973. underlying dup() and dup2() for sockets. When net_clone() calls
  12974. net_start_monitor() and net_start_monitor() returns a failure
  12975. (because the underlying TCP connection) then net_clone() must back
  12976. out the reference count on the structure. Problem noted by Pascal
  12977. Speck and this implementation of the solution is based on his
  12978. suggestion.
  12979. - close(): There was a possible recursion that could eventually
  12980. overflow the stack. The error occurred when closing the socket with
  12981. inet_close() while a socket callback was still queued. When the
  12982. socket callback was executed by devif_conn_event(), this resulted in
  12983. a call to psock_send_eventhandler() with TCP_CLOSE flag set which
  12984. then called tcp_lost_connection(). tcp_shutdown_monitor() then
  12985. called tcp_callback() again, which again called
  12986. psock_send_eventhandler(), and so on.... Noted by Pascal Speck.
  12987. Solution is also similar to a solution proposed by Pascal Speck.
  12988. - inet: Add check for protocol before handing out TCP and UDP sockets.
  12989. - IP Forwarding: Fixes typo that caused build error when IP
  12990. forwarding was enabled with CONFIG_NET_ICMPv6_NEIGHBOR enabled as
  12991. well. From Anthony Merlino.
  12992. - IP Forwarding: Do not add link layer header size to d_len inside
  12993. devif_forward(). From Anthony Merlino.
  12994. - TCP Networking: When CONFIG_NET_TCP_WRITE_BUFF=y there is a
  12995. situation where a NULL pointer may be dereferenced. In this
  12996. configuration, the TCP connection's 'semi-permanent' callback,
  12997. s_sndcb was nullified in tcp_close_disconnect. However, other logic
  12998. in tcp_lost_connection() attempt to use that callback reference
  12999. after it was nullifed. Fixed in tcp_lost_connectino() by adding a
  13000. NULL pointer change before the access. This was reported by Dmitriy
  13001. Linikov in Bitbucket Issue 72.
  13002. - UDP Broadcat: Fix some issues with regard to UDP broadcast
  13003. handling. This is Bitbucket Issue #77.
  13004. - ICMP: Fix an error in the poll logic. It was assumed that the
  13005. input parmeter pvconn was valid. It was not. Instead, the poll
  13006. logic must work like the sendto() and recvfrom() logic: It must
  13007. keep a copy of the conn structure in the private data.
  13008. - ICMPv6: Fixes several errors preventing icmpv6_radvertise.c from
  13009. being compiled. Fixes conversions to network byte order (namely
  13010. vlifetime, plifetime, mtu). IPv6 source address is set to
  13011. link-local IP address instead of the address in the netdev
  13012. structure. This is in compliance to RFC 4861. RA didn't work on
  13013. Linux before this change. Finally, router prefix and prefix length
  13014. are derived from the IPv6 address and netmask in the netdev
  13015. structure. This seems to make more sense than using a predefined,
  13016. separate prefix from the config. From Sakari Kapanen.
  13017. - ICMPV6: icmpv6_input() needs to set d_len to 0 after consuming echo
  13018. reply, otherwise, garbage will get sent out. From Anthony Merlino.
  13019. - ICMPV6: Fix an error in the poll logic. It was assumed that the
  13020. input parmeter pvconn was valid. It was not. Instead, the poll
  13021. logic must work like the sendto() and recvfrom() logic: It must
  13022. keep a copy of the conn structure in the private data.
  13023. - IGMPv2 Send: Fix incoming IGMP checksum calculation. From Louis
  13024. Mayencourt.
  13025. - ARP: Fix IGMP Ethernet address computation. From Louis Mayencourt.
  13026. * Wireless/Wireless Drivers:
  13027. - CC1101: CC1101 driver not permitted to set errno.
  13028. - 6LoWPAN: Correct an error in uncompressing multicast address.
  13029. - 6LoWPAN: Correct a bug in handling uncompressed frames (IPv6
  13030. dispatch). Adds a separate local variable, protosize, to keep track
  13031. of the size of thep protocol header.
  13032. - 6LoWPAN: Fix an endian-ness problem in 6LoWPAN address
  13033. decompression. From Anthony Merlino.
  13034. - 6LoWPAN: The logic that extracts interface identifier from the IP
  13035. address needs to be generalized to handle cases where the address is
  13036. not a link local address. From Anthony Merlino.
  13037. * Common Drivers:
  13038. - Serial: 16550 UART driver IOCTL method must not set errno; it must
  13039. return a negated errno value.
  13040. - LIS3DSH: Added the argument parameter (FAR void *arg) to the
  13041. interrupt handler provided by the LIS3DSH driver to fit the
  13042. definition for ISRs in xcpt_t. Changed the check for working queue
  13043. availability in lis3dsh interrupt handler to use work_available()
  13044. and not crash in case of an overrun. From Florian Olbrich.
  13045. - LIS2DH: Fixes for self-test. From Jussi Kivilinna.
  13046. - LIS2DH: Fix use of obsolete dbg macro. From Jussi Kivilinna.
  13047. - LIS331DL: LIS331DL driver not permitted to set errno.
  13048. - HTS221: Power-on sensor for loading calibration data. From Jussi
  13049. Kivilinna.
  13050. - MCP2515: Fix the MCP2515 Bit Rate Prescale calculation. Fix BRP
  13051. for SET_BITTIMING ioctl as well. From Alan Carvalho de Assis.
  13052. - STMPE811: Fix GPIO operation of STMPE811 driver.
  13053. 1. STMPE811_GPIO_DIR was defined for register name and later was
  13054. redefined to be the pin direction mask for `stmpe811_gpioconfig`.
  13055. I decided to change register name to be STMPE811_GPIO_DIR_REG, and
  13056. keep pin direction mask STMPE811_GPIO_DIR, so that any external
  13057. code that already use this driver will be unchanged.
  13058. 2. The STMPE811 register GPIO_DIR uses bit value 1 for output and 0
  13059. for input, but `stmpe811_gpioconfig` set the opposite.
  13060. 3. The call to `stmpe811_gpiowrite` from inside of
  13061. `stmpe811_gpioconfig` leaded to deadlock.
  13062. From Dmitriy Linikov.
  13063. - BQ2429X: Add BATIO_OPRTN_SYSON for enabling BATFET after SYSOFF.
  13064. From Jussi Kivilinna.
  13065. * Simulation:
  13066. - Simulation: Serial and console drivers are not permitted to set
  13067. the errno.
  13068. * ARMv7-M:
  13069. - ARM Stack Check: Fix assert panic when both TLS and interrupt stack
  13070. are enable. From Jussi Kivilinna.
  13071. * Infineon XMC4xxx Drivers:
  13072. - XMC4 USIC: Kconfig was not selecting XMC4_USIC for USIC1. From Alan
  13073. Carvalho de Assis.
  13074. - XMC4 UART: Fix XMC4xxx USIC UART sginal to be high level when in idle.
  13075. From Alan Carvalho de Assis.
  13076. - XMC4 UART:xmc4_uart_configure() expects the channel# not uartbase as
  13077. an input parameter. From Alan Carvalho de Assis.
  13078. - XMC4 UART: Enable RX/TX status. From Alan Carvalho de Assis.
  13079. - XMC4 UART: The Alternative Receive Interrupt was not being
  13080. configured.
  13081. * Infineon XMC4xxx Boards:
  13082. - XMC4500-Relax: Setup max. freq. 120MHz and setup pull-up to UART
  13083. RXD pin. From Alan Carvalho de Assis.
  13084. * Microchip/Atmel SAMv7 Drivers:
  13085. - SAMv7: DAC and ADC drivers are not permitted to set the errno.
  13086. - SAMv7: Correct an error in RX DMA setup. From Manish Kumar Sharma.
  13087. - SAMv7 USB: It is necessary to disable pre-emption and interrupts
  13088. around a loop that copies TX data into the hardware in order to
  13089. avoid a TX data underrun condition. From Anthony Merlino.
  13090. * NXP/Freescale LPC31xx Drivers:
  13091. - LPC31xx: Serial and console drivers are not permitted to set
  13092. the errno.
  13093. * NXP/Freescale LPC43xx:
  13094. - lpc43xx: lpc43_adc.c was being selected by the build system wehn
  13095. DAC was selected.
  13096. * NXP/Freescale LPC43xx Drivers:
  13097. - LPC43xx Ethernet: Fix some backward logic setting full-duplex and
  13098. 100mbps when autoconfiguration is disabled. Noted by Anonymous in
  13099. Issue #76.
  13100. - lpc43xx: UART_RX pins should be configured with input buffers
  13101. enabled. Otherwise it cannot be read. From Alexander Vasiljev.
  13102. * STMicro STM32:
  13103. - STM32 F2: Fixed build for STM32F20XX platforms when
  13104. CONFIG_STM32_DMACAPABLE is enabled. From Dmitriy Linikov.
  13105. - STM32 F4: Remove ltdc.h and dma2d.h. Those header files in that
  13106. location permitted inclusion into application space logic and,
  13107. hence, facilitated and encouraged calling into the OS and violating
  13108. the portable POSIX OS interface. The definitions in those header
  13109. files were move the appropriate location in the counterpart,
  13110. architecture specific files at arch/arm/src/stm32/dma2d.h and ltdc.h.
  13111. - STM32 L4: Build stm32l4_idle.c only if CONFIG_ARCH_IDLE_CUSTOM is
  13112. not enabled. From Jussi Kivilinna.
  13113. - STM32 F7: Remove ltdc.h and dma2d.h. Those header files in that
  13114. location permitted inclusion into application space logic and,
  13115. hence, facilitated and encouraged calling into the OS and violating
  13116. the portable POSIX OS interface. The definitions in those header
  13117. files were move the appropriate location in the counterpart,
  13118. architecture specific files at arch/arm/src/stm32f7/dma2d.h and
  13119. ltdc.h.
  13120. * STMicro STM32 Drivers:
  13121. - STM32: DAC and ADC drivers are not permitted to set the errno.
  13122. - STM32 ADC: Clear pending interrupts. From Mateusz Szafoni.
  13123. - STM32 CAN: Lower part of STM32 CAN driver
  13124. arch/arm/src/stm32/stm32_can.c uses all three hw tx mailboxes and
  13125. clears TXFP bit in the CAN_MCR register (it means transmission order
  13126. is defined by identifier and mailbox number).
  13127. This creates situation when order frames are put in upper part of
  13128. CAN driver (via can_write) and order frames are sent on bus can be
  13129. different (and I experience this in wild). Since CAN driver API
  13130. pretends to be "file like" I expect data to be read from fd the same
  13131. order it is written. So I consider described behaviour to be a bug.
  13132. Fixed by settin the TXFP bit in the CAN_MCR register (FIFO
  13133. transmit order). From comments by Alexey T, in Bitbucket Issue 73.
  13134. - STM32 HRTIM: Fix pclk calculation. From Mateusz Szafoni.
  13135. - STM32 HRTIM: Fix burst mode prescaler update. From Mateusz Szafoni.
  13136. - STM32 (alt) I2C: Ensure proper error handling. Injecting data
  13137. errors would cause the driver to continually reenter the isr with
  13138. BERR an RxNE. This fix allows the error to be cleared and
  13139. propagated to the waiting task. From David Sidrane.
  13140. - STM32: LTDC and DMA2D drivers are not permitted to set the errno.
  13141. - STM32 RTC: Workaround for potential subseconds race condition. In
  13142. all recent STM32 chips reading either RTC_SSR or RTC_TR is supposed
  13143. to lock the values in the higher-order calendar shadow registers
  13144. until RTC_DR is read. However many old chips have in their errata
  13145. this silicon bug (at least F401xB/C, F42xx, F43xx, L15xxE, L15xVD
  13146. and likely others): "When reading the calendar registers with
  13147. BYPSHAD=0, the RTC_TR and RTC_DR registers may not be locked after
  13148. reading the RTC_SSR register. This happens if the read operation is
  13149. initiated one APB clock period before the shadow registers are
  13150. updated. This can result in a non-consistency of the three
  13151. registers. Similarly, RTC_DR register can be updated after reading
  13152. the RTC_TR register instead of being locked."
  13153. - STM32 Serial: Do not stop processing input in SW flow-control
  13154. mode. From Juha Niskanen.
  13155. - STM32F33xxx ADC: Add some publicly visable interfaces and some
  13156. code to support injected channels. From Mateusz Szafoni.
  13157. - STM32F33xxx DMA: Add public interface to handle with DMA
  13158. interrupts. From Mateusz Szafoni.
  13159. - STM32F33xxx RCC: Fix CAN clock enable. From Mateusz Szafoni.
  13160. - stm32 F4 I2C: Ensure proper interrupt handling. Injecting data
  13161. errors that causes a STOP to be perceived by the driver, will
  13162. continually re-enter the isr with SB not set and BTF and RxNE set.
  13163. This changes allows the interrupts to be cleared and propagates a
  13164. I2C_SR1_TIMEOUT to the waiting task. From David Sidrane.
  13165. - STM32 L4 Serial: Do not stop processing input in SW flow-control
  13166. mode. From Juha Niskanen.
  13167. - STM32 F7: LTDC and DMA2D drivers are not permitted to set the errno.
  13168. - STM32 L4: DAC and ADC drivers are not permitted to set the errno.
  13169. - STM32 L4 DAC: Do not configure output pin if it is not used. From
  13170. Juha Niskanen.
  13171. - STM32 L4 RTC, PM: Small fixes to subseconds handling, ADC
  13172. power-management hooks
  13173. - STM32 F4 RTC: Fix reading alarm value that is more than 24h in
  13174. future. From Juha Niskanen
  13175. - STM32 L4 RTC: Fix reading alarm value that is more than 24h in
  13176. future. From Juha Niskanen
  13177. - STM32 L4 TIM: Fix compilation of timers with complementary outputs
  13178. when not PWM_MULTICHAN. From Juha Niskanen.
  13179. - STM32 L4 RCC: Restore backup-registers after backup-domain reset.
  13180. From Jussi Kivilinna.
  13181. - STM32 L4 RTC: Correct RTC_SSR and RTC_TR read ordering. In all
  13182. recent STM32 chips reading either RTC_SSR or RTC_TR is supposed to
  13183. lock the values in the higher-order calendar shadow registers until
  13184. RTC_DR is read. Change the register read ordering to match this and
  13185. don't keep a workaround for a hypothetical race condition (not in
  13186. any L4 errata, lets for once assume ST's silicon works as it is
  13187. documented...)
  13188. - STM32 L4 RTC: Init mode was never exited because nested locking in
  13189. rtc_synchwait() disabled backup domain access. From Juha Niskanen.
  13190. - STM32 L4 RTC: Use backup register magic value instead of INITS
  13191. bit. The INITS (bit 4) of RTC_ISR register cannot be used to
  13192. reliably detect backup domain reset. This is because we can operate
  13193. our device without ever initializing the year field in the RTC
  13194. calendar if our application does not care about correct date being
  13195. set. Hardware also clears the bit when RTC date is set back to year
  13196. 2000. From Juha Niskanen.
  13197. - STM32 L4 RTC: Put back the SSR race condition workaround. ST has
  13198. confirmed that the issue has not been fixed, and that it applies to
  13199. STM32 L4 too (was not in errata sheets due to documentation bug) See
  13200. discussion: https://community.st.com/thread/43710-issue-with-rtc-maximum-time-resolution .
  13201. From Juha Niskanen.
  13202. - STM32 F7 BBSRAM: Avoid assert in stm32_bbsram_savepanic. If panic
  13203. happens before stm32_bbsram is initialized, stm32_bbsram_savepanic
  13204. caused additional assert panic. Function has null pointer check, so
  13205. drop DEBUGASSERT. From Jussi Kivilinna.
  13206. - STM32 F7 I2C: fix I2C_M_NORESTART handling. From Jussi Kivilinna.
  13207. - STM32 F7 I2C: Restore bus frequency after I2C reset. Copy
  13208. frequency restoration fix from STM32L4 I2C driver to STM32F7 I2C
  13209. driver. From Jussi Kivilinna.
  13210. - STM32 F7 RTC: Fix reading alarm value that is more than 24h in
  13211. future. From Juha Niskanen
  13212. * STMicro STM32 Boards:
  13213. - STM32F334-DISCO: Add missing ram_vectors configuration in linker
  13214. script. From Mateusz Szafoni.
  13215. - Nucleo-F334R8: Add missing ram_vectors configuration in linker
  13216. script. From Mateusz Szafoni.
  13217. - Nucleo-F334R8: Add Missing ADC trigger configuration tot he highpri
  13218. configuration. From Mateusz Szafoni.
  13219. - STM3240G-EVAL: The timer frequencies (BOARD_TIMx_FREQUENCY) are
  13220. incorrectly defined in board.h. Since the APB prescalers are set to
  13221. divide by 4 and 2 respectively, the frequencies should be "2xAPBx"
  13222. as said in the comment.  The correct frequencies are already defined
  13223. but as STM32_APBx_TIMx_CLKIN. From Mattias Edlund.
  13224. - STM32F429i-DISCO: The ltdc configuration has been deleted because
  13225. it violated the portable POSIX OS interface. It used
  13226. apps/examples/ltdc and include ltdc.h and dma2d.h which were also
  13227. removed for the same reason.
  13228. * ZiLOG Z80
  13229. - configs/z80sim and xtrs: Serial driver lower halfs ioctl methods
  13230. should return a negated errno value, not set the errno variable.
  13231. - z80 Make.defs: Fixes dependency generation with newest SDCC
  13232. compiler.
  13233. - configs/z80sim: Fix a naming problem. Also, don't try to build the
  13234. serial driver if CONFIG_NFILE_DESCRIPTOR=0.
  13235. - Z80: Makefile fix for use with current SDCC.
  13236. * Build System
  13237. - configs/: All defconfig filess that include
  13238. CONFIG_NET_ICMPv6_SOCKET=y need to select CONFIG_SYSTEM_PING6=y and
  13239. deselect CONFIG_DISABLE_POLL.
  13240. - configs/: All NX configuration... Because of recent changes to
  13241. libnx/nxfonts, Supported bit per pixel must be separated specified
  13242. for NXFONTs too and need to match the select BPP for NX.
  13243. - Build system: Fix CONFIG_BUILD_KERNEL logic directories that have
  13244. ubin and kbin subdirectories. Conditional logic was fine for
  13245. CONFIG_BUILD_FLAT and CONFIG_BUILD_PROTECTED but generated useless
  13246. dependencies if CONFIG_BUILD_KERNEL.
  13247. * C Library/Header Files:
  13248. - libc/stdio: Build the lib_noflush() and lib_snoflush() stubs even
  13249. if CONFIG_FILE_DESCRIPTORS=0. They may still be needed.
  13250. - libc and libnx: When the libraries are built into two libraries, a
  13251. user space library and a OS space library (as in the PROTECTED and
  13252. KERNEL build). Then the user space library must not use the OS
  13253. internal interfaces; similarly, the OS must avoid using the
  13254. userspace interfaces so that it does not muck the errno value or
  13255. create spurious cancellation points.
  13256. - libc/match: Use of exp() vs expf() in logf() caused function to be
  13257. slow. From Alan Carvalho de Assis.
  13258. - libnx: Fixes a memory leak that is caused because the client message
  13259. queue is not unlinked after the client disconnects from the NX
  13260. server. From Masayuki Ishikawa.
  13261. - sscanf(): Fix sscanf() character conversion (%c): do not add '\0' at
  13262. the end as for strings, cause, for example, parsing one character
  13263. will fill two bytes: character itself and zero one '\0' after it, so
  13264. will overflow one byte variable argument and corrupt memory for
  13265. variables allocated after it. From Oleg Evseev.
  13266. * Tools
  13267. - tools/: configure.sh and configure.c should redirect stdout to
  13268. /dev/null but should not suppress stderr output.
  13269. * NSH: apps/nshlib:
  13270. - apps/nshlib/: Avoid truncating the strcmp result in the parser
  13271. into a unsigned char variable. nshlib/nsh_netcmds.c: Check for
  13272. valid hostip before using it. From Bruno Herrera.
  13273. - apps/nshlib/: Fix resouce leak in 'dd' commenad when 'if=' or
  13274. 'of=' params are repeated in the command line. For example:
  13275. dd if=/dev/null if=/dev/zero of=/dev/null or
  13276. dd if=/dev/zero of=/dev/zero of=/dev/null. From Bruno Herrera.
  13277. - apps/nshlib: This commit eliminates the ping and ping6 commands
  13278. from NSH and replaces them with 'built-in' commands at
  13279. apps/system/ping and ping6. The original NSH version of ping[6]
  13280. commands violated the portable POSIX interface and, hence, had to
  13281. be removed. The new system/ping and ping6 built-in commands uses
  13282. the new IPPROTO_ICMP AF_INET and IPPROTO_ICMP6 AF_INET6 datagram
  13283. sockets to implement ping.
  13284. - apps/nshlib: Fix parsing of empty strings when CONFIG_NSH_CMDPARMS
  13285. is not defined. Problem noted by Juha Niskanen.
  13286. * Examples/Tests: apps/examples:
  13287. - All configurations that use NXIMAGE or NXHELLO must select
  13288. NX_MULTIUSER. All configurations that use examples/nxterm must
  13289. enable CONFIG_LIB_BOARDCTL.
  13290. - All configurations that use NXLINES must select NX_MULTIUSER. All
  13291. configurations that use the NX server need to have larger POSIX
  13292. messages.
  13293. - apps/examples/adc: Fix g_adcstate.count initialization. From
  13294. Masayuki Ishikawa.
  13295. - apps/examples/elf: Remove low-level interfaces and replace with
  13296. call to exec().
  13297. - apps/examples/nxflat: Remove low-level interfaces and replace with
  13298. call to exec().
  13299. - examples/ostest: Works around a bug in printf() when cancellation
  13300. points are enabled. printf() is a cancellation point because it
  13301. calls write(). This is correct according to OpenGroup.org.
  13302. However, printf holds the stdio library semaphore when it is
  13303. canceled and this leaves the semaphore in a bad state. No fix for
  13304. the printf bug yet.
  13305. - apps/examples/nx: The NX example no longer supports single user
  13306. mode.
  13307. - apps/examples/nxtext: The nxtext example no longer supports single
  13308. user mode.
  13309. - apps/examples/nxhello now supports only multiuser mode.
  13310. - apps/examples/nximage now supports only multiuser mode.
  13311. - examples/nxlines: Now supports only multiuser mode.
  13312. * Network Utilities: apps/netutils:
  13313. - apps/netutils/ftpc: Fix some crazy comparisons to determine is a
  13314. file is an absolute path. Noted by Anthony Merlino.
  13315. * System Utilities (apps/system)
  13316. - apps/system/i2ctool: Fixed i2ctool write operation in `no restart`
  13317. mode (flag `-n`). It seems that I2C driver has changed a bit since
  13318. i2ctool was written, so now i2ctool sends repeated start even if
  13319. `no restart` flag (-n) was passed to it. From Dmitriy Linikov.
  13320. NuttX-7.24 Release Notes
  13321. ------------------------
  13322. The 124th release of NuttX, Version 7.24, was made on March 2, 2018,
  13323. and is available for download from the Bitbucket.org website. Note
  13324. that release consists of two tarballs: nuttx-7.24.tar.gz and
  13325. apps-7.24.tar.gz. These are available from:
  13326. https://bitbucket.org/nuttx/nuttx/downloads
  13327. https://bitbucket.org/nuttx/apps/downloads
  13328. Both may be needed (see the top-level nuttx/README.txt file for build
  13329. information).
  13330. Additional new features and extended functionality:
  13331. * Core OS:
  13332. - SMP: Introduce spin_lock_irqsave() and spin_unlock_irqrestore().
  13333. These APIs are simplified version of enter_critical_section()
  13334. and leave_critical_section() to protect data (e.g. registers) in
  13335. SMP mode. By using these APIs inside drivers, performance will
  13336. be improved. From Masayuki Ishikawa.
  13337. - System Timer: Replace critical section APIs with spinlock APIs.
  13338. (64bit only). If SMP=n or SMP=y && SPINLOCK_IRQ=n, this works
  13339. in the same way as before. If SMP=y && SPINLOCK_IRQ=y, performance
  13340. will be improved. From Masayuki Ishikawa.
  13341. - POSIX Timers: Replace critical section APIs with spin lock APIs in
  13342. clock_gettime.c. This change will improve performance for SMP
  13343. systems but nothing changes for non-SMP systems. In SMP mode,
  13344. the running TCB is not always at the g_readytorun.head. From
  13345. Masayuki Ishikawa.
  13346. - SMP: Introduce spin_lock_wo_note() and spin_unlock_wo_note(). These
  13347. APIs are used in sched_note.c to protect instrumentation data. The
  13348. difference between these APIs to exsiting spin_lock() and
  13349. spin_unlock() is that they do not perform instrumentation to avoid
  13350. recursive call when SCHED_INSTRUMENTATION_SPINLOCKS=y. From
  13351. Masayuki Ishikawa.
  13352. - Interrupts: Add a configuration option to show interrupt
  13353. information via a procfs file.
  13354. * File Systems/Block and MTD Drivers
  13355. - VFS: Add support for truncate() and ftruncate().
  13356. - FAT, SmartFS, UserFS, UnionFS, TmpFS, NFS: Add truncate() support.
  13357. - FAT. Effectively handles the situation when a new file position is
  13358. within the current sector. Accelerates the work of the FS with a
  13359. multitude of operations to write small pieces of data within the
  13360. current sector. From Aleksandr Vyhovanec.
  13361. * Graphics/Display Drivers:
  13362. - HiletGo OLED: Add configuration support for HiletGo SSD1306 OLED.
  13363. - lcd/ft80x: This commit adds an FTDI/BridgeTek FT80x GUI driver. It
  13364. is untested (I don't even have hardware yet) and, hence, it is
  13365. marked as EXPERIMENTAL).
  13366. * Networking/Network Drivers:
  13367. - 6LoWPAN: Adds configuration options for specifying preloaded
  13368. address contexts for compression From Anthony Merlino.
  13369. - TCP: Introduce tcp receive window control based on I/O buffer.
  13370. NOTE: The algorithm is still experimental but useful for http
  13371. streaming. From Masayuki Ishikawa.
  13372. - UDP: Add an implementation of UDP write buffering.
  13373. - Routing Tables: Adding ftruncate() support eliminates an issue
  13374. in file-based routing table management system.
  13375. - Telnet: Add support for Telnet character mode From Masayuki
  13376. Ishikawa.
  13377. * Other Common Device Drivers:
  13378. - drivers/input/ft5x06.c: Add a driver for the FT5x06 capacitive,
  13379. multi-touch, touchscreen controller.
  13380. - drivers/input/ft5x06: Add a polled mode of operation for the FT5x06
  13381. in attempt to work around the fact that the LPCXpresso-LPC54628
  13382. chose a non-interrupt pin for the FT5x06 interrupt. Driver is still
  13383. not yet functional.
  13384. - drivers/power/bq2429x.c: Add trickle charging mode From Juha
  13385. Niskanen.
  13386. - drivers/sensors: Add support to MAX44009 ambient light sensor.
  13387. From Juha Niskanen.
  13388. - drivers/sensors: Added support for LIS3DH accelerometer sensor.
  13389. From Matt Thompson.
  13390. - drivers/eeprom: EEPROM driver for AT24xx compatible EEPROMs.
  13391. From Sebastien Lorquet.
  13392. * Simulation
  13393. - sim: Add support for a RAM MTD driver and initialization for use
  13394. with SmartFS.
  13395. - sim: Add support for testing NXFFS.
  13396. * ARM:
  13397. - ARMv7-A, ARMv7-R, ARMv7-M: Add atomic read-add-write and
  13398. read-subtract-write functions.
  13399. * Infineon XMC4xxx:
  13400. - XMC4xxx: Refactor PLL setup, refactored PLL/CLK config, easier,
  13401. checks for correctness, call go_os_start if STACK_COLORIZED, smarter
  13402. config of EXTCLK output freq. From David Alessio.
  13403. * Infineon XMC4xxx Boards:
  13404. - Add FPU to xmc4 ostest. Remove +x from makefiles, preserve
  13405. .gdbinit across make clean, add FPU support to ostest on xmc4,
  13406. add FPU test to ostest on xmc4 From David Alessio.
  13407. * Microchip/Atmel SAMD/L Drivers:
  13408. - SAMD: SAMD External Interrupt Controller (EIC) support From Matt
  13409. Thompson.
  13410. - SAMD/L: Added Analog Comparator basic initialization From Matt
  13411. Thompson.
  13412. - SAMD/L: Added FDPLL clock support. Fixed sequence of OSC32K
  13413. calibration setup. From Matt Thompson.
  13414. - SAMD/L: Added loading factory USB calibration data from NVRAM.
  13415. From Matt Thompson.
  13416. - SAMD/L: Added experimental DMA support to SPI driver. spi_exchange()
  13417. uses a pair of DMA channels for TX and RX. From Matt Thompson.
  13418. * Microchip/Atmel SAM3/4 Boards:
  13419. - Flip&Click SAM3X: Add board support for the Mikroe Flip&Click
  13420. SAM3X.
  13421. - Flip&Click SAM3X: Adds basic board support for the HiletGo OLED.
  13422. * Microchip PIC32MZ
  13423. - PIC32MZEF: Add architectural support for the PIC32MZEF family.
  13424. * Microchip PIC32MZ Boards
  13425. - Flip&Click PIC32MZ: Adds board support for the Mikroe Flip&Click
  13426. PIC32MZ board.
  13427. - Flip&Click PIC32MZ: Add board support for HiletGo OLED.
  13428. - Flip&Click PIC32MZ: Add an nxlines configuration for use in
  13429. testing the custom HiletGo Click board.
  13430. * NXP Freescale LPC43xx Drivers:
  13431. - LPC43xx: Adapt LPC176x RTC driver for the LPC43xx. From Gintaras
  13432. Drukteinis.
  13433. - LPC43xx: Add Windowed Watchdog Timer (WWDT) driver. Tested on
  13434. LPC4357 but should be compatible for all LPC43xx MCUs.
  13435. From Gintaras Drukteinis.
  13436. - Leverage the LPC54xx SD/MMC back to the LPC43xx (where it came from
  13437. originally).
  13438. * NXP Freescale LPC43xx Boards:
  13439. - Bambino-200e: Add LPC43 SDMMC board support to Bambino-200E. From
  13440. Alan Carvalho de Assis.
  13441. * NXP Freescale LPC54xx:
  13442. - LPC546xx: Added basic architectural support for the LPC546xx
  13443. family.
  13444. * NXP Freescale LPC54xx Drivers:
  13445. - LPC546xx: Basic NSH configuration includes support for UARTs,
  13446. SysTick timer, GPIOs, LEDs, and buttons
  13447. - LPC546xx: Additional drivers include EMC, I2C, Ethernet
  13448. - LPC546xx: Implement GPIO interrupt support.
  13449. - LPC546xx: And unverified SPI driver is included.
  13450. - LPC546xx: Ported LPC1788 LCD driver to use the LPC54xx pin.
  13451. - LPC546xx: Bring in LPC43xx SD/MMC driver from
  13452. https://github.com/Smoothieware/smoothie-nuttx/tree/master/nuttx/arch/arm/src/lpc43xx
  13453. and adapt for use with the LPC43xx
  13454. - LPC546xx: Add DMA driver ported from the LPC43xx GPDMA driver.
  13455. - LPC546xx: Bring in WWDT driver from LPC43.
  13456. - LPC546xx: Add an RTC driver and a RTC character driver lower half.
  13457. - LPC546xx: Add support for a random number generator.
  13458. - LPC546xx: Add an Ethernet driver.
  13459. * NXP Freescale LP54xx Boards:
  13460. - LCXpresso-LPC54628: Added support for the LPCXpresso-LPC54628
  13461. board. The initial bring-up used a basic NSH port.
  13462. - LCXpresso-LPC54628: On-board SDRAM is also supported
  13463. - LCXpresso-LPC54628: Add support for I2C2 and for the I2C tool to
  13464. the NSH configuration.
  13465. - LCXpresso-LPC54628: Add support for the USER button. Enable the
  13466. apps/examples/button test in the NSH configuration.
  13467. - LCXpresso-LPC54628: Add the fb configuration for testing the LCD.
  13468. - LCXpresso-LPC54628: Add support for the the FT5x06 touchscreen
  13469. controller. Enable the driver as well as the apps/examples
  13470. touchscreen test.
  13471. - LCXpresso-LPC54628: Add an NxWM configuration.
  13472. - LCXpresso-LPC54628: Add logic to bring up SDMMC.
  13473. - LCXpresso-LPC54628: Add logic to register the RTC character driver
  13474. if it is enabled. Enable the RTC and RTC character driver in the
  13475. NSH configuration.
  13476. - LCXpresso-LPC54628: Add a netnsh configuration that was be used to
  13477. test the Ethernet driver.
  13478. - LCXpresso-LPC54628: Add LittlevGL graphics demo configuration.
  13479. * On Semiconductor LC823450
  13480. - LC823450 SMP improvements: (1) Apply irq_spin APIs to
  13481. modifyregXX, (2) Do not use modifyreg32() to enable Mutex, (3)
  13482. Modify IRQ control for i2s. Apply irq_spin APIs to
  13483. dma/syscontrol/usbdev. From Masayuki Ishikawa.
  13484. - LC823450: LC823450 http streaming improvements: (1) Use spinlock
  13485. APIs in lc823450_gpio.c. (3) Fix a potential race condition in
  13486. up_enable_irq(), (3) Use spinlock APIs instead of critical section
  13487. APIs, (4) Enable HRT_TIMER in lc823450_timerisr.c. (5) Use spinlock
  13488. APIs instead of critical section APIs. (6) Fix race conditions in
  13489. dma/usbdev. From Masayuki Ishikawa.
  13490. - LC823450: Introduce DVFS. This version only supports manual mode
  13491. and Vdd1 is fixed to 1.2V. From Masayuki Ishikawa.
  13492. * On Semiconductor LC823450 Drivers
  13493. - LC823450: Refactor timer driver. Add MTM timer APIs for DVFS.
  13494. Introduce up_rtc_gettime() for CONFIG_RTC_HIRES. Introduce idle
  13495. time calculation in DVFS. Also, DVFS autonomous mode based on CPU
  13496. idle time is supported. NOTE: voltage control is still disabled.
  13497. From Masayuki Ishikawa.
  13498. * On Semiconductor LC823450 Boards
  13499. - LC823450-XGEVK: I2S interrupt will be handled on CPU0 with this
  13500. change. Assign CPU1 to lpwork. This change will improve load
  13501. balancing for networking with RNDIS. From Masayuki Ishikawa.
  13502. - LC823450-XGEVK: Enable SPINLOCK_IRQ and NXPLAYER in rndis. From
  13503. Masayuki Ishikawa.
  13504. - LC823450-XGEVK: LC823450 http streaming improvements: (1) In SMP
  13505. mode, H/W interrupts should be handled on CPU0 to avoid deadlocks.
  13506. (2) Call up_enable_irq() to assign CPU0 for IRQ handling. (3)
  13507. Enable HRT_TIMER, LC823450_MTM0_TICK, SPINLOCK_IRQ, (4) Enable
  13508. NET_TCP_RWND_CONTROL, NXPLAYER_HTTP_STREAMING_SUPPORT (rndis only)
  13509. From Masayuki Ishikawa.
  13510. - LC823450-XGEVK: Enable DVFS in lc823450_bringup.c. Enable DVFS
  13511. in audio and rndis. Add Telnet character mode to rndis. From
  13512. Masayuki Ishikawa.
  13513. - LC823450-XGEVK: Explicitly assign I2S IRQ handling to CPU0. From
  13514. Masayuki Ishikawa.
  13515. - LC823450-XGEVK: Enable RTC_HIRES instead of RTC_DATETIME (audio/
  13516. rndis). Disable TCP_WRITE_BUFFERS and change SCHED_LPWORKPRIORITY
  13517. (rndis). Update SMP and DVFS related part. From Masayuki Ishikawa.
  13518. * STMicro STM32:
  13519. - STM32 F7: Add support for the STM32F72x/73x family. From Bob
  13520. Feretich.
  13521. * STMicro STM32 Drivers:
  13522. - STM32 HRTIM: Add interface to change outputs SET/RST configuration.
  13523. From Mateusz Szafoni.
  13524. - STM32 HRTIM: Add interface to get timer clock frequency,
  13525. calculation, add compare/capture registers significant bits
  13526. checking. From Mateusz Szafoni.
  13527. - STM32 HRTIM: Add interface to set timer frequency, fix slave timers
  13528. reset configuration, change POWER_INFO to TIMER_INFO From Mateusz
  13529. Szafoni.
  13530. - STM32 HRTIM: Add repetition support and fix enum overflow From
  13531. Mateusz Szafoni.
  13532. - STM32 HRTIM: Add HRTIM push-pull mode configuration. From
  13533. raiden00pl.
  13534. - STM32 FLASH: Add progmem support for STM32L15XX From Juha Niskanen.
  13535. * STMicro STM32 Boards:
  13536. - configs/photon: Adds BOARD_TIMn_FREQUENCY macros From Anthony
  13537. Merlino.
  13538. - configs/indium-f7: Adds support for the RAF Research Indium-F7
  13539. board. From Bob Feretich.
  13540. - Rename the configs/stm32f0discovery board directory to
  13541. configs/stm32f051-discovery. There are others stm32f0discovery
  13542. boards with different MCUs and different peripherals on the board.
  13543. From Alan Carvalho de Assis.
  13544. - configs/stm32f072b-discovery: Adds support for stm32f072b-disco
  13545. board. This is the board. I added the LEDs of this board and tested
  13546. the compilation. From Alan Carvalho de Assis.
  13547. - configs/stm32f103-minimum: Add AT24 EEPROM support on STM32F103-
  13548. Minimum board From Alan Carvalho de Assis.
  13549. - configs/stm32f103-minimum: Add support to BMP180 on BluePill
  13550. (stm32f103-minimum) board. From Alan Carvalho de Assis.
  13551. - configs/stm32f334-disco: Add buck converter and boost converter
  13552. logic. From Mateusz Szafoni.
  13553. - configs/stm32f103-minimum: Add zerocross support to STM32F103-
  13554. Minimum board From Alan Carvalho de Assis.
  13555. - configs/stm32f103-minimum: Add OLED SSD1306 support to
  13556. STM332F103-Minimum From Alan Carvalho de Assis.
  13557. - configs/stm32f103-minimum: Add board support to MAX6675 Thermocouple
  13558. sensor From Alan Carvalho de Assis.
  13559. - configs/stm32f746g-disco: Add stm32f746g-disco Ethernet configuration.
  13560. Add USART1 support (connected to the USB virtual serial port) From
  13561. Louis Mayencourt.
  13562. - configs/viewtool-stm32f107: Add support for FT80X initialization.
  13563. Add ft80x configuration that will eventually be used for testing the
  13564. ft80x if I ever receive hardware.
  13565. * Tools:
  13566. - tools/logparser: Add a tool which will help me to convert git logs
  13567. to ChangeLog format.
  13568. * NSH: apps/nshlib:
  13569. - apps/nshlib: Add support for a truncate command. This will be used
  13570. to test the new ftruncate file system support.
  13571. - apps/nshlib: Add support for Telnet character mode. From Masayuki
  13572. Ishikawa.
  13573. - apps/nshlib: Add support for '-n' option to the echo command. From
  13574. Masayuki Ishikawa.
  13575. - apps/nshlib: Add irqinfo command.
  13576. * Examples/Tests: apps/examples:
  13577. - apps/examples/userfs: Add truncate() support for userfs.
  13578. - apps/examples/lvgldemo: Add lvgldemo example for LittlevGL.
  13579. - apps/examples/veml6070: Add VEML6070 Application Example. From
  13580. Alan Carvalho de Assis.
  13581. - apps/examples/bmp180: Add BMP180 application example. From Alan
  13582. Carvalho de Assis.
  13583. - apps/examples/ft80x: Add a test of the FT80x based on FTDI
  13584. SampleApp. Includes tests of GPU primitives and graphics co-
  13585. processor commands.
  13586. * Network Utilities: apps/netutils:
  13587. - apps/netutils/netlib: Add default route in netlib_set_dripv4addr().
  13588. From Masayuki Ishikawa.
  13589. * Graphics: apps/graphics:
  13590. - apps/graphics/littlevgl: Add littlevgl library. From Alan Carvalho
  13591. de Assis.
  13592. - apps/graphics/ft80x: Add the FTDU FT80x GUI support library.
  13593. Consists of some display list helpers, audio helpers, touch helpers,
  13594. RAM access, register access etc.
  13595. * System Utilities (apps/system)
  13596. - apps/system/nxplayer: Add support for HTTP streaming in nxplayer.
  13597. From Masayuki Ishikawa.
  13598. - apps/system/setlogmask: Adds 'setlogmask' application that allows
  13599. you to set the syslog priority via a simple command. From Anthony
  13600. Merlino.
  13601. - apps/system/usbmsc: Added Kconfig options to configure write
  13602. protection for each LUN. From Fabio D'Urso.
  13603. - system/stackmonitor: Re-design the stack monitor so that it does not
  13604. make forbidden calls directly into the OS, breaking the portable POSIX
  13605. OS interface. It now properly uses the PROCFS file system to glean
  13606. information about stack usage.
  13607. Bugfixes. Only the most critical bugfixes are listed here (see the
  13608. ChangeLog for the complete list of bugfixes and for additional, more
  13609. detailed bugfix information):
  13610. * Core OS:
  13611. - System Timer: Change the way that the 64-bit time is sampled.
  13612. Previously, we disabled interrupts before sampling the 64-bit
  13613. timer since the uint64_t access is not atomic on most CPUs. However,
  13614. disabling (local) interrupts does not work in the SMP case. In that
  13615. case, the timer interrupt may be running on only one of the CPUs;
  13616. disabling interrupts on a different CPU will provide no protection
  13617. from timer rollover. To work around this, logic was added that
  13618. samples 64-bit timer is sampled twice and if 32-bit rollover was
  13619. detected between samples, then loops until there is no rollover.
  13620. - POSIX Timers: In SMP mode, running TCB is not always at the head of
  13621. the g_readytorun list. This change removes DEBUGASSERT() to avoid
  13622. this condition. From Masayuki Ishikawa.
  13623. - Spinlocks: Add memory barrier operations in spin_unlock(). In ARM
  13624. document regarding memory barriers, SP_DMB() must be issued before
  13625. changing a spinlock state to SP_UNLOCKED. However, we found that
  13626. SP_DSB() is also needed to ensure that spin_unlock() works
  13627. correctly for network streaming aging test. From Masayuki Ishikawa.
  13628. - Sporadic Scheduler: Fix compiler error in Sporadic Scheduler when
  13629. priority inheritance is enabled. Noted by eunb.song@samsung.com
  13630. - Priority Inheritance: Fix some priority inheritance related issues
  13631. noted during review of logic. Also add some REVISIT comments for some issues noted in the design.
  13632. - boardctl: Remove the BOARDIOC_TSCTEST_TEARDOWN and
  13633. BOARDIOC_TSCTEST_SETUP boardctl() commands. Remove all
  13634. implementations of board_tsc_teardown(). Each board now initializes
  13635. the touchscreen controller as a normal part of its board bring-up.
  13636. board_tsc_setup() is gone; the touchscreen controller is now treated
  13637. like any other on-board device.
  13638. - configs: CONFIG_MAX_TASKS must be a power of 2.
  13639. - SMP: Introduce a new global IRQ clearing logic and tasklist
  13640. protection. The previous implementation of clearing global IRQ in
  13641. sched_addreadytorun() and sched_removereadytorun() was done too
  13642. early. As a result, nxsem_post() would have a chance to enter the
  13643. critical section even nxsem_wait() is still not in blocked state.
  13644. This patch moves clearing global IRQ controls from
  13645. sched_addreadytorun() and sched_removereadytorun() to
  13646. sched_resumescheduler() to ensure that nxsem_post() can enter the
  13647. critical section correctly. For this change,
  13648. sched_resumescheduler.c is always necessary for SMP configuration.
  13649. In addition, by this change, task_exit() had to be modified so that
  13650. it calls sched_resumescheduler() because it calls
  13651. sched_removescheduler() inside the function, otherwise it will cause
  13652. a deadlock. However, I encountered another DEBUGASSERT() in
  13653. sched_cpu_select() during HTTP streaming aging test on LC823450-XGEVK.
  13654. Actually sched_cpu_select() accesses the g_assignedtasks which might
  13655. be changed by another CPU. Similarly, other tasklists might be
  13656. modified simultaneously if both CPUs are executing scheduling logic.
  13657. To avoid this, I introduced tasklist protection APIs. With these
  13658. changes, SMP kernel stability has been much improved. From Masayuki
  13659. Ishikawa.
  13660. - SMP: Fix this_task() to be an atomic operation. In the previous
  13661. implementation, this_task() was defined in sched.h by using just a
  13662. macro current_task(this_cpu()). However, I found that this is not
  13663. atomic and actually sometimes switching CPU happened in executing
  13664. the macro when we tested audio steaming plus executing commands via
  13665. Telnet. This change resolves this issue by implementing atomic
  13666. this_task()in sched_thistask.c which is newly introduced. From
  13667. Masayuki Ishikawa.
  13668. - SMP: Implements a global scheduler lock capability as part of SMP
  13669. support. This allows the scheduler to be locked with no knowledge
  13670. or access to the TCB of the currently running task. This is
  13671. necessary because accessing the TCB of the currently running task
  13672. is, itself, a non-atomic operation. This global scheduler lock
  13673. capability was add just to support that atomic access to the TCB.
  13674. - SMP: Extend the last global lock change to work with the
  13675. LC823450-XGEVK which does not support the atomic fetch add but
  13676. does support disabling interprocessor interrupts. Disabling
  13677. interprocessor interrupts will also guarantee that the TCB address
  13678. calculation is atomic.
  13679. - SMP: Fix a infinite recursion problems that a recent changes
  13680. introduced into the i.MX6 SMP implementation. This is not seen
  13681. with the LC823450 because you can disable inter-processor interrupts
  13682. in that architecture; but you cannot in the ARMv7-A/GIC architecture.
  13683. - SMP: Remove SMP related logic in sig_dispatch.c. This change
  13684. prevents from a deadlock in up_schedulesigaction.c where inter-CPU
  13685. signal handling is actually implemented. arch/arm/src/armv7-m: Fix
  13686. signal handling for SMP. In previous implementation, signal handling
  13687. for SMP was incorrect. Thus, for example, if an inter-CPU signal
  13688. happened an incorrect tcb was signaled and caused ASSERT(). This
  13689. change fixes the issues and works for both inter-CPU signal handling
  13690. and signal handling on the same CPU. From Masayuki Ishikawa.
  13691. - Tasking: Add nxtask_create(). Kthread_create() and nxtask_create()
  13692. are internal OS functions and should not modify the errno variable.
  13693. Convert legitimate uses of task_create() to nxtask_create().
  13694. Review handling of returned values from all uses of kthread_create()
  13695. (as well as nxtask_create()).
  13696. - Tasking: Threads started by board bring-up logic should be kernel
  13697. threads, not user tasks.
  13698. - Tasking: Threads started by drivers should be kernel threads, not
  13699. user tasks.
  13700. - Semaphore Usage: Added ECANCELED condition to DEBUGASSERT's
  13701. checking sem_wait result From Dmitriy Linikov.
  13702. - errno: Add new internal OS function nxsched_setaffinity() that is
  13703. identical to sched_isetaffinity() except that it does not modify the
  13704. errno value. All usage of sched_setaffinity() within the OS is
  13705. replaced with nxsched_setaffinity().
  13706. - errno: Internal functions sched_reprioritize() and
  13707. sched_setpriority() no longer modify the errno value. Also renamed
  13708. to nxsched_reprioritize() and sched_setpriority().
  13709. - errno: Add new internal OS function nxsched_getscheduler() that is
  13710. identical to sched_getscheduler() except that it does not modify the
  13711. errno value. All usage of sched_getscheduler() within the OS is
  13712. replaced with nxsched_getscheduler().
  13713. - errno: Add new internal OS function nxsched_setparam() that is
  13714. identical to sched_setparam() except that it does not modify the
  13715. errno value. All usage of sched_setparam() within the OS is
  13716. replaced with nxsched_setparam().
  13717. - errno: Add new internal OS function nxsched_getparam() that is
  13718. identical to sched_getparam() except that it does not modify the
  13719. errno value (actually, the previous value erroneously neglected to
  13720. set the errno value to begin with, but this fixes both issues). All
  13721. usage of sched_getparam() within the OS is replaced with
  13722. nxsched_getparam().
  13723. - errno: wd_start() is an internal OS function and should not set the
  13724. errno value. Reviewed and updated every call to wd_start() to
  13725. verify if return value is used and if so if the errno value is
  13726. accessed.
  13727. - errno: Fix several inappropriate accesses to get_errno() that were
  13728. missed in previous changes (some going back to nuttx-7.23). Add new
  13729. nxsched_setscheduler() and nxsched_getaffinity() which are
  13730. equivalent to their counterparts without the nx on front. These
  13731. versions do not modify the errno value. Changed all calls within
  13732. the OS to use these newer versions of the functions.
  13733. - errno: binfmt/, configs/, grahics/, libc/, mm/, net/, sched/: OS
  13734. references to the errno variable should always use the set_errno(),
  13735. get_errno() macros.
  13736. - drivers/, fs/ and libc/: OS references to the errno variable should
  13737. always use the set_errno(), get_errno() macros.
  13738. * File System/Block and MTD Drivers:
  13739. - FAT: CONFIG_FAT_MAXFNAME may not exceed NAME_MAX (CONFIG_NAME_MAX)
  13740. - NFS: Correctly infer file type. The file type is in struct
  13741. nfs_statinfo_s's ns_type field, not in the ns_mode field. From
  13742. Michael Jung.
  13743. - NFS: Fix buffer corruption. In case multiple read requests to the
  13744. NFS server are required to fill up the user provided buffer,
  13745. nfs_read() might write behind the end of said buffer. This is fixed
  13746. with this change. From Michael Jung.
  13747. - VFS: reopen() should return NULL when oflags is less than 0, not
  13748. equal to 0. Because negative value is returned on failure of
  13749. lib_mode2offlags() which converts the mode string into file open
  13750. mode flag.
  13751. - ProcFS: Fix an error in a common function that manages read data.
  13752. - drivers/mmcsd: Respect SDIO_CAPS_DMABEFOREWRITE on CMD25. From
  13753. Evgeniy Bobkov.
  13754. - AT24xx: Correct page size for AT24C02 part. From Alexander
  13755. Oryshchenko.
  13756. - mtd_config.c: Add still more error handling (to detect bad
  13757. underlying flash implementations). Remove MTD_ERASE that was
  13758. erasing data block instead of erase block. This is a partial
  13759. revert of 4f18b4. Reported-by: Pascal Speck <iktek01@yahoo.com>
  13760. * Graphics/Display Drivers:
  13761. - drivers/lcd: Fix the default I2C address of SSD1306 OLED display
  13762. (7- vs 8-bit addressing) From Alan Carvalho de Assis.
  13763. - drivers/lcd: lcd_framebuffer.c does not need to include board-
  13764. specific board.h.
  13765. - include/lcd: Eliminate a warning from an SSD1306 header file by
  13766. adding a forward reference to struct i2c_master_s. From Sebastien
  13767. Lorquet.
  13768. * Networking/Network Drivers:
  13769. - ARP: Fix an error introduced when ICMP and ICMP6 socket support was
  13770. added in NuttX-7.3. A gratuitous ARP (or solicitation) was being
  13771. sent after receive of the ECHO replay (advertisement).
  13772. - ARP: Fix IGMP multicast address computation on Nuttx network stack.
  13773. This change fixes the IGMP address computation to allow multicast
  13774. UDP messages. The destination address was created with the incorrect
  13775. bytes of the given IPv4 address. From Louis Mayencourt.
  13776. - ioctl: The existence of the network driver ioctl() method should
  13777. depend on CONFIG_NETDEV_IOCTL rather than CONFIG_NETDEV_PHY_IOCTL.
  13778. The former enables the method, the later enables a subset of
  13779. possible driver IOCTLs.
  13780. - TCP: Write buffering logic should not wait for a free buffer if
  13781. the socket was opened non-blocking.
  13782. - TCP: Fixed bad return value handling in psock_tcp_send(). send()
  13783. expects psock_tcp_send() to return a negated errno value, not -1
  13784. with the errno set (GN: I added same change for tcp_send_buffered.c
  13785. which has the same issue as tcp_send_unbuffered.c) From Pelle
  13786. Windestam.
  13787. - TCP: Fixes hardfault when network goes done and network monitoring
  13788. is in place. From Gianpaolo Ferroni Ariani.
  13789. - TCP: tcp_send_[un]buffered.c: Check routing table in
  13790. psock_send_addrchck(). Previously only ARP table was considered
  13791. when determining if the data will actually be sent. From Juho
  13792. Grundstrom.
  13793. - TCP: Generalize Juho Grundstrom's IPv4 change for IPv6 as well.
  13794. - UDP: Remove some conditional logic that was true if there is only a
  13795. single network device, but not true in the multi-device context.
  13796. - UDP: In sendto(), return EHOSTUNREACH if the network is down.
  13797. * Common Drivers:
  13798. - drivers/pipes: In poll logic, fix off-by-one error in calculation
  13799. of bytes in the buffer. Buffer calculation in pipe poll setup is
  13800. off-by-one when read index is larger than write index. This causes
  13801. poll() not getting POLLIN when buffer has one byte as calculation
  13802. gives zero bytes in buffer. From Jussi Kivilinna.
  13803. - drivers/audio: Improve stability of the WM8776 driver in SMP mode.
  13804. Apply irq_spin APIs to improve performance. Repeat to process a
  13805. message to avoid deadlock. From Masayuki Ishikawa.
  13806. - drivers/ioexpander: Fixed build of PCF8574 driver when its
  13807. interrupts aren't enabled by config. From Dmitriy Linikov.
  13808. - drivers/syslog: Fixes LOG_UPTO macro to include specified log level.
  13809. From Anthony Merlino.
  13810. - drivers/sensors: Fix HTS221 sensor reset with BOOT bit From Jussi
  13811. Kivilinna.
  13812. - drivers/loop: If we want to open read-only in losetup.c, flags
  13813. should be O_RDONLY not O_RDWR. From Fabio D'Urso.
  13814. - drivers/timers/ds3231.c: Correct some debug statements. From
  13815. Alexander Oryshchenko.
  13816. - drivers/sensors/lis2dh: Use realtime clock if monotonic is not
  13817. available From Juha Niskanen.
  13818. - drivers/i2c and drivers/spi: Fix compile error if
  13819. CONFIG_DISABLE_PSEUDOFS_OPERATIONS, fix bad NULL checks From Juha
  13820. Niskanen.
  13821. * ARMv7-A:
  13822. - Data Cache: Fix cp15_invalidate_dcache. In cases where more than
  13823. one dcache line was to be invalidated, a missing branch label
  13824. would result in a false branch target into cp15_flush_idcache. Also
  13825. the .size macro was fixed for both cp15_invalidate_dcache. From
  13826. Michael Jung.
  13827. - SMP: Port the signal-related SMP change by Masayuki Ishikawa to the
  13828. ARMv7-A family.
  13829. * Extensa:
  13830. - SMP: Port the signal-related SMP change by Masayuki Ishikawa to the
  13831. Xtensa family.
  13832. * Infineon XMC4xxx Drivers:
  13833. - XMC4xxx: Only setup USB clock when USB PLL is enabled From Alan
  13834. Carvalho de Assis.
  13835. - XMC4xxx: Fix USIC_BRG_SCLKCFG definition From Alan Carvalho
  13836. de Assis.
  13837. * Microchip PIC32MZ
  13838. - MIPS32: In up_idle, the kludge that was conditionally enabled if
  13839. the work queue was enable appears to be needed even when he work
  13840. queue is not enabled on the PIC32MZ.
  13841. - PIC32MZ: Fix some typos in debug instrumentation in pic32mz-gpio.c;
  13842. fix some typos related to UART5 configuration in pic32mz-serial.c.
  13843. * Microchip/Atmel SAMD/L:
  13844. - SPI: In sam_spibus_initialize(), the pinmux configuration was
  13845. smashing the previous CTRLA register configuration. There are
  13846. also some typos in samd_spi.h From Matt Thompson.
  13847. - SPI: Fixes g_spi2ops and g_spi2dev using incorrect values From Matt
  13848. Thompson.
  13849. - SPI: SPI must be disabled before changing the mode bits in CTRLA
  13850. register From Matt Thompson.
  13851. - DMA: Fix DMA controller support. From Matt Thompson.
  13852. * NXP/Freescale LPC17xx Drivers:
  13853. - LPC17xx: Disable LPC17 FDR when not used. If a boot loader set the
  13854. fractional divider (FDR) the baud rate in nuttx will be wrong
  13855. (multiplied by this fraction). So if it is not used, it should be
  13856. disabled. From Harald Gutsche.
  13857. * NXP/Freescale Kinetis Drivers:
  13858. - Kinetis: Correct some Ethernet PHY register bit tests for the
  13859. KSZ8081 PHY. From Stewart.
  13860. * On Semiconductor LC823450
  13861. - arch/arm/src/LC823450: Add SP_DMB() into lc823450_testset.c.
  13862. In LC823450, ldrex and strex are not supported. So we implemented
  13863. up_testset() with H/W Mutex. However, there was a bug in memory
  13864. access order. This change ensures correct memory access order in
  13865. up_testset() for LC823450. From Masatoshi Tateishi.
  13866. * STMicro STM32 Drivers:
  13867. - STM32 F3 RCC: A flash wait state configuration. Flash latency must
  13868. be fixed according to sysclk frequency. If this operation is not
  13869. done or done after PLL configuration, the STM32 fail to continue
  13870. boot operation if the frequency if greater than 24MHz according to
  13871. the board variable STM32_SYSCLK_FREQUENCY. Tested on stm32f334-disco
  13872. board. From Gwenhael Goavec-Merou.
  13873. - STM32 RTC: Make STM32 usable with an external RTC.
  13874. - STM32 SPI: Removed unnecessary (and incorrect) speed limitation.
  13875. From Alexander Oryshchenko.
  13876. - STM32 SPI: I have a SPI bus with both Mode 0 and Mode 3 devices
  13877. on it. After performing SPI I/O to a Mode 0 device, switching to a
  13878. Mode 3 device locked up the SPI interface. Only zeroes would be
  13879. read. I traced the reason for the lock-up to arm/arm/src/stm32f7/stm32_spi.c function spi_setmode(). Changing
  13880. the mode causes a spurious SPI clock transmission that confuses the
  13881. stm32f7 SPI input hardware. This problem is solved by (1) changing
  13882. the SPI mode with SPI (and perhaps DMA) disabled, and (2) flushing
  13883. the receive FIFO if the mode change results in garbage in the FIFO.
  13884. From Bob Feretich.
  13885. - STM32 and STM32 F7: Remove confusing, redundant, and misleading
  13886. definitions of STM32_BKP_BASE from the F2, F3, and F4 memory
  13887. maps. Unlike the F1, these parts do not have a separate BKP address
  13888. region. The BKP registers are with the RTCC address regions.
  13889. stm32_bkp.h should only be used for STM32 F1. stm32_rtcc.h should be
  13890. used to access BKP registers on F2, F3, and F4.
  13891. - STM32 and STM32 F7: Architecture-specific code is not permitted to
  13892. modify the errno variable.
  13893. - STM32 F4 I2C: Correct some recent changes to STM32F4 I2C that broke
  13894. poll mode of operation. From Alexander Oryshchenko.
  13895. - STM32 F4 I2C: Corrections to STM32 F4 I2C to restore functionality.
  13896. From Alexander Oryshchenko.
  13897. - STM32 F4 I2C: Corrections to STM32 F4 I2C to fix the NORESTART
  13898. flag. From Alexander Oryshchenko.
  13899. - STM32 F7: Fixes a bug in multi-block SD-card operations on the
  13900. STM32F7 platform. DBLOCKSIZE must be the size of SD-card block, not
  13901. the total amount of transferred bytes. From Evgeniy Bobkov.
  13902. - STM32 F7: Fix undefined variable when using USART1 for other
  13903. purposes than UART (e.g. SPI). From Frank Benkert.
  13904. - STM32 F7: Backport RTC alarm setting changes from STM32L4. Most
  13905. notably this fixes RTC getting stuck issue when both alarms were
  13906. used. Root cause was writing RTC ISR register contents to RTC CR
  13907. register. From Juha Niskanen.
  13908. - STM32 L4 Flash: Change flash programming to use page buffer for
  13909. unaligned writes. From Juha Niskanen.
  13910. * STMicro STM32 Boards:
  13911. - Nucleo-L432KC: Fix some bogus logic noted by Fanda.
  13912. - configs/nucleo-* and configs/stm32l476vg-disco: Fix more
  13913. stm32_userleds.c bogus logic From Juha Niskanen.
  13914. - Nucleo-L432KC: Fixed nucleo-l432kc broken build when
  13915. CONFIG_USERLED_LOWER defined From Fanda.
  13916. - Nucleo-L432KC: Issue #85: /dev/userleds is not working for
  13917. Nucleo-L432KC fixed From Fanda Vacek.
  13918. - STM32F429I-Disco: Separate SPI4 from MTD init. I was trying to
  13919. attach a non-MTD peripheral to an STM32F429I Discovery Board's SPI4
  13920. port and was hitting compilation problems, since CONFIG_MTD and
  13921. thus 'struct mtd_geometry_s' was not defined. This patch separates
  13922. SPI4 initialization logic from MTD initialization logic. From
  13923. Michael Jung.
  13924. - STM32F103-Minimum: Remove CONFIG_NX_LCDDRIVER dependence from
  13925. stm32_ssd1306.c From Alan Carvalho de Assis.
  13926. * C Library/Header Files:
  13927. - libc/stdio: In dtoa(), up_interrupt_context() is used in a debug
  13928. assertion. up_interrupt_context() is not available in the user-mode
  13929. phase of the PROTECTED or KERNEL build configurations. In those
  13930. configurations, enabling libc floating point support and debug
  13931. assertions will result in an undefined reference to
  13932. up_interrupt_context().
  13933. - libc/netdb: Fixed parsing of DNS response packets having compressed
  13934. names ending with pointer. There were troubles parsing response
  13935. packets which have compression of QNAME/NAME field when only
  13936. trailing part of the name (not the whole name) is replaced with
  13937. pointer to another part of the packet. This commit fixes parsing of
  13938. such packets. Also I added checks to keep parsing only in bounds of
  13939. the read part of DNS response packet. From Dmitriy Linikov.
  13940. * Tools
  13941. - tools/*.c: Add #define _GNU_SOURCE to all C files that call
  13942. asprintf() to eliminate a warning.
  13943. - tools/cvsparser.c: Add a check to avoid access past the end
  13944. of a fixed size array
  13945. * NSH: apps/nshlib:
  13946. - apps/nshlib: Fix compile error when CONFIG_NSH_DISABLESCRIPT is not
  13947. defined. The field np_flags does not exist if scripting is disabled.
  13948. * Examples/Tests: apps/examples:
  13949. - apps/examples/touchscreen: Eliminate BOARDIOC_TSCTEST_SETUP.
  13950. * Network Utilities: apps/netutils:
  13951. - apps/netutils/ftpc: Fix some corner-cases that could cause FTP to
  13952. access past the end of valid data.
  13953. * Wireless Utilities: apps/wireless:
  13954. - apps/wireless/ieee802154/i8shark: Fixes special XBee compensation
  13955. by purposely chopping off the FCS. From Anthony Merlino.
  13956. NuttX-7.25 Release Notes
  13957. ------------------------
  13958. The 125th release of NuttX, Version 7.25, was made on June 3, 2018,
  13959. and is available for download from the Bitbucket.org website. Note
  13960. that release consists of two tarballs: nuttx-7.25.tar.gz and
  13961. apps-7.25.tar.gz. These are available from:
  13962. https://bitbucket.org/nuttx/nuttx/downloads
  13963. https://bitbucket.org/nuttx/apps/downloads
  13964. Both may be needed (see the top-level nuttx/README.txt file for build
  13965. information).
  13966. Additional new features and extended functionality:
  13967. * File Systems/Block and MTD Drivers
  13968. - fs/cromfs: Added CROMFS file system. CROMFS is a commpressed, in-
  13969. memory, read-only file system based on LZF.
  13970. - fs/vfs: Added support for checking if a descriptor is a socket in
  13971. fstat(). From Pelle Windestam.
  13972. * Graphics/Display Drivers:
  13973. - drivers/lcd: Remove support for the Nokia6100 LCD. That LCD uses a
  13974. 9-bit SPI interface (the 9th bit being the command/data bit that is
  13975. normally a discrete). That communication was never successfully
  13976. integrated. I now believe that it would would require some special
  13977. support from the low-level, MCU SPI driver to manage that 9th bit.
  13978. The deleted code is still available in the Obsoleted repository.
  13979. * Networking/Network Drivers:
  13980. - net/tcp: Added support for TCP Keepalive, add SO_KEEPALIVE socket
  13981. option. Added socket options needed to manage TCP-keepalive and TCP
  13982. state machine logic to detect if that the remote peer is alive.
  13983. - net/tcp: In tcp_input(), add the logic to detect, decode, and
  13984. respond to TCP Keep-Alive packets.
  13985. - net/tcp: Extended support for sending to non-blocking tcp sockets.
  13986. From Pelle Windestam.
  13987. - net/bluetooth: Added support for AF_BLUETOOTH sockets.
  13988. - drivers/net: Added TAP (network bridge) mode to tun.c. In the
  13989. previous implementation, TAP mode did not handle a packet correctly.
  13990. Also, the driver did not set the link layer type and could not
  13991. assign the interface name. This change fixes such issues and supports
  13992. TAP mode correctly. From Masayuki Ishikawa.
  13993. * Wireless/Wireless Drivers:
  13994. - wireless/ieee802154: Added basic MAC support for RX-ENABLE.request
  13995. primitive From Anthony Merlino.
  13996. - wireless/ieee802154: Added MAC ackreq flag to TX descriptor for use by
  13997. radio driver. The radio layer is responsible for a full "transaction".
  13998. Because of differences in radio capabilities, the radio must be
  13999. responsible for the handling of acks and retransmissions. This commit
  14000. simply passes the ackreq meta-data flag along to the radio. Also
  14001. Fixes bug where primitive was freed when it shouldn't have been,
  14002. causing double free call. From Anthony Merlino.
  14003. - wireless/bluetooth: Bring in the Bluetooth stack from the Intel/
  14004. Zephyr arduino101_firmware_source-v1.tar package.
  14005. - drivers/bluetooth: Added re-architected version of the Bluetooth
  14006. UART driver from the Intel/Zephyr arduino101_firmware_source-v1.tar
  14007. package.
  14008. - include/nuttx/wireless: Added a setbaud() method to the HCI UART
  14009. lower half interface that can be used to change the default BAUD
  14010. selection.
  14011. - wireless/bluetooth and include/nutt/net: Added support for Bluetooth
  14012. IOCTL commands.
  14013. - drivers/wireless/bluetooth: Added a NULL device to support some very
  14014. low level testing on the Simulator.
  14015. - drivers/wireless/cc3000: Eliminate support for the CC3000 wireless
  14016. part because it doesn't use the USRSOCKET. From Alan Carvalho de
  14017. Assis.
  14018. - drivers/wireless/ieee80211: Added BCM43428 support. From hhuysqt.
  14019. * Other Common Device Drivers:
  14020. - drivers/1wire: Added 1-wire subsystem and ds28e17 driver From Juha
  14021. Niskanen.
  14022. - drivers/1wire: Added PM hooks and unlink support to sht21 sensor
  14023. (allowing hot-swappable I2C bus from 1-wire converter). Unlike most
  14024. other unlink implementations in NuttX drivers, this one does not
  14025. allow any I2C operations after unlink, making it possible to
  14026. deallocate the I2C bus. From Juha Niskanen.
  14027. - drivers/i2c: Added support for the pca9540bdp i2cmultiplexer. From
  14028. Giorgio Groß.
  14029. - drivers/power: Added pm_unregister From Juha Niskanen.
  14030. - drivers/power: Added generic upper-half motor driver From Mateusz
  14031. Szafoni.
  14032. - drivers/rgbled: Added support for multichannel PWM (multiple PWM
  14033. channels on a single timer) From Anthony Merlino.
  14034. - drivers/sensors: Added support for Sensirion SHT2x humidity sensor.
  14035. From Juha Niskanen.
  14036. - drivers/sensors: Added LSM330 SPI and ADXL372 drivers along with the
  14037. - drivers/sensors: Added support for INA3221 power sensor. This has a
  14038. 3 channel bus/shunt voltage pairs. From Anthony Merlino.
  14039. cluster driver infrastructure. From Bob Feratich.
  14040. - drivers/sensors: Added multiple MAX31855 sensors feature support.
  14041. From Tiago Almeida.
  14042. - drivers/wireless/cc1101.c: Driver improvements from from lihaichen.
  14043. - progmem interface: Discern r/w and erase page sizes. Introduce new
  14044. up_progmem_erasesize architecture API to be able to communicate the
  14045. read/write page size independently from erase page size. Implement
  14046. up_progmem_erasesize for all architectures that already support
  14047. progmem, assuming that for those architectures the sizes of both
  14048. read/write and erase pages are identical. From Michael Jung.
  14049. * Simulation
  14050. - configs/sim: Added a configuration that will support some limited
  14051. testing of the Bluetooth stack.
  14052. * ARM:
  14053. - ARM: All ARM architectures now support CONFIG_ARCH_IDLE_CUSTOM.
  14054. * MIPS:
  14055. - MIPS: All MIPS architectures now support CONFIG_ARCH_IDLE_CUSTOM.
  14056. * Infineon XMC4xxx Drivers:
  14057. - XMC4: Added SPI support for Infineon XMC45xx microcontroller. From
  14058. Alan Carvalho de Assis.
  14059. * Infineon XMC4xxx Boards:
  14060. - XMC4500-Relax: Added board support for SPI. From Alan Carvalho de
  14061. Assis.
  14062. * Nordic NRF52:
  14063. - NRF52: Initial support for the NRF52 including UART, Timer, and
  14064. GPIO support. From Janne Rosberg.
  14065. * Nordic NRF52 Drivers:
  14066. - NRF52: Added watchdog timer drivers. Includes significant
  14067. updates from Levin Li.
  14068. - NRF52: Added nRF52 Flash PROGMEM support From Alan Carvalho de
  14069. Assis.
  14070. * Nordic NRF52 Boards:
  14071. - configs/nrf52-pca10040: Added support for the NRF52-PCA10040 board
  14072. including LEDs and buttons From Janne Rosberg.
  14073. - configs/nrf52-pca10040: Added support for starting the watchdog
  14074. timer on the nRF52. From Alan Carvalho de Assis.
  14075. - configs/nrf52-pca10040: Added a configuration for testing the
  14076. watchdog timer. From Alan Carvalho de Assis.
  14077. * NXP Freescale i.MX RT:
  14078. - i.MX RT: Brings in basic support for the i.MX RT 1050 'crossover'
  14079. SoC. Includes timer and UART support. This port was the joint
  14080. effort of Janne Rosberg, Ivan Ucherdzhiev, and myself. I give
  14081. credit to Ivan for the kill because he is the one to held on to
  14082. the end. From Ivan Ucherdzhiev.
  14083. * NXP Freescale i.MX RT Drivers:
  14084. - i.MX RT: Added power management hooks.
  14085. - i.MX RT: Added eDMA support (unverified).
  14086. - i.MX RT: Added Ethernet driver. From Jake Choy.
  14087. - i.MX RT: Added cache operations to permit the Ethernet driver to
  14088. work with the D-Cache enabled, at least in write-through mode.
  14089. Added support for PHY interrupts and PHY IOCTLs.
  14090. * NX FreescaleP i.MX RT Boards:
  14091. - IMXRT1050-EVK: Added support for booting from the on board HYPER
  14092. Flash. From Ivan Ucherdzhiev.
  14093. - IMXRT1050-EVK: Added logic to support the board's user LED. From
  14094. Jake Choy.
  14095. - IMXRT1050-EVK: Added procfs auto-mount support in imxrt_bringup.c.
  14096. From Ivan Ucherdzhiev.
  14097. - IMXRT1050-EVK: Added LIBCXX test configuration.
  14098. - IMXRT1050-EVK: Added support for the imxrt1050-evk button. From
  14099. Jake Choy.
  14100. - MXRT1050-EVK: Added support for on-board NOR FLASH boot. From
  14101. Ivan Ucherdzhiev.
  14102. - IMXRT1050-EVK: Disable LED support because pins conflict with PHY.
  14103. Enable device statistics. Enable NSH ifup and ifdown commmands.
  14104. Added an NSH configuration for testing Ethernet.
  14105. * NXP Freescale Kinetis:
  14106. - K28F: Added architecture support for the Kinetis K28F.
  14107. * NXP Freescale Kinetis Drivers:
  14108. - SDHC: Make Kinetis SDHC pullups work the same as the STM32 SDIO
  14109. pullups.
  14110. * NXP Freescale Kinetis Boards:
  14111. - Freedom-K28F. Added support for the Kinetis Freedom-K28F board.
  14112. * NXP LPC17xx:
  14113. - LPC17xx: Added support for ARMv7-M run time stack checking on NXP
  14114. LPC17xx MCUs based on CONFIG_ARMV7M_STACKCHECK. Basically copied
  14115. from STM32. From Michael Jung.
  14116. * NXP LPC17xx Drivers:
  14117. - LPC17xx: Added a configurable option to allow using a part of
  14118. LPC17xx's internal flash memory as a Memory Technology Device via
  14119. NuttX' mtd_progmem infrastructure. Tested with LPC1769. From
  14120. Michael Jung.
  14121. * NXP LPC17xx Boards:
  14122. - Olimex-LPC1766STK: Remove support for the Nokia6100 LCD. That
  14123. LCD uses a 9-bit SPI interface (the 9th bit being the command/data
  14124. bit that is normally a discrete). That communication was never
  14125. successfully integrated.
  14126. * NXP LPC43xx Boards:
  14127. - configs/bambino-200e: Added support for multiple MAX31855 sensors
  14128. to the bambino-200e. From Tiago Almeida.
  14129. * OpenRISC
  14130. - arch/or1k/src. Added basic architectural support for the OpenRISK
  14131. mor1kx architecture. The initial commit was verified on a Qemu
  14132. simulation but is otherwise untested. From Matt Thompson.
  14133. * OpenRISC Board
  14134. - configs/or1k. OpenRISK mor1kx Qemu simulation. From Matt Thompson.
  14135. * STMicro STM32:
  14136. - STM32: Added support for the STM32F401xB and STM32F401xC families.
  14137. * STMicro STM32 Drivers:
  14138. - STM32 HRTIM: Added HRTIM software capture trigger, added software
  14139. reset trigger, added outputs polarization configuration From
  14140. raiden00pl.
  14141. - STM32 ADC: Added ADC injected channels configuration. From Mateusz
  14142. Szafoni.
  14143. - STM32 HCIUART: Added a Bluetooth HCI UART lower half driver for the
  14144. STM32.
  14145. - STM32 HCIUART: Implement the setbaud() method for the STM32 HCI
  14146. UART interface.
  14147. - STM32 SDIO: Added support for SDIO card to SDIO driver. From
  14148. hhuysqt.
  14149. - STM32 SDIO: Added internal pull-up option for SDIO pins. From Alan
  14150. Carvalho de Assis.
  14151. - STM32 F2/F4 ADC: Added Vbat measurement to ADC driver for
  14152. STM32F20xx and STM32F4xxx. As with the MCU temperature and VREFINT
  14153. measurement, this change requires user to enable the corresponding
  14154. channel first. For Vbat channel the ioctl cmd is
  14155. IO_ENABLE_DISABLE_VBAT_CH, and its arg should be a pointer to bool
  14156. which must be true to enable and false to disable the Vbat channel.
  14157. Moreover, since Vbat input contains a built-in voltage divider, it
  14158. is highly suggested to disable Vbat input channel after measurement
  14159. is done in order to prevent battery drain through the divider. From
  14160. Dmitriy Linikov.
  14161. - STM32, STM32L4 1WIRE: Added one bit read and write to 1-wire
  14162. interface. This is needed for devices that require single bit
  14163. timeslot generation and for 1-Wire search algorithm triplets. From
  14164. Juha Niskanen.
  14165. - STM32 F3 SPI: Enable DMA for SPI on stm32f30xxx MCUs. From Michal
  14166. Lyszczek.
  14167. - STM32 L4 1WIRE: Ported 1wire driver from STM32. From Juha
  14168. Niskanen.
  14169. - STM32 L4 I2C/SPI/1WIRE: Added PM hooks to I2C, SPI and 1-wire From
  14170. Juha Niskanen.
  14171. - STM32 F7 RTC: Added CONFIG_RTC_PERIODIC support. Also makes the RTC
  14172. lowerhalf more like in STM32L4. From Juha Niskanen.
  14173. - STM32 F7 ADC/I2C/SPI: Added PM hooks to ADC, I2C and SPI. From
  14174. Juha Niskanen.
  14175. * STMicro STM32 Boards:
  14176. - Indium-F7: Removed support for the Indium-F7 board. This was done
  14177. for two reasons: (1) The board support was just clone of the
  14178. Nucleo-144 board support with naming changes. There has been no
  14179. support and no further development for the board support. (2) There
  14180. does not seem to be any available Indium-F7 board available to the
  14181. public anywhere on the Internet. There is not even a reference to
  14182. the board on the rafresearch.com web stie.
  14183. - Nucleo-L452RE: Added buttons example From Juha Niskanen.
  14184. - Nucleo-L476RG: Added support to Nokia LCD PCD8544 on nucleo-l476rg.
  14185. From Alan Carvalho de Assis.
  14186. - Nucleo-L476RG: Added nxdemo configuration to nucleo-l476rg using
  14187. PCD8544. From Alan Carvalho de Assis.
  14188. - Olimex-STM32-P407: Added a zmodem test configuration.
  14189. - Olimex-STM32-P407: Added the module configuration.
  14190. - Photon: Added RGB led support From Anthony Merlino.
  14191. - STM32F103-Minimum: Added support for DFU bootloader From Simon
  14192. Piriou.
  14193. - Spark: Removes Spark board configuration. Still available in the
  14194. Obsoleted repository. If there is no CC3000 support, then there is
  14195. no purpose in supporting the Spark either.
  14196. - STM32F334-Disco: Added buck/boost converter example configuration.
  14197. From Mateusz Szafoni.
  14198. - STM32F4 Discovery: Added support for multiple MAX31855 sensors to the
  14199. STM32F4 Discovery From Tiago Almeida.
  14200. - STM32F4 Discovery: Added support in bring-up logic to initialize the
  14201. HCI UART and register the HCI UART network device.
  14202. - STM32F4 Discovery: Added MAX7219 support to STM32F4Discovery board.
  14203. From Alan Carvalho de Assis.
  14204. - STM32F4 Discovery: Added board configuration for CS43L22 audio
  14205. example. From Alan Carvalho de Assis.
  14206. - STM32F4 Discovery: Added a module configuration for testing the
  14207. kernel module example with the STM32F4Discovery board. From Alan
  14208. Carvalho de Assis.
  14209. - STM32F429I-DISCO: Added a LittlevGL configuration for stm32f429i-
  14210. disco. From seyyah.
  14211. - STM32F746G-DISCO. Added clang support to stm32f746g-disco board.
  14212. From Goran Mekic.
  14213. - STM32L1 Discovery: Added support for the STM32L152RCT6 version of
  14214. the board.
  14215. * TI TMS570:
  14216. - TMS570: Added support for the TMS570LS3137ZWT. From Ivan Ucherdzhiev.
  14217. * TI TMS570 Boards:
  14218. - configs/tms570ls31x-usb-kit: Added support for the TI Hercules
  14219. TMS570LS31x USB Kit From Ivan Ucherdzhiev.
  14220. * TI Tiva:
  14221. - CC3200: Remove all support for the CC3200. This was a port that was
  14222. started but never completed. What good is partial CC3200 support
  14223. with no wireless support?.
  14224. * TI Tiva Drivers:
  14225. - EEPROM: Implements an EEPROM driver in compliance with MTD driver
  14226. as provided by NUTTX for TM4C1294. The EEPROM driver currently
  14227. supports only two functionalities - read bytes(multiple of 4) and
  14228. write bytes (multiple of 4). From Shirshak Sengupta.
  14229. - FLASH: Implemented Flash CONFIG_MTD_BYTE_WRITE for TM4c1294.
  14230. Implemented the tiva_write function which will write an arbitrary
  14231. number of bytes to flash (in multiple of 4). From Shirshak Sengupta.
  14232. - Serial: Added TERMIOS IOCTL support to the Tiva serial driver.
  14233. From Dmitry Sharihin.
  14234. * TI Tiva Boards:
  14235. - CC3200-Launchpad: Remove all support for the CC3200-Launchpad.
  14236. This was a port that was started but never completed. What good is
  14237. partial CC3200-Launchpad board support with no wireless support?.
  14238. * Libraries/Header Files:
  14239. - libs/: Moved all of the libraries under a common directory called
  14240. libs/ (libc, libnx, and libxx). This almost certainly break libcxx
  14241. for now.
  14242. - libs/libc/time: Added an implementation of clock().
  14243. - libs/libc/lzf: Added a modified version of Marc Alexander Lehmann's
  14244. LIBLZF3.6 library From Boris Astardzhiev.
  14245. - libs/libc/unistd: Initial, minimal implementation of sysconf().
  14246. Only sufficient to support the functionality of less standard
  14247. getdtabilesize(). From Michael Jung.
  14248. - libs/libdsp: Added DSP support library. From Mateusz Szafoni.
  14249. - include/sys: Added resource.h.
  14250. - include/nuttx/video: Add overlay support to framebuffer interface
  14251. definition. From Marco Krahl.
  14252. * Tools:
  14253. - tools/gencromfs.c: Added tools/gencromfs.c, a tool that can be used
  14254. to generate CROMFS file system images.
  14255. - tools/mkromfsimg.sh: Include an option in mkromfsimg.sh to ignore
  14256. FAT/RAMDISK. This permits you to build tiny systems with ROMFS but
  14257. with the rather large FAT FS support. From Alan Carvalho de Assis.
  14258. - tools/nxstyle.c: Added check for blank lines before and after single
  14259. line comments. From Bob Feretich.
  14260. - tools/sethost.sh: Added support for macOS.
  14261. - tools/uncrustify.cfg: An initial cut at an uncrustify C formatting
  14262. script from Gregory Nutt. Updated, corrected, and verified. From
  14263. Bob Feretich.
  14264. * Build System:
  14265. - Makefile: Added support for nconfig frontend for 'make nconfig'.
  14266. From Michal Lyszczek.
  14267. - configs/: Added definition of strip to many Make.defs files.
  14268. - staging/: Remove fixed lib/ subdirectory and its content. Replace
  14269. with new directory called staging/ that is created dynamically when
  14270. building and removed when 'make clean' is done. This both improves
  14271. the naming and eliminates a garbage directory from the repository.
  14272. - tools/: Move all build-related files (except the top-level Makefile)
  14273. into the tools/ sub-directory. This really cleans up the top-level
  14274. directory.
  14275. * NSH: apps/nshlib:
  14276. - apps/nshlib: Added the mkfatfs -r option which can be used to
  14277. specify the number of entries in the FAT12/FAT16 root directory.
  14278. From Boris Astardzhiev.
  14279. * Examples/Tests: apps/examples:
  14280. - apps/examples/adxl372_test and lxm330spi_test: Added ADXL372 and
  14281. LSM330 tests. From Bob Feretich.
  14282. - apps/examples/cc3000: Removed the CC3000 example. From Alan
  14283. Carvalho de Assis.
  14284. - apps/examples/cromfs: Added an example of how to build a CROMFS
  14285. file system image.
  14286. - apps/examples/elf: Extend the ELF program module demo so that you
  14287. can use compressed ELF programs with CROMFS.
  14288. - apps/examples/elf: Use strip command to make ELF binaries MUCH
  14289. smaller. Added an option to strip debug symbols even if the debug
  14290. symbols are enabled in the base code.
  14291. - apps/examples/max31855: Added an example to read multiple max31855
  14292. sensors. From Tiago Almeida.
  14293. - apps/examples/netloop: Update network loopback example so that it
  14294. can be used to test TCP KeepAlive.
  14295. - apps/examples/nxdemo: Added nxdemo application From Alan Carvalho
  14296. de Assis.
  14297. - apps/examples/powerled: Added arch initialization.
  14298. - apps/examples/uavcan: Removed because apps/canutils/libuavcan is no
  14299. longer available.
  14300. * System Utilities: apps/system
  14301. - apps/system/lzf: Added the test case from Marc Alexander Lehmann's
  14302. LIBLZF3.6 librrary From Boris Astardzhiev.
  14303. - apps/system/embedlog: Support for embedlog data loggin package from
  14304. https://embedlog.kurwinet.pl/ From Michal Lyszczek.
  14305. - apps/system/zmodem: Added an option to enable hardware flow control
  14306. via termios. Allow stack size and priority to be configured.
  14307. - apps/system/zmodem: Call tcflush() before closing the serial port.
  14308. This is necessary because that close operation may hang if hardware
  14309. flow control is enabled. Consider this scenario: After the host
  14310. sz runs on the host, it exits and leaves CTS high. The target rz
  14311. completes, and tries to close the serial port. But if there is
  14312. buffered Tx data, then the close will hang when it tries to drain
  14313. the buffered Tx data since there is no where it can go. tcflush()
  14314. discards the buffered data and permits the close to continue.
  14315. There is additional logic in nuttx/drivers/serial needed to work
  14316. with this.
  14317. * CAN Utilities: apps/canutils:
  14318. - apps/canutils/libuavcan. Removed! libuavcan has not built for a
  14319. year or so. The basic problem is that as NuttX advances, the old
  14320. frozen version of libuavcan has become absolute because it violates
  14321. the portable POSIX OS interface. No one is maintaining the port so
  14322. there is no alternative but to remove it.
  14323. * Network Utilities: apps/netutils:
  14324. - apps/netutils/tftpc: Modified the TFTP client functions to use a
  14325. data read/write callback instead of a file. This allows TFTP to
  14326. write to arbitrary destination (in my case, a MTD device - for
  14327. firmware update). Two new functions are introduced for this, named
  14328. tftpget_cb and tftpput_cb. They are just made of most of the
  14329. existing code. The previously existing tftpget/tftpput functions
  14330. are now wrappers on the new ones, with callbacks that read/write
  14331. from files, so my modifications are backwards compatible with
  14332. existing applications, eg the associated nsh commands dont need to
  14333. be changed. From Sebastien Lorquet.
  14334. * Wireless Utilities: apps/wireless:
  14335. - apps/wireless/bluetooth/btsak: Added a Bluetooth debug tool.
  14336. Bugfixes. Only the most critical bugfixes are listed here (see the
  14337. ChangeLog for the complete list of bugfixes and for additional, more
  14338. detailed bugfix information):
  14339. * Core OS:
  14340. - sched/sched: Fix a deadlock in SMP mode. Two months ago, I
  14341. introduced sched_tasklist_lock() and sched_tasklist_unlock() to
  14342. protect tasklists in SMP mode. This change works well for HTTP
  14343. audio streaming aging test with lc823450-xgevk. However, I found a
  14344. deadlock in the scheduler when I tried similar aging tests with DVFS
  14345. autonomous mode where CPU clock speed changed based on cpu load. In
  14346. this case, call sequences were as follows. To avoid this deadlock,
  14347. I added sched_tasklist_unlock() when calling up_cpu_pause() and
  14348. sched_addreadytorun(). Also, added sched_tasklist_lock() after the
  14349. call. Also added critical sections to lib_filesem.c, mm_sem.c, and
  14350. net_lock.c for SMP for SMP. From Masayuki Ishikawa.
  14351. - sched/sched: Change ordering of round-robin time slice check
  14352. (sched_process_scheduler()) and processing of wdog timers
  14353. (wd_timer()). wd_timer()'s callback function can change current
  14354. running task and, hence, must be done after the time slice check.
  14355. The time slice check will decrement the currently running task's
  14356. time slice allotment. If such a context switch occurs, then the
  14357. newly started task will lost one could of that allotment before it
  14358. even has a chance to run. From EunBong Song.
  14359. * File System/Block and MTD Drivers:
  14360. - fs/fat: In fs_stat(), when stat'ing the root directory, avoid
  14361. calculating the address of the root directory entry. The
  14362. calculation is bogus (but not harmful) because the root directory
  14363. does not have a directory entry. Noted by Boris Astardzhiev.
  14364. - fs/fat: Avoid calculating the bogus directory entry address for
  14365. the FAT root directory (since it has no directory entry). This
  14366. change should have no effect, other than making the logic clearer.
  14367. From Boris Astardzhiev.
  14368. - fs/mount: Fix wrong size reported by df -h. Reason is that size
  14369. in bytes is calculated always on uint32_t types and cards bigger
  14370. than 4GB will overflow uint32_t type. Solution is to use uint64_t
  14371. where possible. From Michal Lyszczek.
  14372. - fs/smartfs: Fix a hardfault in SmartFS. Problem occurred when
  14373. opening a file with O_CREAT (only) when the file arelready exists
  14374. but has a size of zero. From Michal Lyszczek.
  14375. - fs/vfs: Fix negative errno set in fs_open.c From Michal Lyszczek.
  14376. - drivers/mtd: Fixed a W25 driver w25_cacheflush sector bug. From
  14377. lihaichen.
  14378. - drivers/mtd: mtdconfig_register() returned OK instead of -ENOMEM on
  14379. failed allocation. From Michal Lyszczek.
  14380. * Graphics/Display Drivers:
  14381. - drivers/lcd/ft80x: ACTIVE host command appears to be formatted
  14382. differently than other host commands; Fix ROM CHIPID. Appears to
  14383. be big-ending, BCD. Fix some compile issues when debug features
  14384. are enabled.
  14385. - drivers/lcd/ft80x: Fix a typo that caused the driver to fail to
  14386. recognize the ft801 chip version. From Gregory Nutt.
  14387. - Review all board implementations of board_lcd_initialize(). The
  14388. NuttX convention is that all internal functions that return errors
  14389. as an 'int' must return a negated errno value on failure and a non-
  14390. negative value on success. Most were right but eight of them had
  14391. cloned logic that returns 1 on success and zero on failure. both
  14392. of which are interpreted as success by the caller since they are
  14393. non-negative.
  14394. * Networking/Network Drivers:
  14395. - net/tcp: Fixed problem with send() retrun value when using
  14396. nonblocking I/O over buffered tcp socket From Dmitriy Linikov.
  14397. - net/sixlowpan: Fix a nasty, byte-ordering/endian-ness problem.
  14398. The root cause has been found and corrected. And a half dozen
  14399. or so bandaid fixes were reverted.
  14400. - net/sixlowpan: Preserve big-endian (network order) when
  14401. uncompressing address. From Anthony Merlino.
  14402. - net/sixlowpan: TCP send should have PSH and ACK flags set when
  14403. sending. This matches the standard network (Ethernet) TCP send
  14404. logic. From Anthony Merlino.
  14405. - net/udp: Fix several issues using connected UDP sockets: sendto()
  14406. should not accept an address. Normally send() should be used with
  14407. connect UDP sockets instead. recvfrom() is no longer necessary.
  14408. recvfrom() and poll() should not reset to accept any addresses but
  14409. should, instead, only accept inputs and events from the connected
  14410. remote peer. On of these issues was noted by ???
  14411. <liguiding@pinecone.net>. Changes were made as summarized here:
  14412. http://www.masterraghu.com/subjects/np/introduction/unix_network_programming_v1.3/ch08lev1sec11.html
  14413. From Gregory Nutt.
  14414. - net/udp: Resolve race condition in connection-less UDP sockets with
  14415. read-ahead buffering. In connection-mode UDP sockets, a remote
  14416. address is retained in the UDP connection structure. This
  14417. determines both there send() will send the packets and which packets
  14418. recv() will be accepted. This same mechanism is used for
  14419. connection-less UDP sendto: A temporary remote address is written
  14420. into the connection structure to support the sendto() operation.
  14421. That address persists until the next recvfrom() when it is reset to
  14422. accept any address. When UDP read-ahead buffering is enabled,
  14423. however, that means that the old, invalid remote address can be left
  14424. in the connection structure for some time. This can cause read-
  14425. ahead buffer to fail, dropping UDP packets. Shortening the time
  14426. between when he remote address is reset (i.e., immediately after the
  14427. sendto() completes) is not a solution, that does not eliminate the
  14428. race condition; in only makes it smaller. With this change, a flag
  14429. was added to the connection structure to indicate if the UDP socket
  14430. is in connection mode or if it is connection-less. This change
  14431. effects only UDP receive operations: The remote address in the UDP
  14432. connection is always ignored if the UDP socket is not in connection-
  14433. mode. No for connection-mode sockets, that remote address behaves as
  14434. before. But for connection-less sockets, it is only used by sendto().
  14435. * Wireless/Wireless Drivers:
  14436. - drivers/wiresless/ieee80211: Correct some initialization problems
  14437. with BCM43362 chip. From hhuysqt.
  14438. - drivers/ieee802154/xbee: Added a timeout to send logic to handle
  14439. case where XBee module fails to respond to a Transmit request with
  14440. a Transmit Status From Anthony Merlino.
  14441. * Common Drivers:
  14442. - Per OpenGroup.org, syslog -- and, hence, nonstandard vsyslog, and
  14443. debug wrappers -- does not return a value. Rename _vsyslog to
  14444. nx_vsyslog. Use internal nx_vsyslog in the few cases where a
  14445. return value is required.
  14446. - drivers/leds: Fixes RGB LED issues caused by uninitialized memory
  14447. with CONFIG_RGBLED_MULTICHAN. The uninitialized pwm_info_s struct
  14448. caused a rogue channel to be started causing errros in the pwm
  14449. driver From Anthony Merlino.
  14450. - drivers/sensors/lis2dh: Clear INT1 at SNIOC_WRITE_INT1THRESHOLD
  14451. ioctl. From Jussi Kivilinna.
  14452. - drivers/sensors/sht21: Changed I2C_TRANSFER return value so that
  14453. it return on zero on success, not the count of bytes transferred.
  14454. From Juha Niskanen.
  14455. - drivers/serial: Per Matias Edlund: I recently used the tcflush
  14456. function and found that it failed with ENOTTY. The reason is that
  14457. the TCFLSH case in the function uart_ioctl in the file
  14458. drivers/serial/serial.c does not update the ret value." On
  14459. success, the TCFLSH IOCTL logic needs to explicitly set the return
  14460. value (ret) to zero.
  14461. - drivers/serial: Added a timeout to uart_tcdrain(). Even if
  14462. tcflush() is used to discard buffered data, the close() can still
  14463. hang if (a) hardware flow control is enabled, (b) CTS == 1, and
  14464. (c) there is data stuck in the hardware Tx FIFO. tcflush() does
  14465. not currently clear the MCU serial drivers' hardware Tx FIFOs.
  14466. This is a workaround for that.
  14467. - drivers/sensors: Fix APDS9960 work queue BUG found by Kyle Lei.
  14468. From Alan Carvalho de Assis.
  14469. * Simulator:
  14470. - arch/sim: Various fixes necessary to build the simulator under
  14471. MSYS2.
  14472. * ARMv7-R:
  14473. - ARMv7-R: Corrected several ARMv7-R issues. From Ivan Ucherdzhiev.
  14474. * Infineon XMC4xxx Boards:
  14475. - XMC4500-Relax: Call xmc4_spidev_initialize() in xmc4_boot.c. From
  14476. Alan Carvalho de Assis.
  14477. * NXP/Freescale LPC17xx Drivers:
  14478. - LPC17xx USB: Fix USB device endpoint allocation bookkeeping. From
  14479. Michael Jung.
  14480. - LPC17xx USB: Freeing endpoints should be set the same allocations
  14481. as when endpoint was allocated.
  14482. - LPC17xx USB: Fix loss of RX initiatives. USB bulk endpoints are
  14483. double buffered on LPC17xx MCUs. This means that up to two packets
  14484. might be received on an OUT endpoint that can not be handled
  14485. immediately if the receive request queue is empty. Thus,
  14486. rxpending must be a counter not a boolean flag. From Michael Jung.
  14487. * NXP/Freescale Kinetis Drivers:
  14488. - Kinetis USG: USB device fixes: Use correct CONFIG OTG control,
  14489. Fix interrupt storm when cable is disconnected. The DM, DP state
  14490. were incorrect because the pulldowns were not enabled. Also the
  14491. pending asynchronous resume interrupt needed to be re-armed after
  14492. the suspend is in effect. This is now done in the isr. From David
  14493. Sidrane.
  14494. - Kinetis Serial: In kinetis_lowputc.c, fix esBRFA calculation
  14495. effecting baudrate. Previous BRFA was not cleared and or-ed into
  14496. new BRFA, hence, buadrate was wrong. Where Baud Rate Fractional
  14497. Divisor (BRFD) UART baud rate = clock / (16 * (SBR + BRFD)). From
  14498. David Sidrane.
  14499. - Kinetis Serial: In kinetis_lowputc.c, fixed parity settings.
  14500. Kinetis UART must be placed in 9 bit mode (M=1) with when 8 bit data
  14501. with parity is required. If left in 8 bit mode (M=0) with parity
  14502. then D7 of the TX/RX register becomes parity bit. Hence what is
  14503. called 9-bit or 8-bit Mode Select is a misnomer. 8 bit mode when
  14504. parity is enabled is realy 7 bit with parity. From David Sidrane.
  14505. * NXP/Freescale Kinetis Boards:
  14506. - configs/teensy-3.x: Remove CONFIG_USBDEV_DUALSPEED from the usbnsh
  14507. configuration. Hardware supports only FS.
  14508. * NXP i.MX6 Drivers:
  14509. - i.MX6: Bring in a few i.MX6 fixes that were committed to similar
  14510. files for the i.MX RT.
  14511. * STMicro STM32:
  14512. - STM32 F3: Problem: stm32f30xx hangs waiting for LSE to initialize.
  14513. Reason for hang is that operation of setting LSE_ON does not take
  14514. effect because there is no clock on PWR peripheral. This is
  14515. initialized later in the code From Michal Lyszczek.
  14516. * STMicro STM32 Drivers:
  14517. - STM32 and STM32 L4 1WIRE: In 1wire driver, do not write useless
  14518. WRITEBIT zero return value to const buffer From Juha Niskanen.
  14519. - STM32 HRTIM: Fixed capture_get function,. From raiden00pl.
  14520. - STM32 F3 ADC: Fixed bug in RCC reset logic that resets ADC1
  14521. configuration when both ADC1 and ADC2 are in use From Mateusz
  14522. Szafoni.
  14523. - STM32 Ethernet: In case of PHY failure, usually because of the
  14524. lack of 25/50 MHz REFCLK input, the Ethernet block would lock up
  14525. in a while loop waiting for readiness, which will never happened.
  14526. This prevented the board from starting at all in the case of a PHY
  14527. failure. This commit adds a retry loop to avoid bricking the board
  14528. if the Ethernet block is unable to start. From Sebastien Lorquet.
  14529. - STM32 F7 SDMMC: Added support for the second SDMMC device. The
  14530. second SDMMC device was already supported but the clock was never
  14531. enabled. This fixes that. From William Douglas.
  14532. - STM32 Serial: Fix UART glitch when lowputc is enabled. From
  14533. Simon Piriou.
  14534. - STM32 USB: Skip recipient check for descriptor related
  14535. requests From Simon Piriou.
  14536. * TI Tiva Drivers:
  14537. - Tiva ADC: Fix compilation errors on Tiva ADC code when ADC is
  14538. enable. From Vinicius Maciel.
  14539. - Tiva Serial: Allow building of Tiva platform with no serial
  14540. console. From Dmitry Sharihin.
  14541. * C Library/Header Files:
  14542. - lib/libc/netdb: Fixed boundary conditions in dns_recv_response().
  14543. Fixed typos in include/nuttx/net/dns.h. From Masayuki Ishikawa.
  14544. - libs/libc/modlib: Fixed backward test for an error in
  14545. modlib_verify.c.
  14546. * Build System:
  14547. - Makefiles: Eliminate the spurious errors reported by 'make
  14548. savedefconfig'.
  14549. - Makefile(s): There is a sort command in the 'make savedefconfig'
  14550. file. I found that sort behaves differently on different platforms
  14551. based on the environment variable LC_ALL. Now, Makefile.unix will
  14552. force LC_ALL=C just for the sort command so that we can all generate
  14553. equivalent defconfig files.
  14554. - Makefile(s): The clean_context target needs to invoke a
  14555. corresponding clean_context target in the apps/Makefile in order to
  14556. remove linkages. From Gregory Nutt.
  14557. - LibTargets.mk, tools/Config.mk: Drop executable bit on installed
  14558. libraries. The rules to install libraries under lib/ were modified
  14559. to use mode 0644 instead of the default 0755. From Andrey Zabolotnyi.
  14560. * Examples/Tests: apps/examples:
  14561. - apps/examples/ft80x: Fix some size calculations. Added option to
  14562. disable primitive tests. just too boring to have to watch over and
  14563. over again. Fix a typo in backlight fade logic; Fix error in
  14564. formatted display light debug dump output.
  14565. - apps/examples/ft80x: Text is handled by the coprocessor and, hence,
  14566. must use RAM_CMD, not RAM_DL.
  14567. - apps/examples/ft80x: Fix some errors in co-processor demos. Correct
  14568. an error in the spinner demo.
  14569. - apps/examples/nsh and posix_spawn: Must not call exec_setsymtab()
  14570. directly. That is a non-POSIX internal OS interface.
  14571. - apps/examples/ostest: Do not call AIO test without
  14572. CONFIG_EXAMPLES_OSTEST_AIO From Juha Niskanen.
  14573. - apps/examples/smps: Fix typos in Kconfig. All power, voltage,
  14574. current values were strings with no default. I assume they should
  14575. be 'int' with what default?.
  14576. - apps/examples/smps: Fixes in some printf and in Kconfig From
  14577. Mateusz Szafoni.
  14578. - apps/system/zmodem: Fix Makefile.host. It was broken when zmodem.h
  14579. was moved to apps/include/system. Fix an incompatibility with the way
  14580. that CRCs are calculated.
  14581. * System Utilities: apps/system:
  14582. - apps/system: Applications should use the standard clock() interface,
  14583. not the internal NuttX clock_systimer() interface.
  14584. - apps/system/stackmonitor: Fix comparison between pointer and zero
  14585. character constant. From Juha Niskanen.
  14586. * Network Utilities: apps/netutils:
  14587. - apps/netutils/netlib: Various fixes needed to get a clean netlib
  14588. build with Bluetooth only.
  14589. * Wireless Utilities: apps/wireless:
  14590. - apps/wireless: Applications should use the standard clock()
  14591. interface, not the internal NuttX clock_systimer() interface.
  14592. NuttX-7.26 Release Notes
  14593. ------------------------
  14594. The 126th release of NuttX, Version 7.26, was made on September 8, 2018,
  14595. and is available for download from the Bitbucket.org website. Note
  14596. that release consists of two tarballs: nuttx-7.26.tar.gz and
  14597. apps-7.26.tar.gz. These are available from:
  14598. https://bitbucket.org/nuttx/nuttx/downloads
  14599. https://bitbucket.org/nuttx/apps/downloads
  14600. Both may be needed (see the top-level nuttx/README.txt file for build
  14601. information).
  14602. Additional new features and extended functionality:
  14603. * Core OS:
  14604. - General: Eliminate use of the non-standard type systime_t and
  14605. replace it the equivalent, standard type clock_t From Gregory Nutt.
  14606. - General: Replace non critical PANIC with DEBUGPANIC to save the
  14607. code space From Xiang Xiao.
  14608. - General: Replace all ASSERT with DEBUGASSERT to save the code
  14609. space From Xiang Xiao.
  14610. - Initialization: Add option to mount block device for
  14611. INIT_FILEPATH case. From anchao.
  14612. - clock(): clock_systimer() is no longer a system interface. It has
  14613. been replaced with the equivalent, standard interface clock().
  14614. Moved the implementation of clock() from the C library into the OS
  14615. core. This is necessary because it calls the (now) internal OS
  14616. function clock_systimer(). clock() is now accessed only via a
  14617. system call in certain configurations. From Gregory Nutt.
  14618. - clock Utilities: Move clock_timespec_[add|subtract] to
  14619. include/nuttx/clock.h From Xiang Xiao.
  14620. - Binary Loader: Add binfmt_initialize(). All binary formats are
  14621. now registered centrally vs. in board-specific logic. This
  14622. simplifies the usage of the binfmt subsystem. From Xiang Xiao.
  14623. - Binary Loader: Reference default symtab name to binfmt From anchao.
  14624. - mm: Add mm_heapmember function and reimplement kmm_heapmember base
  14625. on mm_heapmember since this function is very useful if multiple
  14626. heaps exist. From Xiang Xiao.
  14627. - mm: Add {kumm/kmm}_calloc API. Add calloc API for manage user
  14628. memory and kernel memory in Flat Build/Kernel Build without kernel
  14629. heap. From zhuyanlin.
  14630. - pthreads: Add support static pthread stack. Add standard
  14631. pthread_attr_setstack() and pthread_attr_getstack(). In all cases
  14632. where the stack is released, add check to see which allocator must
  14633. be used to free the stack: The user or the kernel allocator. From
  14634. xuanlin.
  14635. - Semaphores: Apply the semaphore wait function
  14636. nxsem_wait_uninterruptible(). This function is a wrapped version
  14637. of nxsem_wait() that is uninterruptible and convenient for use.
  14638. From liuhaiyang.
  14639. - Signals: Add default signal action to SIGKILL. From ligd.
  14640. - Signals: Update the signal default action logic to support
  14641. sigaction(). signaction() must be able to handle and input action
  14642. of SIG_DFL to setup the default signal action; it mast also return
  14643. SIG_DFL it is replacing the default action. From Gregory Nutt.
  14644. - Signals: Default Signal Actions. Change some types to
  14645. superficially simplify. Add configuration options to enabled
  14646. default signal behaviors on a per-signal basis. I don't think
  14647. users are prepared for SIGALRM to terminate the task (which is the
  14648. correct default behavior if you don't change it). Extend the
  14649. implementation of default signals so that it is totally table
  14650. driven and extensible by simply mondifying the content of const
  14651. tables. From Gregory Nutt.
  14652. - Signals: Add support for SIGINT in addition to SIGKILL.
  14653. - Signals: Add logic and an interface to determine if a signal can
  14654. be caught or ignored. sigaction now correctly returns EINVAL on
  14655. any attempt to catch or ignore such signals (only SIGKILL for now
  14656. and only if CONFIG_SIG_DEFAULT=y). From Gregory Nutt.
  14657. - Signals: Add support for default signal actions for SIGSTOP,
  14658. SIGSTP, and SIGCONT. Add procfs support to show stopped tasks.
  14659. From Gregory Nutt.
  14660. - Signals: Add nxsig_action() to solve a chicken and egg problem:
  14661. We needed to use sigaction to set default actions, but sigaction()
  14662. would refuse to set actions if the default actions could not be
  14663. caught or ignored. From Gregory Nutt.
  14664. - Signals: Add configuration option to selectively enabled/disable
  14665. default signal actions for SIGSTOP/SIGSTP/SIGCONT and SIGKILL/SIGINT.
  14666. - Signals: If a task/thread was already blocked when
  14667. SIGSTOP/SIGSTP was received, it will restart in the running state.
  14668. It will appear that to the task/thread that the blocked condition
  14669. was interrupt by a signal and returns the EINTR error. From
  14670. Gregory Nutt.
  14671. - Signals: Update signal default STOP action. If waitpid was
  14672. called with the WUNTRACED then wake up waitpid(). From Gregory
  14673. Nutt.
  14674. - IRQs: Monitor the irq execution time. This is very useful for
  14675. measuring the interrupt latency. From Xiang Xiao.
  14676. - IRQ Dispatch: Add support interrupt chains in NuttX. IRQ chain is
  14677. very useful in these cases: (1) Multiple hardware connect to the
  14678. same request line(e.g. PCI), (2) Need multiple driver to support
  14679. one hardware block (like Linux MFD) From zhuguangqing.
  14680. - Work Queue: Modify high priority work queue to support multiple
  14681. threads. From ligd.
  14682. - System Calls: Add support for getpeername() and get_sockname()
  14683. system calls. From Gregory Nutt.
  14684. - System Calls: svcall/sycall logic needs to get the ucontext
  14685. argument from R4 instead of stack since all syscall parameters pass
  14686. from registers in syscall.h From Xiang Xiao.
  14687. - CPU Load Measurement: Support the CPU load measurement using
  14688. timer_lowerhalf_s interface From Xiang Xiao.
  14689. - Assertions: Change CONFIG_BOARD_RESET_ON_CRASH to
  14690. CONFIG_BOARD_RESET_ON_ASSERT, arch/: Implement call to
  14691. board_reset() if in all implementations of up_assert() when
  14692. CONFIG_BOARD_RESET_ON_ASSERT=y. From Xiang Xiao.
  14693. - boardctl(): Add support for board_app_finalinitialize() From ligd.
  14694. - Architecture Interface: Add prototype for an architecture-specific
  14695. up_trigger_irq function. From dongjianli.
  14696. - Architecture Interface: Add the garbage collection hook so each
  14697. architecture can do custom memory cleanup if necessary. From Xiang
  14698. Xiao.
  14699. - Architecture Interface: Add architecture-specific prototypes for
  14700. conversions between physical and virtual address. From ligd.
  14701. * File Systems/Block and MTD Drivers
  14702. - ProcFS: Add support for a procfs entry that will permit examining
  14703. the environment of any task. From Gregory Nutt.
  14704. - ProcFS: Add support for proc/self/, a convenient way for getting
  14705. information about the currently running task. From Gregory Nutt.
  14706. - HostFS: Add support for open() append mode From anchao.
  14707. - HostFS: Add ftruncate support. From Xiang Xiao.
  14708. - HostFS: Remove ARCH_SIM dependence since other architectures
  14709. (e.g., arm semihosting) could support hostfs too From Xiang Xiao.
  14710. - HostFS: Support remote directory names without a trailing '/'
  14711. From ligd.
  14712. - HostFS: Add re-try when hostfs mount() fails From ligd.
  14713. - NFS: Update NFS client mount to VER3 From zhangyuan7.
  14714. - Partitions: Add PTABLE parser fs/partion: Add a partition parser
  14715. framework fs/driver/fs_blockpartition.c: Add
  14716. register_blockpartition for block partition From Xiang Xiao.
  14717. - MTD: Add gd25 driver From wangyanjiong.
  14718. - MTD: In MTD partitions, copy the partition name to internal
  14719. buffer so that the caller can free the name argument From Xiang
  14720. Xiao.
  14721. - MTD: Support initialization of an FTL block device with a custom
  14722. name From Xiang Xiao.
  14723. - MTD: FTL: Reduce size of stack buffer from 64 to a maximum size
  14724. as determined from NAME_MAX. From Gregory Nutt.
  14725. - VFS poll(): Send poll() notification when the Tx buffer is flushed
  14726. From ligd.
  14727. - VFS fstat(): Add file_fstat() function for internal OS use. From
  14728. ligd.
  14729. - VFS fcntl(): Add file_fcntl, psock_fcntl, and psock_dupsd for use
  14730. within the kernel. From Xiang Xiao.
  14731. - VFS dup2(): Addpsock_dupsd for use within the kernel. From Xiang
  14732. Xiao.
  14733. - VFS poll(): Add poll use in kernel space. From dongjianli.
  14734. - VFS select(): Make select be more consistent with Linux man page:
  14735. 'The timeout ... Some code calls select() with all three sets
  14736. empty, nfds zero, and a non-NULL timeout as a fairly portable way
  14737. to sleep with subsecond precision.' From anchao.
  14738. * Networking/Network Drivers:
  14739. - Sockets: Add getpeername() support From ligd.
  14740. - sockopt(): Move psock check from [get|set]sockopt to
  14741. psock_[get|set]sockopt From Xiang Xiao.
  14742. - getsockname(): Add psock_getsockname function From Xiang Xiao.
  14743. - Netlink Sockets: This brings in a fragmentary, experimental
  14744. implementation of NETLINK sockets. There is not too much to that
  14745. socket support on this initial commit, just the netlink socket
  14746. framework. However, I decided to bring it into master because
  14747. there is a enough that I would not want to lose what is in place.
  14748. And since it is dependent on CONFIG_EXPERIMENTAL, its presence on
  14749. master should be innocuous. From Gregory Nutt.
  14750. - Interface Indexes: Add driver interface index support. Add
  14751. implementation of if_nametoindex() and if indextoname(). Raw
  14752. AF_PACKET sockets now depend on CONFIG_NETDEV_IFINDEX. Add syscall
  14753. support for if_nametoindex() and if_indextoname(). Includes an
  14754. algorithm to prevent an interface index from being reused until all
  14755. network interfaces have by assigned once. The prevents removable
  14756. devices from being removed, unregistered and re-installed,
  14757. re-registered and keeping the same interface index. From Gregory
  14758. Nutt.
  14759. - Driver Interface: Add devif_loopback() to check the loopback
  14760. case where a packet is being sent to itself. Modify the net driver
  14761. to call this function in this case. This function will simply
  14762. re-inject the packet back into the network and the network driver
  14763. will not put anything on the wire. From Xiang Xiao.
  14764. - Network Devices: Remove all references to CONFIG_NET_USER_DEVFMT.
  14765. That feature is now unconditionally enabled. This was done because
  14766. (1) the feature does not require very much additional memory, and
  14767. (2) it causes confusion in the configuration due to the additional
  14768. complexity. Any network drivers that fail to zero the device
  14769. structure interface name field (d_ifname) because calling
  14770. netdev_register() will, however, get a nasty surprise. From
  14771. Gregory Nutt.
  14772. - Network Devices: Add support for Microchip LAN91C111 driver From
  14773. Xiang Xiao.
  14774. - Network Devices: netdev_findby_ipv[4|6]addr return
  14775. netdev_default() as last resort but don't return loopback device
  14776. if another network device is in the UP state. From Xiang Xiao.
  14777. - Network Device IOCTLs: Add si_ioctl callback and net_ioctl_arglen
  14778. so usrsock could forward the ioctl to the remote end/ From
  14779. dongjianli.
  14780. - IPv6: Rename g_ipv6_allzeroaddress with the more meaning
  14781. g_ipv6_unspecaddr since the all-zero address is the IPv6
  14782. unspecified address (sometime IN6_ADDR_ANY). Replace more inline
  14783. tests for IPv6 multicast with common net_is_addr_mcast() macro.
  14784. From Gregory Nutt.
  14785. - ARP: arp_find() now checks if the target IP belongs to one of the
  14786. local network devices. From Xiang Xiao.
  14787. - ARP: Make the function arp_find() thread-safe. It now returns a
  14788. copy of the MAC address from the ARP table entry, rather than a
  14789. potentially unstable reference to the ARP table entry. From
  14790. Gregory Nutt.
  14791. - TCP: Re-work of TCP receive window size algorithm. The new logic
  14792. is based only on the ability to buffer TCP read-ahead data. From
  14793. Gregory Nutt.
  14794. - UDP: Add support for the UDP_BINDTODEVICE protocol socket option
  14795. From Sebastien Lorquet.
  14796. - Slip: Uncomment the prompt of NET_SLIP_PKTSIZE in Kconfig file.
  14797. From Xiang Xiao.
  14798. - USRSOCK: Combine some the duplicated logic. From Xiang Xiao.
  14799. - USRSOCK: Optimize option dependence From Xiang Xiao.
  14800. - USRSOCK: Add the listen/accept/getpeername/ioctl support From
  14801. dongjianli.
  14802. * Other Common Device Drivers:
  14803. - Analog DAC: Add driver for digital to analog converter DAC7571.
  14804. Nucleo-L422KC: Add support for a connect DAC7571 converter. From
  14805. Daniel Pereira Carvalho.
  14806. - Audio Interface: Change member samp of apb to pointer so driver
  14807. can customize sample buffer allocation From ZhongAn.
  14808. - Audio Interface: Add ioctl cmd 'AUDIOIOC_SETBUFFERINFO' so user
  14809. space could config the buffer From ZhongAn.
  14810. - Audio Interface: Add hardware format support From anchao.
  14811. - I2S Interface: Add i2s_rxchannels and i2s_txchannels methods to
  14812. the I2S lower half interface. From ZhongAn.
  14813. - Audio: Move the I2S character driver to a dedicated folder. From
  14814. Xiang Xiao.
  14815. - Audio: Add audio_i2s device driver. From ZhongAn.
  14816. - Audio: Add the composite audio driver From Xiang Xiao.
  14817. - Crypto: Move dev_urandom.c into new crypto folder. From Xiang
  14818. Xiao.
  14819. - GPIO driver: Add gpio_pin_unregister function to GPIO driver
  14820. driver/ioexpander: Add pinset struct to GPIO driver for interrupt
  14821. pins larger than 64. Initialize pintype/inttype when registering
  14822. ioexpander device. Add SETPINTYPE ioctl command to the GPIO
  14823. driver. From zhuyanlin.
  14824. - I2C Interface: Add a definition to distinguish a new START of
  14825. messages from a repeated start. No lower-half I2C drivers actually
  14826. implement this new flag bit, however. In I2C write/read logic use
  14827. new repeated START definition where appropriate. Rename
  14828. I2C_M_NORESTART to I2C_M_NOSTART since it may be used in other
  14829. contexts than a repeated start. Add comments to clarify setup for
  14830. repeated start. From Gregory Nutt.
  14831. - I2C: Add the standard speed macros. From dongjiuzhu.
  14832. - Leds: Add support to MAX7219 to control 7-segment displays. From
  14833. Alan Carvalho de Assis.
  14834. - Power: PM: Add pm_stay and pm_relax function so special apps(e.g.
  14835. mediaplayer) could disable suspend during playback much like linux
  14836. kernel counterpart From Xiang Xiao.
  14837. - Power: PM: Add pm_querystate function From zhuguangqing.
  14838. - Power: PM: Don't update the power state in work thread: (1)
  14839. Simplify the code logic and remove the work queue dependence, (2)
  14840. Power calculation is too simple to delay into the work queue From
  14841. Xiang Xiao.
  14842. - Power: PM: Decrease the power state in the reverse order. Since
  14843. the child driver need power off before parent driver. From
  14844. zhuguangqing.
  14845. - Power: PM: Make power manager service available as soon as
  14846. possible: (1) Initialize g_pmglobals at the definition, (2) skip
  14847. hold the lock if OS isn't ready From Xiang Xiao.
  14848. - Power: PM: Add PM_RESTORE to notify driver that device exit WFI
  14849. so the driver could restore state. For example, WDT may stop
  14850. counting before enter low power state and restore the counting
  14851. again in PM_RESTORE notification From zhuguangqing.
  14852. - Power: PM: Add timer to decrease PM level automatically. From
  14853. ligd.
  14854. - PTYs: Add support so that a PTY can poll for both IN/OUT event
  14855. simultaneously. From ligd.
  14856. - PWM: Move pwm.c into pwm folder From Xiang Xiao.
  14857. - RTC Interface: Extend struct rtc_time by adding. From Xiang
  14858. Xiao. tm_nsec if RTC supports hiresolution time. From Xiang Xiao.
  14859. - Sensors: Add support for Telair T6713 carbon dioxide sensor. From
  14860. Juha Niskanen.
  14861. - Sensors: Add support for LSM303AGR and LSM6DSL sensors From
  14862. DisruptiveNL.
  14863. - Sensors: Add driver for DHTxx sensor. From Ouss4.
  14864. - syslog: Enable a partial, crippled version of syslog_flush();
  14865. Call syslog_flush() from assertion handling logic of all
  14866. architectures. From Gregory Nutt.
  14867. - syslog: Channel configuration. Decouple SYSLOG_SERIAL_CONSOLE and
  14868. ARCH_LOWPUTC. Since some hardware can output log to the special
  14869. debug channel not serial. From anchao.
  14870. - syslog: Support pre-pending a prefix string to log output if
  14871. enabled. This very useful to identify which CPU send out the log
  14872. in AMP SoC. From anchao.
  14873. - Serial: Add Ctrl-C/Ctrl-X support. From ligd.
  14874. - Serial: Support UART direct write for non console device From
  14875. xuanlin.
  14876. - Serial: It is no longer necessary to restrict Ctrl-C handling to
  14877. the FLAT build sched/signal: Add a new configuration option to
  14878. select signal default actions, separate handling of signal default
  14879. actions from both task startup logic and from the serial TTY
  14880. Ctrl-C logic. Add a signal set in the group structure to keep
  14881. track of what signals have been set to the default action. In
  14882. dispatching signals in PROTECTED or KERNEL mode, use this signal
  14883. set to determine if the default signal handler is attached and
  14884. dispatch the signal in kernel mode for the default actions. From
  14885. Gregory Nutt.
  14886. - Serial: Integrate new Ctrl-C logic with the ISIG flag in the
  14887. termios c_lflag. From Gregory Nutt.
  14888. - Serial: Use SIGINT instead of SIGKILL when control-C is pressed.
  14889. From Gregory Nutt.
  14890. - Serial: Add support for Ctrl-Z. This works just like the
  14891. recently added Ctrl-C support except that SIGSTP is sent when the
  14892. Ctrl-Z characters is encountered vs. SIGINT. From Gregory Nutt.
  14893. - 16550 UART: Add a configuration, analogous to the STM32
  14894. configuration option, to suppress the NuttX standard re-ordering
  14895. for /dev/ttySN for special case of the 16550 UART.
  14896. - 16550 UART: Add CONFIG_SERIAL_UART_ARCH_MMIO option so the a
  14897. memory mapped device doesn't need to provide uart_getreg() and
  14898. uart_putreg() implementations.
  14899. - 16550 UART: Add stub implementations of DMA-related methods in the
  14900. 16550 UART v-table. From ligd.
  14901. - 16550 UART: Add serial termios handling From anchao.
  14902. - 16550 UART: Support 16550 auto hardware flow control
  14903. drivers/serial/uart_16550.c: Add configuration option
  14904. CONFIG_16550_SUPRESS_INITIAL_CONFIG. This is identical to the
  14905. standard configuration in arch/Kconfig
  14906. CONFIG_SUPPRESS_UART_CONFIG, but with scope of only the 16550
  14907. driver. From Xiang Xiao.
  14908. - syslog: Make timestamp output same as linux kernel. It's very
  14909. useful if NuttX syslog retarget to Linux syslog. From Xiang Xiao.
  14910. - Timers: Add maxtimeout method to the struct timer_ops_s interface
  14911. From Xiang Xiao.
  14912. - Timers: Add a new method to the struct oneshot_operations_s
  14913. interface to get the current time from a oneshot timer driver (if
  14914. it is available from the lower half) From Xiang Xiao.
  14915. - Timers: Implement timer arch API on top of timer driver. From
  14916. Xiang Xiao.
  14917. - Timers: Implement alarm arch API on top of oneshot driver
  14918. interface. From Xiang Xiao.
  14919. - Timers: Implement RTC arch API on top of RTC driver interface.
  14920. From Xiang Xiao.
  14921. - CDC/ECM: Adds USB device support for CDC/ECM From Michael Jung.
  14922. - USB Host: Add support for the Maxim M3421E USB host driver. Not
  14923. yet fully tested. From Gregory Nutt.
  14924. * General Architecture-Specific:
  14925. - All architectures: Make sure the up_irq_enable() is available on
  14926. all architectures. From Gregory Nutt.
  14927. * Simulation
  14928. - Simulator Configurations: Add dsptest configuration. From Mateusz
  14929. Szafoni.
  14930. - Simulator: In network driver (1) Remove up_comparemac() check for
  14931. matching MAC address. Let's trust that the tap device just return
  14932. the packet which belong to us like other real network device
  14933. hardware. (2) Add network device statistics support. From Xiang Xiao.
  14934. * ARM:
  14935. - ARM (all): Add CONFIG_DEBUG_MEMFAULT to Kconfig. From Masayuki
  14936. Ishikawa.
  14937. - ARM: (1) Add semihost support for syslog, (2) Add semihost support
  14938. for HostFS From Gregory Nutt.
  14939. * ARMv6-M:
  14940. - ARMv6-M: Introduce CONFIG_DEBUG_HARDFAULT_INFO to up_hardfault.c
  14941. From Masayuki Ishikawa.
  14942. * ARMv7-M:
  14943. - ARMv7-M: Removes support for the dedicated vector handling from the
  14944. many older architectures. Only common vectors are now supported.
  14945. From Gregory Nutt.
  14946. - ARMv7-M: Introduce CONFIG_DEBUG_HARDFAULT_INFO to up_hardfault.c
  14947. From Masayuki Ishikawa.
  14948. - ARMv7-M: Implement SYSTICK timer driver From Xiang Xiao.
  14949. - Simulator: Add loadable demo for arch sim. From anchao.
  14950. - ARMv7-M: Add logic to trigger ARMv7-M interrupts and exceptions.
  14951. From Gregory Nutt (from sample logic by Xiang Xiao).
  14952. - ARMv7-M: Add NVIC definitions needed by up_trigger_irq(). From
  14953. Gregory Nutt.
  14954. * ARMv7-R:
  14955. - ARMv7-R: Add general interrupt controller. This is based on
  14956. ARMv7-A gic controller code. From EunBong Song.
  14957. - ARMv7-R: Add invalidate dcache in arm_head.S. From EunBong Song.
  14958. * Infineon XMC4xxx Drivers:
  14959. - XMC4 GPIO: Add a specific bit encoding to GPIO driver for
  14960. opendrain GPIO pin. From Alan Carvalho de Assis.
  14961. * Infineon XMC4xxx Boards:
  14962. - XMC4500-Relax: Add support to MAX6675 on XMC4500-Relax board.
  14963. From Alan Carvalho de Assis.
  14964. * Microchip PIC32MX Boards;
  14965. - PIC32MX: Update some PIC32MX configurations so that either the
  14966. MPLAB or Penguino toolchains may be used. From Gregory Nutt.
  14967. * Microchip/Atmel SAMD2x/L2x:
  14968. - SAMD2x/L2x: Rename all usage of samdl/SAMDL to samd2l2/SAMD2L2 to
  14969. make room in the name space for samd5e5/SAMD5E5 From Gregory Nutt.
  14970. * Microchip/Atmel SAMD5x/E5x:
  14971. - SAMD5x/E5: Add a port to the SAMD5x/E5x MCU family. From Gregory
  14972. Nutt.
  14973. * Microchip/Atmel SAMD5x/E5x Drivers:
  14974. - SAMD5x/E5x SPI/I2C: Bring in untested SPI and I2C drivers from
  14975. SAMD2L2. From Gregory Nutt.
  14976. - SAMD5x/E5x DMA: Leverage the SAMD2L2 DMA controller. From Gregory
  14977. Nutt.
  14978. - SAMD5x/E5x USB: Bring the SAMDL2 USB driver into the SAMD5E5
  14979. port. From Gregory Nutt.
  14980. * Microchip/Atmel SAMD5x/E5x Boards:
  14981. - Metro M4: Add support for the Adafruit Metro M4 board. From
  14982. Gregory Nutt.
  14983. - Metro M4: Add an option to build the Metro M4 image to run out of
  14984. SRAM. This ought to be a safer and quicker way to do the initial
  14985. bring-up (having bricked the first Metro M4 due to a bad FLASH
  14986. image). From Gregory Nutt.
  14987. - Metro M4: Add a configuration option to use OSCULP32K instead of
  14988. XOSC32K. From Gregory Nutt.
  14989. - Metro M4: After some final fixes related to the SERCOM console,
  14990. the basic NSH configuration appears fully functional. From
  14991. Gregory Nutt.
  14992. - Metro M4: Verify the CMCC and enable it by default in the NSH
  14993. configuration. From Gregory Nutt.
  14994. * Microchip/Atmel SAMv7 Drivers:
  14995. - SAMv7 CAN: Add ability for CAN BUS_OFF autorecovery according
  14996. ISO11898-1:2015. With this change we added an ioctl for triggering
  14997. the autorecovery sequence for BUS_OFF to the CAN-driver and the
  14998. SAMV7 low-level driver. According the datasheet: If the device
  14999. goes Bus_Off, it will set MCAN_CCCR.INIT of its own accord,
  15000. stopping all bus activities. Once MCAN_CCCR.INIT has been cleared
  15001. by the processor (application), the device will then wait for 129
  15002. occurrences of Bus Idle (129 * 11 consecutive recessive bits)
  15003. before resuming normal operation. At the end of the Bus_Off
  15004. recovery sequence, the Error Management Counters will be reset.
  15005. During the waiting time after the resetting of MCAN_CCCR.INIT, each
  15006. time a sequence of 11 recessive bits has been monitored, a Bit0
  15007. Error code is written to MCAN_PSR.LEC, enabling the processor to
  15008. readily check up whether the CAN bus is stuck at dominant or
  15009. continuously disturbed and to monitor the Bus_Off recovery
  15010. sequence. MCAN_ECR.REC is used to count these sequences. From
  15011. Frank Benkert.
  15012. * NXP Freescale i.MX RT Drivers:
  15013. - i.MXRT RTC: Add support for the i.MXRT RTC. This is code complete
  15014. (with limited features and options) but untested. The HPRTC is
  15015. functional. However, if the LPSRTC is enabled, then there is a
  15016. hang during LPSRTC initialization. It appears that there is some
  15017. problem in providing clocking and initializing the LPSRTC domain.
  15018. From Gregory Nutt.
  15019. - i.MXRT SNVS: Add trivial SNVS from Rev 1. of the Reference Manual.
  15020. From Gregory Nutt.
  15021. - i.MXRT LSPI: IMXRT1050 LPSPI register and bit definitions added.
  15022. From Ivan Ucherdzhiev.
  15023. - i.MXRT Serial: IMXRT1050 LPUART TERMIOS support added. From Ivan
  15024. Ucherdzhiev.
  15025. * NXP Freescale i.MX RT Boards:
  15026. - IMXRT1050-EVK: Add knsh configuration. PROTECTED mode NSH build.
  15027. From Gregory Nutt.
  15028. * NXP Freescale Kinetis:
  15029. - Kinetis: Add DMA support. From David Sidrane.
  15030. * NXP Freescale Kinetis Drivers:
  15031. - Kinetis: Use circular DMA as an option to augment the RX FIFOs in
  15032. the Serial driver. From David Sidrane.
  15033. * NXP LPC54xx:
  15034. - LPC54xx: The LPC54608 can only run at a maximum frequency of
  15035. 180Mhz. This configuration requires uses the clk_in, external
  15036. crystal clock, to drive the PLL. When that input was selected, the
  15037. board bootup failed waiting for the PLL to lock. After referring
  15038. the driver from NXP, we should turn on power sources for the ext
  15039. clock if system pll input select clk_in. NOTE that the LPC54628
  15040. did not require this step... perhaps because the system oscillator
  15041. power was already enabled. From kxjiang.
  15042. - LC823450: Add support for mpu and userspace LC823450-XGEVK: Add
  15043. kostest PROTECTED build LC823450-XGEVK: Add knsh PROTECTED build
  15044. From Masayuki Ishikawa.
  15045. * NXP LPC54xx Boards:
  15046. - Lpcxpresso-LPC54628: Update lvgl board config to use the new
  15047. version From Alan Carvalho de Assis.
  15048. * On Semi LPC23450 Drivers:
  15049. - LC823450 Bluetooth: Add lc823450 Bluetooth support. From Masayuki
  15050. Ishikawa.
  15051. - LC823450 I2S: Add tx start threshold to lc823450_i2s.c In
  15052. addition, lc823450_i2s_send() now accepts byte-aligned stream.
  15053. From Masayuki Ishikawa.
  15054. - LC823450 SPI: Add SPI flash driver for lc823450. NOTE: Only bus
  15055. accelerator mode is supported. From Masayuki Ishikawa.
  15056. - LC823450: Change C-Buffer under-level control. The under-level
  15057. setting was changed from 1KB to 55KB. In previous implementation,
  15058. the setting can be changed by the tx threshold but it is fixed at
  15059. startup. Also, check write size and adjust alignment if needed.
  15060. From Masayuki Ishikawa.
  15061. * On Semi LPC23450 Boards:
  15062. - LC823450-XGEVK: Add loopback test for digital MIC on lc823450 via
  15063. i2schar driver. From Masayuki Ishikawa.
  15064. - LC823450-XGEVK: Add lc832450 elf test. From Masayuki Ishikawa.
  15065. - LC823450-XGEVK: Add posix_spawn configuration From Masayuki
  15066. Ishikawa.
  15067. * STMicro STM32:
  15068. - STM32 L4: Add initial support to STM32L4+ chips From Juha Niskanen.
  15069. - STM32 H7: A partial port to the STMicro STM32H7 by Simon Laube was
  15070. brought in from the PX4 repositories. Numerous changes were
  15071. make(by Mateusz Szafone). The basic STM32 H7 NSH configuration is
  15072. now functional, thanks to Mateusz Szafoni.
  15073. * STMicro STM32 Drivers:
  15074. - STM32 F0, F1-F4, F7, L4, H7: Added Single Wire Kconfig variable.
  15075. From David Sidrane.
  15076. - STM32 DAC: Set OUTEN bit for DAC1CH2 and DAC2CH1 power/motor.
  15077. Direction parameter is now int8 + add overload fault. From Mateusz
  15078. Szafoni.
  15079. - STM32 F1-F4 ADC: Allow multiple channels without DMA on
  15080. STM32L15XX. From Juha Niskanen.
  15081. - STM32 F1: Add FLASH register definitions for F1 parts that have
  15082. dual banked FLASH. From Dmitriy Linikov.
  15083. - STM32 F2: Added progmem interface support for STM32 F2 From
  15084. Dmitriy Linikov.
  15085. - STM32 F4: Ports STM32 LTDC and STM32 DMA2D to use the
  15086. framebuffer interface From Marco Krahl.
  15087. - STM32 F7: This change ports Marco Krahl's STM32F4 framebuffer
  15088. overlays for the LTDC and DMA2D into the STM32F7. That driver was
  15089. same as the STM32 F4 driver. From Gregory Nutt.
  15090. - STM32 F7: Port input capture from stm32. From Juha Niskanen.
  15091. - STM32 F7 FLASH: Ported the STM32 F2/F4 driver to the STM32 F7
  15092. platform. From Evgeniy Bobkov.
  15093. - STM32 F7 SDMMC: Add SDIO card support to SDMMC driver. From
  15094. Ramtin Amin.
  15095. - STM32 F7 Serial: Previous logic would invalidate the data cache as
  15096. each byte was read from the DMA buffer. This change adds logic to
  15097. invalidate the data cache less frequently by monitoring the state
  15098. of the Rx DMA buffer cache coherency and invalidating only regions
  15099. as necessary. From Evgeniy Bobkov.
  15100. - STM32 F7: Add up_stackcheck.c From Daniel Agar.
  15101. - STM32 F7: Port the low-level PM functions to STM32 F7. From Juha
  15102. Niskanen.
  15103. - STM32 L4: STM32L4 has fetchadd and testset From Juha Niskanen.
  15104. - STM32 L4: Added custom pin mapping for STM32L4X2XX processors.
  15105. From Daniel P. Carvalho.
  15106. - STM32 L4 FLASH: stm32l4xrxx: allow board to override flash wait
  15107. states From Juha Niskanen.
  15108. - STM32 L4: Some updates to analog peripherals ADC, COMP and DFSDM
  15109. for STM32L4XR From Juha Niskanen.
  15110. - STM32 L4: Add getstatus and getperiod() method to the timer
  15111. driver (includes coding standard changes made prior to commit)
  15112. From Goden Freemans.
  15113. - STM32 H7: Remove old references to RXDMA. Add configuration
  15114. - STM32 H7: Remove old references to RXDMA. Add configuration
  15115. option to select the Rx FIFO threshold level. From Gregory Nutt.
  15116. * STMicro STM32 Boards:
  15117. - STM32F103 Minimum: Add blackpill LED support From Russ Webber.
  15118. - Viewtool-STM32F107: Add a TCP performance test using
  15119. apps/examples/tcpblaster. From Gregory Nutt.
  15120. - Viewtool-STM32F107: Add support for the MAX3421E to the
  15121. Viewtool-STM32F107 board support From Gregory Nutt.
  15122. - STM32F334-DISCO: Use a PID controller from libdsp in the BuckBoost
  15123. driver. From Mateusz Szafoni.
  15124. - STM32F4-Discovery: Remove STM32F4BB dependence from RNDIS; add
  15125. RAMDISK support. From Alan Carvalho de Assis.
  15126. - STM32F4-Discovery Add board support for MAX7219 as numeric display
  15127. controller. From Alan Carvalho de Assis.
  15128. - Olimex-STM32-P407: Add kernel ELF (kelf) configuration. From
  15129. Gregory Nutt.
  15130. - Olimex-STM32-P407: Add a kmodule configuration that can be used
  15131. for testing installation of kernel modules in the protected build.
  15132. From Gregory Nutt.
  15133. - Olimex-STM32-P407: Add logic to support initialization of the
  15134. kernel module symbol table installed in the pass1/ directory during
  15135. the application phase of the build. The kmodule configuration
  15136. appears to be fully functional. From Gregory Nutt.
  15137. - Olimex-STM32-P407: Add board support for the DHTxx sensor. From
  15138. Ouss4.
  15139. - STM32F476G-DISCO: Add support for STM32F746G-disco board LCD.
  15140. From Marcin Wyrwas.
  15141. - STM32F476G-DISCO: Add a configuration to build working nxdemo
  15142. application From Fanda.
  15143. - STM32F476G-DISCO: Add support for STM32F746G-disco board SDRAM
  15144. Changed fb config to use SDRAM. From Marcin Wyrwas.
  15145. - STM32F476G-DISCO: Add touchscreen support and a LittlevGL demo for
  15146. STM32F746G-DISCO From Marcin Wyrwas.
  15147. - Nucleo-L476RG: Add support for an external SPI-driven SD card on
  15148. the Nucleo-L476RG. From Gregory Nutt.
  15149. - Nucleo-L476RG: Add support for LSM303AGR and LSM6DSL sensors From
  15150. DisruptiveNL.
  15151. - Nucleo-H743ZI: Use Nucleo Virtual console as default console in
  15152. the NSH configuration From Mateusz Szafoni.
  15153. - STM32L4R9-DISCO: Add stm32l4r9ai-disco support. From Juha Niskanen.
  15154. - B-L475E-IOT01A: Add timer driver support. From Goden Freemans.
  15155. * Libraries/Header Files:
  15156. - libc endian: Add support for endian.h. From Gregory Nutt.
  15157. - libc net: Add inet_aton() From Juha Niskanen.
  15158. - libc netdb: Add getaddrinfo() and friends. From Juha Niskanen.
  15159. - libc termios: Add lib_cfmakeraw.c From Masayuki Ishikawa.
  15160. - libc stdlib: Add implementation of random() and srandom(). From
  15161. Gregory Nutt.
  15162. - libc unistd: Add a crippled version of daemon(). From Gregory Nutt.
  15163. - libdsp: All floats with f-sufix libdsp: (1) add precision option
  15164. for library, (2) add debug option for library and assertions in
  15165. functions, (3) add current samples correction for SVM3, (4) add
  15166. some motor control specific functions, (5) add basic speed
  15167. observer, (6) fix phase shift in SMO observe, (7) add more logic to
  15168. FOC. From Mateusz Szafoni.
  15169. - include/nuttx/compiler.h, include/poll.h: Add logic to determine
  15170. if the compiler supports anonymous structures and unions. From
  15171. Gregory Nutt.
  15172. - include/nuttx/mutex.h: Add inline wrapper functions to more
  15173. clearly support semaphores when used as mutexs. From QianWenfa.
  15174. - include/nuttx/nuttx.h: Added nuttx.h header file which is
  15175. analogous to the linux.h header file. Currently, it contains on
  15176. the definition of the container_of() macro. From zhuyanlin.
  15177. - include/queue.h: Add dq_tail marco From zhuguangqing.
  15178. - include/stdio.h: Add prototypes for popen() and pclose(). Actual
  15179. implementation is in apps/system/popen() From Gregory Nutt.
  15180. - include/sys/param.h: Add a dummy sys/param.h header file. This is
  15181. not a standard file but is used by other systems and having the
  15182. dummy file may minimize some porting efforts. From Gregory Nutt.
  15183. * Tools:
  15184. - nuttx/tools/kconfig2html.c: Due to new usage, tool needs to be
  15185. able to handle configuration files with names other than Kconfig.
  15186. From Gregory Nutt.
  15187. - nuttx/tools/kconfig2html.c: Update tool to handle tristate types.
  15188. From Gregory Nutt.
  15189. - nuttx/tools/Config.mk: Add function CATFILE definition. Currently
  15190. only used in apps/builtin/Makefile. From Gregory Nutt.
  15191. - nuttx/tools/Config.mk: Add the recursive wildcard function,
  15192. RWILDCARD, to Config.mk. From Gregory Nutt.
  15193. - nuttx/tools/testbuild.sh: Add an option to specify the location of
  15194. nuttx directory. From Gregory Nutt.
  15195. - nuttx/tools/refresh.sh: Add a --prompt option that will let you
  15196. use --silent but will prompt before overwriting the original
  15197. defconfig. From Gregory Nutt.
  15198. - nuttx/tools/link.sh. Update link.sh per suggestions by Mark so
  15199. that it can be used with MSYS vs copydir.sh. From Gregory Nutt.
  15200. - nuttx/tools/mkexport.sh: Save the System.map file and User.map
  15201. file (if it exists) in the export package so that it can be used to
  15202. extract addresses. From Gregory Nutt.
  15203. - nuttx/tools/mkexport.sh: Save the name of the STRIP tool too. From
  15204. Gregory Nutt.
  15205. - nuttx/tools/nxstyle.c: Add capability to detect multiple blank
  15206. lines. Single spacing required by the coding standard. Also coding
  15207. standard fixes to server .c files for problems found during testing
  15208. nxstyle. From Gregory Nutt.
  15209. - apps/tools: Add +x to mksymtab.sh. From Masayuki Ishikawa.
  15210. - apps/tools/define.sh and define.bat: Move a copy of define.bat
  15211. and sh from nuttx/tools to apps/tools so that they will be
  15212. available for the import build. From Gregory Nutt.
  15213. * Build System:
  15214. - Apps/ Build System. The apps/ build system has undergone a major
  15215. renovation to better support building applications as ELF modules.
  15216. Module selections have changed from 'bool' to 'tristate' types.
  15217. This means that building an ELF now is as simple setting the value
  15218. to 'm'. This effort required many changes, too many to summarize
  15219. here. The solution was contributed by Masayuki Ishikawa, Anchao
  15220. An, and Xiang Xiao (and myself to a lesser extent).
  15221. - NuttX/ Build System: This change extends support for the two-pass
  15222. build. Its primary purpose is to incorporate source logic
  15223. generated by applications into the kernel phase of the build.
  15224. In the two pass build, the application logic is built during the
  15225. first phase, pass 1. In that phase, the application may generate
  15226. and install source files in the pass1/directory. The operating
  15227. system is built during phase 2 of the build. At that time, those
  15228. source files in the pass1/ directory will be built and incorporated
  15229. into the kernel address space.
  15230. The primary purpose of the pass1/ directory is to such
  15231. application-generated kernel symbol tables. For an example of the
  15232. use of this feature, look at
  15233. apps/examples/module/drivers/Makefile. Kernel symbol tables are
  15234. needed to support kernel modules. Of course, addition
  15235. board-specific logic in, say, configs/<board>/src would have to be
  15236. included to make use of the application-installed symbol tables.
  15237. From Gregory Nutt.
  15238. - Remove CONFIG_ARCH_CALIBRATION. It is awkward to use and no longer
  15239. necessary now that we have apps/examples/calib_udelay. From
  15240. Gregory Nutt.
  15241. - Build System: With recent changes to apps/ all configurations that
  15242. build applications as modules must now also select
  15243. CONFIG_APPS_LOADABLE. From anchao.
  15244. - Build System: Add dynamic application loadable support. From
  15245. anchao.
  15246. - Build System: Add configuration CONFIG_ARCH_GNU_NO_WEAKFUNCTIONS
  15247. to suppress use of weak functions. Some gnu derived toolchains do
  15248. not support weak symbols. From Xiang Xiao.
  15249. - Kconfig: Move 'option modules' from NSH_FILE_APPS to
  15250. BUILD_LOADABLE From anchao.
  15251. - apps/ Build System: Introduce a build system for loadable apps
  15252. for nsh. Add 'option modules' to NSH_FILE_APPS so that a user can
  15253. change an application configuration to tristate (y/n/m)
  15254. - apps/import: Add Makefile.symtab which can be used to compile the
  15255. dynamically created symbol table C file. Also adds
  15256. tools/mksymtab.sh. From Gregory Nutt.
  15257. * NSH: apps/nshlib:
  15258. - apps/nshlib: Add parsing support for back-slash quoted
  15259. characters. Currently only implemented properly if
  15260. CONFIG_NSH_ARGCAT is also selected. This commit is in response to
  15261. Bitbucket Issue 11 opened by Maciej Wójcik From Gregory Nutt.
  15262. - apps/nshlib: Add inverted logic support in the form of 'if !
  15263. <cmd>' From Beat Küng.
  15264. - apps/nshlib: Expand reboot and poweroff commands to include a
  15265. second, optional mode argument From ligd.
  15266. - apps/nshlib: Add a force flag (-f) to mksmartfs command. SmartFS
  15267. will be formatted only if (1) the FLASH does not already hold a
  15268. SmartFS, or (2) the force flag is set. From Xiang Xiao.
  15269. - apps/nshlib: NSH prompt string is now configurable. nsh> is
  15270. still the default. From Xiang Xiao.
  15271. - apps/nshlib: Add control-C support for terminating built-in and
  15272. exec'ed file tasks. From ligd.
  15273. - apps/nshlib: Call BOARDIOC_FINALINIT after start-up script (or
  15274. immediately after BOARIOC_INIT is there is no start-up script).
  15275. From ligd.
  15276. - apps/nshlib: When using waitpid() to wait for a built-in
  15277. application or a file application to exit. Add the WUNTRACED
  15278. options to so the the waitpid() call will also be awakened if the
  15279. waited-for task is stopped as well. From Gregory Nutt.
  15280. * NSH Builtins: apps/builtin:
  15281. - apps/builtin/Makefile. This commit changes apps/builtin to search
  15282. the registry recursively. By supporting directories, external
  15283. projects can install the hooks into the registry and easily clean
  15284. them up and reinstall if something needs to be updated. Based on
  15285. an idea from Anthony Merlino. From Gregory Nutt.
  15286. * Examples/Tests: apps/examples:
  15287. - apps/examples/calib_udelay: Add tool for calibrating
  15288. CONFIG_BOARD_LOOPSPERMSEC From Juha Niskanen.
  15289. - apps/examples/dhtxx: Example for the DHTxx sensor. From Ouss4.
  15290. - apps/examples/dsptest: Add unit test for Nuttx DSP library From
  15291. Mateusz Szafoni.
  15292. - apps/examples/elf: CROMFS and ROMFS configuration currently only
  15293. usable in FLAT build. Add configuration to use ELF objects on
  15294. external media like SD card or USB drive instead. From Gregory
  15295. Nutt.
  15296. - apps/examples/elf: If the test ELF files are on media in
  15297. removable media such as SD or USB FLASH, the wait until the media
  15298. has been installed and initialized before starting the test. From
  15299. Gregory Nutt.
  15300. - apps/examples/fb: Adds example to test framebuffer overlay From
  15301. Marco Krahl.
  15302. - apps/examples/gps: Add GPS example using MINMEA lib From Alan
  15303. Carvalho de Assis.
  15304. - apps/examples/i2sloop: Add i2sloop application. This application
  15305. can be used to test I2S loopback like: ' nsh> i2sloop &'. From
  15306. Masayuki Ishikawa.
  15307. - apps/examples/lvgldemo: Update LVGL to version 5.1.1 From Alan
  15308. Carvalho de Assis.
  15309. - apps/examples/module: Add support for CROMFS and for stripping
  15310. symbols from ELF module binaries. From Gregory Nutt.
  15311. - apps/examples/module: Add support for automounting removable media.
  15312. This involves a wait for the block driver to become available
  15313. before performing the mount. From Gregory Nutt.
  15314. - apps/examples/module: When built in the PROTECTED or KERNEL
  15315. modes, the symbol table is not built by the application. That is
  15316. because the build will fail since the kernel module depends on
  15317. internal OS symbols thar are not available to the application
  15318. build. With this change the examples does not attempt to build
  15319. the kernel symbol table in these modes. Instead it just copies
  15320. the kernel module symbol table into the nuttx/pass1 directory
  15321. where it can be build directly into the OS during pass2 of the
  15322. build. From Gregory Nutt.
  15323. - apps/examples/ostest: Add a small test for SIGSTOP, SIGCONT, and
  15324. SIGKILL actions. From Gregory Nutt.
  15325. - apps/examples/popen: Add a test of popen/pclose. From Gregory
  15326. Nutt.
  15327. - apps/examples/powerled: Add arch initialization. From Mateusz
  15328. Szafoni.
  15329. - apps/examples/tcpblaster: Add TCP performance measurement test.
  15330. From Gregory Nutt.
  15331. * System Utilities: apps/system
  15332. - apps/system/cle: Usage improvements including command line
  15333. history (taken from readline) and support for addition control
  15334. characters. From mst.
  15335. - apps/system/i2c: Adapt to rename I2C_M_RESTART->i2C_M_START.
  15336. I2C_M_NOSTOP should be in flags of first message in every
  15337. write-read and write-write mesage sequence. From Gregory Nutt.
  15338. - apps/system/i2c: Allow registers besides 0x00 in the dev command.
  15339. From Jakob Haufe.
  15340. - apps/system/nsh: Add logic to automatically register an
  15341. application symbol table as part of NSH initialization. From
  15342. Masayuki Ishikawa.
  15343. - apps/system/nsh: The symbol table name and size variable names
  15344. can now be configured. From Gregory Nutt.
  15345. - apps/system/nsh: Move apps/examples/nsh to apps/system/nsh. It
  15346. has become so entrenched that it is hardly an example these days.
  15347. May as well formalized it as a system task. From Gregory Nutt.
  15348. - apps/system/nxplayer: Refactor nxplayer.c. Apply
  15349. netlib_parsehttpurl() and
  15350. remove unnecessary usleep(). From Masayuki Ishikawa.
  15351. - apps/system/nxplayer: Release buffer before session and release
  15352. semaphore in nxplayer_setvolume system/nxplayer/nxplayer.c:
  15353. Remove & for apb->samp reference. It is already a pointer. From Xiang Xiao.
  15354. - system/nxplayer/nxplayer.c: Add playraw command From ZhongAn.
  15355. - apps/system/nxrecorder: Add nxrecorder application From ZhongAn.
  15356. - apps/system/popen: Add an implementation of the standard popen()
  15357. and pclose() OS interfaces. These are implemented as applications
  15358. vs. part of the OS because they depend on NSH. Untested on
  15359. initial commit. From Gregory Nutt.
  15360. - apps/system/system and popen: Adapt so that these can be used in
  15361. the KERNEL build mode. In this case, simply replace task_spawn()
  15362. with posix_spawn(). This depends on the existence of some
  15363. environment where /bin/sh exists and can be used to execute one
  15364. NSH command. For the case of system(), this change was more
  15365. complete because it previously used task_create(). Now it uses
  15366. either task_spawn() or posix_spawn(), depending upon the
  15367. configuration. From Gregory Nutt.
  15368. - apps/system/taskset: Add taskset command for SMP systems. This
  15369. command can be used to retrieve or set a process's CPU affinity.
  15370. For example,
  15371. nsh> taskset -p 4
  15372. pid 4's current affinity mask: 2
  15373. nsh> taskset -p 3 4
  15374. pid 4's current affinity mask: 3
  15375. nsh> taskset -p 1 busyloop &
  15376. From Masayuki Ishikawa.
  15377. - apps/system/zmodem: Support -p <path> for rz to change the folder
  15378. for the received file. Switch debug output from printf to
  15379. syslog. Send the next packet for ZME_ACK in ZMS_SENDING to avoid
  15380. rz on the host side stuck make send work reliable even without
  15381. hardware flow control. From Xiang Xiao.
  15382. * Network Utilities: apps/netutils:
  15383. - apps/netutils/dhcpc: Activates BINDTODEVICE if available. From
  15384. Sebastien Lorquet.
  15385. * Wireless Utilities: apps/wireless:
  15386. - apps/wireless/i8sak: i8sak daemon now gets shutdown if not in use.
  15387. Previously, once the i8sak daemon was started, by running any
  15388. command, it would stay running. This means that if you want to use
  15389. i8sak to setup your network, but then want exclusive access to the
  15390. char device, or network device, you have to manually shutdown the
  15391. i8sak daemon. Now the daemon stays active as long as required to
  15392. finish any commands, or stays open if a new command keeps it on,
  15393. but when all work is finished, it shuts down. From Anthony Merlino.
  15394. * Filesystem Utilities: apps/fsutils:
  15395. - mkfatfs: Clean up some name BS_ and MBR_ refer to the same record
  15396. and should use the same naming (MBR_). From Gregory Nutt.
  15397. - mkfatfs: Add definitions for the FAT boot record (FBR). From
  15398. Gregory Nutt.
  15399. - mksmartfs: Add a check to see if the SmartFS is already
  15400. formatted. From Xiang Xiao.
  15401. * Graphic Utilities: apps/graphics:
  15402. - graphics/littlevg/: Update LVGL to version 5.1.1 From Alan
  15403. Carvalho de Assis.
  15404. * Test Utilities: apps/testing:
  15405. - testing/unity: add Unity - unit testing library from
  15406. ThrowTheSwitch.org. From Mateusz Szafoni.
  15407. Bugfixes. Only the most critical bugfixes are listed here (see the
  15408. ChangeLog for the complete list of bugfixes and for additional, more
  15409. detailed bugfix information):
  15410. * Core OS:
  15411. - Signals: Signal handlers maybe run with interrupts enabled or
  15412. disabled, depending on how the task the received the signal was
  15413. blocked. (i.e.: If sem_wait() is called, then we disable
  15414. interrupts, then block the currently running task). This could be
  15415. dangerous, because user code would be running with interrupts
  15416. disabled.
  15417. This change forces interrupts to be enabled in up_sigdeliver()
  15418. before executing the signal handler calling up_irq_enable()
  15419. explicitly. This is safe because, when we return to normal
  15420. execution, interrupts will be restored to their previous state when
  15421. the signal handler returns. From Gregory Nutt (Based on a
  15422. recommendation by Mark Shulte).
  15423. - Signals: Lock the scheduler while while killing the children so
  15424. that we do not lose priority and let the task group continue to
  15425. run in an indeterminate state. From Gregory Nutt.
  15426. - Groups: Fix a deadlock when loading an ELF From Masayuki Ishikawa.
  15427. - Groups: In some circumstances, group_killchildren() could have
  15428. called pthread_cancel() to kill a task. Also, the behavior would
  15429. not be as expected if a pthread had cancellation disabled. From Gregory Nutt.
  15430. - Posix Message Queues: mq_notify() fix - only part of struct copied
  15431. to internal structure. As source address the address of the struct
  15432. member sigev_value was used, and it is not located the start of the
  15433. struct. This leads to invalid data being copied to internal
  15434. structure. Both source and destination should be of type struct
  15435. sigevent* . From Simon Liedl.
  15436. - vfork(): vfork operation needs to allocate and copy the task
  15437. argument too. Also correction of the address correction cannot
  15438. depend on the stack pointer since it is not available in all
  15439. architectures. Rather calculate the offset from the stack
  15440. allocation pointer From Xiang Xiao.
  15441. - IRQ Dispatch: Ensure vector never points to NULL since interrupt
  15442. may happen before irq_initialize() From Xiang Xiao.
  15443. - Work Queue: workqueues don't need set global data to zero since
  15444. .bss is cleared automatically. Removing this unnecessary
  15445. initialization also avoids the loss the work items queued before
  15446. initialization. From ligd.
  15447. - Work Queue: Remove work queue polling delay to simplify the code
  15448. logic and save the power. From xuanlin.
  15449. - syslog: Fix syslog crash on 64bit simulation. From anchao.
  15450. - Pipes: Write to a pipe when there are no readers from the pipe
  15451. should return -EPIPE. From ligd.
  15452. - System Calls: Fix 6th parameter type of posix_spawnp in
  15453. syscall.csv From Masayuki Ishikawa.
  15454. - System Calls: Remove unused SYS_nnetsocket from syscall.h. Because
  15455. SYS_nnetsocket is not implemented so far, it should be removed so
  15456. that SYS_prctl can work correctly. From Masayuki Ishikawa.
  15457. - Binary Loader: Refactor binfmt_exec.c. This change also fixes an
  15458. argv issue for CONFIG_SCHED_ONEXIT=n or CONFIG_SCHED_HAVE_PARENT=n
  15459. From Masayuki Ishikawa.
  15460. - Binary Loader: Re-architect the way that loadable ELF or NXFLAT
  15461. modules are unloaded. Memory resources must be recovered when the
  15462. task loaded into memory exits. The original implementation used
  15463. the death-of-child SIGCHLD signal to perform the unload. There are
  15464. several problems with this: It is overly complex, it requires that
  15465. the parent task stay resident while the loaded task runs, and it
  15466. has fatal logic flaws in the protected and kernel model builds
  15467. because the user signal handler attempts to run in the kernel
  15468. address space. This corrects the issue using a mindlessly simply
  15469. BINFMT callback when the task exits. From Gregory Nutt.
  15470. - ELF Binary Loader: Set priority level to default if parent has no
  15471. priority. From anchao.
  15472. * File System/Block and MTD Drivers:
  15473. - Auto-mounter: Ignore return values from work_cancel(). From
  15474. Gregory Nutt.
  15475. - SmartFS: Fixed filesystem corruption when writing to small file
  15476. after open(... O_APPEND). From Dmitriy Linikov.
  15477. - SmartFS stat(): A previous change added support for checking if a
  15478. descriptor is a socket in fstat().' but it changed sys/stat.h in
  15479. way that breaks smartfs file-type stat flags. CROMFS is similarly
  15480. broken, as tools/gencromfs.c was not updated to match the
  15481. sys/stat.h changes. This commit fixes both issues. It probably is
  15482. not a good idea to use NuttX sys/stat.h bit-field values directly
  15483. in stored structure of filesystem. From Jussi Kivilinna.
  15484. - HostFS: Update duplicated definitions in HOSTFS that must match
  15485. NuttX values. From ligd.
  15486. - HostFS: Ensure f_type is equal to HOSTFS_MAGIC. From Xiang Xiao.
  15487. - ROMFS: Make romfs_devread32 more portable From anchao.
  15488. - TmpFS: Correct logic in tmpfs_ioctl() that extracts the priv state
  15489. structure from the file system structures. It was not getting the
  15490. right value and causing mmap() to fail. Noted by Jesse. From
  15491. Gregory Nutt.
  15492. - ProcFS network statistics: Was not handling the output correct for
  15493. the case of an IEEE 802.11 device. From Gregory Nutt.
  15494. - ProcFS IRQs: Fix occasional computation error when fracpart >=
  15495. 1000 From Xiang Xiao.
  15496. * Networking/Network Drivers:
  15497. - TAP/TUN: Fixed custom tun devname formatting. From Dmitriy Linikov.
  15498. - Network Drivers: This change attempts remove some long standard
  15499. confusion in naming and some actual problems that result from the
  15500. naming confusion. The basic problem is the standard MTU does not
  15501. include the size of the Ethernet header. For clarity, I changed
  15502. the naming of most things called MTU to PKTSIZE. For example,
  15503. CONFIG_NET_ETH_MTU is now CONFIG_NET_ETH_PKTSIZE. This makes the
  15504. user interface a little hostile. People think of an MTU of 1500
  15505. bytes, but the corresponding packet is really 1514 bytes (including
  15506. the 14 byte Ethernet header). A more friendly solution would
  15507. configure the MTU (as before), but then derive the packet buffer
  15508. size by adding the MAC header length. Instead, we define the
  15509. packet buffer size then derive the MTU.
  15510. The MTU is not common currency in networking. On the wire, the
  15511. only real issue is the MSS which is derived from MTU by subtracting
  15512. the IP header and TCP header sizes (for the case of TCP). Now it
  15513. is derived for the PKTSIZE by subtracting the IP header, the TCP
  15514. header, and the MAC header sizes. So we should be all good and
  15515. without the recurring 14 byte error in MTU's and MSS's. From
  15516. Gregory Nutt.
  15517. - netdev: Fix.. Too many calls to net_unlock() From Gregory Nutt.
  15518. - IPv6: There are many different checks for IPv6 multicast
  15519. addresses. Most of the checks are different. RFC 3513 clearly
  15520. specifies how to detect an IPv6 multicast address: they should
  15521. begin with 0xffxx. I did not change some of the checks in
  15522. ipv6_input.c, however. In that file, the comments indicate that
  15523. the code should only pick of certain multicast address that begin
  15524. with 0xff02. From Gregory Nutt.
  15525. - ARP: Fix some backward logic in an if condition. From Gregory
  15526. Nutt.
  15527. - TCP Re-assembly: Rename CONFIG_TCP_REASSEMBLY to
  15528. CONFIG_IPv4_REASSEMBLY. Add some fixes to get a clean compile with
  15529. CONFIG_IPv4_REASSEMBLY enabled. There are several problems with
  15530. the current implementation: It is untested (and depends on
  15531. CONFIG_EXPERMIMENTAL). It uses some Ethernet specific definitions
  15532. (and depends on CONFIG_NET_ETHERNET). There is only a single
  15533. reassembly buffer. The last two issues prevent use of this feature
  15534. in any context where IPv4 packets may be reassembled for multiple
  15535. network devices concurrently). From Gregory Nutt.
  15536. - TCP: Set the default TCP MSS to the value required by RFC 879 and
  15537. never change it under any circumstance unless the remote host
  15538. requests a larger MSS via an option the TCP header. From Gregory
  15539. Nutt.
  15540. - TCP: Fix a deadlock condition that can occur when (1) all network
  15541. logic runs on a single work queue, (1) TCP write buffering is
  15542. enabled, and (2) we run out of IOBs. In this case, the TCP write
  15543. buffering logic was blocking on iob_alloc() with the network
  15544. locked. Since the network was locked, the device driver polls that
  15545. would provide take the write buffer data and release the IOBs could
  15546. not execute. This fixes the problem by unlocking the network lock
  15547. while waiting for the IOBs. From Gregory Nutt.
  15548. - TCP: Remove g_netstats.tcp.syndrop++ from tcp_data_event() From
  15549. Masayuki Ishikawa.
  15550. - TCP Monitor: Fix net unlock issue when tcp close. This bug could
  15551. leave the net locked. From zhangyuan7.
  15552. - UDP: When sending a broadcast (or multicast) packet do not attempt
  15553. to look up the device by the destination IP address. Rather, use
  15554. the locally bound address for these cases to select the correct
  15555. network device. From Gregory Nutt.
  15556. - UDP: Restore some legacy behavior that was lost with the
  15557. implementation of CONFIG_NET_UDP_BINDTODEVICE: If no device has a
  15558. local address when the broadcast packet is sent and the UDP socket
  15559. is not bound to a device, there select some arbitrary device. This
  15560. is certainly lunacy in the case where there are multiple network
  15561. devices registered because the wrong device will probably be
  15562. returned. It works find, however, for the legacy case where only a
  15563. single network device is registered. From Gregory Nutt.
  15564. - UDP: Fix for network byte-order issue when checking if an address
  15565. is a multicast address. From Jake Choy.
  15566. - USRSOCK: Correct of semaphore usage issues. From Gregory Nutt.
  15567. - USRSOCK: Fix re-definitions of struct iovec. From ligd.
  15568. - ICMP/ICMPv6 Connection: Change the type of id in
  15569. icmpv[6]_findconn to uint16_t From Xiang Xiao.
  15570. - ICMP/ICMPv6: Fix failure to poll ICMP socket issue. From
  15571. dongjianli.
  15572. * Wireless/Wireless Drivers:
  15573. - XBee: Fixes issue with timeouts. Timeouts were in ticks but
  15574. should have been in ms. This caused false triggers of timeout
  15575. causing redundant packets, etc. From Anthony Merlino.
  15576. - BCM43xx: Add missing logic to the BCM43xx IEEE 802.11 driver to
  15577. poll for more Tx data after the last transfer completes. From
  15578. Gregory Nutt.
  15579. - BCM43xx: Bring in some fixes from the 'Haywire' branch. From
  15580. Ramtin Amin.
  15581. * Common Drivers:
  15582. - Audio: Fix compile error in i2schar.c (CONFIG_DEBUG_ASSERTIONS=y)
  15583. From Masayuki Ishikawa.
  15584. - Audio I2S: Fix bad NULL pointer check From Juha Niskanen.
  15585. - Input: Fixed FT5x06 driver to correctly close (previously it
  15586. unregistered interrupt handler during close). From Marcin Wyrwas.
  15587. - MMC/SD: Fix an error that was causing SDIO multiple block
  15588. transfers from achieving full performance. From Bob Feretich.
  15589. - Sensors: Increases SPI frequency in MAX6675 from 400Khz to 4MHz.
  15590. From Alan Carvalho de Assis.
  15591. - Sensors: Remove comment references to touchscreens from ADXL345
  15592. driver. From Russ Webber.
  15593. - Serial: Don't overwrite nwritten unconditionally on UART write
  15594. failure. From Xiang Xiao.
  15595. - Serial DMA: Move head/tail pointer reset to uart_recvchars_dma
  15596. since dma may be still transferring in the background. From Xiang
  15597. Xiao.
  15598. - Serial DMA: In DMA mode, the use of uart_disablexinit() is
  15599. insufficient to protect a critical section.
  15600. enter/leave_critical_section() must be used in those cases if
  15601. CONFIG_SERIAL_DMA=y From Xiang Xiao.
  15602. - Serial DMA: Fix typo error in uart_recvchars_dma() From Xiang Xiao.
  15603. - 16550 UART: u16550_txempty() should check UART_LSR_TEMT to avoid
  15604. some data left in the transmit FIFO From Xiang Xiao.
  15605. * ARMv7-A:
  15606. - ARMv7-A (and i.MX6): Add support for per-CPU IRQ and FIQ interrupt
  15607. stacks (bugfix). Add support so that up_assert will print the
  15608. correct interrupt stack on an assertion (FIQ stack is still not
  15609. printed). From Gregory Nutt.
  15610. * ARMv7-R:
  15611. - ARMv7-R: Fix some wrong configuration of program status
  15612. register. PSR_E_BIT bit should be set for big endian system.
  15613. PSR_A_BIT bis is set automatically as arm cortex-r4 reference
  15614. manual 3.7.4. So we don't need to set this bit. From EunBong Song.
  15615. - ARMv7-R: Fix some wrong MPU register definition. Change
  15616. MPU_RBAR_ADDR_MASK and MPU_RACR_TEX_SHIFT mask as arm cortex-r4
  15617. reference manual. Region Base Address Register 0-4 bits are
  15618. reserved. MPU Region Access control register type 3-5 bits. From
  15619. EunBong Song.
  15620. * ARMv7-M:
  15621. - ARMv7-M, Cortex F7: Add a configuration to enable workaround for
  15622. r0p1 Errata 837070: Increasing priority using write to BASEPRI does
  15623. not take effect immediately. This update is required to be
  15624. serialized to the instruction stream meaning that after this update
  15625. completes, it takes effect immediately and no exceptions of lower
  15626. priority than the new boosted priority can pre-empt execution.
  15627. Because of this erratum, the priority boosting does not take place
  15628. immediately, allowing the instruction after the MSR to be
  15629. interrupted by an exception of lower priority than the new boosted
  15630. priority. This effect is only limited to the next instruction.
  15631. Subsequent instructions are guaranteed to see the new boosted
  15632. priority. This was raised in Bitbucket issue 113 from Vadzim
  15633. Dambrouski. From Gregory Nutt.
  15634. - ARMv7-M: MPU: mpu_log2regionceil needs take into account the
  15635. offset too From Xiang Xiao.
  15636. - ARMv7-M MPU: The prototype of mpu_log2regionfloor() changed; an
  15637. additional parameter was added. However, none of the calls to
  15638. mpu_log2regionfloor() were updated to pass the new, additional
  15639. parameter. From Gregory Nutt.
  15640. * Infineon XMC4xxx Drivers:
  15641. - XMC4 SPI: XMC4 SPI was working only for the first transfer From
  15642. Alan Carvalho de Assis.
  15643. * Microchip/Atmel SAMv7 Drivers:
  15644. - SAMv7 MCAN: Correct an error in the BUS_OFF reporting. In case of
  15645. BUS_OFF the old implementation was leading to a package storm. Now
  15646. it reports the error condition BUS_OFF only once. From Frank
  15647. Benkert.
  15648. * NXP/Freescale LPC43xx Drivers:
  15649. - LPC43xx CAN: Fix lpc43 CAN configuration. Configuration settings
  15650. were used and documented in README.txt files, but never in any
  15651. Kconfig file. From Gregory Nutt.
  15652. - LPC43xx: Make WWDT usable again. LPC43xx WWDT driver was not
  15653. updated when irq_dispatch grew an argument parameter. Also fixes
  15654. two typos and a naming inconsistency (WWDT vs. WWDG). From Jakob
  15655. Haufe.
  15656. * NXP/Freescale Kinetis Drivers:
  15657. - kinetis: USB0 fix interrupt storm on error. The ERROR bit of
  15658. USBx_ISTAT needed to be cleared once an error occurs. From David
  15659. Sidrane.
  15660. - Kinetis: SDHC fix SDIO driver so that DMA works. There were 2
  15661. problems. The first was that the interrupt did test DINT and raise
  15662. a completion events. But since DINT is just an indication of DMA
  15663. completion, TC is a valid way to determine that the transfer is
  15664. complete. The second problem is that Software Reset For DAT Line
  15665. SDHC_SYSCTL[RSTD] clears the bits 24-0 in SDHC_PROTO this looses
  15666. the wide bus setting DTW From David Sidrane.
  15667. - Kinetis: (1) PIT add Liftime and Chaining, (2) flexcan fix
  15668. duplicate line and ordering, (3) kinetis_lowput.c LPUART data
  15669. format with parity fix. The 9-bit data mode is typically used with
  15670. parity to allow eight bits of data plus the parity, (4) lowputc
  15671. LPUART_BAUD_INIT has to be defined. Build fails with test case
  15672. enable LPUART0 and make UART1 console. If HAVE_LPUART_DEVICE is
  15673. defined then LPUART_BAUD_INIT has to be defined even if the LPUART
  15674. is not the console From David Sidrane.
  15675. - Kinetis: I2C ensure timeout on bus error. The code had a dead
  15676. wait on I2C_S_BUSY. Noise on the bus would cause the driver to
  15677. hang. Add timeout on invalid states of I2C_S_BUSY to allow the
  15678. upper layers do deal with restart or abort. From David Sidrane.
  15679. * NXP i.MXRT Drivers:
  15680. - i.MXRT Ethernet: I finally got the Ethernet CRC32 to work properly
  15681. after the FAE pointed me in the right direction: (1) Added CRC32
  15682. functions for multicast address filtering, (2) Do not reset PHY
  15683. settings when doing an ifup, (2) Use chip's unique id as the device
  15684. MAC, and (4) Enable discard enet frames with errors at PHY layer.
  15685. From Jake Choy.
  15686. * On Semi LC823450 Boards:
  15687. - LC823450-XGEVK: Fix parallel build on lc823450-xgevk. This change
  15688. fixes an archive file (*.a) corruption by locking $(TOPDIR).
  15689. Please note that locking the current directory is insufficient
  15690. because some archive files such as libapps.a are specified with
  15691. absolute path. From Masayuki Ishikawa.
  15692. - LC823450-XGEVK: Change IOB related params for rndis. Since TCP
  15693. flow control scheme was changed, HTTP audio streaming has not been
  15694. working. These IOB params are not optimized but HTTP audio
  15695. streaming now works. From Masayuki Ishikawa.
  15696. * STMicro STM32:
  15697. - STM32 F7: Fix compile error caused by intentional use of fall
  15698. through From Daniel Agar.
  15699. * STMicro STM32 Drivers:
  15700. - STM32 F1-F4: Port Bob Feritich's change to STM32 F2 and F4 which
  15701. appear to have identical SD support and I/O compensation
  15702. requirements.
  15703. - STM32 F1-F4, STM32 F7, and STM32 L4: The STM32 RTC driver was
  15704. being selected by the global CONFIG_RTC option. That is in
  15705. correct. For example, if you want to disabled the STM32 RTC and
  15706. use an external RTC you cannot because the external RTC also
  15707. depends on the global CONFIG_RTC. The solution is to add a new
  15708. CONFIG_STM32xx_RTC configuration option the permits to you select
  15709. or deselect the STM32 RTC but still be able to selecte the external
  15710. RTC. From Gregory Nutt.
  15711. - STM32 F3 I2C: Fix compile error with I2C reset. From Juha
  15712. Niskanen.
  15713. - STM32 F7 Serial: Fix ioctl TIOCSSINGLEWIRE The TRM notes that UE
  15714. must be disabled in order to write HDSEL in USART_CR3. This was not
  15715. being done, so calls to TIOCSSINGLEWIRE were silently failing.
  15716. This change checks the state of UE in USART_CR1, clears the UE bit
  15717. before writing HDSEL, then re-enables it if neccesary. From Kurt
  15718. Kiefer.
  15719. - STM32 F7 DMA: DMA macros did not account for the increase from 8
  15720. to 16 DMA channels. From Gregory Nutt.
  15721. - STM32 F7 I2C: I2C reset Configure I2C pins as GPIO output. Pins
  15722. were reset to inputs in the deinit(). This resets them to outputs.
  15723. From David Sidrane.
  15724. - STM32 F7: All of the SDMMC pins were set to 50 MHz, but not the
  15725. clock. This sets the clock to 50 MHz also. This combined with
  15726. turning on I/O compensation makes intermittent failures go away.
  15727. From Bob Feritich.
  15728. - STM32 F7: Port Bob Feritich's change to SDMMC2 and to all other
  15729. STM32 F7 architectures. Also add a configuration option to
  15730. automatically enable I/O compensation. From Gregory Nutt.
  15731. - STM32 F7 SDMMC: Fix data timeout errors with multi-block
  15732. transfers. From Bob Feretich.
  15733. - STM32 L4: Corrects some mistakes in pin definitions for the
  15734. STM32 L4 family. According to datasheet of STM32L496xx, STM32L475xx
  15735. and STM32L443XX the AF2 of PE14 is TIM1_BKIN2 not TIM2_BKIN. From
  15736. Daniel Pereira Carvalho.
  15737. - STM32 L4: Avoid using redundant CONFIG_STM32L4_STM32L4X2. This is
  15738. almost always same as CONFIG_STM32L4_STM32L4X3. Avoid duplication
  15739. to reduce macro clutter. This patch limits
  15740. CONFIG_STM32L4_STM32L4X2 usage to dependency tracking and pinmap.
  15741. Also enable ADC for CONFIG_STM32L4_STM32L4X5 (untested, but same
  15742. RM). From Juha Niskanen.
  15743. - STM32 H7 Serial: don't include stm32_dma.h From raiden00pl.
  15744. * STMicro STM32 Boards:
  15745. - STM32F4-Discovery: Fix pca9635pw LED driver compilation on
  15746. STM32F4-Discovery. From Alan Carvalho de Assis.
  15747. - STM32F4-Discovery: Krassimir Cheshmedzhiev claims that sys/types.h
  15748. needs to be included in the RGB LED file to avoid undeclared 'OK'
  15749. From Gregory Nutt.
  15750. - STM32F4-Discovery: Missing EXTERN(_vectors) in linker script.
  15751. From Gregory Nutt.
  15752. - Nucleo-L422KC: Fix RAM size; STM31L4x2xx has only 64Kb of RAM.
  15753. Remove references to I2C and SDIO: There is no I2C2 or SDIO on the
  15754. STM32F4x2xx. From Daniel P. Carvalho.
  15755. - Nucleo-L422KC: Fix stm32_userleds. After change LD2 to LD3 in
  15756. board.h stm32_userleds.c was broken. From Daniel P. Carvalho.
  15757. - Nucleo-L422KC: Fix TIMx clock configuration. Also removes
  15758. definitions related to timers not available in the STM32L432KC.
  15759. From Daniel Pereira Carvalho.
  15760. - Nucleo-L452RE: Fix TIMx clock configuration. This is cloned from
  15761. similar change to the Nucleo-L422KC. Also fixes DAC build
  15762. failure. From Juha Niskanen.
  15763. - B-L475E-IOT01A: Fix copy paste errors in names:
  15764. stm32_bringup->stm32l4_bringup. Noted by Freemans Goden. From
  15765. Gregory Nutt.
  15766. - STM32VL-Discovery: Changed the status LED to be the green one as
  15767. mentioned in the README file. Removed the global array for buttons
  15768. and replace it with the only button. Improve defconfig for the nsh
  15769. configuration. From Ouss4.
  15770. * C Library/Header Files:
  15771. - libc audio: Call nxsem_destroy in apb_free. From Xiang Xiao.
  15772. - libc netdb: The 'port' argument to the static alloc_ai() function
  15773. is always in network byte order. However, that static function was
  15774. still calling HTONS() on the port, incorrectly converting it back
  15775. to host byte order. From Gregory Nutt.
  15776. - libc netdb: Fix a link error in lib_gethostbynamer.c with protected
  15777. build. NOTE: g_lo_ipv4addr also exists in
  15778. net/loopback/lo_globals.c which can be linked with kernel build
  15779. only. From Masayuki Ishikawa.
  15780. - libc unistd : Fix backward conditional logic in Kconfig. From
  15781. Gregory Nutt.
  15782. - include/nuttx/compiler.h: Fix warning: __cplusplus is not defined.
  15783. Some gcc derived compiler do not define __cplusplus From Xiang
  15784. Xiao.
  15785. - include/nuttx/fs/binfs.h: Fix warning: Type defaults to 'int' in
  15786. declaration of 'mountpt_operations' From Xiang Xiao.
  15787. - include/nuttx/net/ethernet.h: Remove CONFIG_NET_ETHERNET guard
  15788. From Xiang Xiao.
  15789. - include/nuttx/semaphore.h: don't include nuttx/fs/fs.h. (1) Avoid
  15790. nested loops if CONFIG_SIG_EVTHREAD enabled, (2) semaphore.h
  15791. doesn't depends on fs.h. From Gregory Nutt.
  15792. - include/crc64.h: Fix warning: integer constant is too large for
  15793. its type From Xiang Xiao.
  15794. - include/limits.h and include/sys/types.h: Fix warning about
  15795. 'SIZE_MAX' redefined. include/nuttx/usb/audio.h: Fix warnings due
  15796. to '-' used whete '_' intended. From Xiang Xiao.
  15797. - include/spawn.h: Fix posix_spawnattr_destroy warning: 'the
  15798. address of attr will always evaluate as true' From Xiang Xiao.
  15799. - include/sys/types: Move wint_t and wctype_t from wchar.h to
  15800. types.h. This change is compatible as before since wchar.h
  15801. include types.h indirectly. This fixes a compilation error with
  15802. newlib's math.h: 'unknown type name wint_t' From Xiang Xiao.
  15803. - apps/include/netutils/netlib.h: Eliminate a warning about
  15804. AF_UNSPEC and AF_INET not defined. From Gregory Nutt.
  15805. * Build System:
  15806. - Build System: Fix parallel build in making context. This change
  15807. avoids running $(MKSYSCALL) and .context in parallel and ensures
  15808. that tools/mksyscall is built before it is actually used. From
  15809. Masayuki Ishikawa.
  15810. - Kconfig files: Fix several errors noted by Alex Denisov in
  15811. Bitbucket issue 115. From Gregory Nutt.
  15812. - apps Build System: Fix an error when building apps/ without
  15813. nuttx/, using only the NuttX export package and assuming that the
  15814. nuttx/ directory in not even present. In this case, the problem
  15815. fixed where the apps/Make.defs file was selecting tools from the
  15816. /tools directory which does not exist because TOPDIR=apps/import.
  15817. Instead, for this build case, I have not thought of any option but
  15818. to duplicate scripts as necessary in the apps/tools directory.
  15819. Also added a top-level target to compile the symbol table. Misc
  15820. fixes: quoting in scripts, some errors in script syntax. From
  15821. Gregory Nutt.
  15822. - apps/Application.mk: If a loadable module is generated the we
  15823. need to add logic to remove the loadable module in the 'make
  15824. clean' logic. From Gregory Nutt.
  15825. * Tools:
  15826. - nuttx/tools/Makefile.unix: Was not cleaning up export directory
  15827. if it was left from a failed export. From Gregory Nutt.
  15828. - apps/tools: Fix an error in mksymtab.sh From Masayuki Ishikawa.
  15829. * NSH Library: apps/nshlib:
  15830. - apps/nshlib: Fix 'while' and 'until' loop condition The loop
  15831. condition logic was inverted: 'while true; do echo "test"; done'
  15832. would exit immediately, while using 'until' would stay in the
  15833. loop. This is the opposite of how it is supposed to work. The
  15834. reason is that 'state' was set wrong because 'whilematch' is a
  15835. bool. From Beat Küng.
  15836. - apps/nshlib: I was able to cause an assertion with some typos in
  15837. testing the 'fi' command. Not an important thing, but this will
  15838. protect against the assertion. From Gregory Nutt.
  15839. - apps/nshlib: Increase the default configuration for the maximum
  15840. number of command line arguments to 7 (CONFIG_NSH_MAXARGUMENTS).
  15841. This is needed for 'mount' with the -o option. From Xiang Xiao.
  15842. - apps/nshlib: Do not dereference NULL 'pstate' in nsh_console.c.
  15843. From Juha Niskanen.
  15844. * Examples/Tests: apps/examples:
  15845. - apps/examples: Remove illegal calls into OS to initialize BINFMT
  15846. support. This must be moved to the board initialization logic
  15847. within the OS. From anchao.
  15848. - apps/examples/nettest: Fix typo: NET_LOOPBACK ->
  15849. CONFIG_NET_LOOPBACK nettest: Fix compilation error. Should enable
  15850. NET_SETSOCKOPT for preventing compilation error. From EunBong Song.
  15851. - apps/examples/ostest: Signal handling tests should use the same
  15852. configurable stack size as used in other tests, not
  15853. PTHREAD_STACK_DEFAULT. From Gregory Nutt.
  15854. - apps/examples/ostest: Attempt to make the nested signal test
  15855. compatible with the suspend/resume test. Some signals cannot be
  15856. caught when the suspend/resume configuration is in place. From
  15857. Gregory Nutt.
  15858. - apps/examples/smps: Fixes in some printf and in Kconfig. From
  15859. Mateusz Szafoni.
  15860. * System Utilities: apps/system:
  15861. - apps/system/cu: (1) Protect from possible re-definition of signal
  15862. values, (2) Fix CU ctrl-C hand when remote core hang. From ligd.
  15863. - apps/system/i2c: Fix a backward comparison in i2c_main.c. Noted
  15864. by Jakob Haufe. From Gregory Nutt.
  15865. - apps/system/nsh: Fix compile errors with
  15866. CONFIG_EXAMPLES_NSH_SYMTAB=y. From Masayuki Ishikawa.
  15867. - apps/system/ping and ping6: Send ID and seqno in network byte
  15868. order. From Xiang Xiao.
  15869. - apps/system/ping and ping6: Change dependency in ping and ping6
  15870. Kconfig. These may be implemented in users sockets and, hence,
  15871. may need to be avaiable even if ICMP and ICMPv6 sockets are not
  15872. support. From Xiang Xiao.
  15873. - apps/system/system: Add 'const' to make function prototype
  15874. compatible with OpenGroup.org requirement From Xiang Xiao.
  15875. - apps/system/zmodem: Fix error "sz_main.o: No such file or
  15876. directory" From Xiang Xiao.
  15877. * Network Utilities: apps/netutils:
  15878. - apps/netutils/ftpc: Fix handling of url-encoded strings From
  15879. Dmitriy Linikov.
  15880. - apps/netutils/ping: Remove unsupported ping. netutils/ping is not
  15881. supported anymore. It's better to remove this folder for
  15882. preventing confusing. ping is supported by system/ping. From
  15883. EunBong Song.
  15884. * Wireless Utilities: apps/wireless:
  15885. - apps/wireless/wapi: Remove dependency on CONFIG_EXPERIMENTAL from
  15886. Kconfig From Gregory Nutt.
  15887. * GPS Utilities: apps/gpsutils:
  15888. - apps/gpsutils/minmea: Include wchar.h in minmea.c file to fix
  15889. wint_t error From Alan Carvalho de Assis.
  15890. * Interpreters: apps/interpreters:
  15891. - Remove apps/interpreters/micropthon. There are several reasons
  15892. for this. (1) the current version 1.3.8 is very old and no one is
  15893. supporting it. (2) the port only includes the core micropython
  15894. logic and none of the Python libraries. As such it is useless in
  15895. any real application. (3) There have recently been compile
  15896. failures reported. It looks like this is due to changes in newlib
  15897. based toolchains that now bring in incompatible newlib header
  15898. files. See issue 104 at
  15899. https://bitbucket.org/nuttx/nuttx/issues/104/build-micropython-138-error.
  15900. With no one dedicated to the support of micropython, it can no
  15901. longer be carried in the NuttX apps/ repository. From Gregory Nutt.
  15902. NuttX-7.27 Release Notes
  15903. ------------------------
  15904. The 127th release of NuttX, Version 7.27, was made on November 14, 2018,
  15905. and is available for download from the Bitbucket.org website. Note
  15906. that release consists of two tarballs: nuttx-7.27.tar.gz and
  15907. apps-7.27.tar.gz. These are available from:
  15908. https://bitbucket.org/nuttx/nuttx/downloads
  15909. https://bitbucket.org/nuttx/apps/downloads
  15910. Both may be needed (see the top-level nuttx/README.txt file for build
  15911. information).
  15912. Additional new features and extended functionality:
  15913. * Core OS:
  15914. - Assertions: Add 'BOARD_ASSERT_RESET_VALUE' in config/Kconfig and
  15915. replace reboot status '0' to 'CONFIG_BOARD_ASSERT_RESET_VALUE'. From
  15916. Gregory Nutt.
  15917. - Assertions: up_registerdump capture the general register if not yet
  15918. saved and up_saveusercontext is implemented, the register dump is very
  15919. useful to find the cause of failure. From Xiang Xiao.
  15920. - Assertions: up_stackdump() dump the full stack if stack overflow the
  15921. stack info is very useful to find the backtrace From Xiang Xiao.
  15922. - binfmt/ and libs/libc: Make exepath_*() more common: Move
  15923. exepath_*() related code to libc/misc, rename exepath_ to envpath_,
  15924. and rename BINFMT_EXEPATH to LIB_ENVPATH. From nchao.
  15925. - CLOCK: Support CLOCK_MONOTONIC in clock_getres.c. From Xiang Xiao.
  15926. - Clock Timekeeping: Use clock_basetime() to initialize
  15927. g_clock_wall_time to get the best initial RTC value and initialize
  15928. g_clock_last_counter too since the hardware may not start counting
  15929. from zero. From Xiang Xiao.
  15930. - exit(): Add SCHED_EXIT_KILL_CHILDREN option to kill all child threads
  15931. when the main thread of a task exits. From nchao.
  15932. - IOBs: Add an IOB notifier that will notify any registered threads
  15933. that want to known when an IOB has been freed. This is basically just
  15934. a wrapper around the generic notifier. Includes a divider that can be
  15935. used to reduce the rate of IOB notifications. From Gregory Nutt.
  15936. - Memory Manager: In mm_free(), add DEBUGASSERT()'s to catch memory
  15937. corruption early. From Petteri Aimonen.
  15938. - Memory Manager: Add debug option CONFG_MM_FILL_ALLOCATIONS to fill
  15939. all mallocs() with recognizable value. From Petteri Aimonen.
  15940. - sched/signal and syscall/: Add support for pselect() and ppoll()
  15941. functions From dongjianli.
  15942. - Task Groups: group_foreachchild() now iterates in reverse order since
  15943. the callback (e.g. group_killchildren) may remove the tcb from list.
  15944. From zhangyuan7.
  15945. - WDOG Timer: Improve accuracy of wd_gettime() in tickless mode From
  15946. ligd.
  15947. - Work Queues: Add a generic notification facility that runs on a work
  15948. queue. The notication facility can notify a group of subscribers to
  15949. an event via callbacks. This API is for use within the OS only. From
  15950. Gregory Nutt.
  15951. * File Systems/Block and MTD Drivers
  15952. - FAT: Add CONFIG_FAT_LFN_ALIAS_HASH to speed up creating long
  15953. filenames. Long filenames on FAT file systems have associated 8.3
  15954. character alias short filenames. The traditional form of these is
  15955. FILENA~1.EXT with a running count of the number of similar names.
  15956. However creating this unique count can take several seconds if there
  15957. are many similarly named files in the directory. Enabling
  15958. FAT_LFN_ALIAS_HASH uses an alternative format of FI0123~1.TXT where
  15959. the four digits are a hash of the original filename. This method is
  15960. similar to what is used by Windows 2000 and later. From Petteri
  15961. Aimonen.
  15962. - FAT: Add CONFIG_FAT_LFN_ALIAS_TRAILCHARS alternative format for 8.3
  15963. filenames. Traditional format for long filename 8.3 aliases takes
  15964. first 6 characters of long filename. If this option is set to N > 0,
  15965. NuttX will instead take first 6-N and last N characters to form the
  15966. short name. This is useful for filenames like "datafile12.txt" where
  15967. the first characters would always remain the same. From Petteri
  15968. Aimonen.
  15969. - FAT: if block driver wait seems to be a long one, give time for other
  15970. threads to run. From Petteri Aimonen.
  15971. - file_open(): Add file_open() implementation with some fully-function,
  15972. interim, placeholder logic. Change occurrences of open() followed by
  15973. file_detach() in the OS to file_open(). From Gregory Nutt.
  15974. - MX25LF25635F: Add support to Macronix MX25LF25635F serial NOR flash
  15975. From David Sidrane.
  15976. - nx_open(): Add nx_open() which is the same as open() except that it
  15977. does not create a cancellation point nor does it modify the errno
  15978. variable. Change most other, non-controversial calls to open() to
  15979. nx_open(). From Gregory Nutt.
  15980. - file_ioctl(): Replace calls to ioctl() in the OS to file_ioctl().
  15981. From Gregory Nutt.
  15982. - mount: Add mount() support for file systems that require MTD drivers
  15983. (vs. block drivers). From Gregory Nutt.
  15984. - mount: Add support for mounting a file system with either a block or
  15985. an MTD driver. From Xiang Xiao.
  15986. - MTD FTL: Support BIOC_FLUSH ioctl From Xiang Xiao.
  15987. - MTD FTL: Make READAHEAD and WRITEBUFFER work independently of each
  15988. other. There have cases we use writebuffer but not readbuffer, so the
  15989. write buffer must be flushed before read. Let rwb driver do it. From
  15990. zhuyanlin.
  15991. - MTD FTL: Allocate eblock only when it's really needed From Xiang Xiao.
  15992. - MTD FTL: Add support support unlink operation to avoid the memory
  15993. leak. From Xiang Xiao.
  15994. - MTD Partition: Add register_mtdpartition() for MTD partition From
  15995. Xiang Xiao.
  15996. - MTD Partition: Remove the hard code partition name length From Xiang
  15997. Xiao.
  15998. - MTD Proxy: Make MTD device accessible via a character driver proxy
  15999. like block devices From Xiang Xiao.
  16000. - ProcFS: Change output of the ProcFS 'env' file so that it looks more
  16001. like output from the 'env' command. From Gregory Nutt.
  16002. - ProcFS: Add support to provide MLD statistics at /proc/net/mld. From
  16003. Gregory Nutt.
  16004. - ProcFS: Remove MTD ProcFS and mtd_procfsoperations() since we can now
  16005. get the same information from inode From Xiang Xiao.
  16006. - ProcFS: Add /proc/version support to get version info From iuhaitao.
  16007. - ProcFS: Add support for named MTD drivers in the pseudo file system.
  16008. This will, eventually, allow us to mount file systems that need MTD
  16009. drivers without having to fake an intervening block driver.
  16010. - R/W Buffer: Don't queue work to flush write buffer if
  16011. CONFIG_DRVR_WRDELAY == 0 From Xiang Xiao.
  16012. - R/W Buffer: Improve the rwb_read/write overlap performance From
  16013. zhuyanlin.
  16014. - SIM HOSTFS: Support S_IFSOCK, DT_LNK, O_DIRECT and O_SYNC From Xiang
  16015. Xiao.
  16016. - SPIFFS: Brings in a NuttX port of version 0.3.7 of Peter Anderson's
  16017. SPIFFS flash file system into NuttX. From Gregory Nutt.
  16018. * Networking/Network Drivers:
  16019. - Network Configuration Add new configuration CONFIG_NET_MCASTGROUP.
  16020. This option is selected automatically if either CONFIG_NET_IGMP or
  16021. CONFIG_NET_MLD are selected. Most conditional logic based on
  16022. CONFIG_NET_IGMP replaced with conditioning on CONFIG_NET_MCASTGROUP.
  16023. From Gregory Nutt.
  16024. - Network Device: Add notification logic for the case where the network
  16025. goes down. From Gregory Nutt.
  16026. - Network Device: Rename netdev_dev_lladdrsize() to netdev_lladdrsize()
  16027. and move the prototype to include/nuttx/nex/netdev.h, giving is global
  16028. scope within the OS. From Xiang Xiao.
  16029. - ARP: Redesign ARP table aging to simplify the net initialization
  16030. From Xiang Xiao.
  16031. - ARP: Check ifname match before sending packet. From Xiang Xiao.
  16032. - ARP and ICMPv6: Double the delay time on each iteration for ARP/ICMP
  16033. to fight work jitter better. From Xiang Xiao.
  16034. - ICMP/ICMPv6: Add NET_ICMP[v6]_NO_STACK for usrsock case From Xiang
  16035. Xiao.
  16036. - ICMPv6: Encapsulate the link scope address generation into
  16037. icmpv6_linkipaddr() From Xiang Xiao.
  16038. - ICMPv6: Remove the coupling between ICMPv6 and Ethernet by moving all
  16039. Ethernet stuff to neighbor_ethernet_out.c and make the mac address as
  16040. first field. From Xiang Xiao.
  16041. - ICMPv6 MLD: Implement Multicast Listener Discovery (MLD) protocol based
  16042. on RFC 2710 and RFC 3810. From Gregory Nutt.
  16043. - ICMPv6 MLD: Implement MLDv1 compatibility mode. From Gregory Nutt.
  16044. - ICMPv6 MLD: Implement 'Other Querier Present Timer'. This timer is
  16045. used to revert to Querier mode if there is no other querier on the
  16046. network. From Gregory Nutt.
  16047. - IGMP: Backport some MLD design improvements/fixes. From Gregory Nutt.
  16048. - IPv4 setsockopt(): Add implementation for all IPv4 socket options that
  16049. have implemented IOCTL command counterparts. From Gregory Nutt.
  16050. - IPv4/6 Socket Options: Add framework to support IPv4 and IPv6
  16051. protocol socket options (i.e., SOL_IP and SOL_IP6). Handling of these
  16052. socket options was a necessary step on the way to ICMPv6 MLD support.
  16053. From Gregory Nutt.
  16054. - ICMPv6 Autoconfiguration: Don't take the network device down when
  16055. reconfiguring only the IP address from within ICMPv6 logic.
  16056. Recommended by Xiang Xiao in order to avoid the long delays of
  16057. bringing some networks back up. Normally it is required that the
  16058. network be in the "down" state when re-configuring the network
  16059. interface. This is thought not to be a necessary here because: (1)
  16060. The ICMPv6 logic here runs with the network locked so there can be no
  16061. outgoing packets with bad source IP addresses from any asynchronous
  16062. network activity using the device being reconfigured. And (2) incoming
  16063. packets depend only upon the MAC filtering. Network drivers do not
  16064. use the IP address; they filter incoming packets using only the MAC
  16065. address which is not being changed here. From Gregory Nutt.
  16066. - IPv6 Input: Add logic to skip over the variable number of IPv6
  16067. extension headers that may be present between the IPv6 header and the
  16068. transport layer header. The extension headers are simply ignored.
  16069. This is necessary because with MLD, certain incoming messages may
  16070. have, at a minimum, a Router Alert Hop-by-hop extension header.
  16071. Additional changes to ICMPv6, TCP, and UDP input to handle the offset
  16072. protocol headers. From Gregory Nutt.
  16073. - IPv6 Neighbor: Simplify the neighbor table aging process From Xiang
  16074. Xiao.
  16075. - IPv6 Neighbor: Simplify neighbor_dumpentry() implementation From
  16076. Xiang Xiao.
  16077. - IPv6 Neighbor: neighbor_lookup() checks if the target IP belongs to
  16078. one of the local network devices. From Xiang Xiao.
  16079. - IPv6 Neighbor: Support neighbor_out() for multiple link layer at the
  16080. same time From Xiang Xiao.
  16081. - IPv6 setsockopt(): Implement the IPV6_JOIN_GROUP and IPV6_LEAVE_GROUP
  16082. socket options. From Gregory Nutt.
  16083. - TCP: Extend the TCP notification logic logic so that it will report
  16084. loss of connection events. From Gregory Nutt.
  16085. - SLIP: Add IPv6 support and fix minor issue From Xiang Xiao.
  16086. - TCP: Add TCP poll() logic to receive notifications when IOBs are
  16087. freed. From Gregory Nutt.
  16088. - TCP: In TCP backlog, add SOMAXCONN definition and implementation per
  16089. OpenGroup.org. From zhangyuan7.
  16090. - TCP/UDP: Extend send()/sendto() logic it also requires that at least
  16091. one IOB is also available to be able to send. From Gregory Nutt.
  16092. - TCP/UDP: Add notification logic when TCP or UDP read-ahead data is
  16093. buffered. From Gregory Nutt.
  16094. - TUN: Call ipv[4|6]_input dynamically by checking packet header and
  16095. remove the code duplication From Xiang Xiao.
  16096. * Wireless/Wireless Drivers:
  16097. - Broadcom IEEE 802.11: Add capability for Broadcom chips to get
  16098. firmware and CLM data from a mounted file system vs. in-memory data
  16099. structures. From Ramtin Amin.
  16100. - XBee IEEE 802.15.4: Add support for setting/getting tx power. From
  16101. Anthony Merlino.
  16102. * Other Common Device Drivers:
  16103. - GPIO: Support multiple registrations of GPIO signal events. From
  16104. Xiang Xiao.
  16105. - INA226: Add INA226 device driver. From Daniel P. Carvalho.
  16106. - MAX7219: Support all digits presented in the MAX7219 datasheet. From
  16107. Alan Carvalho de Assis.
  16108. - MLX90614: Add support for the Infrared Thermometer MLX90614 From
  16109. Alan Carvalho de Assis.
  16110. - RTC Driver: up_rtc_set_lowerhalf call clock_synchronize() for
  16111. external RTC. From Xiang Xiao.
  16112. - SYSLOG: Uncomment the g_syslog_channel->sc_flush call in
  16113. syslog_flush(). From Xiang Xiao.
  16114. - SYSLOG: syslog_initialize initialize dev/syslog too and call syslog
  16115. to add the prefix and timestamp. From Xiang Xiao.
  16116. - USB Composite and DFU drivers: Add support for Microsoft OS
  16117. descriptors. These Microsoft-only descriptors help in loading the
  16118. correct driver on Windows. They are especially helpful to give libusb
  16119. access to a custom device without having to manually configure/install
  16120. WinUSB driver. With this change DFU interface works automatically on
  16121. Windows 10 with dfu-util 0.9 and libusb 1.0.22. On Windows 7 it still
  16122. appears to need driver installation. From Petteri Aimonen.
  16123. - USB DFU Device: Add DFU Runtime driver for activating boot-loader
  16124. through USB command. From Petteri Aimonen.
  16125. - USB RNDIS Device: Account for CONFIG_NET_GUARDSIZE in allocation of
  16126. packet buffer allocation: Make USB device parameters configurable.
  16127. From Sakari Kapanen.
  16128. - USB RNDIS Composite Device: Fix strid comparison. Add support for
  16129. composite configuration. From Petteri Aimonen.
  16130. * Microchip PIC32MX Boards;
  16131. - PCBLOGIC-PIC32MX: Remove support for the PCB Logic PIC32MX board. I do
  16132. not find any references to PCB Logic on the web and I do not believe
  16133. that this breakout board is available any longer. From Gregory Nutt.
  16134. * NXP Freescale i.MX RT:
  16135. - i.MXRT: Added support for the i.MXRT 106x family. From David Sidrane.
  16136. * NXP Freescale i.MX RT Drivers:
  16137. - i.MXRT: Add LPI2C driver. From Ivan Ucherdzhiev.
  16138. - i.MXRT LPSPI: Add full support for the LPSPI in poll mode; includes a
  16139. minor fix for LPI2C.
  16140. - i.MXRT USDHC: Initial commit of the i.MXRT SDHC driver working in PIO
  16141. mode. From Dave Marples.
  16142. - i.MXRT USDHC: Complete the interrupt driven USDHC1 functionality for
  16143. the IMXRT EVKB. Improve SD card handling in the DMA case. From Dave
  16144. Marples.
  16145. * NXP Freescale i.MX RT Boards:
  16146. - IMXRT1060-EVK: Add support for the IMXRT1060-EVK. From David Sidrane.
  16147. * NXP LPC17xx Boards:
  16148. - Olimex-LPC1766STK: Add support to initialize a USB HID keyboard. Add
  16149. a configuration for testing the HID keyboard. From Gregory Nutt.
  16150. * On Semi LPC23450 Drivers:
  16151. - LC823450: MPU support for FLAT build From Masayuki Ishikawa.
  16152. * STMicro STM32:
  16153. - STM32: Add support for STM32F303xD/E. From Mateusz Szafoni.
  16154. - STM32 L4: Add initial support for STM32L412 and STM32L422 chips From
  16155. Juha Niskanen.
  16156. * STMicro STM32 Drivers:
  16157. - STM32 ADC: Major refactor: Use STM32 ADC IP core version and ADC
  16158. available functions instead of chip family names in conditional
  16159. compilation. Replace family specific ADC headers with STM32 ADC IP
  16160. core version headers. Configurable sample time supported for all
  16161. chips, not just L1. Enable/disable interrupts supported for all
  16162. chips, not just L1. Add ADC resolution configuration. From Mateusz
  16163. Szafoni.
  16164. - STM32 PWM: Improvements in STM32 PWM low level driver: Support
  16165. complementary outputs, dead-time configuration, output polarity and
  16166. IDLE state configuration. From Mateusz Szafoni.
  16167. - STM32 PWM: Break and lock configuration and some cosmetics From
  16168. Mateusz Szafoni.
  16169. - STM32 SPI. Enable separate DMA per SPI configuration From Daniel Agar.
  16170. - STM32 F7 FLASH: Allow programming OTP blocks through progmem
  16171. interface From Jussi Kivilinna.
  16172. - STM32 H7 I2C: Add I2C support for STM32H7. From raiden00pl.
  16173. - STM32 H7 RCC: Update RCC definitions, add SPI clock configuration and
  16174. some fixes in RCC. From raiden00pl.
  16175. - STM32 H7 SPI: Add basic SPI support for H7. Enable SYSCFG clock in
  16176. RCC. From Mateusz Szafoni.
  16177. * STMicro STM32 Boards:
  16178. - Nucleo-F302R8: Add support for Nucleo-F302R8 board From raiden00pl.
  16179. - Nucleo-F302R8: Add PWM support. From Mateusz Szafoni.
  16180. - Nucleo-F303ZE: Add basic support for nucleo-f303ze. From Mateusz
  16181. Szafoni.
  16182. - Nucleo-F303ZE: Support for ADC and ADC example. From Mateusz Szafoni.
  16183. - Nucleo-L432KC: Added support for AT45DB Serial Flash From Daniel P.
  16184. Carvalho.
  16185. - Nucleo-L432KC: Add support for the INA226. From Daniel P. Carvalho.
  16186. - Nucleo-H743ZI: Add NRF24L01 support. From Mateusz Szafoni.
  16187. - Olimex-STM32-P407: Add a HID keyboard configuration. From Gregory
  16188. Nutt.
  16189. - STM32F4-Discovery: Add MLX90614 support for the STM32F4-Discovery
  16190. board From Alan Carvalho de Assis.
  16191. - STM32F429I-DISCO: Add PWM support. From Mateusz Szafoni.
  16192. - STM32F429I-DISCO: Support for ADC and ADC example. From Mateusz
  16193. Szafoni.
  16194. * MIPS32:
  16195. - MIPS32 Toolchain.defs: Add toolchain flags for the pinguino toolchain
  16196. under Linux. From Ouss4.
  16197. * RISC-V:
  16198. - RISC-V GAP: This commit brings in support for the GAP8 architecture.
  16199. The GAP8 is a 1+8-core DSP-like RISC-V MCU. Also included is support
  16200. for the Gapuino GAP8 evaluation board. From hhuysqt.
  16201. * Other Tools:
  16202. - tools/tesbuild.sh: No longer installs and builds the NxWidgets
  16203. libraries. They are now a port of apps/. From Gregory Nutt.
  16204. * Libraries/Header Files:
  16205. - include/net and include/sys: Align the constant values with values in
  16206. the Linux kernel which makes targeting the usrsock server to Linux
  16207. kernel easier. From Xiang Xiao.
  16208. - include/netdb.h Add NO_ADDRESS definition From zhangyuan7.
  16209. - include/netinet/in.h: Adds definitions for IPPROTO_IPV6 socket
  16210. options to netinet/in.h. Adds missing fields to sockaddr_in6. Adds
  16211. struct ipv6-mreq. These changes all follow the opengroup standard for
  16212. netinet/in.h From Anthony Merlino.
  16213. - include/netinet/in.h: Add IPv4 SOL_IP socket options for symmetry
  16214. with IPv6 definitions added in a previous commit. Remove some
  16215. duplicate types from sys/sockio.h. From Gregory Nutt.
  16216. - include/netinet/in.h: Add other definitions required by
  16217. OpenGroup.org. From Gregory Nutt.
  16218. - include/netinet/in.h: Add Linux IP_PKTINFO and IPV6_PKTINFO
  16219. definitions.
  16220. - include/nuttx/net/ipv6ext.h: Create header file with all of the
  16221. definitions of IPv6 extension headers that I could find. From Gregory
  16222. Nutt.
  16223. - include/nuttx/net/mld.h: Add MLD header file based on RFC2710 and
  16224. RFC3810. From Gregory Nutt.
  16225. - include/sys/socket.h: With increased size of struct sockaddr_in6, the
  16226. size of struct sockaddr_storage in include/sys/socket.h must also be
  16227. increase so that it can contain the new, larger sockaddr_in6. From
  16228. Gregory Nutt.
  16229. - libs/libc/misc: Add implementation of CRC8-CCITT. From Alan Carvalho
  16230. de Assis.
  16231. - libs/libc/modlib: Add per-module library symbol table support. From
  16232. nchao.
  16233. - libs/libc/net: Add basic implementation for recvmsg() and sendmsg()
  16234. per OpenGroup.org specification. From ligd.
  16235. - libs/libc/netdb: A few improvements to getaddrinfo: (1) Use the
  16236. protocol and socktype hints in returned address, (2) Ignore AI_PASSIVE
  16237. argument if hostname is not NULL From Anthony Merlino.
  16238. - libs/libc/netdb: Make DNS receive timeout configurable. From ligd.
  16239. - libs/libc/stdio: Eliminate recursive in conversion functions of
  16240. lib_vsprintf(). From Xiang Xiao.
  16241. - libs/libc/string: Add some new functions defined in POSIX.1-2017:
  16242. stpncpy(), strsignal(), psignal(), psiginfo(). From Gregory Nutt.
  16243. - libs/libc/string: Add memrchr() function From Xiang Xiao.
  16244. - libs/libc/string: Make strerror() return the string "Success" for
  16245. error = 0. From Petteri Aimonen.
  16246. * Build System:
  16247. - Makefile.unix/win: Remove deletion of Eclipse project files from make
  16248. distclean target. From Gregory Nutt.
  16249. - apps/Application.mk: Fix some build issues. (1) Unable to found
  16250. target 'context' when CONFIG_NSH_BUILTIN_APPS disabled. (2) Unable to
  16251. generate multiple programs. From Chao An.
  16252. - apps/Directory.mk: Fix distclean targets. Makefiles were not
  16253. removing generated Kconfig files. There was then no way to remove
  16254. this Kconfig files without manually deleting them one at a time. From
  16255. Gregory Nutt.
  16256. * NSH: apps/nshlib:
  16257. - apps/nshlib/, apps/examples/: Update to show newer file system
  16258. object types returned by stat(). From Gregory Nutt.
  16259. - apps/nshlib: Add support for the 'env' command. From Gregory
  16260. Nutt.
  16261. - apps/nshlib: Add support for NSH local variables if
  16262. CONFIG_NSH_VARS are set. These are like environment variables but
  16263. are local to NSH. The importance of this is that these variables
  16264. are *not* inherited when NSH creates a new task. The new command
  16265. 'export' was added. In this case, the NSH variable will be promoted
  16266. to an environment variable and will then be inherited by any tasks
  16267. executed by NSH. From Gregory Nutt.
  16268. - apps/nshlib: If CONFIG_NSH_VARS=y, the NSH 'set' command with no
  16269. argument will list all of the local NSH variables. From Gregory
  16270. Nutt.
  16271. * Examples/Tests: apps/examples:
  16272. - apps/examples/gpio: Align with GPIO driver update From wangyanjiong.
  16273. - apps/examples/ina226: Added INA226 example From Daniel P. Carvalho.
  16274. - apps/examples/mld: Add a test of MLD. Provides a mechanism for some
  16275. low-level bring-up of MLD. From Gregory Nutt.
  16276. - apps/examples/mlx90614: Add mlx90614 test example From Alan Carvalho
  16277. de Assis.
  16278. - apps/examples/mlx90614/: Include support to change device address on
  16279. mlx90614 From Alan Carvalho de Assis.
  16280. - apps/examples/fstest: Adapt the existing fstest example for SPIFFS:
  16281. For SPIFFS, add garbage collection and file system integrity IOCTL
  16282. calls. Call statfs() and show state of file system on each loop. Add
  16283. logic to dump logic content of SPIFFS. Ignore EINTR errors while
  16284. reading or writing. Add configuration option to customize stack
  16285. size. Detect when the media is full and stop writing files. Report
  16286. total file size. From Gregory Nutt.
  16287. - apps/examples/tcpblaster: Add an option to use poll() to pace input
  16288. or output. From Gregory Nutt.
  16289. - apps/examples/tcpblaster: Select CONFIG_LIBC_FLOATINGPOINT
  16290. automatically. Units in output are wrong: Not Kbps bus Kb/Sec. From
  16291. Gregory Nutt.
  16292. - apps/examples/udpblaster: Add option to use poll() on output (only).
  16293. From Gregory Nutt.
  16294. * System Utilities: apps/system
  16295. - apps/system/ping and apps/system/ping6: Set optind to zero in the
  16296. error case/. Move all ping preparation work into icmp_ping. Support
  16297. -W <timeout> and -s <size> option. Decouple the output from ping
  16298. logic. From Xiang Xiao.
  16299. - apps/system/ping and pings and apps/netutils/ping: Extract icmp ping
  16300. and icmpv6 ping6 logic from system/ to C-callable library in
  16301. netutils/. From ligd.
  16302. - apps/system/progmem: Remove this utility. It makes illegal direct
  16303. calls into the OS. From Gregory Nutt.
  16304. * Network Utilities: apps/netutils:
  16305. - apps/netutils/netlib and apps/examples/igmp: Adapt to use the
  16306. corrected, semi-standard version of struct ip_msfilter. From Gregory
  16307. Nutt.
  16308. - apps/netutils/chat and apps/examples/chat: 'constify' chat variables
  16309. and parameters From Xiang Xiao.
  16310. * Wireless Utilities: apps/wireless:
  16311. - apps/wireless/ieee802154/i8sak: Properly shuts down event thread.
  16312. From Anthony Merlino.
  16313. - apps/wireless/ieee802154/i8sak: Fixes i8sak name. Accidentally renamed
  16314. to i8ask in recent changes From Anthony Merlino.
  16315. - apps/wireless/ieee802154/i8sak: Adds support for getting/setting
  16316. transmit power. From Anthony Merlino.
  16317. * Graphic Utilities: apps/graphics:
  16318. - apps/graphics/NxWidgets: Move the NxWidgets repository into the apps/
  16319. repository. Remove old apps/NxWidgets directory. Move NxWidgets
  16320. files into apps/graphics/NxWidgets. Integrate configuration/build
  16321. system. Fix file paths in file headers. Remove some duplicate
  16322. tools. Add new NxWidgets Unit Test configuration and build logic.
  16323. From Gregory Nutt.
  16324. - apps/graphics/NxWidgets: Add CNxString string + operator and
  16325. ::format() function. Add CNumericEdit option to include unit name
  16326. after the value. Make CNxWidget useWidgetStyle() public. From
  16327. Petteri Aimonen.
  16328. - apps/graphics/NxWidgets: Add CLabelGrid control for displaying text
  16329. in grid format. From Petteri Aimonen.
  16330. Bugfixes. Only the most critical bugfixes are listed here (see the
  16331. ChangeLog for the complete list of bugfixes and for additional, more
  16332. detailed bugfix information):
  16333. * Core OS:
  16334. - Clock: Remove g_monotonic_basetime and g_clock_monotonic_time since
  16335. we don't need ensure monotonic time start from zero as state here:
  16336. http://pubs.opengroup.org/onlinepubs/009696899/functions/clock_getres.html
  16337. From Xiang Xiao.
  16338. - Clock: Don't call up_timer_gettime in clock_gettime() and
  16339. clock_systimer() to ensure the return value from them consistent with
  16340. clock_systimespec From Xiang Xiao.
  16341. - Clock Initialization: clock_inittime() needs to be done with
  16342. CONFIG_SCHED_TICKLESS and clock_initialize should skip
  16343. clock_inittime() for external RTC case since the RTC isn't ready yet.
  16344. From Xiang Xiao.
  16345. - IOBs: Work around some issues with the IOB throttle semaphore. It
  16346. has some odd behaviors that can cause assertions in sem_post(). Also,
  16347. it seems to get outside of its range occasionally. Need to REVISIT
  16348. this. From Gregory Nutt.
  16349. - IOBs: iob_navail() was returning the number of free IOB chain queue
  16350. entries, not the number of free IOBs. Completely misnamed. From
  16351. Gregory Nutt.
  16352. - PM: Use the start time of state btime to calculate thrcnt; remove the
  16353. loop whose count may be very big after the long idle From ligd.
  16354. - PM Uninitialization: Fix pm_domain_s.stime un-intialize caused time
  16355. error. From ligd.
  16356. - sched_kfree() and sched_ufree(): This patch prevent heap corruption
  16357. in a corner case where memory is freed while switching contexts. This
  16358. change forces all de-allocations via sched_kfree() and sched_ufree()
  16359. to be delayed. Eliminating the immediate de-allocation prevents the
  16360. problem with the the re-entrant semaphore because the deallocation
  16361. always occurs on the worker thread, never on the suspended task. From
  16362. EunBong Song.
  16363. - sigsuspend(): sigsuspend() shouldn't eat the pending signal but
  16364. dispatch all instead From Xiang Xiao.
  16365. - task_restart(): Was restarting tasks with all signals set in the
  16366. sigprocmask set. Should have restarted with the sigprocmask cleared.
  16367. Noted by Jeongchan Kim From Gregory Nutt.
  16368. - unsetenv(): Fix and error in unsetenv() when un-setting the last of
  16369. the environment variables. From Gregory Nutt.
  16370. - waitpid(): Remove a bad error check. From Gregory Nutt.
  16371. * File System/Block and MTD Drivers:
  16372. - FAT: Fix file data corruption in fat_truncate(). From Petteri Aimonen.
  16373. - Partitions: Try MTDIOC_GEOMETRY IOCTL before bops's geometry.
  16374. From Xiang Xiao.
  16375. - MTD Progmem: Change up_progmem_npages() to up_progmem_neraseblocks().
  16376. page is a unit for read/write operation. eraseblock is a unit for
  16377. erase operation. up_progmem_npages() is a little bit confusing
  16378. because it returns number of erase blocks in flash memory. This patch
  16379. changes up_progmem_npages to up_progmem_neraseblocks.
  16380. up_progmem_eraseblock erase a block. so it's better to return the
  16381. erase block size than page size. From EunBong Song.
  16382. - R/W Buffer: Fix a lock issue From Xiang Xiao.
  16383. - SmartFS: Current sector should have a space for next entry size. If
  16384. not, we should move to next sector. From EunBong Song.
  16385. * Networking/Network Drivers:
  16386. - 6LoWPAN: Fixes bug in uncompress_addr handling of odd postfix. This
  16387. affected multicast compress/uncompress since it's the only logic that
  16388. used an odd postfix. The odd byte needs to be handled first, not
  16389. last. From Anthony Merlino.
  16390. - ARP and ICMPv6: Don't call d_txavail directly since it may point to
  16391. NULL From Xiang Xiao.
  16392. - ICMPv6: icmpv6_neighbor() shouldn't use the out of scope
  16393. variable(dripaddr) From Xiang Xiao.
  16394. - IPv6 input: Fixes logic in ipv6_input to handle more than ff02::/16
  16395. multicast addresses. Don't forward mcast packets if scope is not
  16396. appropriate From Anthony Merlino.
  16397. - IPv6 Input: Fix a logic error when the received IPv6 srcaddr is a
  16398. multicast address. Exiting logic only supported UDP multicast. But
  16399. MLD and certain other ICMPv6 packets also require acceptance of
  16400. multicast packets. From Gregory Nutt.
  16401. - TCP: In TPC recv window calculations, in order to receive data we
  16402. must not only have IOBs available, but we must also have at least one
  16403. IOB chain qentry available. Otherwise, we will advertise that we an
  16404. buffer a lot of data when, in fact, we cannot. This is an
  16405. experimental fix to a performance problem noted by Masayuki Ishikawa.
  16406. From Gregory Nutt.
  16407. - TCP: Fix compiler error and warning when CONFIG_NET_SENDFILE=y From
  16408. Xiang Xiao.
  16409. - TCP Input: Fix recovery when ackseq > unackseq. The comment near
  16410. this line says "reset the number of outstanding, unacknowledged
  16411. bytes". However, the code actually resets the whole TCP connection.
  16412. It was changed to the current form in commit f034d84ea1f with no
  16413. explanation of the intent. Recover the line to what it was before that
  16414. commit. From Sakari Kapanen.
  16415. - TCP Write Buffering: Fix buffer release handling on failed buffer
  16416. allocation. Attempt to release write buffer on failed TCP write I/O
  16417. buffer alloc and tryalloc failed to wrb->wb_iob assertion. From Harri
  16418. Luhtala
  16419. - TCP/UDP: In the POLLOUT poll logic, request an immediate Tx poll from
  16420. the network device bound to the socket. From Gregory Nutt.
  16421. - UDP: On a failure to find the destination device, fallback to
  16422. netdev_default device if the device is not found, rather than
  16423. arbitrary using the device at the head of the list of devices. From
  16424. Xiang Xiao.
  16425. - USRSOCK: Revert previous commit to re-allow combination of usrsock
  16426. and NuttX TCP/IP stack. For example, in case device has Ethernet and
  16427. mobile connectivity and NuttX TCP/IP stack is used when configured to
  16428. use Ethernet connection and usrsock when configured to use modem
  16429. (modem TCP/IP stack through usrsock). From Jussi Kivilinna.
  16430. - USRSOCK accept(): Mark newconn ready before issue accept request to
  16431. avoid the case that the request is discarded due to the socket being
  16432. in the invalid state From Xiang Xiao.
  16433. * Wireless/Wireless Drivers:
  16434. - Broadcom 802.11 Driver: There were two functions that have a address
  16435. issue. In bcmf_read_sbreg() and bcmf_write_sbreg():
  16436. SBSDIO_SB_OFT_ADDR_MASK should be used before map address space.
  16437. Noted by Shao Li in Bitbucket issue #126. From Gregory Nutt.
  16438. - Broadcom 802.11 Driver: Remove incorrect OR condition. Always true.
  16439. Noted by Shao Li in Issue 127. From Gregory Nutt.
  16440. - NRF24L01: Fix compilation errors. From Mateusz Szafoni.
  16441. * Other Common Drivers:
  16442. - ALARM Upper Half: Fix alarm ISR error when no CONFIG_SCHED_TICKLESS
  16443. drivers/timers/arch_alarm.c: Use uint64_t to avoid alarm 32-bit
  16444. overflow. From ligd.
  16445. - MAX11802: Fix compilation errors and allow setting PULL and SAMPLE
  16446. registers. From Petteri Aimonen.
  16447. - S25FL1: During a MTDIOC_GEOMETRY ioctl call, the driver was
  16448. incorrectly reporting the blocksize to be the same as the erasesize.
  16449. The blocksize should be 256 (the page size). This patch fixes that,
  16450. and now the SmartFS configration is working. From Ken Pettit.
  16451. - SYSLOG: nx_syslog's return value should include the timestamp length
  16452. From Xiang Xiao.
  16453. - SYSLOG: syslog_putc() calls sc_force in idle task even if interrupt
  16454. buffer enabled. The following cases may hang randomly in the bring up
  16455. phase: (1) boot up process and (2) suspend/resume process. Either
  16456. case runs in the idle task context, so it's difficult to debug the
  16457. hang issue if these output go through the interrupt buffer. From
  16458. Xiang Xiao.
  16459. - SYSLOG: Ensure interrupt log doesn't interlace in normal log. Don't
  16460. call syslog_putc in syslog_default_write because syslog_putc will try
  16461. to empty the interrupt buffer every time. From Xiang Xiao.
  16462. - UART 16550: Fix UART flow control issue. UART_MCR_RTS need be high
  16463. even UART_MCR_AFCE is enabled From zhangyuan7.
  16464. - USB RNDIS Device: Fix buffer overrun check in rndis.c. The rndis
  16465. driver has been working since 13 Nov 2017. However, I finally found
  16466. that it depends on network and buffer configurations. If a receiving
  16467. TCP packet is divided into smaller ones based on USB max packet size,
  16468. this condition check works correctly. From Masayuki Ishikawa.
  16469. * ARMv7-A:
  16470. - ARMv7-A: Replicate the same fix was previously committed for the
  16471. ARMv7-R. From Gregory Nutt.
  16472. * ARMv7-R:
  16473. - ARMv7-R: Fix error in cp15_flash_dcache. Change mcrne to mcr for
  16474. unconditional dcache. From EunBong Song.
  16475. * ARMv7-M:
  16476. - ARMv7-M Interrupts: Correct all ARMv7-M architectures. Interrupts
  16477. were not be disabled correctly on power up. Writing zero to the NVIC
  16478. SET-ENABLE registers has no effect. In order to disable interrupts,
  16479. it is necessary to write all ones to the NVIC CLEAR-ENABLE register.
  16480. Noted by David Sidrane. From Gregory Nutt.
  16481. * Broadcom BCM2708 Drivers:
  16482. - BCM2708 Serial: Juha Niskanen's fix related to STM32
  16483. CONFIG_SERIAL_OFLOWCONTROL also applies to cloned logic in BCM2708.
  16484. From Gregory Nutt.
  16485. * Intel x86:
  16486. - Qemu i486: Correct .bss, IDLE stack, heap organization. From Gregory
  16487. Nutt.
  16488. * NXP/Freescale LPC43xx Drivers:
  16489. - LPC43 Ethernet: Fix Ethernet TX_EN pin definitions. TX_EN on LPC43xx
  16490. can be routed via P0.1 and PC.4 in both MII and RMII mode. Before,
  16491. P0.1 was hard-coded for MII and PC.4 was hard-coded for RMII. Also,
  16492. the definitions used inconsistent naming (TXEN vs. TX_EN). From Jakob
  16493. Haufe.
  16494. - LPC43 Serial: Fix copy-paste error: g_usart1port->g_uart1port. From
  16495. Dave Marples.
  16496. - LPC43 SDMMC: Fix the LPC43 family SDMMC card access: Clocks were
  16497. wrongly configured, way too fast because there is no primary divider
  16498. on LPC4330, the LPC43_SDMMC_DELAY register was not being set, the
  16499. LPC43_SDMMC_BLKSIZ and LPC43_SDMMC_BYTECNT registers had the wrong
  16500. values. From Dave Marples.
  16501. - LPC43 SDMMC: Corrected a problem in lpc43_dmasendsetup(). There was
  16502. no linked DMA descriptor code on the send side. The end result was
  16503. stalls while sending multiple sectors. This commit adds that in and
  16504. the send code is working much better. From Dave Marples.
  16505. - LPC43 SDMMC: With these changes the SDMMC card for LPC43 is now
  16506. working properly: Timing was dependent on CPU speed rather than
  16507. absolute time, end of transfer handling was a bit mixed up. It is
  16508. possible for data to still be in the FIFO (i.e. not have reached the
  16509. card) when a next write is requested, so we need to wait for that to
  16510. complete. Interrupt Status could be carried over from one transfer
  16511. episode to the next, corrupting progress. Multi-descriptor DMA
  16512. writing simply wasn't implemented. From Dave Marples.
  16513. * NXP/Freescale LPC43xx Boards:
  16514. - Bambino-200E: Correct calculation of SDMMC clock configuration. The
  16515. LPC43 has no SDMMC source clock divider. Error noted by Dave
  16516. Marples. From Gregory Nutt.
  16517. * NXP/Freescale Kinetis:
  16518. - Kinetis: Remove all attempts to reprioritize interrupts. From Gregory
  16519. Nutt.
  16520. * NXP/Freescale Kinetis Drivers:
  16521. - Kinetis I2C: I2C On failed reset re-initialization I2C and clocking.
  16522. If a reset fails, we still must reinitializes the I2C block so that
  16523. subsequent transfers will not cause a hard-fault due to the clock
  16524. being off. If that transfer fails it can try to reset again. From
  16525. David Sidrane.
  16526. - Kinetis Serial: Juha Niskanen's fix related to STM32
  16527. CONFIG_SERIAL_OFLOWCONTROL also applies to cloned logic in Kinetis.
  16528. From Gregory Nutt.
  16529. * NXP i.MXRT Drivers:
  16530. - i.MXRT Ethernet: The board would not come up if I ran Nuttx from cold.
  16531. I dumped the PHY registers to see what the differences were and the
  16532. PHY was coming up in NANDTree mode. This is a mode for testing
  16533. connectivity between the PHY and the MAC. Switching this mode off in
  16534. the PHY registers has fixed the problem. From Dave Marples.
  16535. - i.MXRT Ethernet: Fix a race condition in setting up the Ethernet Tx
  16536. transfer. From Dave Marples.
  16537. - i.MXRT Ethernet: Corrections for the i.MXRT Ethernet: (1) Now the
  16538. Ethernet is completely re-initialized when an error occurs by means of
  16539. taking the interface down and back up but the PHY is _not_
  16540. renegotiated for that case because that is very time consuming and an
  16541. error in the Ethernet is no reflection on the state of the PHY
  16542. anyway. (2) Explicitly sets the expected PHY address to zero (this
  16543. could be moved into the config rather than searching for it which
  16544. takes ages, and it's zero anyway for this board (that's the broadcast
  16545. address, and anything that cannot respond on that has multiple PHYs,
  16546. so that would be a new board). (3) Allows for the renegotiation of
  16547. the PHY to be optional when a reset is needed. If a non-renegotiated
  16548. reset doesn't result in good comms to the PHY then it'll automatically
  16549. be escalated to a renegotiated one. (4) Only performs a reset for
  16550. errors that need it (the CRITICAL_ERROR define). The list of errors
  16551. that need reset are somewhat arbitrarily chosen based on my prejudices
  16552. and might need to be revisited, but certainly the jabber errors don't
  16553. need reset, the partial packet is thrown away by the layer above
  16554. anyway. (5) Re-loads the multicast table on reset. (6) Adds a bit
  16555. more logging into the imxrt Ethernet module. From Dave Marples.
  16556. - i.MXRT LPI2C: Fixes 2 bugs in the for IMXRT1050: (1) I2C time out and
  16557. did not send STOP condition when sending single byte, (2) I2C could
  16558. not receive bytes after repeated start. From Ivan Ucherdzhiev.
  16559. - i.MXRT LPSRTC: SVNC LPCR register bits 0 & 1 are NOT reserved and
  16560. are, in fact, needed to enabled the SRTC. Now the SRTC is working.
  16561. From Ivan Ucherdzhiev.
  16562. - LPC54 SDMMC: Add support for and SDMMC errata. It appears that now I
  16563. can read the SD card successfully, but I get CRC errors when writing
  16564. to the card. From Gregory Nutt.
  16565. - LPC54 SDMMC: Ported Dave Marples fixes LPC43 SDMMC to the LPC54.
  16566. From Gregory Nutt.
  16567. - i.MXRT WDOG: Typos in bit definitions, wdog registers are 16 bits,
  16568. wdog update has to be within 255 clocks of unlock, define board
  16569. clocking based on divisor and muxes. From David Sidrane.
  16570. * NXP i.MXRT:
  16571. - i.MXRT: clockconfig bug fix: Fixed logic that was not clearing bits
  16572. as ~ was missing in &= mask operations. Use values from the board.h
  16573. file so set the Mux that selects the clock sources. Use board
  16574. defined PODF values to select clock. Only configure USDHC2 clocks
  16575. when board defines clocks. From David Sidrane.
  16576. * NXP i.MXRT Boards:
  16577. - IMXRT1050-EVK: Previous committed implemented SPI-based MMC/SD card
  16578. support conditioned on CONFIG_MMCSD. This interferes with the
  16579. implementation of MMC/SD card support using the SDIO-based
  16580. peripheral. This commit renames that atypical support to *mmcsd_spi*
  16581. and conditions using the SPI-based support on CONFIG_MMCSD_SPI which
  16582. will then not interfere with the MMC/SD support that can be
  16583. conditioned on CONFIG_MMCSD_SDIO. From Gregory Nutt.
  16584. * On Semi LC823450 Boards:
  16585. - LC823450: Fix up_allocate_heap() in lc823450_allocateheap2.c. For
  16586. lc823450, heap area in flat build mode must start just after
  16587. _eronly. Because bss/data area is allocated in lower address than
  16588. text area in SRAM. See ld.scripts for details. Also, this change
  16589. removes unused up_allocateheap.c From Masayuki Ishikawa.
  16590. * Silicon Labs EFM32 Drivers:
  16591. - EFM32 Serial: Juha Niskanen's fix related to STM32
  16592. CONFIG_SERIAL_OFLOWCONTROL also applies to cloned logic in EFM32.
  16593. From Gregory Nutt.
  16594. - EFM32 USB Device: The epin_configure() function used the same eptype
  16595. as the TxFIFO number for all endpoints. This should probably be the
  16596. physical EP number, not the EP type. Suggested by Key Two. From
  16597. Gregory Nutt.
  16598. * STMicro STM32 Drivers:
  16599. - STM32* SPI: Don't rely on SPI_CR1_SPE to determine if peripheral has
  16600. been initialized. This change is needed specifically for the case
  16601. where a boot loader sets the SPE bit before starting NuttX. In that
  16602. case, the test in the SPI driver is wrong. This change fixes that by
  16603. assuring that NuttX has booted and initialized at least once (whether
  16604. or not SPE is set) before the driver starts refusing to initialize.
  16605. From Anthony Merlino.
  16606. - STM32 F0, F7, H7, L4 Serial: Fix use of CONFIG_SERIAL_IFLOWCONTROL
  16607. where CONFIG_SERIAL_OFLOWCONTROL was intended. From Juha Niskanen.
  16608. - STM32 TIM: Don't use hard-coded UIF interrupt in some functions.
  16609. From raiden00pl.
  16610. - STM32 (FS/HS), STM32F7, and STM32L4 OTGFS/HS Device: The
  16611. epin_configure() function used the same eptype as the TxFIFO number
  16612. for all endpoints. This should probably be the physical EP number,
  16613. not the EP type. Suggested by Key Two. From Gregory Nutt.
  16614. - STM32 F2: Fixes Kconfig options to include all STM32F20XX processors,
  16615. not just STM32F207. Also removes redundant STM32_STM32F429 depends
  16616. from Kconfig. STM32F4XXX already does this. From Anthony Merlino.
  16617. - STM32 F4 DAC: STM32F407VG has only one DAC. NDAC=2 causes
  16618. compilation error when trying to use e.g. STM32_DAC1_CR macro. From
  16619. Petteri Aimonen.
  16620. - STM32 F7 Serial: Force invalidation of data cache after DMA re-enable
  16621. when returning from low-power mode From Juha Niskanen.
  16622. * STMicro STM32 Boards:
  16623. - B-L475E-IOT01A: Correct timer source clock frequencies. From Freemans
  16624. Goden.
  16625. - Nucleo-L432KC: Fix SPI pin definitions in board.h. From Daniel P.
  16626. Carvalho.
  16627. * MIPS32:
  16628. - CP0 Definitions: Fix some copy-paste errors that cause malformed
  16629. comments and syntax errors when certain CP0 CONFIG1 bits are
  16630. referenced. Note in Issue 123 by Anonymous. From Gregory Nutt.
  16631. - microMIPS: Reported by Anonymous in Bitbucket Issue #129: When MIPS
  16632. port is built for microMIPS and then loaded as an application, the
  16633. __start entry point is entered in microMIPS mode, but the CPU core
  16634. initialization code there misses to set the config3ISAOnExc bit to 1.
  16635. Subsequently, exceptions are entered in MIPS32 mode, but the code base
  16636. was built for microMIPS.
  16637. * Microchip PIC32MZ:
  16638. - PIC32MZ Startup: In pic32mz-head.S, initialize the global pointer in
  16639. all shadow sets. From Ouss4.
  16640. * Microchip PIC32MZ Drivers:
  16641. - PIC32MZ Serial: Fix a typo in assignment of TTYS0 to UART6 From Ouss4.
  16642. * Simulation:
  16643. - SIM Network Driver: Fix error 'invalid operands to binary &' From
  16644. Xiang Xiao.
  16645. * C Library/Header Files:
  16646. - Fix typographical error in endian.h and resource.h From anchao.
  16647. - include/net/if.h: Adds extern "C" guard in include/net/if.h From
  16648. Anthony Merlino.
  16649. - include/netinet/in.h: Per OpenGroup.org, type of sin_port in struct
  16650. sockaddr_in must be in_port_t vs uint16_t. NOTE: in_port_t is
  16651. typdef'ed as uint16_t anyway. From Gregory Nutt.
  16652. - include/nuttx: Fix definitions used to access OS functions within the
  16653. libraries. In the FLAT build, we must always set the errno and/or
  16654. create cancellation points because the same library functions are used
  16655. within the OS as are used by applications. This could cause issues
  16656. for the OS but corrects some problems at the user interface. Noted by
  16657. Federico Braghiroli in Bitbucket issue 121. From Gregory Nutt.
  16658. - include/nuttx/clock.h: Fix uptime wrong if DEBUG_FEATURES and
  16659. SCHED_TICKLESS enabled. From Xiang Xiao.
  16660. - include/nuttx/fs/fs.h: Fix some backward parameters in a new macro
  16661. definition. From Gregory Nutt.
  16662. - include/nuttx/fs/fs.h: Register_mtddriver should depend on CONFIG_MTD
  16663. not CONFIG_MTD_PARTITION From Xiang Xiao.
  16664. - include/sys/socket.h: Renumber the socket types. They must begin at
  16665. 1, not zero. Socket type zero has a special meaning for some
  16666. interfaces. For example, getaddrinfo() uses a socket type of zero to
  16667. many any type of socket. The is no standard name for the
  16668. any-type-socket, but macOS uses SOCK_UNSPEC. NuttX will do the same.
  16669. Issue noted by Anthony Merlino. From Gregory Nutt.
  16670. - libs/libc: Correct some errors in psignal() and stpncpy(). From
  16671. Lokesh B V.
  16672. - libs/libc/math: Add variable convergence in log() and logf() to avoid
  16673. hangs caused by failure to converge for very specific input values.
  16674. Also includes a small change to log() and logf() that improves
  16675. accuracy and convergence time. From Rajan Gill.
  16676. - libs/libc/stdio: Fix conversion for format specifiers in sscanf() that
  16677. appear right after a floating point format specifier. When
  16678. performing a floating point conversion the parsing code could consume
  16679. more than required characters from the input buffer. This made
  16680. impossible to convert input of form "1.1K" using format "%f%c". Fix
  16681. the issue by advancing the input buffer with the actual characters
  16682. converted as a float point number. From Mihai Serban.
  16683. - libs/libc/stdio: Remove CONFIG_NOPRINTF_FIELDWIDTH. That option
  16684. does, indeed, make the printf family of functions much smaller. But
  16685. it also adds a lot of complexity and makes the functions
  16686. non-standard. Removing this might break some of the tinier platforms
  16687. but it is the best thing to do for long term maintenance for for
  16688. OpenGroup.org compliance.
  16689. - libs/libc/stdio: Update to vsprintf(). This resolves the integer
  16690. field width problem if Issue 35 for the cases of integer, long and
  16691. long long integer types. The output now matches the output form
  16692. glibc. From Gregory Nutt.
  16693. - libs/libc/string: Correct the return pointer value from stpncpy() for
  16694. the case where the NUL terminator is transferred. From Gregory Nutt.
  16695. - libs/libc/string: Fix strrchr() so that it considers null terminator
  16696. as part of string. From Petteri Aimonen.
  16697. - libs/libc/wqueue: Eliminate a race condition noted by Xiang Xiao.
  16698. Use sigprocmask() so that we do not lose a signal. From Gregory Nutt.
  16699. - libs/libnx/nxfonts: Fix kerning of 'I' in Sans17x22 font. From
  16700. Petteri Aimonen.
  16701. - libs/libnx/nxfonts: In nxfonts_getfont(), avoid unnecessary warnings
  16702. for other whitespace chars also. From Petteri Aimonen.
  16703. - libs/libnx/mxmu: NXMU now re-validates window pointer for mouse
  16704. events. NXMU caches the previous window pointer so that further mouse
  16705. events can be sent to the same window. However, if the window is
  16706. destroyed while mouse button is held down, the pointer may become
  16707. invalid and cause a crash. This patch revalidates the pointer before
  16708. using it. From Petteri Aimonen.
  16709. - libs/libnx/nxtk: nxtk_bitmapwindow: Fix warning message when bitmap is
  16710. fully off-screen. From Petteri Aimonen.
  16711. * Build System:
  16712. - Fix issue with libcxx build. This was changed multiple times, but
  16713. should be fixed now. From Anthony Merlino.
  16714. - configs/Makefile and tools/Config.mk: Move single file copy to the
  16715. new function COPYFILE. This fixes the Windows native build case when
  16716. there is no cp or cp does not recognize Windows paths. From Anatol
  16717. Ivanov.
  16718. - tools/Config.mk and tools/Makefile.win: Force use 'cmd' for shell
  16719. with windows native build From Anatol Ivanov.
  16720. - tools/Directories.mk: Correct the path to the installed libcxx
  16721. directory. From Gregory Nutt.
  16722. - tools/Makefile.win/unix: Staging directory (and its libraries) should
  16723. be removed on 'make clean' (issue noted by Dave Marples). From
  16724. Gregory Nutt.
  16725. - apps/Directory.mk: If the current directory contains a Kconfig file
  16726. and MENUDESC is not defined, then Directory.mk must not trash the
  16727. Kconfig in the current directory. From Gregory Nutt.
  16728. - apps/Makefile: Fix Windows native build patch extension. From Anatol
  16729. Ivanov.
  16730. * Other Tools:
  16731. - tools/Config.mk: Fix an error in RWILDCARD implementation From
  16732. Anthony Merlino.
  16733. - tools/configure.c: Add missing '\n' in printf statement
  16734. - tools/configure.c: Add missed -g option to getopt() string. From
  16735. Anatol Ivanov.
  16736. - tools/configure.c and tools/configure.sh: Fix Windows native
  16737. pre-build kconfig-conf incompatibility. From Anatol Ivanov.
  16738. - tools/csvparser.h: Extend MAX_PARMSIZE to 256. Fixes this issue:
  16739. 70: Parameter too long: ... From Xiang Xiao.
  16740. - tools/link.bat: Fix .fakelink creation. From Anatol Ivanov.
  16741. - tools/mkdeps.c: Fix '\0' missing with MinGW. From Anatol Ivanov.
  16742. * NSH Library: apps/nshlib:
  16743. - apps/nshlib: Correct maximum number of arguments that can be provided
  16744. to the mksmartfs command. From Eunbong Song.
  16745. - apps/nshlib: Add fflush to nsh_consolewrite(). This resolves this
  16746. problem: 'cat /dev/ttyCP &' followed by 'echo ls >/dev/ttyCP'. In
  16747. that case we can't get the 'ls' result immediately, because 'cat' cmd
  16748. uses nsh_consolewrite() and that uses fwrite with no fflush. We can
  16749. get the 'ls' result after type '\n', because nsh will fflush output
  16750. when get '\n'. From ligd.
  16751. - apps/nshlib: nsh_catfile() should not append '\n' if the last char in
  16752. file is already '\n' From Xiang Xiao.
  16753. - apps/nshlib: Fix warning g_oldpwd defined but not used
  16754. [-Wunused-const-variable] in nsh_envcmds.c. From Xiang Xiao.
  16755. * Examples/Tests: apps/examples:
  16756. - apps/examples/adc/Kconfig: CONFIG_BOARDCTL_ADCTEST does not exist
  16757. anymore and should removed as a dependency. From Eunbong Song.
  16758. - apps/examples/webserver/Kconfig: The webserver "app" allows for DHCP
  16759. client to be enabled. However, the Kconfig infrastructure does not
  16760. contain EXAMPLES_WEBSERVER_DHCPC config. Based on patch from
  16761. "Anonymous" attached to Bitbucket Issue #130. From Gregory Nutt.
  16762. * System Utilities: apps/system:
  16763. - apps/system/hexed: Fix memory leak From zhuyanlin.
  16764. - apps/system/i2c: Fix i2c_msg freq initialization problem. Typo
  16765. prevented I2C frequency initialization in a struct i2c_msg. From
  16766. dongjiuzhu.
  16767. - apps/system/system: Fix warning when passing argument 6 of
  16768. 'task_spawn' from incompatible pointer type
  16769. [-Wincompatible-pointer-types] From Xiang Xiao.
  16770. * Network Utilities: apps/netutils:
  16771. - Correct some network-related configuration variable names. All *_MTU
  16772. defines were changes to *_PKTSIZE gut that was not reflected in
  16773. apps/ From Gregory Nutt.
  16774. - apps/netutils/netlib/netlib_parsehttpurl.c: Correct handling of long
  16775. URLs as noted in Bitbucket issue #119 (in the nuttx/ repository, not
  16776. the apps/ repository). From Gregory Nutt.
  16777. - apps/netutils/codecs: "dst" overflow protection when base64 string
  16778. ends with "=" From Aleksandr Vyhovanec.
  16779. - apps/include/netutils/ipmsfilter.h: Eliminate error generated by bad
  16780. pre-processor logic. From Gregory Nutt.
  16781. * GPS Utilities: apps/graphics:
  16782. - apps/graphics/NxWidgets: Fix garbage returned when
  16783. CCycleButton::getValue() is called after removeAllOptions().
  16784. CScrollingPanel should not draw outside the widget area. From
  16785. Petteri Aimonen.
  16786. NuttX-7.28 Release Notes
  16787. ------------------------
  16788. The 128th release of NuttX, Version 7.28, was made on January 19, 2019,
  16789. and is available for download from the Bitbucket.org website. Note
  16790. that release consists of two tarballs: nuttx-7.28.tar.gz and
  16791. apps-7.28.tar.gz. These are available from:
  16792. https://bitbucket.org/nuttx/nuttx/downloads
  16793. https://bitbucket.org/nuttx/apps/downloads
  16794. Both may be needed (see the top-level nuttx/README.txt file for build
  16795. information).
  16796. Additional new features and extended functionality:
  16797. * Core OS:
  16798. - Critical Section Monitor: Adds data collection logic in support of
  16799. pre-task monitoring critical sections and pre-emption state. From Gregory
  16800. Nutt
  16801. - Critical Section Monitor: Add support for global pre-emption and
  16802. global critical sections to monitor as suggested by Xiang Xaio. From
  16803. Gregory Nutt
  16804. - Interrupt Time: Measurement of interrupt handler duration used to
  16805. be available only in Tickless mode since it used the high resolution
  16806. Tickless timer to measure interrupt time. This change adds
  16807. CONFIG_SCHED_IRQMONITOR_GETTIME which, if enabled, will force the
  16808. interrupt duration calculation to use the same high-resolution,
  16809. platform-specific timer as is used with the Critical Section Monitor.
  16810. This leads to two improvements: (1) You can now measure interrupt
  16811. duration in non-Tickless mode, and (2) in either mode, the interrupt
  16812. duration and the critical section measures will use the same
  16813. high-resolution timer and should, therefore, never be any discrepancy
  16814. due to different clock sources. From Gregory Nutt
  16815. - Context Switching Protection: Add debug assertions before each call
  16816. to up_block_task() to assure that there is no attempt to block an
  16817. IDLE task. From Dave Marples
  16818. - init Task: Allow the init task priority to be configurable. From
  16819. David Sidrane
  16820. - pthreads: Implement pthread_key_delete(). This involves some minor
  16821. changes to the group data structure. From Gregory Nutt
  16822. * File Systems/Block and MTD Drivers
  16823. - ProcFS: Extended the process ID ProcFS output to show per-thread
  16824. maximum time for pre-emption disabled and maximum time within a
  16825. critical section. From Gregory Nutt
  16826. - NXFFS: Pass unrecognized IOCTL commands to the contained MTD
  16827. driver. From Daniel P. Carvalho
  16828. - LittleFS: Adds an initial port the ARM mbed littlefs to NuttX. This does
  16829. not include FLASH formatting utilities. Depends on CONFIG_MTD_BYTE_WRITE.
  16830. From lihaichen
  16831. - AT25 MTD Driver: Added support for AT25DF081A serial flash chip.
  16832. From Marc Rosen
  16833. - MTD Configdata Device: Extends the MTD configdata device with the
  16834. following features / additions:
  16835. 1. Configurable option to use named config items instead of enumerated
  16836. ID/Instance numbers.
  16837. 2. Ability to iterate through the existing configdata items in the
  16838. /dev/config device.
  16839. 3. Ability to "unset" a configdata item.
  16840. 4. Ability to perform "flash_eraseall" on the /dev/config device.
  16841. From Ken Pettit
  16842. * Networking/Network Drivers:
  16843. - Telnet Driver: Add NAWS and poll interface to telnet for screen size
  16844. negotiation used with termcurses. From Ken Pettit
  16845. * Wireless/Wireless Drivers:
  16846. - BLE HIC Core: Add second RX work function From Lwazi Dube
  16847. - BLE IOCTL Commands: Add SIOCBTCONNECT and SIOCBTDISCONNECT ioctl
  16848. commands From Lwazi Dube
  16849. - CC2564: Add cc2564 HCI UART driver. From Lwazi Dube
  16850. * Graphics/Display Drivers:
  16851. - Sitronix ST7032i: Add support to Alphanumeric Sitronix ST7032i
  16852. display From Alan Carvalho de Assis
  16853. - NXP TDA19988: This commit brings in a complete, but untested,
  16854. implementation of a driver for the TI TDA19988 HDMI Encoder. This encoder
  16855. is used on the Beaglebone Black board. Since this driver is untested, it
  16856. requires CONFIG_EXPERIMENTAL in the configuration. From Gregory Nutt
  16857. * Crypto:
  16858. - crypto/aes.c: This change provides an improved AES cipher API in
  16859. addition to the existing routines. The reasons for this new API are:
  16860. 1) better performance, giving the possibility to avoid re-setting-up
  16861. the key for each AES block when the same key is used multiple times.
  16862. This is important for the current single user of AES, which is
  16863. related to storage and FTL. And 2) suitable for simultaneous use of
  16864. multiple AES keys, which will be required by the upcoming crypto
  16865. framework. It retains compatibility with the previous API, so there
  16866. is no need to change anything else right now. From Sebastien Lorquet
  16867. * Other Common Device Drivers:
  16868. - MMCSD SDIO: The mmcsd_sdio driver makes calls for dcache
  16869. invalidation through the chip specific architecture function
  16870. SDIO_DMARECVSETUP(). I changed the arch/arm/stm32f7 chips to use
  16871. arch_invalidate_dcache_by_addr() instead of arch_invalidate_dcache().
  16872. This commit includes additional changes to mmcsd_sdio.c. I
  16873. created SDIO_DMADELYDINVLDT() (DMA delayed invalidate) to
  16874. invalidate store-into mode dcaches after the DMA transfer. I
  16875. have been using SDIO_DMADELYDINVLDT() for several weeks now and
  16876. it has fixed the problems that I previously reported regarding
  16877. non-cache aligned buffer invalidation errors (for my store-through
  16878. dcache). However, it does not permit use of unaligned DMA buffers
  16879. for store-into mode dcaches.
  16880. SDIO_DMADELYDINVLDT() is a NoOp unless the chip specific Kconfig
  16881. file selects CONFIG_ARCH_HAVE_SDIO_DELAYED_INVLDT. I have modified
  16882. all the stm32f7 chips to select it. From Bob Feretich
  16883. - SPI Lower Half Interface: Extend the HW features supported by SPI.
  16884. It now supports a deferred DMA trigger hardware configuration. From
  16885. Dave Marples
  16886. - DS28E17 1-Wire Driver: Optimize I2C write followed by read to same
  16887. address. From Juha Niskanen
  16888. - LMP92001: Add support for the TI LMP92001 Multi-channle DAC/ADC
  16889. device. From Abdelatif Guettouche.
  16890. - EEPROM Character Driver: Add support to Microchip AT24CM02 From
  16891. Alan Carvalho de Assis
  16892. - Microchip MCP73871: Add support to Microchip MPC73871 Battery Charger.
  16893. From Alan Carvalho de Assis
  16894. - MCP7941x: Add support for the Microchip MCP741x external RTC. From Ouss4
  16895. - Sensirion SCD30: Driver for Sensirion SCD30 CO2 sensor. From Jussi
  16896. Kivilinna
  16897. - Sensirion SGP30: Driver for Sensirion SCD30 gas sensor. From Jussi
  16898. Kivilinna
  16899. - Sensirion SPS30: Driver for Sensirion SCD30 particulate matter sensor.
  16900. From Jussi Kivilinna
  16901. - USB CDC/ACM Device: When implemented usb cdc on nrf52840, I found
  16902. some issues with cdc driver:
  16903. 1. Lost data when receiving buffer is full;
  16904. 2. Low-water mask implement issue;
  16905. 3. Re-flush cdc buffer when enabling
  16906. 4. Serial dma is conflict with cdc , modify the serial.h
  16907. From Levin Li
  16908. * MIPS32:
  16909. - Configuration System: Allow Penguino for windows for the Windows
  16910. Ubuntu platform as well.
  16911. * Maxim Integrated MAX326xx
  16912. - MAX32660: Support for the MAX32660 was added (along with partial
  16913. support for other members of the MAX326xx family). The initial port
  16914. includes Clock configuration, timer, GPIO pin configuration, ICC,
  16915. and UART. Additional untested drivers are complete and ready for
  16916. testing: DMA, GPIO interrupts, SPI0 Master, TC, WDT. The following
  16917. drivers are not yet implemented: I2C and I2S.
  16918. * Maxim Integrated MAX326xx boards
  16919. - MAX32550-EVSYS: Basic support for the Maxim Integrated MAC3X660
  16920. EVSYS is included. A basic NSH configuration is available and is
  16921. fully functional. Includes unverified support for an SPI0-based
  16922. SD card.
  16923. * Microchip/Atmel SAMD21/L21 Drivers:
  16924. - SAMD21/L21: Adds a complete ADC header file for SAMD21 and a partially
  16925. complete ADC header file for the SAML21. From Alexander Vasiliev
  16926. - SAMD21/L21: Export sam_i2c_master_initialize(int bus) to be used by
  16927. board config. From Alan Carvalho de Assis
  16928. * Microchip PIC32MZ Drivers:
  16929. - PIC32MZ I2C: Add support for the I2C bus. From Ouss4
  16930. * ARMv7-A
  16931. - ARMv7-A MMU: Use TLBIMVA vs TLBIMVAAIS to invalidate the Cortex-A8
  16932. cache. From Petro Karashchenko
  16933. * ARMv7-M
  16934. - Cortex-M7 Cache: This commit adds a new function
  16935. arch_invalidate_dcache_by_addr(). It takes the same parameters as
  16936. arch_invalidate_dcache(), but performs invalidation of only the lines
  16937. in cache that need to be invalidated. This new function could be
  16938. used as a a direct replacement for arch_invalidate_dcache(). From
  16939. Bob Feretich
  16940. - ARMv7-M: In the current implementation we only use very high
  16941. priority interrupts (levels 0, 0x10 and 0x20 in CORTEX-M speak) but
  16942. that means there are loads of lower priority ones that are
  16943. effectively unused. I have *not* changed the semantics of these
  16944. levels but have 'shifted' them to be based around the midpoint of the
  16945. available interrupts (0x80) rather than at the top end....that allows
  16946. for interrupts to be defined above (or, indeed, below) them as needed
  16947. by the application. This should have no functional effect on
  16948. existing code but adds in a clean capability to define higher
  16949. priority interrupts. From Dave Marples
  16950. * Broadcom BCM2708:
  16951. - BCM2708: Remove all support for the BCM2708/2835. This was added
  16952. only for support of the RaspberryPi Zero board which was previously
  16953. removed. The support was minimal and unverified. The removed files
  16954. can still be found in the Obsoleted directory. From Gregory Nutt
  16955. * Broadcom BCM2708 Boards:
  16956. - Raspberry Pi Zero: Remove the partial support for the Raspberry Pi
  16957. Zero. This port was started with the best of intentions but was
  16958. never completed. The board support can still be found in the
  16959. Obsoleted repository. From Gregory Nutt
  16960. * Nordic NRF52 Boards:
  16961. - Improve LED handling #if~#endif in nrf52_autoleds.c and
  16962. nrf52_userleds.c
  16963. Add Adafruit Feather nRF52 board LED support
  16964. Add Adafruit Feather nRF52 board
  16965. Add nrf52-generic
  16966. Replace 'pca10040' with 'generic'
  16967. Copy from nrf52-pca10040 to nrf52-generic
  16968. From Zou Hanya
  16969. * NXP i.MX RT Drivers:
  16970. - i.MXRT: Add PIT, GPT, and QIMER(TMR) header files From David Sidrane
  16971. - i.MXRT: Add FLEXPWM. From David Sidrane
  16972. - i.MXRT: Add ADC chip header From David Sidrane
  16973. - i.MXRT Build: Include up_systemreset and up_stackcheck.c From David Sidrane
  16974. - i.MXRT GPIO: Add GPIO Support Input daisy selection. From David Sidrane
  16975. - i.MXRT Serial: Support independent input and output flow control. From
  16976. David Sidrane
  16977. - i.MXRT USB: Use single define for USB pin definitions. From David Sidrane
  16978. - IMXRT106X: Add FLEXCAN3 to pinmux header file. From David Sidrane
  16979. * NXP Freescale i.MX RT Boards:
  16980. - IMXRT1050-EVK: GPIO device driver support added and tested by
  16981. Pavlina Koleva and Ivan Ucherdzhiev. From Pavlina Koleva
  16982. * On Semi LPC23450:
  16983. - LPC23450: Add support for SPI flash boot. Also, remove unnecessary
  16984. code for the SPI flash boot. From Masayuki Ishikawa
  16985. * On Semi LPC23450 Boards:
  16986. - LC823450-XGEVK: Add linker script for SPI flash boot. From
  16987. Masayuki Ishikawa
  16988. - LC823450-XGEVK: Enable NFS client for RNDIS configuration. Also, some
  16989. stack size were adjusted to work with NFS From Masayuki Ishikawa
  16990. * Simulation
  16991. - Critical Section Monitor: Add low level timer support for simulation. From
  16992. Gregory Nutt
  16993. * STMicro STM32:
  16994. - Configuration: Simplify ARM core selection logic From Mateusz Szafoni
  16995. - Configuration: USB Host is an option. From David Sidrane
  16996. - STM32 L0: Brings in initial support for the STM23 L0. From Mateusz
  16997. Szafoni
  16998. * STMicro STM32 Drivers:
  16999. - STM32 ADC: Configurable ADC DMA mode (one shot mode, circular
  17000. mode). From Mateusz Szafoni
  17001. - STM32 ADC: Start conversion on startup is now possible if TIM
  17002. triggering selected. This can be useful to start ADC TIM conversion
  17003. for ADC IPv2 when opening ADC device.
  17004. - STM32 DAC: Unified naming for DAC interfaces From Mateusz Szafoni
  17005. - STM32 DMA: Add interfaces to interact with high priority DMA
  17006. interrupts. From Mateusz Szafoni
  17007. - STM32 DMA: Use STM32 DMA IP core version instead of chip family
  17008. names. From Mateusz Szafoni
  17009. - STM32 DMA: Add support for DMA v1 CSELR support. From Mateusz Szafoni
  17010. - STM32 HRTIM: Do not enable timers on startup if option from Kconfig
  17011. selected and add interface to enable/disable timers. From Mateusz
  17012. Szafoni
  17013. - STM32 PWM: Add timer enable/disable and frequency update to
  17014. low-level ops. From Mateusz Szafoni
  17015. - STM32 SPI: Implements the new deferred DMA trigger feature. From
  17016. Dave Marples
  17017. - STM32 F0 Build: Rename the stm32f0 directory to stm32f0l0 to make a
  17018. space for STM32 L0. Rename files, functions and defines, removing
  17019. the f0_ from the names in order to make them MCU agnostic. From
  17020. Gregory Nutt
  17021. - STM32 F0 GPIO: Add support for GPIO EXTI. From Mateusz Sfafoni
  17022. - STM32 F2 FLASH: stm32_flash_writeprotect() supported the same for
  17023. STM32F20XX as STM32F4XXX From Anthony Merlino
  17024. - STM34 F7 DMA: stm32f7 enable separate DMA per SPI configuration
  17025. From Daniel Agar
  17026. - STM32 F7 QEncoder: Ported the QEncoder from F4 to F7. From Eduard
  17027. Niesner
  17028. - STM32 F7 SPI: Port Dave Marples STM32 deferred trigger enhancement
  17029. to the STM32 F7 SPI drivers. From Gregory Nutt
  17030. - STM32 H7 SPI: Port Dave Marples STM32 deferred trigger enhancement
  17031. to the STM32 H7 SPI drivers. From Gregory Nutt
  17032. - STM32 L4 SPI: Port Dave Marples STM32 deferred trigger enhancement
  17033. to the STM32 L4 SPI drivers. From Gregory Nutt
  17034. * STMicro STM32 Boards:
  17035. - B-L072Z-LRWAN1: Add basic support for b-l072z-lrwan1. Nucleo boards
  17036. use as default ST LINK MCO as clock input from MCU and for this
  17037. HSEBYP must be enabled. From Mateusz Szafoni
  17038. - Nucleo-F103RB: Add board support. From Mateusz Szafoni
  17039. - Nucleo-F103RB: Add ADC and PWM examples. From Mateusz Szafoni
  17040. - Nucleo-F207ZG: Add board support. From Mateusz Szafoni
  17041. - Nucleo-F207ZG: Add ADC and PWM examples. From Mateusz Szafoni
  17042. - Nucleo-F302R8: Add high priority ADC interrupts example to the
  17043. 'highpri' configuration. From Mateusz Szafoni
  17044. - Nucleo-F334R8: Add support for ADC injected sequence to the 'highpri'
  17045. configuration, add triggering from TIM1. From Mateusz Szafoni
  17046. - Nucleo-F334R8: Add example for the SPWM generation (custom STM32 PWM
  17047. usage). From Mateusz Szafoni
  17048. - Nucleo-F767ZI: Use on board USB UART as default console. Board is powered
  17049. by USB which can be used as UART link for upload and console. Previously
  17050. it was set to use Arduino shield which developer may not have. From Phil
  17051. Coval
  17052. - Nucleo-F767ZI: Add ethernet config based on nsh configuration plus
  17053. stm32f769i-disco/nsh-ethernet. From Phil Coval
  17054. - Nucleo-L073RZ: Add basic support for nucleo-l073rz. Nucleo boards
  17055. use as default ST LINK MCO as clock input from MCU and for this
  17056. HSEBYP must be enabled. From Mateusz Szafoni
  17057. - Nucleo-L152RE: Add board support. From Mateusz Szafoni
  17058. - STM32F4 Discovery: Add timing support for the critical section
  17059. monitor using the DWT CYCNT register. From Gregory Nutt
  17060. - STM32F4 Discovery: If the Critical Section Monitor, modify the
  17061. ITM_LAR register to assure that the DWT cycle counter is enabled.
  17062. Suggested by Dave Marples. From Gregory Nutt
  17063. - STM32F4 Discovery: Add board support to display ST7032i From Alan
  17064. Carvalho de Assis
  17065. - STM32F4 Discovery: Add loadable application build support in
  17066. Make.defs From Masayuki Ishikawa
  17067. - STM32F4 Discovery: Update RNDIS configuration: (1) Add NFS and adjusted
  17068. stack size for usermain and telnetd client. (2) Add support for loadable
  17069. application and ping. From Masayuki Ishikawa
  17070. - STM32F4 Discovery: Update nsh configuration: (1) Add
  17071. CONFIG_BOARD_INITIALIZE=y, (2) Add CONFIG_EXAMPLES_HELLO=y. From Masayuki
  17072. Ishikawa
  17073. - STM32F429I-DISCO: Add high priority ADC interrupts example to the
  17074. 'highpri' configuration. From Mateusz Szafoni
  17075. - configs/nucleo-l073rz: Support for nrf24l01. From Mateusz Sfafoni
  17076. * TI CCxx:
  17077. - CC13x0 family and CC13x2/CC26x2: Basic, minimal support was added
  17078. for these two chip families. This is a Work-In-Progress: There is
  17079. just enough logic in place to support a simple NSH configuration.
  17080. However, the port is still missing certain, necessary hooks into the
  17081. TI ROM-based 'DriverLib'. As a result, the support is not fully code
  17082. complete and is totally untested. Support for the CC26x2, which is
  17083. nearly identical to the CC13x2 is fragmentary. Stay tuned.
  17084. Hopefully full support will be available in NuttX 7.29.
  17085. * TI CCxx Boards:
  17086. - LAUNCHL-CC1312R1: Board support is available for the TI
  17087. LAUNCHL-CC1312R1. That board support consists only of an unverified
  17088. NSH configuration. The primary purpose of this port for the time
  17089. being is simply support the core architecture bring-up.
  17090. * TI AM335x:
  17091. - AM335x: Adds initial support for the TI AM355x family.
  17092. - AM335x: Add minimal wdog logic needed to disable the watchdog timer.
  17093. Otherwise, the board is rebooted after certain time expires while NuttX is
  17094. running. From Petro Karashchenko
  17095. - AM335x: Switch to DMTimer2 for system tick generation. U-Boot does not
  17096. enable DMTimer1ms clocks hence it is not possible to use it until
  17097. implementation in am335x_clockconfig.c is ready. From Petro Karashchenko
  17098. * TI AM335x Boards:
  17099. - Beaglebone Black: Initial port for BeagleBone Black board support
  17100. (TI AM335x family based on Cortex-A8). Includes a basic functional NSH
  17101. configuration . From Petro Karashchenko
  17102. * TI Tiva:
  17103. - LM3S9B92: Add support for LM3S9B92. From Lwazi Dube
  17104. * TI Tiva Drivers:
  17105. - Tiva HCI UART: Port bluetooth HCI uart interface from stm32 to tiva
  17106. From Lwazi Dube
  17107. * TI Tiva Boards:
  17108. - TM4C1294-Launchpad: Add IRQBUTTONS support to tm4c1294 launchpad.
  17109. From Lwazi Dube
  17110. * Tools:
  17111. - tools/convert-comments.c: Add a tool to convert C++-style comments
  17112. to C89 C-style comments. From Gregory Nutt
  17113. - tools/detab.c: Add detab.c which will convert all tabs in a file to
  17114. spaces. From Gregory Nutt
  17115. - tools/lowhex.c: Add lowhex.c that will convert hexadecimal constants
  17116. in a file to use lower case representation. From Gregory Nutt
  17117. - tools/mkconfig.c: Add definitions to distinguish between tristate
  17118. 'y' and 'm' options. From Gregory Nutt
  17119. - tools/nxstyle.c: Add logic to detect long lines. From Gregory Nutt
  17120. - tools/nxstyle.c: Add -h for help. From Gregory Nutt
  17121. * Libraries/Header Files:
  17122. - include/nuttx/lcd/edid.h: Add EDID definitions From Gregory Nutt
  17123. - libs/libc/netdb: Make DNS retries configurable From Juha Niskanen
  17124. - libs/libc/netdb: Harden query logic against DNS spoofing. This
  17125. commit implements most of the RFC 5452 guidelines for making DNS more
  17126. resilient. We now verify response matches against what was queried
  17127. and use unpredictable query IDs. It is also checked that response
  17128. come from correct DNS server. Also fixes a buffer overflow when
  17129. querying hostnames longer than CONFIG_NETDB_DNSCLIENT_NAMESIZE. From
  17130. Juha Niskanen
  17131. - libs/libc/netdb: Support multiple IP addresses per hostname From
  17132. Juha Niskanen
  17133. * NSH: apps/nshlib:
  17134. - apps/nshlib: Add support to use SLCD as NSH Console From Alan Carvalho de
  17135. Assis
  17136. - apps/nshlib: Add support for CROMFS start-up script. From David Sidrane
  17137. - apps/nshlib: Add var expansion in NSH parse. From Daniel Agar
  17138. - apps/nshlib: Display built-in apps using multi-column mode like the NSH
  17139. commands. From Ken Pettit
  17140. - apps/nshlib: In all multi-column help output, calculate an optimal column
  17141. width rather than using a hard-coded width that may or may not be
  17142. appropriate. Also make the number of rows presented dependent upon the
  17143. maximum width of the widest column. From Gregory Nutt
  17144. - apps/nshlib: Adds addroute command options for setting default gateway.
  17145. Like 'addroute default <ipaddr> <interface>'. From Anthony Merlino
  17146. * Examples/Tests: apps/examples:
  17147. - apps/examples/battery: Add Battery Charger Monitor Example From Alan
  17148. Carvalho de Assis
  17149. * System Utilities: apps/system
  17150. - apps/system/configdata: Adds an "cfgdata" command which allows
  17151. manipulation of the /dev/config items via the command line. One such use
  17152. for this utility would be to set a "macaddr" configdata item, etc. The
  17153. utility is sort-of like a u-boot env variable edit function:
  17154. For instance, to set a "macaddr" when the new CONFIG_MTD_CONFIG_NAMED
  17155. option is selected, you would do:
  17156. nsh> cfgdata set macaddr [0xfc 0x01 0x0b 0x45 0xa1 0x12]
  17157. (The brackets denotes an array of bytes)
  17158. nsh> cfgdata set hostname myboard
  17159. or using the old ID,INSTANCE numeric method:
  17160. nsh> cfgdata set 0,0 [0xfc 0x01 0x0b 0x45 0xa1 0x12]
  17161. (The brackets denotes an array of bytes)
  17162. nsh> cfgdata set 1,0 myboard
  17163. You can also display all config items:
  17164. nsh> cfgdata print all
  17165. Name Len Data
  17166. macaddr 6 0xFC 0x01 0x0B 0x45 0xA1 0x12
  17167. hostname 8 myboard
  17168. From Ken Pettit
  17169. - apps/system/critmon: Add a daemon to monitor critical section usage. From
  17170. Gregory Nutt
  17171. - apps/system/nsh: Set NSH priority if the NSH task was scheduled at a
  17172. different priority than the configured priority. From Gregory Nutt
  17173. - apps/system/nxplayer: Introduce CONFIG_NXPLAYER_MAINTHREAD_STACKSIZE. From
  17174. Masayuki Ishikawa
  17175. - apps/system/termcurses: Addition of termcurses libraries in
  17176. apps/system/termcurses From Ken Pettit
  17177. - apps/system/vi: New feature additions
  17178. 1. Vi startup feature to prepend the current working directory to the
  17179. supplied filename if it does not start with '/' absolute path
  17180. specifier. This allows editing files in the current directory
  17181. without needing to fully qualify the filename.
  17182. 2. Standard '~' empty screen line characters for proper identification
  17183. of empty '\n' only lines at the end of the file.
  17184. 3. Moving into insert or append mode now prints '--INSERT--' in the
  17185. status line and clears it upon exit.
  17186. 4. Integration with termcurses to detect special keystrokes and to
  17187. handle terminal type differences. Haven't yet converted all vt100
  17188. print codes to termcurses equivalents.
  17189. 5. Support for up, down, left, right arrows, page-up, page-down keys in
  17190. command mode.
  17191. 6. Added 'b' command to move cursor 'b'ack to previous word. Honors the
  17192. command repeat value for multiple word moves.
  17193. 7. Added 'w' command to move cursor to next 'w'ord. Honors the command
  17194. repeat value for multiple word moves.
  17195. 8. Added 'f' and 't' commands to find characters on the current line.
  17196. Honors the command repeat value.
  17197. 9. Added the find 'n'ext command to repeat the previous find operation.
  17198. 10. Added the 'H', 'M', and 'L' commands to move the cursor to top,
  17199. middle and bottom of the display.
  17200. 11. Extended yank/paste to manage a paste buffer with character mode in
  17201. addition to line mode. Character mode allows cut / paste of
  17202. individual characters or groups of characters vs. full lines.
  17203. 12. Added support in the 'd'elete and 'y'ank commands for character mode
  17204. deletions such as 'dw', 'dfa', '2yw', etc.
  17205. 13. Added support in paste routine for multiple paste using command value
  17206. argument.
  17207. 14. Added support for the 'D' and 'C' delete and change to end of line
  17208. commands.
  17209. 15. Added support for 's'ubstitute key ('x' followed by insert mode).
  17210. 16. Modified yank / paste allocation scheme to avoid repeated alloc and
  17211. free of paste buffer. Uses a minimum allocation size scheme and only
  17212. does free / realloc when paste does not fit. If the paste is smaller
  17213. than the current allocation and the current allocation is larger than
  17214. the threshold, then the buffer is freed and a smaller buffer
  17215. allocated. Otherwise the existing buffer is used.
  17216. 17. Support for 'P'aste before current cursor position.
  17217. 18. Support for '?' reverse search mode.
  17218. 19. Support for 'J'oin next line with current line command.
  17219. 20. Printing of current row,col in status line of display.
  17220. 21. Command repeat '.' support for commands that modifiy text.
  17221. 22. Support in replace / insert mode for arrow keys, PGUP / PGDN, HOME,
  17222. and END. Using these will cause the command repeat buffer to reset
  17223. such that only the last text addition after a cursor movement is saved.
  17224. 23. Added 'X' delete previous command.
  17225. 24. Added "gg" go to top of document command sequence.
  17226. 25. Added "ZZ" save and quit command (equivalent to :wq).
  17227. 26. Implemented '^' goto first non-whitespace on current line, along with
  17228. '+' and '-' goto first non-whitespace on next / previous line.
  17229. 27. Added CR / LF goto first non-whitespace on next line in command
  17230. mode. From Ken Pettit ?
  17231. * Network Utilities: apps/netutils:
  17232. - apps/netutils/webserver: The webserver/httpd app is was broken when script
  17233. support was enabled (CONFIG_NETUTILS_HTTPD_SCRIPT_DISABLE). The root cause
  17234. has been tracked down to the "Content-length" not being available ahead of
  17235. time in this case (length of -1 passed to send_headers() ). On the other
  17236. hand, the server closing the socket does not result in FIN being sent to
  17237. the browser either (FIN not supported by NuttX yet).
  17238. Simple solution: Add support for HTTP Chunked Encoding to webserver/httpd.
  17239. The change is simple. It adds a configuration option to enable chunked
  17240. encoding. When enabled, the implementation will auto-detect the cases where
  17241. content length is not available ahead of time, and will automatically
  17242. engage chunked encoding transfers.
  17243. Without this patch, the browser/client hangs forever, as it is expecting
  17244. more data. With this patch, the browser displays the content. From Vlado
  17245. Vidovic
  17246. * Wireless Utilities: apps/wireless:
  17247. - apps/wireless/bluetooth/btsak: Add connect and disconnect commands to
  17248. btsak. From Lwazi Dube
  17249. * Graphic Utilities: apps/graphics:
  17250. - apps/graphics/pdcurs34: Integration of termcurses into pdcurses, plus
  17251. pdcurses updates for multi-thread support From Ken Pettit
  17252. - apps/graphics/pdcurs34: Adds a configuration option to pdcurses to enable
  17253. line-drawing character (ALTCHARSET) when using the short 16-bit chtype.
  17254. This is done by limiting the characters to 7-bit ASCII values and using the
  17255. 8-th bit as the A_ALTCHARSET bit. This allows a significant RAM savings 4K
  17256. - 20K depending on terminal size) while still allowing the nicer
  17257. line-graphic characters for border drawing. From Ken Pettit
  17258. * Testing: apps/testing:
  17259. - apps/testing/ostest: Add test for pthread-specific data. From Gregory
  17260. Nutt
  17261. Bugfixes. Only the most critical bugfixes are listed here (see the
  17262. ChangeLog for the complete list of bugfixes and for additional, more
  17263. detailed bugfix information):
  17264. * Core OS:
  17265. - Assertions: Identify the running task correctly when dumping task
  17266. state information. It takes time to switch to the target task after
  17267. g_readytorun has been modified. If panic/assert happen during this
  17268. period, the dump will contain the incorrect and confusing information
  17269. due to the difference between the real running task and the return
  17270. value of this_task(). This change resolve this problem by adding
  17271. g_running_task to track the real running task through the context
  17272. switch. From Xiang Xiao
  17273. - Assertions: Correct duplicated logic from commit
  17274. dbf01d12b7321d1b48b68d3b69842a853b049376. Checking for PID == zero
  17275. is not a valid way to test for the IDLE task in all configurations!
  17276. This is only true in the single CPU configuration. In multiple CPU
  17277. configurations, there will be a separate IDLE task for each CPU with
  17278. a different PID and an alternative check must be used. NOTE: The
  17279. logic fixed in some places still lacks sufficient intelligence in SMP
  17280. mode to find the right stack for the CPU IDLE thread and could still
  17281. show the wrong stack. From Gregory Nutt
  17282. - Interrupt Prioritization: Remove all driver-specific logic that may
  17283. set the interrupt priority to anything but the default. There is no
  17284. good reason to change the interrupt priority unless you just want to
  17285. debug a difficult problem. OR if you want to use high priority
  17286. interrupts. In that case the specific interrupt priorities will need
  17287. to be set by board-specific logic. From Gregory Nutt
  17288. - Memory Management: Revert "This patch prevent heap corruption as in
  17289. below case." This solution to the problem noted by EunBong Song
  17290. results in major memory fragmentation and and out-of-memory
  17291. conditions on the PX4 platform. On that platform the lower priority
  17292. work queue is very low priority and essentially never runs when the
  17293. system is busy. As a result, the systems gets slowly starved of
  17294. memory until failures and bad behaviors begin to occur. From Gregory Nutt
  17295. - Memory Management: This is a replacement for EunBong Song's reverted
  17296. change. This change adds (1) logic in getpid() to return an error instead
  17297. of the PID if the (apparent) currently executing task is not marked as
  17298. RUNNING. Then (2) mm_trysemaphore() (the root implementation of both
  17299. kmm_trysemaphore() and umm_trysemaphore()) will know that the (apparent)
  17300. running task cannot be the holder of the semaphore. How could the
  17301. non-running task be trying to get the MM semaphore? I think only in the
  17302. exact scenario that Eunbong Song has described. So this new solution
  17303. should provide the same protection as the original change but without the
  17304. bad consequences to memory usage. From Gregory Nutt (with corrections
  17305. from David Sidrane)
  17306. - Memory Management: In implementation of calloc(), verify that the number of
  17307. elements times the size of an element will not overflow type size_t. This
  17308. is required by the SEI CERT C coding style and resolves anonymous Bitbucket
  17309. Issue #139 From Gregory Nutt
  17310. - sigtimedwait(): Remove unnecessary disable of pre-emption. From
  17311. Gregory Nutt
  17312. - _exit(): Update all architecture-specific _exit() implementations
  17313. so that they correctly call the scheduler instrumentation layer for
  17314. the new task that runs when the old one exits. This missing
  17315. instrumentation was confusing the Critical Section Monitor logic with
  17316. uses this instrumentation to track the state of critical sections.
  17317. From Gregory Nutt
  17318. - sched_foreach(): sched_foreach() should not have to hold the
  17319. critical section over the entire traversal. It should be acceptable
  17320. to simply only the critical section while one entry is being
  17321. processed (the caller can always call sched_foreach within a critical
  17322. section is greater stability is needed). From Gregory Nutt
  17323. - task_spawn(): Correct description of input parameters to
  17324. task_spawn_exec(). Noted by: JeongchanKim From Gregory Nutt
  17325. * Crypto:
  17326. - crtypo/: This change:
  17327. Avoids the use of up_aesinitialize() entirely, which resolves
  17328. dependency problems, because this function does not make sure that
  17329. an actual hardware aes implementation was made available: each SoC
  17330. is now responsible to ensure the AES hardware is initialized before
  17331. first use. This applies to lpc43xx, stm32 and sam34.
  17332. Remove definitions of the NEVER used aes_init and aes_update
  17333. operations. The new AES API will be more suitable.
  17334. From Sebastien Lorquet
  17335. * File System/Block and MTD Drivers:
  17336. - opendir(): Corrects a problem with opendir() noted by Petteri
  17337. Aimonen in Bitbucket Issue 132: "opendir() fails for FAT filesystem
  17338. with trailing slash in path". I see the following behaviour on NuttX
  17339. 7.26, where I have SD card mounted on /flash and a directory called
  17340. "frm" on it:
  17341. opendir("/flash") returns (DIR *) 0x1000c580
  17342. opendir("/flash/") returns (DIR *) 0x1000c5d0
  17343. opendir("/flash/frm") returns (DIR *) 0x1000c620
  17344. opendir("/flash/frm/") returns (DIR *) 0x0
  17345. From POSIX specs for opendir(): "A pathname ... that ends with one or
  17346. more trailing slashes shall be resolved as if a single dot character
  17347. ( '.' ) were appended to the pathname." So for mount points,
  17348. opendir() works correctly, but for FAT32 filesystem it fails to open
  17349. directory if the path has a trailing slash...
  17350. NOTE: You would not see this problem if you call opendir() indirectly
  17351. in NSH (like 'ls -R /') because NSH contains logic to remove trailing
  17352. '/' characters from paths. From Gregory Nutt
  17353. - dup()/dup2(): dup() and dup2() were broken some time back.
  17354. fs_dupfd() was return returning OK on success, not the file
  17355. descriptor of the duplicated fd. From David Sidrane
  17356. - ProcFS: Remove the unnecessary critical section From Xiang Xiao
  17357. - CROMFS: Fix hardfault. From David Sidrane
  17358. - SmartFS MTD Driver: Fix smart_write_alloc_sector sector size mapping.
  17359. Was not correctly calculating the encoded sector size for small (256)
  17360. byte or large (>= 4096 byte) sectors. Noted by Daniel P. Carvalho.
  17361. Fix from Ken Pettit
  17362. - AT25 MTD Driver: Fixed missing opening parenthesis. From Marc Rosen
  17363. - MTD Configdata MTD Driver: Check return value mtdconfig_readbytes().
  17364. From Jussi Kivilinna
  17365. - S25FL1 MTD Driver: Minor change for the s25fl1 QSPI FLASH driver which
  17366. fixes additional sectorshift vs. pageshift confusion. From Ken Pettit
  17367. * Networking/Network Drivers:
  17368. - All network drivers! Change pre-processor logic that selects the
  17369. high priority work queue or gives preferential treatment to the high
  17370. priority work. All network logic must run on the low priority work
  17371. queue! Or suffer the consequences. From Gregory Nutt
  17372. - Socket Clone/Dup: On a failure to start the TCP monitor, the cloned
  17373. socket is closed but is not properly freed, leaving it attached to a
  17374. TCP connection structure with the wrong reference count. From
  17375. Gregory Nutt
  17376. - ARP: Fix whitespace after ARPHRD_IEEE80211 in ARP header file. From
  17377. Daniel Agar
  17378. - 6LoWPAN: Fixes decompression of ipaddr from MAC address. The logic
  17379. used to populate the IP from the radio address should match
  17380. sixlowpan_ipfromsaddr/sixlowpan_ipfromeaddr From Anthony Merlino
  17381. - 6LoWPAN: Fixes logic surrounding the Universal/Local bit. This bit
  17382. represents whether the IID is locally/globally administered. The U/L
  17383. bit is bit 1 of the MSB of the EUI-64. It should only be inverted in
  17384. cases where there is a full EUI-64. In cases where the IID is derived
  17385. from say, a short address, this bit should be forced to 0, indicating
  17386. that it is locally administered. See:
  17387. https://tools.ietf.org/html/rfc4291#section-2.5.1
  17388. https://tools.ietf.org/html/rfc4944#section-6
  17389. https://tools.ietf.org/html/rfc2464#section-4
  17390. From Anthony Merlino
  17391. - 6LoWPAN: IEEE802.15.4 stores and uses addresses in little endian
  17392. order. From Anthony Merlino
  17393. - 6LoWPAN: Address comment regarding avoiding double lookup of address
  17394. context. From Anthony Merlino
  17395. - 6LoWPAN: Record and restore d_buf on entry/exit of sixlowpan_input.
  17396. This avoids an issue where d_buf gets set to NULL by 6LoWPAN, and
  17397. then is used by forwarding logic from another network interface
  17398. before getting set back to the drivers internal buffer. From Anthony
  17399. Merlino
  17400. - 6LoWPAN: sixlowpan_input should always return 0 if the incoming frame was
  17401. consumed. From Anthony Merlino
  17402. - TUN Driver: Fixes a problem reported by Masayuki Ishikwawa: Recently I
  17403. noticed that ARP response packet is corrupted when I tried to run
  17404. bluekitchen with the latest tun.c in TAP mode. If I revert commit
  17405. 8193c28e9126c9cb89042e80d6ebab7485a831e4, then it works again. From Xiang
  17406. Xiao
  17407. - Telnet Driver: Add missing logic to set read event flags in poll()
  17408. method. From Ken Pettit
  17409. * Wireless/Wireless Drivers:
  17410. - BLE: Fix uninitialized variables. From Lwazi Dube
  17411. - BLE GATT header file: Fix struct name. From Lwazi Dube
  17412. - BLE GATT: Remove unnecessary GATT ioctls From Lwazi Dube
  17413. * Graphics/Display Drivers:
  17414. - ST7032: Fix seek method. Was not taking into account the offset for the
  17415. SEEK_END case. Did not account for negative offsets. On errors, it was
  17416. clobbering the filep->f_pos setting. From Gregory Nutt
  17417. - PCF8574 Backpack: Fix seek method. Had the same problems as noted for
  17418. ST7032 driver. From Gregory Nutt
  17419. * Common Drivers:
  17420. - Button Upper Half: Fix two bad NULL checks From Juha Niskanen
  17421. - PWM Interface: Remove dependency on CONFIG_PWM for the upper-half
  17422. PWM header. This allows compilation for the lower-level PWM drivers
  17423. even if the upper-half PWM logic is not used. From Mateusz Szafoni
  17424. - Various I2C Drivers: In most I2C drivers, correct upper index value
  17425. in I2C trace dump. Eliminates the extra NONE event from the trace
  17426. dump output. From Ouss4
  17427. - Battery Gauge: Add missing initialization of semaphore. From Alan
  17428. Carvalho de Assis
  17429. - Batter Charger: Add missing initialization of semaphore. From Alan
  17430. Carvalho de Assis
  17431. - MCP73871: Fix Microchip MCP73871 Battery Charger driver to register
  17432. correctly as a battery charger. The first element of a 'struct
  17433. battery_charger_dev_s' should be a pointer to operations structure. From
  17434. Alan Carvalho de Assis
  17435. - MCP794xx: Fix MCP794xx driver to wait for OSCRUN and fix tm_year. From
  17436. Abdelatif Guettouche
  17437. - Numerous files: Fixes usage of CONFIG_BIG_ENDIAN; should be
  17438. CONFIG_ENDIAN_BIG From Anthony Merlino
  17439. * ARMv7-A:
  17440. - ARMv7-A MMU: Fix end address calculation for mmu_invalidate_region() API
  17441. From Petro Karashchenko
  17442. * ARMv7-M:
  17443. - ITM: Fix missing space causing macro issues From Alan Carvalho de
  17444. Assis
  17445. - Common Exception Handlers: This commit changes the lazy and non-lazy
  17446. exception handler to remove a couple of cpsid instructions from them
  17447. on ARMv7-m. If my understanding is correct then these interrupt
  17448. manipulations aren't doing anything anyway because prioritization
  17449. stops secondary interrupts arriving and, even if they did work, they
  17450. would have introduced race conditions for the period of time between
  17451. the interrupt arriving and further interrupts being disabled. From
  17452. Dave Marples
  17453. - MPU/Protected Mode Build: Revert "arch/arm/armv7-m: MPU:
  17454. mpu_log2regionceil needs take into account the offset too". Masayuki
  17455. Ishikawa reports that this commit breaks ALL PROTECTED mode builds. It
  17456. violates the basic requirements of the use of the MPU in protected mode.
  17457. Those basic requirements are:
  17458. 1. The MPU region must be aligned to the base address of the memory
  17459. region being mapped (it may NEVER extend before the memory region).
  17460. That is, the following MUST always be zero: (base & ((1 << l2size) - 1))
  17461. 2. The MPU region must never extend beyond the end of the memory region.
  17462. That is, the following must be true: size >= (1 << l2size)
  17463. From Gregory Nutt
  17464. * Microchip PIC32MX Drivers:
  17465. - PIC32MX Ethernet: Fix a comparison in a debug assertion. Should be
  17466. <= vs <. Noted by Anonymous in Bitbucket Issue 134. From Gregory Nutt
  17467. * Microchip PIC32MZ:
  17468. - PIC32MZ chip.h Header: Add a missing " in an error message. From Ouss4
  17469. * Microchip PIC32MZ Drivers:
  17470. - PIC32MZ Ethernet: Fix a comparison in a debug assertion. Should be
  17471. <= vs <. Noted by Anonymous in Bitbucket Issue 134. From Gregory Nutt
  17472. * Microchip/Atmel SAMD21/L21
  17473. - SAMD21/L21: Corrects behavior of the I2C_M_NOSTART flag. Also adds
  17474. a release a bus on RXNACK and corrects typo priv->flags to msg->flags
  17475. as priv->flags is never set. From Alexander Vasiliev
  17476. - SAMD21/L21: Fix SAMD2L2 arch to use calibrated oscillator value. Now
  17477. SAMD20 and SAMD21 should work fine without external crystal. Note that
  17478. SAML21 Xplained board has an external crystal and doesn't need this change,
  17479. unless you don't want to use the crystal. From Alexander Vasiliev
  17480. - SAMD21/L21 I2C Master: Adds calculation of a timeout and disables
  17481. interrupts in case of error. From Alexander Vasiliev
  17482. * Microchip/Atmel SAMD21/L21 Boards
  17483. - SAML21-Xplained: Fix removed MAXCOARSESTEP from saml21-xplained board.
  17484. From Alan Carvalho de Assis
  17485. * Microchip/Atmel SAMD51/Ex
  17486. - SAMD51/Ex: Alexander Vasiliev's fix to the SAMD21 I2C Master (commit
  17487. b1110ba91c549572e94c24ebed202643233deee3) should probably also be
  17488. applied to the SAMD51 I2C Master which is identical. From Gregory Nutt
  17489. * Microchip/Atmel SAMV7
  17490. - SAMV7 Serial: Fix case where TTYS0 is not defined. From Ken Pettit
  17491. * Maxim Integrated MAX326xx
  17492. - MAX326xx: WFI instruction in IDLE loop seems to interfere with
  17493. stability. Commented out for now. Needs to be investigated further.
  17494. From Gregory Nutt
  17495. * NXP i.MXRT Drivers:
  17496. - i.MXRT FLEXPWM: Correct duplicated definitions From David Sidrane
  17497. - i.MXRT SERIAL: Fix TTYS0 defined definitions of higher numbered ports
  17498. From David Sidrane
  17499. - i.MXRT LPSPI: Removed unused clock, that borked the build. From David
  17500. Sidrane
  17501. - i.MXRT LPI2C: I2C Reset rework From David Sidrane
  17502. * On Semi LC823450:
  17503. - LC823450: Fix up_allocate_heap() in lc823450_allocateheap2.c. This
  17504. change fixes heap size and also implements up_addregion(). From
  17505. Masayuki Ishikawa
  17506. - LC823450: Fix go_os_start() in lc823450_start.c. I found a bug in
  17507. go_os_start() that it returns immediately because it does not compare
  17508. r1 to zero. This commit fixes this bug. Also, this commit fixes its
  17509. description. From Masayuki Ishikawa
  17510. - Other Architectures: Masayuki Ishikawa's change to go_os_start() was
  17511. also to all MCU-specific start-up functions that support
  17512. go_os_start(). From Gregory Nutt
  17513. * On Semi LC823450 Boards:
  17514. - LC823450-XEVK: Fix IOB params in rndis/defconfig. These parameters
  17515. work for HTTP audio streaming. From Masayuki Ishikawa
  17516. - LC823450-XGEVK: Change RNDIS MAC address assignment in rndis
  17517. configuration. In previous implementation, mac[0] was assigned to
  17518. 0xaa for RNDIS host to avoid MAC address conflicts with RNDIS
  17519. device.. However, I noticed that this assignment causes a random MAC
  17520. address generation on ubuntu16.04 or later which is inconvenient to
  17521. set up network interface. This new assignment scheme fixes this
  17522. issue. From Masayuki Ishikawa
  17523. - LC823450-XGEVK: Fix overlapped memory settings in memory.ld. From
  17524. Masayuki Ishikawa
  17525. * STMicro STM32 Drivers:
  17526. - STM32: Remove redundant STM32 family definitions from chip.h header
  17527. file. It is already done in arch/arm/src/stm32/Kconfig From Mateusz
  17528. Szafoni
  17529. - STM32 ADC: There is no DMA CFG bit for the basic IPv1 ADC. From
  17530. Mateusz Szafoni
  17531. - STM32 ADC: Refactor adc_reset. It should be easier to maintain this
  17532. code if it's divided into smaller functions From Mateusz Szafoni
  17533. - STM32 F0 Clocking: Fixes the problem in GPIO port clocks. Only port
  17534. A clock was enabled although the comment states otherwise. From Juha
  17535. Paalijärvi
  17536. - STM32 F7 I2C: I2C out of bounds access on priv->msgv. Error in if
  17537. statement. It was checking for msgc > 0. If message count is 1, only
  17538. index 0 is valid on priv->msgv. Therefore random values in memory
  17539. were used to set next_norestart. From David Sidrane
  17540. - STM32 H7 I2C: Applied David Sidrane's I2C fix to the identical logic
  17541. for STM32 H7. From Gregory Nutt
  17542. - STM32 L4 I2C: Applied David Sidrane's I2C fix to the identical logic
  17543. for STM32 L4. From Gregory Nutt
  17544. * STMicro STM32 Drivers:
  17545. - STM32 ADC: Fix RCC reset logic. From Mateusz Szafoni
  17546. - STM32 ADC: Fix compilation errors for chips with one ADV TIM. From
  17547. Mateusz Szafoni
  17548. - STM32 DMA: Add missing DMA channel configuration.
  17549. - STM32 PWM: STM32 MOE is not being appropriately handled for PWM for
  17550. advanced timers. It is only ever reset and so no PWM train is
  17551. generated. This change addresses this. Noted by Dave Marples. From
  17552. Mateusz Szafoni
  17553. - STM32 PWM: Fix compilation errors if the upper-half PWM logic is not
  17554. enabled. From Mateusz Szafoni
  17555. - STM32 SPI: STM32F446 & STM32F469 correct PC1 SPI assignments From
  17556. David Sidrane
  17557. - STM32 TIM: Fix compilation error if there is no TIM8. From Mateusz
  17558. Szafoni
  17559. - STM32 F0: Fix GPIO EXTI lines assignment for STM32 M0. From Mateuz Szafoni
  17560. - STM32 F3 I2C: Remove the extra NONE event from the trace dump
  17561. output. From Ouss4
  17562. - STM32 F4 I2C: Remove the extra NONE event from the trace dump
  17563. output. From Ouss4
  17564. - STM32 F7 I2C: Use clock_t for ticks instead of uint32_t to hold system
  17565. time. From Jussi Kivilinna
  17566. - STM32 L4 I2C: Use clock_t for ticks instead of uint32_t to hold system
  17567. time. From Jussi Kivilinna
  17568. * STMicro STM32 Boards:
  17569. - STM32F429I-DISCO: Fix lvgl demo removing STM32_FB_CMAP. From Alan
  17570. Carvalho de Assis
  17571. - STM32VL Discovery: Fix SRAM and FLASH size in the linker script.
  17572. There is STM32F100RB with 8KB RAM and 128KB FLASH on the STM32VL
  17573. Discovery kit. Invalid memory size could cause a hard fault. From
  17574. Matous Pokorny
  17575. - STM32VL Discovery: Fix memory size configuration and documentation.
  17576. There is STM32F100RB instead of STM32F100RC on the STM32 VL Discovery
  17577. kit. From Matous Pokorny
  17578. - Viewtool-STM32F107: Change RNDIS MAC address assignment in rndis
  17579. configuration. In previous implementation, mac[0] was assigned to
  17580. 0xaa for RNDIS host to avoid MAC address conflicts with RNDIS
  17581. device.. However, I noticed that this assignment causes a random MAC
  17582. address generation on ubuntu16.04 or later which is inconvenient to
  17583. set up network interface. This new assignment scheme fixes this
  17584. issue. From Masayuki Ishikawa
  17585. * TI Tiva:
  17586. - Tiva LM/TM4C Start-Up: Remove option CONFIG_TIVA_BOARD_CLOCKCONFIG. It is
  17587. not used and unnecessary. Fix some naming. up_clockconfig() is
  17588. inappropriate. Change tiva_clockconfig() to tiva_clock_reconfigure()
  17589. then we can change up_clockconfig() to tive_clock_configure(). From
  17590. Gregory Nutt
  17591. - Tiva LM/TM4C GPIO Interrupts: Fix tiva gpio interrupts From Lwazi Dube
  17592. - Tiva LM/TM4C: Improve GPIO interrupt support by removing unnecessary,
  17593. hard-coded per-MCU defines and using the existing Kconfig configuration
  17594. options instead. From Lwazi Dube
  17595. * TI Tiva Drivers:
  17596. - Tiva TM4C Serial: After commit
  17597. 51b78034ac8d1fdf598107bf4093f0beccd5b80b, my tiva console does not
  17598. work - enter key produces garbage characters. This commit fixes the
  17599. problem for me. From Lwazi Dube
  17600. * C Library/Header Files:
  17601. - include/dsp.h: Fix missing semicolon error in dsp.h From MYAPICI
  17602. - include/nuttx/compiler.h: Correct support of C-version-specific features.
  17603. Cannot depend on GCC version because -std=c89 may be used on comomand
  17604. line. Need instead to use __STDC_VERSION__ to determine if a feature is
  17605. supported. Also add conditional support inline, depending on C99. From
  17606. Gregory Nutt
  17607. - libs/libc/stdio: fread() should always set EOF if fewer than the
  17608. requested number of bytes was not read. Per Anthony Merlino. From
  17609. Gregory Nutt
  17610. * Build System:
  17611. - sched/irq/Make.defs: Fix warning about irq_csection.o appearing
  17612. multiple times in the same rule. From Gregory Nutt
  17613. * Tools:
  17614. - tools/gencromfs.c: "gencromfs.c:1171:3: warning: ignoring return
  17615. value of 'asprintf'", declared with attribute warn_unused_result
  17616. [-Wunused-result]. From David Sidrane
  17617. - tools/gencromfs.c: Fix build on macOS. From David Sidrane
  17618. * NSH Library: apps/nshlib:
  17619. - apps/nshlib: Fixes an error in the NSH parser. There was a bug when
  17620. executing an nsh shell script which contains a redirection. When the
  17621. command in the script is executed, it sets the vtbl->np.np_redirect flag
  17622. (as it should), but then doesn't restore it, leaving it set at the end of
  17623. the script execution. Then the vtbl->np.np_redirect flag is set when the
  17624. 'sh' command completes, causing a restore from un-initialized variables,
  17625. thus leading to a crash. See the code snippet below for an example test
  17626. case.
  17627. Test case:
  17628. NuttShell (NSH)
  17629. nsh> mkrd -s 1024 40
  17630. nsh> mkfatfs /dev/ram0
  17631. nsh> mount -t vfat /dev/ram0 /tmp
  17632. nsh> echo "echo 1 > /dev/null" > /tmp/test.sh
  17633. nsh> cat /tmp/test.sh
  17634. echo 1 > /dev/null
  17635. nsh> sh /tmp/test.sh
  17636. ...
  17637. The nsh prompt doesn't get printed. You can type a couple of commands,
  17638. but then the system will crash because of bad pointers. From Ken Pettit
  17639. - apps/nshlib: Fix buffer overrun when redirected to a file. SAVE_SIZE
  17640. must be the same as sizeof(struct serialsave_s). From Masayuki Ishikawa
  17641. * System Utilities: apps/system:
  17642. - system/system.c: Fixes build error; There is no result variable, use
  17643. errcode instead. From Anthony Merlino
  17644. - apps/system/vi: Bug fixes:
  17645. 1. Deletion of last line in file using 'dd' caused infinite loop
  17646. searching for 'nextline'. Fixed.
  17647. 2. Insertion of line above 1st line using 'O' caused line to be
  17648. inserted on 2nd line. Fixed.
  17649. 3. Paste buffer from 'dd' was being free'd after the 'p'aste operation,
  17650. preventing multiple paste opportunity. Fixed.
  17651. 4. The cursor was not being bound to the line end and was allowed to
  17652. 'hover' over the '\n' EOL character. This caused wierd (relative to
  17653. standard vi) insertion locations and cursor movement with 'a'ppend
  17654. and 'i'nsert. Fixed.
  17655. 5. The 'vi_shrinkpos' position didn't take the end of file pointer into
  17656. account when calculating 'curpos', 'prevpos' variables causing
  17657. wierdness when deleting things near the end of the file. Fixed.
  17658. 6. The 'yy'ank command was improperly deleting the text from the
  17659. document instead of simply yanking to the paste buffer. Fixed.
  17660. 7. The 'dd'elete line funciton was not copying the deleted line to the
  17661. paste buffer as part of the delete operation. Fixed.
  17662. 8. The bottom line of the screen was sometimes being used for document
  17663. text and other times for command / find entry. Fixed by reserving
  17664. the bottom the bottom line for status / command only.
  17665. 9. When scrolling up / down through a file, the cursor position was not
  17666. preserved and moved further and further to the left column based on
  17667. the line lengths of the lines visited. Fixed.
  17668. 10. The display was being COMPLETELY redrawn with each keystroke,
  17669. causing the responsiveness to be unbearable. Fixed. Added logic to
  17670. dynamicall indicated which portions of the screen need to be updated
  17671. (full display, current line to end of screen, current line only,
  17672. none).
  17673. 11. The individual display line updates were being performed a character
  17674. at a time by calling the vi_putch() function, causing slow
  17675. performance, especially in telnet or USBCDC sessions where there is
  17676. a lot of overhead per packet. Fixed by calling vi_write() instead
  17677. with a block of characters with breaks as needed for TAB exansion.
  17678. 12. The forward delete 'x' operation allowed deletion through '\n'
  17679. characters causing lines to be joined. This is different from
  17680. standard vi where 'x' at the end of a line performs a delete
  17681. backward operation. Fixed.
  17682. 13. When in 'ex' or find sub-modes (':' or '/' bottom line modes),
  17683. hitting backspace with empty text did not return the operation to
  17684. command mode like it does in standard vi. Fixed.
  17685. 14. Performing a 'find' opertation would only search from the current
  17686. cursor position to the end of the file and did not wrap like in
  17687. standard vi. Fixed.
  17688. 15. Loading a file that was larger than the initial text allocation
  17689. would force a call to 'vi_extendtext', marking the file as modified
  17690. when in fact it hadn't even been loaded yet. Fixed.
  17691. 16. Combined vi_insert_mode and vi_replace_mode into a single function
  17692. to save code space since they are nearly identical routines.
  17693. 17. In command mode, backspace was deleting characters which is
  17694. different from standard vi. Backspace in command mode normally
  17695. simply moves the cursor left / to the previous line. Fixed.
  17696. 18. Added code to handle boundry conditions when the file is new and
  17697. commands are applied to an empty file.
  17698. 19. Fixed vi_shrinktext so it doesn't allocate a zero-length buffer when
  17699. the last character in the file is deleted.
  17700. 20. The 'x' command was not copying to the paste buffer. Fixed.
  17701. 21. Fixed parsecolon routine to properly deal with ":wq" command sequence.
  17702. From Ken Pettit
  17703. * Wireless Utilities: apps/wireless:
  17704. - apps/wireless/bluetooth/btsak: 'bt bnep0 info' outputs a reversed addr. It
  17705. should print BDAddr: aa:bb:cc:dd:ee:ff instead of BDAddr:
  17706. ff:ee:dd:cc:bb:aa. From Lwazi
  17707. - apps/wireless/bluetooth/btsak: Fix some errors in btsak. From Lwazi Dube
  17708. - apps/wireless/bluetooth/btsak/btsak_main.c: Fix address parsing. From
  17709. Lwazi Dube
  17710. - apps/wireless/bluetooth/btsak: Remove unnecessary gatt get commands. From
  17711. Lwazi Dube
  17712. - apps/wireless/bluetooth/btsak/btsak_scan.c: Fix reversed address. From
  17713. Lwazi Dube
  17714. - apps/wireless/ieee802154/i8sak: Fixes issues related to re-running
  17715. daemon. Releases lock when releasing daemon. Re-sets daemon_shutdown so
  17716. that a subsequent daemon launch does not immediately return. From Anthony
  17717. Merlino