ReleaseNotes 1.4 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592
  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 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://nuttx.apache.org/docs/latest/reference/user/05_counting_semaphore.html.
  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
  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 https://nuttx.apache.org/docs/latest/components/nxflat.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. (https://nuttx.apache.org/docs/latest/components/nxflat.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. https://nuttx.apache.org/docs/latest/components/nxgraphics/index.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 https://nuttx.apache.org/docs/latest/components/nsh/index.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
  1098. (see https://nuttx.apache.org/docs/latest/components/paging.html)
  1099. and support was implemented for the ARM-9 family. A test
  1100. configuration is in place for the NXP LPC3131. It has been
  1101. verified that this new logic does not interfere with normal
  1102. fixed-page ARM9 operation, but otherwise this new on-demand
  1103. paging feature is untested.
  1104. * Add support for the CodeSourcery toolchain to the Olimex-lpc2378
  1105. port and for the Neuros OSD port.
  1106. * The Neuros OSD port has been updated to work with the production
  1107. v1.0 OSD (previously it only worked with the development board).
  1108. * And some miscellaneous feature enhancements as detailed in the
  1109. ChangeLog.
  1110. This includes several important bugfixes:
  1111. * NXP LPC17xx - Fixed a critical bug in the GPIO configuration
  1112. logic: When attempting to set no pull-up or pull-down (floating),
  1113. it would, instead, select pull-down.
  1114. * TI/Luminary LM3Sxxxx - Fixed:
  1115. (1) A logic error in an address table lookup.
  1116. (2) GPIO port encoding the limited support to only 8 GPIO ports.
  1117. * Corrected the lease time in the DHCPC implementation: It was
  1118. not in host byte order.
  1119. * And several other less important bugs as documented in the
  1120. ChangeLog: Warnings, cornercase compilation problems, etc.
  1121. NuttX-5.10
  1122. ----------
  1123. This is the 57th release of NuttX. This release includes a combination
  1124. of some new features as well as several bugfixes. New features
  1125. include:
  1126. * TI/Luminary Stellaris LM3S9B96:
  1127. Header file changes contributed by Tiago Maluta.
  1128. * TI/Luminary Stellaris LM3S8962:
  1129. Header file changes and support for the Stellaris LM3S8962
  1130. Ethernet+CAN Evaluation Board contributed by Larry Arnold.
  1131. * On-Demand Paging Support:
  1132. The basic logic for the On-Demand Paging feature is complete,
  1133. implemented for the NXP LPC3131, and partially tested. See
  1134. https://nuttx.apache.org/docs/latest/components/paging.html.
  1135. Some additional test infrastructure will be needed in order to complete
  1136. the verification. See configs/ea3131/README.txt for details.
  1137. * Two Pass Build Support:
  1138. The make system now supports a two pass build where a relocatable,
  1139. partially linked object is created on the first pass and that
  1140. object is linked with the NuttX libraries to produce the final
  1141. executable on the second pass. This two pass build is currently
  1142. only used to support the On-Demand paging feature: The first
  1143. pass link forces critical logic into the locked text region;
  1144. the second pass builds the NuttX executable more-or-less as
  1145. normal.
  1146. * CONFIG_APP_DIR:
  1147. Generalized the way in which applications are built and linked
  1148. with NuttX. The new configuration CONFIG_APP_DIR replaces
  1149. CONFIG_EXAMPLE. CONFIG_EXAMPLE used to identify the sub-directory
  1150. within the NuttX examples/ directory that held the example
  1151. application to be built. That made it awkward to configure to
  1152. build an application that resides outside of the NuttX examples/
  1153. directory. CONFIG_APP_DIR is more general; it can be used to
  1154. refer to any directory containing the application to be built.
  1155. For people who have their own configurations and/or Makefiles,
  1156. you will need to make a couple of changes:
  1157. - Replace all occurrences of CONFIG_EXAMPLE=foobar with
  1158. CONFIG_APP_DIR=examples/foobar in all of the configuration
  1159. files.
  1160. - Replace any occurrences of examples/$(CONFIG_EXAMPLE) with
  1161. $(CONFIG_APP_DIR)
  1162. - Replace any occurrences of lib$(CONFIG_EXAMPLE)$(LIBEXT)
  1163. with libapp$(LIBEXT) in your Makefiles.
  1164. - Check any other occurrences of CONFIG_EXAMPLE.
  1165. * Several bugfixes are included as well as code changes to eliminate
  1166. some warnings. See the ChangeLog for details.
  1167. NuttX-5.11
  1168. ----------
  1169. This is the 58th release of NuttX. This is a bugfix release.
  1170. * One very important bug fixes a race condition that can occur
  1171. using semaphores that can be awakened by signals. Under this
  1172. particular race condition, a task could hang waiting for a
  1173. semaphore.
  1174. * Corrections to lm3s8962 port contributed by Larry Arnold. That
  1175. port is purported to work correctly with these changes in place.
  1176. Plus less critical bugfixes as detailed in the ChangeLog. New features
  1177. include:
  1178. * A new configuration to support the mbed.org LPC1768 board.
  1179. (Contributed by Dave Marples.)
  1180. * A driver for the Atmel AT45DB161D 4Mbit SPI FLASH part
  1181. NuttX-5.12
  1182. ----------
  1183. This is the 59th release of NuttX. This is a critical bugfix release.
  1184. * Fixed an important error in the signal trampoline logic.
  1185. Essentially, interrupts are re-enabled while the signal handler
  1186. executes, but the logic to re-disable the interrupts before
  1187. returning from the signal handler trampoline was missing. Under
  1188. certain circumstances, this can cause stack corruption. This
  1189. was discovered by David Hewson on an ARM9 platform, but since
  1190. the code has been leveraged, the bug has been propagated from
  1191. ARM to Cortex-M3, AVR32, M16C, SH1, ZNEO, eZ80, Z8, and Z80 --
  1192. almost every architecture. The correction has been incorporated
  1193. for all architectures but only verified on a few.
  1194. Other notable changes in NuttX-5.12:
  1195. * A complete port for the AVR32 (AT32UC3B0256) is incorporated
  1196. in the source tree. Testing of this port is underway now. This
  1197. release was made before verifying this port in order to get the
  1198. important bugfix in place.
  1199. * Other miscellaneous bugfix and enhancements as noted in the
  1200. ChangeLog.
  1201. NuttX-5.13
  1202. ----------
  1203. This is the 60th release of NuttX. Headlines for this release
  1204. include:
  1205. * AVR32, www.mcuzone.com AVR32DEV1
  1206. The port for the www.mcuzone.com AVRDEV1 board based on the
  1207. Atmel AT32UC3B0256 MCU was (almost) fully integrated. The port
  1208. now successfully passes the NuttX OS test (examples/ostest).
  1209. A NuttShell (NSH) configuration is in place (see the NSH User
  1210. Guide at https://nuttx.apache.org/docs/latest/components/nsh/index.html).
  1211. Testing of that NSH configuration, however, has been postponed
  1212. (because it got bumped by the Olimex LPC1766-STK port -- see below)
  1213. Current Status: I think I have a hardware problem with my serial
  1214. port setup. There is a good chance that the NSH port is complete
  1215. and functional, but I am not yet able to demonstrate that. At
  1216. present, I get nothing coming in the serial RXD line (probably
  1217. because the pins are configured wrong or I have the MAX232
  1218. connected wrong).
  1219. A complete port will include drivers for additional AVR32 UC3
  1220. devices -- like SPI and USB --- and will be available in a
  1221. later release, time permitting.
  1222. * LPC1766, Olimex LPC1766-STK
  1223. Support for the Olimex-LPC1766 is newly added to NuttX and is
  1224. still undergoing development, test, and integration. Verified
  1225. configurations for the NuttX OS test and for the NuttShell (NSH,
  1226. see the NSH User Guide at
  1227. https://nuttx.apache.org/docs/latest/components/nsh/index.html .
  1228. Additional USB configurations are in the release as well, but
  1229. they have not yet been verified. Goals for NuttX-5.14 include:
  1230. (1) An Ethernet driver, (2) Verified USB support, and (3) SD
  1231. card support.
  1232. * Additional changes and bugfixes as detailed in the ChangeLog.
  1233. NuttX-5.14
  1234. ----------
  1235. The 61st release of NuttX, NuttX-5.14, was made on November 27,
  1236. 2010. This release includes multiple, important bugfixes as well
  1237. as a new driver for the NXP LPC1766.
  1238. This release corresponds with SVN release number: r3137
  1239. Important bugfixes include:
  1240. * Cortex-M3 Hard Fault. Fixed a hard fault problem that can occur
  1241. if certain types of interrupts are pending at the time another
  1242. interrupt returns. This problem has only been observed on the
  1243. LPC1766 (returning from a SYSTICK interrupt with a pending
  1244. Ethernet interrupt). However, it is assumed that all Cortex-M3
  1245. ports could have this as a latent bug.
  1246. * TCP/IP Sequence Number Bug. Corrected errors some important
  1247. logic in the way that sequence numbers are managed when send()
  1248. sends out packets before a previous packet has been acknowledged.
  1249. Some of that send() logic was incompatible with logic in the
  1250. uIP layer. Errors seen include: (1) The final final packet in
  1251. a sequence of packets might be too large! In the THTTPD example,
  1252. this might leave some garbage at the bottom of the display. Or
  1253. (2) send() might hang with outstanding, unacknowledged data
  1254. (and with no re-transmission requests). This was due to
  1255. differences in sequence number handling in send() and in
  1256. uip_tcpinput.c; uip_tcpinput.c thought (incorrectly) that all
  1257. of the bytes were acknowledged; send.c knew that they were not.
  1258. * One-Shot POSIX Timer Bug. Fixed an error in set-up of a one-shot
  1259. POSIX timer. It was using the repetitive timer value (which
  1260. is zero in the one-shot case), always resulting in a 10Ms timer!
  1261. Found and fixed by Wilton Tong.
  1262. Additional support has been included for the Olimex-LPC1766. Support
  1263. for that board was added to NuttX 5.13. This release extends that
  1264. support with an Ethernet driver. Verified configurations are now
  1265. available for the NuttX OS test, for the NuttShell (NSH, see
  1266. https://nuttx.apache.org/docs/latest/components/nsh/index.html),
  1267. for the NuttX network test, and for the THTTPD webserver.
  1268. (Additional USB configurations are in the release as well, but those
  1269. have not yet been verified. Goals for NuttX-5.15 (and beyond) include:
  1270. (1) Verified USB support, (2) SD card support, and (3) LCD support.
  1271. NuttX-5.15
  1272. ----------
  1273. The 62nd release of NuttX, NuttX-5.15, was made on December 12,
  1274. 2010. This release includes several bugfixes as well as feature
  1275. enhancements, primarily for the Olimex LPC1766-STK board.
  1276. Important bugfixes included:
  1277. * Additional fixes needed with the TCP sequence number problem
  1278. "fixed" in NuttX-5.14.
  1279. * In the send() logic, now checks if the destination IP address
  1280. is in the ARP table before sending the packet; an ARP request
  1281. will go out instead. This improves behavior, for example, on
  1282. the first on the first GET request from a browser
  1283. * All USB class drivers need to call DEV_CONNECT() when they are
  1284. ready to be enumerated. That is, (1) initially when bound to
  1285. the USB driver, and (2) after a USB reset.
  1286. * The SPI_SETBITS macro was calling the SPI setmode method.
  1287. * And several other bug fixes of lower importance (see the
  1288. ChangeLog for details).
  1289. And feature enhancements:
  1290. * The LPC176x Ethernet driver was using all of AHB SRAM Bank0 for
  1291. Ethernet packet buffers (16K). An option was added to limit
  1292. the amount of SRAM used for packet buffering and to re-use any
  1293. extra Bank0 memory for heap.
  1294. * Enabled networking and SD/MMC card support in the Olimex
  1295. LPC1766-STK NuttShell (NSH) configuration.
  1296. * The LPC176x USB driver is now fully fully functional.
  1297. * Added an optional cmddata() method to the SPI interface. Some
  1298. devices require an additional out-of-band bit to specify if the
  1299. next word sent to the device is a command or data. The cmddata
  1300. method provides selection of command or data.
  1301. * A driver for the Nokia 6100 LCD (with either the Phillips PCF8833
  1302. LCD controller and for the Epson S1D15G10 LCD controller) and
  1303. an NX graphics configuration for the Olimex LPC1766-STK have
  1304. been added. However, neither the LCD driver nor the NX
  1305. configuration have been verified as of the this release.
  1306. NuttX-5.16
  1307. ----------
  1308. The 63rd release of NuttX, Version 5.16, was made on January 10,
  1309. 2010 and is available for download from the SourceForge website.
  1310. This release includes initial support for USB host in NuttX. The
  1311. USB host infrastructure is new to NuttX. This initial USB host release
  1312. is probably only beta quality; it is expected the some bugs remain
  1313. in the logic and that the functionality requires extension.
  1314. Below is a summary of the NuttX USB host implementation as extracted
  1315. from the NuttX Porting Guide:
  1316. 6.3.9 USB Host-Side Drivers
  1317. * include/nuttx/usb/usbhost.h. All structures and APIs needed to
  1318. work with USB host-side drivers are provided in this header
  1319. file.
  1320. * struct usbhost_driver_s. Each USB host controller driver must
  1321. implement an instance of struct usbhost_driver_s. This structure
  1322. is defined in include/nuttx/usb/usbhost.h. Examples:
  1323. arch/arm/src/lpc17xx/lpc17_usbhost.c.
  1324. * struct usbhost_class_s. Each USB host class driver must implement
  1325. an instance of struct usbhost_class_s. This structure is also
  1326. defined in include/nuttx/usb/usbhost.h. Examples:
  1327. drivers/usbhost/usbhost_storage.c
  1328. * USB Host Class Driver Registry. The NuttX USB host infrastructure
  1329. includes a registry. During its initialization, each USB host
  1330. class driver must call the interface, usbhost_registerclass()
  1331. in order add its interface to the registry. Later, when a USB
  1332. device is connected, the USB host controller will look up the
  1333. USB host class driver that is needed to support the connected
  1334. device in this registry. Examples: drivers/usbhost/usbhost_registry.c,
  1335. drivers/usbhost/usbhost_registerclass.c, and
  1336. drivers/usbhost/usbhost_findclass.c,
  1337. * Detection and Enumeration of Connected Devices. Each USB host
  1338. device controller supports two methods that are used to detect
  1339. and enumeration newly connected devices (and also detect
  1340. disconnected devices):
  1341. + int (*wait)(FAR struct usbhost_driver_s *drvr, bool connected);
  1342. Wait for a device to be connected or disconnected.
  1343. + int (*enumerate)(FAR struct usbhost_driver_s *drvr);
  1344. Enumerate the connected device. As part of this enumeration
  1345. process, the driver will (1) get the device's configuration
  1346. descriptor, (2) extract the class ID info from the configuration
  1347. descriptor, (3) call usbhost_findclass() to find the class
  1348. that supports this device, (4) call the create() method on
  1349. the struct usbhost_registry_s interface to get a class instance,
  1350. and finally (5) call the connect() method of the struct
  1351. usbhost_class_s interface. After that, the class is in charge
  1352. of the sequence of operations.
  1353. * Binding USB Host-Side Drivers. USB host-side controller drivers
  1354. are not normally directly accessed by user code, but are usually
  1355. bound to another, higher level USB host class driver. The class
  1356. driver exports the standard NuttX device interface so that the
  1357. connected USB device can be accessed just as with other, similar,
  1358. on-board devices. For example, the USB host mass storage class
  1359. driver (drivers/usbhost/usbhost_storage.c) will register a
  1360. standard, NuttX block driver interface (like /dev/sda) that can
  1361. be used to mount a file system just as with any other other
  1362. block driver instance. In general, the binding sequence is:
  1363. 1. Each USB host class driver includes an initialization entry
  1364. point that is called from the application at initialization
  1365. time. This driver calls usbhost_registerclass() during this
  1366. initialization in order to makes itself available in the
  1367. event that the device that it supports is connected. Examples:
  1368. The function usbhost_storageinit() in the file
  1369. drivers/usbhost/usbhost_storage.c
  1370. 2. Each application must include a waiter thread thread that
  1371. (1) calls the USB host controller driver's wait() to detect
  1372. the connection of a device, and then (2) call the USB host
  1373. controller driver's enumerate method to bind the registered
  1374. USB host class driver to the USB host controller driver.
  1375. Examples: The function nsh_waiter() in the file
  1376. configs/nucleus2g/src/up_nsh.c and the function nsh_waiter()
  1377. in the file configs/olimex-lpc1766stk/src/up_nsh.c.
  1378. 3. As part of its operation during the binding operation, the
  1379. USB host class driver will register an instances of a standard
  1380. NuttX driver under the /dev directory. To repeat the above
  1381. example, the USB host mass storage class driver
  1382. (drivers/usbhost/usbhost_storage.c) will register a standard,
  1383. NuttX block driver interface (like /dev/sda) that can be
  1384. used to mount a file system just as with any other other
  1385. block driver instance. Examples: See the call to
  1386. register_blockdriver() in the function usbhost_initvolume()
  1387. in the file drivers/usbhost/usbhost_storage.c.
  1388. NuttX-5.17
  1389. ----------
  1390. The 64th release of NuttX, Version 5.17, was made on January 19,
  1391. 2011 and is available for download from the SourceForge website.
  1392. This release follows close on the heels of the 5.16 release and
  1393. extends the USB host capabilities first introduced in that version.
  1394. * The LPC17xx USB host controller driver was extended to (1) add
  1395. support for low-speed devices, (2) handle multiple concurrent
  1396. transfers on different endpoints (still only one TD per endpoint),
  1397. and (3) handle periodic interrupt endpoint types.
  1398. * Add a USB host HID keyboard class driver. Now you can connect
  1399. a standard USB keyboard to NuttX and receive keyboard input for
  1400. an application.
  1401. And other changes as detailed in the ChangeLog.
  1402. NuttX-5.18
  1403. ----------
  1404. The 65th release of NuttX, Version 5.18, was made on February 27,
  1405. 2011 and is available for download from the SourceForge website.
  1406. This is first release from the new NuttX SVN repository. This
  1407. release is made primarily to keep the release tarball in synchronization
  1408. with SVN. Many smaller changes have been made as identified in the
  1409. ChangeLog. Headlines include:
  1410. * Incorporate several important uIP patches -- including the well
  1411. known patch to handle missing SYNACK.
  1412. * The Freescale mc8s12ne64 port is code complete but testing has
  1413. not yet begun due to toolchain issues. Added support for the
  1414. Future Electronics Group NE64 Badge board.
  1415. * Added support for a new STM32 board, the ISOTEL NetClamps VSN
  1416. V1.2 ready2go sensor network platform. This board is based on
  1417. a STM32F103RET6 and includes some interesting power saving/clock
  1418. control extensions.
  1419. * USB host support expanded to handle vendor specific USB devices.
  1420. * Incorporated the LUFA HID parser.
  1421. * Various bugfix as detailed in the ChangeLog
  1422. NuttX-5.19
  1423. ----------
  1424. The 66th release of NuttX, Version 5.19, was made on March 12, 2011
  1425. and is available for download from the SourceForge website. This
  1426. release includes several new features in various states of integration
  1427. and maturity:
  1428. * 486SX QEMU port. This port supports the Intel 486SX architecture
  1429. using the QEMU simulator. Initial functionality is in place a
  1430. partially tested. There are still some outstanding issues with
  1431. timer interrupts.
  1432. * Platform specific application support. A new apps/ directory
  1433. appears in this port. This apps/ directory provides a mechanism
  1434. for applications using NuttX to have a highly customized
  1435. initialization process. It supports a set of end-user applications
  1436. than can be executed (1) standalone so you can have a fully
  1437. customized application startup, or (2) on top of NSH. Think
  1438. of it this way: In a buckled-up embedded application, your
  1439. end-user programs will probably have their own dedicated start-up
  1440. logic. But, during development, you might want to have you
  1441. applications available and executable from the NSH command line.
  1442. This apps/ add-on (and NSH hooks) was contributed by Uros to
  1443. accomplish just that.
  1444. * NSH was also extended to support application specific ROMFS
  1445. /etc/init.d/rcS start-up scripts. This feature, as well, as
  1446. all of the above-mentioned apps/ directory support was contributed
  1447. by Uros Platise
  1448. * Additional NSH improvements and bug fixes. See the Changelog
  1449. for details.
  1450. * This release also provides a new SLIP network driver. This
  1451. driver should support point-to-point network communications to
  1452. a host using TCP/IP or UDP. This driver is code complete, but
  1453. not tested in this release.
  1454. * New RAMTRON FRAM driver (contributed by Uros Platise)
  1455. * New generic 16550 UART driver.
  1456. * Cortex-M3 Power improvements: Waits for Interrupt (WFI) in idle
  1457. loop for reduced power consumption (LPC17xx and STM32 only -
  1458. contributed by Uros Platise))
  1459. * New waitpid() system interface.
  1460. * Additional bugfixes: pipes, stdint.h, STM32 SDIO and SPI drivers
  1461. NuttX-6.0
  1462. ---------
  1463. The 67th release of NuttX, Version 6.0, was made on March 21, 2011
  1464. and is available for download from the SourceForge website. The
  1465. version number of this release was bumped from 5.19 to 6.0. A
  1466. change in the major revision number is used to reflect an incompatibility
  1467. with previous versions. In this release, the NuttX core OS
  1468. functionality has been separated from NuttX application-related
  1469. functionality. These are provided as separate tarballs:
  1470. * nuttx-6.0.tar.gz, and
  1471. * apps-6.0.tar.gz
  1472. The purpose of this separation is both to better organize and
  1473. modularize the NuttX source tree, but also to provide better support
  1474. for incorporation of end-user applications with NuttX.
  1475. The incompatibility results from the changes to the board configuration
  1476. logic needed to supported the separable application. The major
  1477. changes to the configuration include:
  1478. * CONFIG_APPS_DIR - This should not be set. The default is
  1479. ../apps. This should only be set if you have a custom,
  1480. product-specific application directory in some different location.
  1481. * appconfig - Each board configuration now requires a new file
  1482. called 'appconfig.' As its name suggests, this file provides
  1483. new configuration information needed by the logic in ../apps.
  1484. In addition to this major reorganization in the directory structure,
  1485. this release also includes some important extensions to existing
  1486. features and some important bugfixes. These include:
  1487. * The SLIP driver was been well debugged and significantly
  1488. re-designed. Now you can have an Ethernet connection to you
  1489. board even if you have no Ethernet hardware. How cool is that?
  1490. * The QEMU i486 port is now functional. It has also been reported
  1491. to work on the Bifferboard (see http://bifferos.bizhat.com/).
  1492. * And extensions to the uIP driver interface, and
  1493. * Bug fixes to fopen() and STM32 GPIO configuration
  1494. Please see the ChangeLog for details.
  1495. NuttX-6.1
  1496. ---------
  1497. The 68th release of NuttX, Version 6.1, was made on April 10, 2011
  1498. and is available for download from the SourceForge website. The
  1499. 6.0 release introduced a detach-able application environment to
  1500. build applications outside of the NuttX source tree. The primary
  1501. purpose of this release is to correct numerous build problems
  1502. introduced by that architectural change:
  1503. * In many newer environments, NuttX produced strange Makefile
  1504. errors but built correctly in older environments. A fix provided
  1505. by Rafael Noronha was incorporated and is reported to fix those
  1506. build problems.
  1507. * The apps/ directory build system would not handle Windows-native
  1508. toolchains due to obscure path formatting issues.
  1509. * And other problems as detailed in the Changelog.
  1510. Many additional changes were made in the 6.1 release for another
  1511. major architectural change: NuttX will now build as a separately
  1512. linked microkernel. In this build option the RTOS builds as a
  1513. kernel, applications build separately and interface with kernel via
  1514. system calls. Applications run in user mode and kernel logic users
  1515. in kernel-mode. This provides a secure environment for NuttX. This
  1516. feature is fully coded in NuttX-6.1, but has not been tested due
  1517. to higher priority tasks that have arisen.
  1518. Related to this change, support for the Cortex-M3 memory protection
  1519. unit (MPU) has been integrated with the NuttX kernel build to provide
  1520. an even higher level of security.
  1521. NOTE: This kernel build is an option; the default build configuration
  1522. is still the standard, flat, unsecured RTOS as in previous releases.
  1523. Additional new features in this release:
  1524. * Support for LPC17xx GPIO interrupts (with much support from
  1525. Decio Renno).
  1526. * Basic timer support for STM32 (Contributed by Uros Platise)
  1527. * A binfs file system. This is a tiny pseudo file system that
  1528. lets named applications to be viewed and accessed in NSH under
  1529. the /bin directory.
  1530. * An I2C-based driver for the LIS331DL MEMS motion sensor.
  1531. (Contributed by Uros Platise.)
  1532. * A configuration for the Embedded Artists LPCXpresso LPC1768 board.
  1533. * The user_initialize() interface has been removed.
  1534. And several bugfix associated with SD drivers, opendir(), signed
  1535. 8-bit types (int8_t), and USB serial device. See the ChangeLog for
  1536. details.
  1537. NuttX-6.2
  1538. ---------
  1539. The 69th release of NuttX, Version 6.2, was made on May 6, 2011 and
  1540. is available for download from the SourceForge website. The 6.2
  1541. release includes several new features:
  1542. * NXFFS: The obvious new feature is NXFFS, the NuttX wear-leveling
  1543. FLASH file system. This new file system is intended to be
  1544. small for the MCU usage and has some limitations. No formal
  1545. documentation of NXFFS yet exists. See the fs/nxffs/README.txt
  1546. file for details (see
  1547. http://svn.code.sf.net/p/nuttx/code/trunk/nuttx/fs/nxffs/README.txt?view=log)
  1548. * Support for NXP LPCXpresso LPC1768 board on the Embedded
  1549. Artists base board. The Code Red toolchain is supported under
  1550. either Linux or Windows. Verified configurations include
  1551. dhcpd, nsh, nx, ostest, thttpd, and usbstorage.
  1552. * Support for the Univision UG-9664HSWAG01 OLED with Solomon
  1553. Systech SD1305 LCD controller.
  1554. * A new RAM MTD driver with FLASH simulation capability.
  1555. * A version.h file is now automatically generated so that C code
  1556. can now be version aware.
  1557. In addition to these new feature, several important bugfixes are
  1558. included in this release correcting problems with dup2(), LPC17xx
  1559. GPIO interrupts, LPC17xx UART2/3, the FAT file system, build issues,
  1560. and strrch(). See the ChangeLog for more details.
  1561. NuttX-6.3
  1562. ---------
  1563. The 70th release of NuttX follows only a nines days after the release
  1564. of version 6.2. It was released on May 15, 2011. This special
  1565. back-to-back release was made so that the current released version
  1566. of NuttX will correspond to the initial release from the RGMP
  1567. project.
  1568. This release adds architecture support and build configuration for
  1569. RGMP. RGMP is a project for running GPOS and RTOS simultaneously
  1570. on multi-processor platforms. See
  1571. http://rgmp.sourceforge.net/wiki/index.php/Main_Page for further
  1572. information about RGMP.
  1573. This release also includes support for STM32 FLASH, build improvements,
  1574. and initial, incomplete support for the MicroChip PIC32MX MCU. Bug
  1575. fixes are included for some build problems, USB host class driver
  1576. error handling, NX graphics color mapping, and problems with C
  1577. standard I/O buffer flushing. See the ChangeLog for further details.
  1578. NuttX-6.4
  1579. ---------
  1580. The 71st release of NuttX, Version 6.4, was made on June 5, 2011
  1581. and is available for download from the SourceForge website. The
  1582. 6.4 release includes several new features:
  1583. * A new, full-featured FTP client. This client may be used as a library
  1584. for automated FTP or via an FTP client shell. The FTP shell
  1585. supports the following commands: cd, chmod, get, help, idle,
  1586. login, ls, quit, mkdir, noop, put, pwd, rename, rhelp, rm,
  1587. rmdir, size, time, and up. A configuration is available for
  1588. the NXP LPC17xx to demonstrate this functionality.
  1589. * A functional C1101 wireless driver (contributed by Uros Platise)
  1590. * A PCI-based E1000 Ethernet driver (contributed by Yu Qiang)
  1591. * New C library functions: inet_addr() (contributed by Yu Qiang),
  1592. strndup(), asprintf()
  1593. * Reduced memory allocation overhead for MCUs with small heaps (<64K).
  1594. * fdopen() now works with socket descriptors allowing standard
  1595. buffered C functions to be used for network communications.
  1596. * The NSH ifconfig command can now be used to set or change the
  1597. IP address (contributed by Yu Qiang)
  1598. This release also includes some completed but untested functionality.
  1599. * The MicroChip PIC32MX port is now code complete and ready to
  1600. begin testing. Unfortunately, testing will be delayed due to
  1601. tool issues.
  1602. * Support for the NXP LPC315x MCUs.
  1603. Additional miscellaneous enhancements and bug fixes to task_delete(),
  1604. recvfrom(), and other changes as noted in the ChangeLog.
  1605. NuttX-6.5
  1606. ---------
  1607. The 72nd release of NuttX, Version 6.5, was made on June 21, 2011
  1608. and is available for download from the SourceForge website. The
  1609. 6.5 release is all about support for the Atmel 8-bit AVR family.
  1610. I have been interested in the AVR family for some time but because
  1611. of the severe SRAM constraints and because of the availability of
  1612. many tiny schedulers for the AVR, it has not been "on the radar
  1613. screen." However, I have recently become interested because of
  1614. interest expressed by members of the forum and because of the
  1615. availability of newer, larger capacity AVR parts (that I don't have
  1616. yet).
  1617. This release corresponds with SVN release number: r3730
  1618. This release includes support for the following AVR boards. As
  1619. with any initial support for new architectures, there are some
  1620. incomplete areas and a few caveats that need to be stated. Here
  1621. they are, ordered from the least to the most complete:
  1622. * SoC Robotics Amber Web Server (ATMega128).
  1623. This port of NuttX to the Amber Web Server from SoC Robotics
  1624. (http://www.soc-robotics.com/index.htm). Is only partially in
  1625. place. The Amber Web Server is based on an Atmel ATMega128
  1626. (128K FLASH but only 4K of SRAM).
  1627. STATUS: Work on this port has stalled due to toolchain issues. It
  1628. is complete, but untested.
  1629. * Micropendous 3 AT9USB647
  1630. This port of NuttX to the Opendous Micropendous 3 board. The
  1631. Micropendous3 may be populated with an AT90USB646, 647, 1286,
  1632. or 1287. See http://code.google.com/p/opendous/. I have only
  1633. the AT90USB647 version for testing. This version has very
  1634. limited memory resources: 64K of FLASH and 4K of SRAM.
  1635. STATUS: The basic port was released in NuttX-6.5. This basic
  1636. port consists only of a "Hello, World!!" example that demonstrates
  1637. initialization of the OS, creation of a simple task, and serial
  1638. console output. The tiny SRAM limits what you can do with the
  1639. AT90USB647 (see issues below).
  1640. * PJRC Teensy++ 2.0 AT9USB1286
  1641. This is a port of NuttX to the PJRC Teensy++ 2.0 board. This
  1642. board was developed by PJRC (http://pjrc.com/teensy/). The
  1643. Teensy++ 2.0 is based on an Atmel AT90USB1286 MCU with 128K
  1644. of FLASH and 8K of SRAM; a little more room to move than the
  1645. AT90USB647.
  1646. STATUS: The basic port was released in NuttX-6.5. This basic
  1647. port consists of a "Hello, World!!" example and also slightly
  1648. simplified NuttShell (NSH) configuration (see the NSH User Guide
  1649. at https://nuttx.apache.org/docs/latest/components/nsh/index.html).
  1650. An SPI driver and a USB device driver exist for the AT90USB as
  1651. well as a USB mass storage configuration. However, this
  1652. configuration is not fully debugged as of the NuttX-6.5 release.
  1653. AVR-specific issues. The basic AVR port is solid and biggest issue
  1654. for using AVR is its tiny SRAM memory and its Harvard architecture.
  1655. Because of the Harvard architecture, constant data that resides to
  1656. flash is inaccessible using "normal" memory reads and writes (only
  1657. SRAM data can be accessed "normally"). Special AVR instructions
  1658. are available for accessing data in FLASH, but these have not been
  1659. integrated into the normal, general purpose OS.
  1660. Most NuttX test applications are console-oriented with lots of
  1661. strings used for printf and debug output. These strings are all
  1662. stored in SRAM now due to these data accessing issues and even the
  1663. smallest console-oriented applications can quickly fill a 4-8K
  1664. memory. So, in order for the AVR port to be useful, one of two
  1665. things would need to be done:
  1666. 1. Don't use console applications that required lots of strings.
  1667. The basic AVR port is solid and your typical deeply embedded
  1668. application should work fine.
  1669. 2. Create a special version of printf that knows how to access
  1670. strings that reside in FLASH (or EEPROM).
  1671. NuttX-6.6
  1672. ---------
  1673. The 73rd release of NuttX, Version 6.6, was made on July 11, 2011
  1674. and is available for download from the SourceForge website. The
  1675. 6.6 release adds several smaller features but is mostly a bugfix
  1676. release.
  1677. Bugfixes include
  1678. * Fixed several NX Graphics bugs: Rendering fonts at >8 bits-per-pixel,
  1679. graphics move logic, and display artifacts that appear when a
  1680. window is closed.
  1681. * Corrections to the USB host mass storage class driver
  1682. * STM32 bugfixes: serial driver, GPIO interrupt handling
  1683. * LPC17xx: Changes for a success compilation with no console.
  1684. * Corrections to the Teensy AT90USB SD driver
  1685. * Changes for a clean compilation under the ZDS-II toolchain.
  1686. Minor features:
  1687. * Add logic to extract printf strings from FLASH (but there are
  1688. still printf issues for that target)
  1689. * Added a configuration for the Sure Electronics PIC32MX board.
  1690. However, higher priority tasks have stopped work on that
  1691. configuration.
  1692. * Added several new configurations for the STMicro STM3210E-EVAL
  1693. board.
  1694. * Added support for the STM3210E-EVAL board: (1) LCD in either
  1695. landscape or portrait mode, and (2) interrupting buttons.
  1696. * Added a configuration option to use different serial ports for
  1697. debug and for the NSH serial console (there are some issues
  1698. with CR-LF expansion and character echo if NSH is not run on
  1699. the console).
  1700. * Standardized the button press and button interrupt interfaces
  1701. so that they are common across all boards.
  1702. * Added a new graphics example that focuses on placing text on
  1703. the background while pop-up windows occur. Text should continue
  1704. to update normally with or without the popup windows present.
  1705. * Added ARM stack checking logic.
  1706. See the ChangeLog for a detailed description of these changes.
  1707. NuttX-6.7
  1708. ---------
  1709. The 74th release of NuttX, Version 6.7, was made on August 2, 2011
  1710. and is available for download from the SourceForge website. Note
  1711. that release consists of two tarballs: nuttx-6.7.tar.gz and
  1712. apps-6.7.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  1713. file for build information). Changes in this release are summarized
  1714. below:
  1715. * New OS APIs: Add the standard sem_timedwait() interface.
  1716. * FAT File System: Adds (optional) support for VFAT long file
  1717. names.
  1718. * USB: Now the mass storage device can be connected when needed
  1719. and disconnected when not needed (or re-connected as a different
  1720. kind of device).
  1721. * Touchscreen Support: Defined a new NuttX touchscreen interface.
  1722. Added a driver for the TI TSC2007 touchscreen controller chip.
  1723. * NX Fonts: Add support for multiple fonts; developed a tool to
  1724. convert open source fonts into NuttX format; Converted and
  1725. installed nine new, high quality fontsets.
  1726. * NX Graphics: Add new NX APIs to support drawing of wide lines
  1727. in any orientation. Added new low level routines to set
  1728. individual pixel more efficiently.
  1729. * Build system: Added a export target that will bundle up all
  1730. of the NuttX libraries, header files, and the startup object
  1731. into an exportable tarball.
  1732. * LPC17xx: A CAN driver was contributed by Li Zhuoyi (Lzyy).
  1733. * STM32: New NX-related configurations to exercise text and
  1734. graphic image displays.
  1735. * C Library: Added a fixed precision atan2() math function.
  1736. * Bugfixes: Serial RX overrun error, FAT upper/lower NT 8.3 name
  1737. handling fixed. FAT directory allocation and initialization
  1738. bug. STM32 SDIO DMA race condition bug. eZ80 UART1 serial
  1739. driver errors (Paul Osmialowski)
  1740. NuttX-6.8
  1741. ---------
  1742. The 75th release of NuttX, Version 6.8, was made on August 19, 2011
  1743. and is available for download from the SourceForge website. Note
  1744. that release consists of two tarballs: nuttx-6.8.tar.gz and
  1745. apps-6.8.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  1746. file for build information). Changes in this release are summarized
  1747. below:
  1748. * NuttX has been ported to run on the Freescale Cortex-M4 "Kinetis"
  1749. boards. Two board ports are available for (1) the Kinetis
  1750. KwikStik-K40 and (2) the Kinetis TWR-K60N512 tower.
  1751. * Support for RGMP 0.3. This version of RGMP now runs on the
  1752. OMAP4430 (arm) pandaboard
  1753. * LPC17xx CAN driver extended to support both CAN1 and CAN2
  1754. (submitted by Li Zhuoy (Lzzy))
  1755. * Fixed several critical bugs related to signal handling
  1756. initialization and for signals the wake up tasks that are waiting
  1757. to send or receive message queues.Both are important. (submitted
  1758. by hkwilton).
  1759. * drivers/can.c: Fixed a semaphore overflow problem in the CAN
  1760. driver (reported by Li Zhouy (Lzzy)).
  1761. * Added a new ADC driver infrastructure and TI ADS1255 driver
  1762. both developed and submitted by Li Zhouy (Lzzy)).
  1763. See the Changelog for additional changes included in this release.
  1764. NuttX-6.9
  1765. ---------
  1766. The 76th release of NuttX, Version 6.9, was made on September 11, 2011
  1767. and is available for download from the SourceForge website. Note
  1768. that release consists of two tarballs: nuttx-6.9.tar.gz and
  1769. apps-6.9.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  1770. file for build information).
  1771. This release includes a few new features and several important bug fixes.
  1772. The new features (some still incomplete) include:
  1773. * Analog Support/ NXP LPC17xx: New DAC sub-system including ADC and DAC
  1774. drivers for the LPC17xx. Extensions to the ADS1255 driver.
  1775. (Contributed by Li Zhuoyi (Lzyy))
  1776. * Power Management: Added a new NuttX power management sub-system for
  1777. controlling and coordinating reduced power states. At present, only
  1778. verified in a simulation environment.
  1779. * I2C Test Tool: A new application was added that can be used to
  1780. verify and debug I2C interfaces from the NuttShell (NSH) command
  1781. line.
  1782. * NuttShell (NSH): In addition to the I2C test tool, a date command
  1783. is now supported (if CONFIG_RTC is defined) that can be used to
  1784. read and set the RTC.
  1785. * NXP LPC17xx: I2C and DAC driver for the NXP LPC17xx family submitted by Li Zhuoyi
  1786. (Lzyy)
  1787. * Kinetis Cortex-M4: Added a SDHC driver for the Kinetis parts.
  1788. Complete debug of the Kinetis SDHC driver was not completed, however,
  1789. do to some higher priority tasks that forced me to stop work.
  1790. * Other new drivers: Driver for I2C-based at24cxx EEPROM submitted by
  1791. Li Zhuoyi (Lzyy); Driver for the LM-75 temperature sensor. Support
  1792. for the LM-75 temperature sensor integrated into the SM3210E-EVAL
  1793. development board.
  1794. * NuttX Graphics (NX): Added new NX interfaces for drawing circles,
  1795. both circle outlines and filled circles.
  1796. * FLASH: Added a function that accepts the path to a block driver and
  1797. then erases the underlying FLASH memory
  1798. * Build System: The Make export logic now also tries to track down all
  1799. architecture-specific header files and include these in the NuttX
  1800. export bundle as well. Various changes and modifications so that
  1801. NuttX wil build on FreeBSD using the ASH shell (submitted by Kurt Lidl).
  1802. Bugfixes, order roughly on decreasing criticality include:
  1803. * STM32 I2C Driver: Add resets, timeout, and other fixes to work
  1804. reliably with the I2C tool. Corrected a major error introduced in
  1805. NuttX 6.8.
  1806. * BCH Driver. Several important bugs (noted by Li Zhuoyi (Lzyy))
  1807. were fixed.
  1808. * C Library: Fixed errors in gmtime() and gmtime_r() that could lead to
  1809. errors in date calculations.
  1810. * Timing: Correct an error in the tv_nsec calculation that happens
  1811. only config CONFIG_RTC is enabled
  1812. * Build System: Use of -print-libgcc-file-name to get path to
  1813. libgcc.a might select the wrong libgcc.a if a multilib toolchain
  1814. is used
  1815. NuttX-6.10
  1816. ----------
  1817. The 77th release of NuttX, Version 6.10, was made on October 6, 2011
  1818. and is available for download from the SourceForge website. Note
  1819. that release consists of two tarballs: nuttx-6.10.tar.gz and
  1820. apps-6.10.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  1821. file for build information).
  1822. This release corresponds with SVN release number: r4028
  1823. This release includes a few new features and several important bug fixes.
  1824. The new features (some still incomplete) include:
  1825. * CDC ACM serial class device-side driver
  1826. * RTC: Now supports hi-res and lo-res hardware RTC. The lo-res RTC
  1827. runs at 1Hz.
  1828. * STM32 I2C driver. Now supports faster, polled mode of operation.
  1829. Added an I2C trace capability.
  1830. * ADS7843E touchscreen driver. As used on the SAM3U-EK development
  1831. board.
  1832. * AT91SAM3U SPI driver. To support the ADS7843E toucscreen
  1833. * X11 Support on simulation target. Build errors in the X11 windows
  1834. for the simulated target have been correct. Added support for a
  1835. simulated touchscreen on the X11 window (based on mouse inputs).
  1836. * System Timer. Added support for a 64-bit system timer.
  1837. * TIFF Support. Added a TIFF library (currently used for storing
  1838. LCD screen shots).
  1839. * LCD Support. Added a test to verify that we read and write correct
  1840. to LCD GRAM memory.
  1841. * I2C tool. Extended to support to include a verify command and
  1842. repetitions and auto-address increment for most commands.
  1843. * USB terminal example. Line oriented serial bridge connects a host
  1844. USB serial terminal to a host UART serial terminal.
  1845. * Build System. apps/ Makefile will now include external directories
  1846. in the application build.
  1847. Bugfixes, order roughly on decreasing criticality include:
  1848. * Message Queues. Correct errors in mq_timedsend() and
  1849. mq_timedreceive().
  1850. * FAT. Writes that cross sector boundaries, stray write into the FAT,
  1851. and a FAT long file name issue
  1852. * NXFFS. Added a missed error check. Files cannot be opened for
  1853. writing if they are already opened for reading.
  1854. * Library: fopen() for append modse was not appending.
  1855. * STM32 I2C driver. Correct another conflict between concurrent FSMC
  1856. and I2C1 accesses. Fixed some bad error detection logic.
  1857. * STM32 SDHC driver. Interrupts were being left disabled.
  1858. NuttX-6.11
  1859. ----------
  1860. The 78th release of NuttX, Version 6.11, was made on November 12, 2011
  1861. and is available for download from the SourceForge website. Note
  1862. that release consists of two tarballs: nuttx-6.11.tar.gz and
  1863. apps-6.11.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  1864. file for build information).
  1865. This release corresponds with SVN release number: r4090
  1866. This release is a maintenance release that includes a few new features
  1867. and some important bugfixes. New features include:
  1868. * NX Graphics: New interfaces to read from graphics memory
  1869. * Drivers: AT24 FLASH driver will now supports clustering of blocks
  1870. to achieve a larger, more usable block size for NXFFS.
  1871. * STM32: LCD color corrections
  1872. * PIC32: Board configuration for the Microchip PIC32 Ethernet Starter kit
  1873. (not yet verified), new GPIO support library, button and LED support
  1874. for the Sure Electronics PIC32MX board. A lot of progress has been
  1875. made on the PIC32 NuttX port, but it is still not ready for prime time.
  1876. * NXP LPC3152: Board configuration for the Embedded Artists EA3152.
  1877. Bugfixes, order roughly on decreasing criticality include:
  1878. * NXFFS: Corrected critical bugs in initialization, some full FLASH handling,
  1879. and errors in certain cases where the FLASH is repacked.
  1880. * ARM EABI: Fix stack alignment required for passing floating point values.
  1881. * Build system: Fix build issues when g++ is used as the compiler.
  1882. * NX Graphics: Bitmap error handling, correct RGB color conversion macros,
  1883. Error when the background window is released.
  1884. * STM32: RTC build fixes, LCD color corrections
  1885. * Simulation target: build fixes
  1886. * C Library: fclose() return value.
  1887. See the change log for more detailed information.
  1888. NuttX-6.12
  1889. ----------
  1890. The 79th release of NuttX, Version 6.12, was made on December 6, 2011
  1891. and is available for download from the SourceForge website. Note
  1892. that release consists of two tarballs: nuttx-6.12.tar.gz and
  1893. apps-6.12.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  1894. file for build information).
  1895. This release corresponds with SVN release number: r4141
  1896. New features in this release include:
  1897. * STM32. Basic support added for the STM32 F4 family. Board support
  1898. verified for the STMicro STM3250G-EVAL board.
  1899. * FAT. Enhanced partition handling.
  1900. * SDIO-Based SD Card support. Add support for large (>4Gb) devices
  1901. * Graphics. Added four new small sans serif fonts.
  1902. * Drivers. Fix a banding problem with the R61580 LCD.
  1903. Bugfixes, order roughly on decreasing criticality include:
  1904. * FAT. Fix errors in how the first entries in the root directory are
  1905. added. Fix errors in FAT date/time handling.
  1906. * Signals. Fix bug in certain sig_timedwait() error handling.
  1907. * Drivers. Fix cloned errors in poll() handling in several drivers.
  1908. * Message Queues. errno was not being set correctly by mq_notify().
  1909. * C Library. wchar_t is a built-in type for C++
  1910. NuttX-6.13
  1911. ----------
  1912. The 80th release of NuttX, Version 6.13, was made on December 26, 2011
  1913. and is available for download from the SourceForge website. Note
  1914. that release consists of two tarballs: nuttx-6.13.tar.gz and
  1915. apps-6.13.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  1916. file for build information).
  1917. This release corresponds with SVN release number: r4231
  1918. New features in this release include:
  1919. * Drivers. New standard interface for PWM drivers and common
  1920. "upper half" PWM driver. Updated the MP25x driver to support
  1921. the Macronix MX25 chips (submitted by Mohammad Elwakeel).
  1922. * STM32 F1/F4. Added an Ethernet driver, ADC drivers, DAC driver,
  1923. PWM driver, CAN driver, F4 RTC driver, F4 DMA support,
  1924. logic for saving/restoring F4 FPU registers in context switches.
  1925. * STM32 Boards. Added STM3240G-EVAL DHPCD and nettest configuration.
  1926. Support for a new STM32 board, the HY-Mini STM32v board, was
  1927. contributed by Laurent Latil
  1928. * PIC32. The port to the Microchip PIC32MX is finally functional and
  1929. reliable. The NuttX PIC32 port has verified configurations for
  1930. the OS test and the NuttShell (NSH) both exist.
  1931. * Tests: New re-usable tests (in apps/examples) for PWM, ADC, and
  1932. CAN loopback. Several existing tests can now be built as NSH built-in
  1933. applications (dhcpd, nettest, and all of the new tests).
  1934. Bugfixes, order roughly on decreasing criticality include:
  1935. * STM32: Correct handling of data overrun conditions. Existing logic
  1936. would hang with infinite interrupts when a data overrun occurred.
  1937. * DHCPD. Fix several problems using host order address where network
  1938. addresses expected (and vice versa).
  1939. And several others. See the ChangeLog for more details.
  1940. NuttX-6.14
  1941. ----------
  1942. The 81st release of NuttX, Version 6.14, was made on January 15, 2012,
  1943. and is available for download from the SourceForge website. Note
  1944. that release consists of two tarballs: nuttx-6.14.tar.gz and
  1945. apps-6.14.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  1946. file for build information).
  1947. This release corresponds with SVN release number: r4301
  1948. New features in this release include:
  1949. * Drivers. The upper-half PWM driver will now support a pulse count (as
  1950. would be needed to control a stepper motor).
  1951. * STM32. The CAN driver has been verified in loopback mode. ADC driver
  1952. support for the STM32 F4. Add support for UART4-5 and USART6
  1953. (Contributed by Mike Smith). The PWM driver now supports a pulse
  1954. count for TIM1 and TIM8. Timer driver now supports the F4's 32-bit
  1955. timers (Contributed by Mikhail Bychek)
  1956. * STM32F4Discovery. Support for the STM32F4-Discovery board contributed
  1957. by Mike Smith.
  1958. * STM3240G-EVAL. Add support for user control of LEDs.
  1959. * LPC17xx. Add support for loopback mode to CAN driver. CAN TX done
  1960. perations are now interrupt driver. Now supports configurable CAN bit
  1961. rate.
  1962. * LPC1766-STK. Add support for on-board buttons. Add support for user
  1963. control of LEDs.
  1964. * LM3S. Add support for the LM3S6432S2E on the TI RDK-S2E (Contributed
  1965. by Mike Smith)
  1966. * PIC32MX. USB device-side driver (needs further testing). A partial
  1967. Ethernet driver is also in place.
  1968. * Library. Support added for fixed floating point fieldwidths in output
  1969. formatting (Contributed by Mikhail Bychek)
  1970. * Build. New targets apps_clean and apps_distclean to simplify working
  1971. with application directories.
  1972. Bugfixes include:
  1973. * Drivers. Fixed a buffer-full test in the upper-half CAN driver.
  1974. * STM32. GPIO initialize logic (submitted by Mike Smith). Fix the
  1975. debug logic that dumps the GPIO configuration.
  1976. * LPC17xxx. Correct an integer overflow in GPIO interrupt setup
  1977. (prevented pins > 15 from being used as interrupt sources). Correct
  1978. a value used in GPIO interrupt number range test.
  1979. * FAT. Now returns the correct error value when it is unable to
  1980. recognize the file system.
  1981. * Build. macOS build fixes (submitted by Mike Smith)
  1982. And several others. See the ChangeLog for more details.
  1983. NuttX-6.15
  1984. ----------
  1985. The 82nd release of NuttX, Version 6.15, was made on February 12, 2012,
  1986. and is available for download from the SourceForge website. Note
  1987. that release consists of two tarballs: nuttx-6.15.tar.gz and
  1988. apps-6.15.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  1989. file for build information).
  1990. This release corresponds with SVN release number: r4387
  1991. New features and extended functionality:
  1992. * General Drivers: Add support for (29-bit) extended CAN IDs. Add an
  1993. infrastructure to support battery drivers. Add a driver for MAX17040x
  1994. battery "fuel gauge". Add support for Composite USB drivers (in
  1995. particular for a CDC/ACM with MSC USB composite driver).
  1996. Added a new RAM logging driver. This will allow debug output into
  1997. a RAM buffer associated with a character driver at /dev/ramlog.
  1998. Added the new command 'dmesg' to NSH that can be used to dump the
  1999. current contents of the log. This is useful for systems that do not
  2000. have the usual serial console (for example, if you only have a
  2001. Telnet console with NSH).
  2002. * Networking: Add a lower level, primitive socket interface. Telnet
  2003. driver:
  2004. A New Telnet daemon was created. It wraps a Telnet session within a
  2005. character driver that can serve as a "controlling terminal." The
  2006. Telnet session will then be inherited by tasks created from the
  2007. Telnet session and the stdin/stdout from the created task will
  2008. still go through the same Telnet connection.
  2009. * STM32 Drivers. PWM driver pulse count was limited to 128; now is
  2010. (essentially) unlimited. Add support for (29-bit) extended CAN IDs.
  2011. Add support for I2C3. The SDIO driver is (mostly) verified on the
  2012. STM32 F4 platforms.
  2013. * LPC17xx Drivers. Extended the CAN driver so that the TSEG1 and TSEG2
  2014. bit times can be set via the NuttX configuration. Add support for
  2015. (29-bit) extended CAN IDs.
  2016. * PIC32 Drivers. The PIC32 Ethernet driver is code complete (but still
  2017. untested).
  2018. * FTPD. Add a new FTP server daemon. This is based loosely on
  2019. the hwport_ftpd library provided by Jaehyuk Cho.
  2020. * Library: Add support for on_exit(). Implemented tcsetattr() and
  2021. tcgetattr(). Moved the old, too-smart fgets() to a new application
  2022. library function called readline(). Dumbed down the original fgets().
  2023. Add strcasestr(), avsprintf(), inet_ntop(), and inet_pton().
  2024. Add support to enable or disable debug output.
  2025. * Build system: Support for building a 32-bit simulation executable on
  2026. a 64-bit Linux machine. Correct a dependency issue in the arch/*/src/board
  2027. directory.
  2028. Bugfixes:
  2029. * System: Correct PTHREAD_MUTEX_INITIALIZER
  2030. * FAT: Fix an error in the FAT statfs() reported by David Sidrane.
  2031. * STM32: Fix clock frequencies for APB2 timers. Correct AFIO register
  2032. offset.
  2033. * PIC32. Correct GPIOs used for LEDs on the Sure PIC32MX board.
  2034. * NSH. Wait for a USB connection if a USB serial class is used to
  2035. interface with the host.
  2036. Additional bugfixes, name changes, and other differences as detailed in the
  2037. ChangeLog.
  2038. NuttX-6.16
  2039. ----------
  2040. The 83rd release of NuttX, Version 6.16, was made on March 10, 2012,
  2041. and is available for download from the SourceForge website. Note
  2042. that release consists of two tarballs: nuttx-6.16.tar.gz and
  2043. apps-6.16.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2044. file for build information).
  2045. This release corresponds with SVN release number: r4475
  2046. New features and extended functionality:
  2047. * ARMv7M Support: Includes new, streamlined Cortex-M exception
  2048. handling provided by Mike Smith. Context switching support for the
  2049. Cortex-M4 FPU registers is now provided (in both "lazy" and "non-lazy"
  2050. modes)
  2051. * General Drivers: Added a generic "upper half" Quadrature Encoder driver.
  2052. The USB CDC/ACM serial driver can now be dynamically connected or
  2053. disconnected from the host (programmatically or using NSH commands).
  2054. * STM32 Drivers: Added a "lower half" Quadrature Encoder driver.
  2055. Verified the STM32 F4 DMA driver; Added F4 DMA support to the existing
  2056. STM32 SDIO driver.
  2057. * STM32 Board Support. Added support for the STM32 F2 family and
  2058. for the STM3220G-EVAL board (contributed by Gary Teravskis).
  2059. Support is now included for C++ static constructors (verified using
  2060. the Atollic toolchain). Added support for the SRAM available on the
  2061. STM3240G-EVAL board.
  2062. * PIC32 Drivers. PIC32MX USB (device) driver is now functional.
  2063. The PIC32MX Ethernet driver not yet fully verified (and an
  2064. unverified SPI driver is also available).
  2065. * Networking. Added a lower-level, thread-independent socket layer.
  2066. Parts of this layer were created in 6.15 to support the FTPD
  2067. controlling terminal; this support has been extended in order
  2068. to support an NFS file system (not yet released).
  2069. * NuttShell (NSH). NSH will now support a USB serial connection for
  2070. the console (such as CDC/ACM). This is useful in environments
  2071. where there is no physical serial port on the board.
  2072. * Build System. Reorgnaization of networking header files.
  2073. Critical Bugfixes. The following bug fixes are considered critical:
  2074. * Networking: Fixed a "leak" in the TCP/IP read-ahead buffering logic.
  2075. Corrected an error in TCP/IP sequence numbering/ACK logic which
  2076. occurred when read-ahead buffering memory is exhausted.
  2077. * STM32 Drivers: Fixed an buffer sizing error in the STM32 Ethernet
  2078. driver.
  2079. Additional Bugfixes: Other important bug fixes are listed below. See
  2080. the ChangeLog of a complete, detailed list of bug fixes.
  2081. * Networking: Corrected recv()/recvfrom() return value. Added logic to
  2082. monitor for loss of connection after a new connection has been
  2083. established via accept() (Contributed by Max Nekludov). Add
  2084. logic to select() to correctly handle POLLHUP (Contributed by Max
  2085. Nekludov)
  2086. Additional bugfixes, name changes, and other differences as detailed in the
  2087. ChangeLog.
  2088. NuttX-6.17
  2089. ----------
  2090. The 84th release of NuttX, Version 6.17, was made on April 14, 2012,
  2091. and is available for download from the SourceForge website. Note
  2092. that release consists of two tarballs: nuttx-6.17.tar.gz and
  2093. apps-6.17.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2094. file for build information).
  2095. This release corresponds with SVN release number: r4607
  2096. New features and extended functionality:
  2097. * Networking: Additional low-level, thread-independent socket
  2098. interfaces (for NFS client support).
  2099. * RTC: Added a new interface call clock_synchronize(). This function
  2100. will reload the system time from an RTC and is required when the
  2101. system re-awakens from certain deep-sleep modes.
  2102. * Graphics: Add NxConsole. This is a character device driver that
  2103. wraps an NX window and can be re-directed for stdout. This allows,
  2104. for example, a pop-up graphics window that contains a NuttShell (NSH)
  2105. session. A test of NxConsole is available at apps/examples/nxconsole.
  2106. * Watchdog Drivers: Added an interface definition an "upper half"
  2107. driver to support watchdog timers.
  2108. * Calypso: Support for TI Calypso-based cellphones (as supported by
  2109. the Osmocom-BB project) was contributed by members of the Osmocom-BB
  2110. team. This includes configurations for the Compal e88 and e99 phones.
  2111. * USB Device Interface: Needed to extend the USB device interface
  2112. because there was no mechanism for passing endpoint OUT data that
  2113. may need to accompany a setup request.
  2114. * STM32 drivers: Added some power management controls for entering
  2115. reduced power consumption states. An OTG FS driver was completed
  2116. and partially verified (this driver seems to be functional but since
  2117. it has been test so lightly, it might better be listed in the
  2118. next section "Work in progress").
  2119. * PIC32 drivers: The PIC32 Ethernet driver is now stable. The PIC32
  2120. USB device controller driver is now functional (but not yet stable).
  2121. * PIC32 boards: Added support for the Sure DB-DP11212 PIC32 General
  2122. Purpose Demo Board. There is now a PIC32 Starter Kit that
  2123. provides NSH only through a Telnet connection.
  2124. * Build System: Some header files were moved into include/nuttx.
  2125. The goal is to move any non-standard header files to include/nuttx
  2126. or include/arch. Moved include/math.h to include/nuttx/math.h;
  2127. this file is now only instantiated as the 'system' math.h if
  2128. CONFIG_ARCH_MATH_H=y is defined.
  2129. * Tools: Added tools/cmpconfig.c, a tool for comparing two
  2130. configuration files.
  2131. Work in progress. This release includes some partially completed
  2132. work that is still not ready for prime time.
  2133. * NFS Client: Work is progressing on support for an NFS client
  2134. file system. This is a port of the BSD NFS client file system
  2135. that is being done by Jose Pablo Rojas V.
  2136. * Automated Configuration: Automated configuration based on the
  2137. kconfig-frontends tool is being incorporated into the build
  2138. system. The configuration is still not complete enough for
  2139. general use in this release.
  2140. * STM32 Drivers: Added files that will (eventually) hold an STM32
  2141. OTG FS host driver. This is still a work in progress.
  2142. Bugfixes:
  2143. * Networking: Corrected a deadlock that only occurred when
  2144. executing the NSH 'ifconfig' command over Telnet.
  2145. * File system: Fix incorrect return errno value from read() when
  2146. the file is opened write-only.
  2147. * Graphics: Fix several compilation errors that have crept into the
  2148. multi-user NX server because of lack of use.
  2149. * STM32: In order to use CAN2, both CAN1 and CAN2 clocking must be
  2150. enabled. Fixed a troublesome bug in the STM32 F4 I2C driver that
  2151. resulting in timeouts.
  2152. * LPC17xx: Fixes for errors the crept in the LPC17xx DAC logic
  2153. Contributed by Lzyy).
  2154. * Build System: Reordered the link command line to account for new
  2155. versions of libgcc.a that require symbols from the application
  2156. (abort()).
  2157. NuttX-6.18
  2158. ----------
  2159. The 85th release of NuttX, Version 6.18, was made on May 19, 2012,
  2160. and is available for download from the SourceForge website. Note
  2161. that release consists of two tarballs: nuttx-6.18.tar.gz and
  2162. apps-6.18.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2163. file for build information).
  2164. The majority of changes in this release are focused on supporting the
  2165. synchronized release of NxWM, the NuttX tiny window manager. That
  2166. window manager is released as part of the NxWidgets package, but depends
  2167. upon many of the changes in this NuttX release.
  2168. This release corresponds with SVN release number: r4751
  2169. New features and extended functionality:
  2170. * Drivers. Added a watchdog timer driver infrastructure. Add general
  2171. support for STMicro STMPE811 I/O Expander/touchscreen device.
  2172. * STM32. Add support for the STM32 IWDG and WWDG watchodog timers. DMA
  2173. now supports circular buffer mode; serial driver now uses circular
  2174. DMA to improve Rx performance (Contributed by Mike Smith).
  2175. * STM3240G-EVAL Board. Add support for the LCD and for the STMPE811
  2176. I/O Expander as a touchscreen controller.
  2177. * PIC32 Boards. Board support for the Mikroelektronika PIC32MX7
  2178. Multimedia Board (MMB) and for the Sparkfun UBW32 PIC32 board.
  2179. * NX. Framed windows are now draw in three colors instead of just two.
  2180. Numerous other extensions needed to support NxWM (see the ChangeLog
  2181. for details).
  2182. * Library. Add prctl() command that can be used to setting and getting
  2183. the names of threads. This (plus several other improvements and bug
  2184. fixes) are part of a larger effort to improve task monitoring
  2185. capabilities.
  2186. Work in progress. This release includes some partially completed
  2187. work that is still not ready for prime time.
  2188. * NFS Client. Work is progressing on support for an NFS client
  2189. file system. This is a port of the BSD NFS client file system
  2190. that is being done by Jose Pablo Rojas V.
  2191. * Automated Configuration. Automated configuration based on the
  2192. kconfig-frontends tool is being incorporated into the build
  2193. system. The configuration is still not complete enough for
  2194. general use in this release.
  2195. * STM32 Drivers. Added files that will (eventually) hold an STM32
  2196. OTG FS host driver. This is still a work in progress.
  2197. Bugfixes (see the change log for details) :
  2198. * sched_setscheduler() return value (Contributed by Richard Cochran).
  2199. * stdio. Ignore CONFIG_STDIO_LINEBUFFER if the file was opened in binary mode.
  2200. * fopen(). Correct an error in parsing open mode string.
  2201. * serial driver. Improved performance be reducing the amount of time
  2202. that Rx interrupts are disabled.
  2203. * recvfrom(). Fix a compilation problem.
  2204. * CDC/ACM device driver. Fix an infinite loop that occurs when the serial
  2205. device is unregistered.
  2206. * STM32 OTG FS device driver. Numerous fixes and the driver is partially
  2207. functional but there are still some issues that become apparent when
  2208. debug output is disabled.
  2209. * fcntl(). Always returned zero on success; however, some fcntl commands
  2210. need to return non-zero values on success.
  2211. * graphics: Many multi-use mode fixes added to support NxWM (see the
  2212. ChangeLog for details). Auto-raise is temporarily disabled in multi-
  2213. user mode because it causes some problems with NxWM.
  2214. * on_exit(): Fix compilation errors if CONFIG_SCHED_ONEXIT is enabled.
  2215. NuttX-6.19
  2216. ----------
  2217. The 86th release of NuttX, Version 6.19, was made on June 15, 2012,
  2218. and is available for download from the SourceForge website. Note
  2219. that release consists of two tarballs: nuttx-6.19.tar.gz and
  2220. apps-6.19.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2221. file for build information).
  2222. This release corresponds with SVN release number: r4847
  2223. This release features new support for a Network File System (NFS) client.
  2224. This feature allows a tiny, embedded MCU to mount a remote file system
  2225. exported by an NFS server and then to access the file system as it would
  2226. any local file system. Then the tiny MCU can effectively have terabytes
  2227. of storage!
  2228. This might be useful for data collection, for MCU configuration information,
  2229. for software updates, for providing modular, loadable code modes, controlling
  2230. a "farm" of MCUs, ... there are many possibilities and opportunities for
  2231. innovation!
  2232. The NuttShell (NSH) now supports the following command:
  2233. nfsmount <server-address> <mount-point> <remote-path>
  2234. That command will mount the remote NFS server directory <remote-path> at
  2235. <mount-point> on the target machine. <server-address> is the IP address of
  2236. the remote server.
  2237. The NFS development was the graduation project of Jose Pablo Rojas V. who
  2238. is a student at the Instituto Tecnológico de Costa Rica (ITCR, or TEC).
  2239. A lot of effort went into understanding what a tiny, embedded NFS client should
  2240. do and getting the target resource usage to a bare minimum. Only around a
  2241. kilobyte or so of memory is required to run the NFS client (and most of that
  2242. for I/O buffers). Jose Pablo has spent several months living with NFS and
  2243. should be congratulated.
  2244. Additional new features and extended functionality:
  2245. * Drivers: SSD1289 LCD driver, MIO283QT2 LCD driver
  2246. * LM3S: Additional register definition header files (contributed by Max
  2247. Neklyudov).
  2248. * STM32 Boards: The STM32F4Discovery will now support an SSD1289 LCD,
  2249. The STM3220G-EVAL board support is now equivalent to the STM3240G-EVAL
  2250. board support.
  2251. * PIC32 Boards: The Mikroelektronika PIC32MX7 MMB board port is now
  2252. functional, very complete, and stable.
  2253. * Graphics: The NxConsole will now take keyboard input from the NX graphics
  2254. subsystem. This means that if there are multiple NxConsole windows, only
  2255. the top instance that has focus will receive the keyboard input.
  2256. * apps/: Add the capability to use an arbitrary USB device as the console
  2257. (not necessarily /dev/console). Additional enhancements for USB consoles.
  2258. Added the 'mv' command.
  2259. Work in progress. This release includes some partially completed
  2260. work that is still not ready for prime time.
  2261. * Automated Configuration. Automated configuration based on the
  2262. kconfig-frontends tool is being incorporated into the build
  2263. system. The configuration is still not complete enough for
  2264. general use in this release.
  2265. * STM32 Drivers. Added files that will (eventually) hold an STM32
  2266. OTG FS host driver. This is still a work in progress.
  2267. Bugfixes (see the change log for details) :
  2268. * General: sleep() and usleep() return values, sig_timedwait() errno setting
  2269. on timeout.
  2270. * Drivers: STMPE811 touchscreen driver, USB PLC2303, USB CDC/ACM
  2271. * STM32: Several USB device controller driver fixes, F4 interrupt priorities
  2272. (contributed by Mike Smith).
  2273. * Graphics: Keyboard input, fill trapezoid bug
  2274. As well as other, less critical bugs (see the ChangeLog for details)
  2275. NuttX-6.20
  2276. ----------
  2277. The 87th release of NuttX, Version 6.20, was made on July 12, 2012,
  2278. and is available for download from the SourceForge website. Note
  2279. that release consists of two tarballs: nuttx-6.20.tar.gz and
  2280. apps-6.20.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2281. file for build information).
  2282. This release corresponds with SVN release number: r4937
  2283. Additional new features and extended functionality:
  2284. * Power Management: An evolving power management example is being
  2285. created by Diego Sanchez. This effort currently involves on the
  2286. STM32 F1 but clearly demonstrates the NuttX power management
  2287. system which will automatically drive the system to lower power
  2288. usage states due to lack of use.
  2289. * Drivers: Added a driver for the SST 25 SPI-based FLASH parts.
  2290. * PIC32: Added support for the PIC32MX1 and PIC32MX2 families.
  2291. Added support for the microchipOpen and Pinguino toolchains.
  2292. * NXP LPC43XX: Added support for the entire LPC43xx family
  2293. * PIC32 boards: Added support for the DTX1-4000L "Mirtoo" module
  2294. from http://www.dimitech.com/ (PIC32MX2).
  2295. * NXP LPC43XX Boards: Added support for NGX LPC4330-Xplorer board.
  2296. * NXP LPC17XX Boards: Added support for Micromint Lincoln60 board
  2297. (LPC1769).
  2298. * LM3S Boards: Add a configuration to support the TI/Stellaris
  2299. EKK-LM3S3B96 development board. Contributed by Jose Pablo Rojas V.
  2300. * Library: NuttX now supports platform-specific stdarg.h header
  2301. files.
  2302. Work in progress. This release includes some partially completed
  2303. work that is still not ready for prime time.
  2304. * Automated Configuration. Automated configuration based on the
  2305. kconfig-frontends tool is being incorporated into the build
  2306. system. The configuration is still not complete enough for
  2307. general use in this release.
  2308. * STM32 Drivers. Added files that will (eventually) hold an STM32
  2309. OTG FS host driver. This is still a work in progress.
  2310. Bugfixes (see the change log for details) :
  2311. * PIC32: GPIO output configuration (critical bug)
  2312. * STM32: Typos in pin mapping files.
  2313. * LM3S: Fixed an optimization related but that caused slow start-up
  2314. times if optimization was disabled.
  2315. * Library: Fixed signed extension but in all limit.h files
  2316. (reported by Lorenz Meier). inet_ntoa compilation failure
  2317. on Z80.
  2318. As well as other, less critical bugs (see the ChangeLog for details)
  2319. NuttX-6.21
  2320. ----------
  2321. The 88th release of NuttX, Version 6.21, was made on August 25, 2012,
  2322. and is available for download from the SourceForge website. Note
  2323. that release consists of two tarballs: nuttx-6.21.tar.gz and
  2324. apps-6.21.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2325. file for build information).
  2326. This release corresponds with SVN release number: r5052
  2327. Additional new features and extended functionality:
  2328. * Core: Add support for multiple registered atexit() functions. Syslog
  2329. extended: Now any character driver may be used for the debug logging
  2330. device. Mountpoint traversal logic.
  2331. * Drivers: Added support for the TI PGA112-7 amplifier/multiplexor.
  2332. * LPC43xx: Added clock ramp-up logic to run at 204 MHz
  2333. * LPC43xx Drivers: SPIFI block driver, RS-485 support, Minimal termios
  2334. support. Framework for USB0 device controller driver.
  2335. * LPC17xx Drivers: Minimal termios support
  2336. * STM32: Support for STM32 F1 "Value Line" (contributed by Mike Smith).
  2337. Add support for STM32 F107 "Connectivity Line" (contributed by Max
  2338. Holtzberg).
  2339. Clock restart logic needed for recovery from low power modes.
  2340. * STM32 Drivers: RTC alarm support. Usable for wakeup from sleep mode,
  2341. Minimal serial termios support. USB OTG FS host driver (alpha).
  2342. * STM32 Boards: Add power management hooks for the STM32F4Discovery,
  2343. Add support for the Olimex STM32-P107 (contributed by Max Holtzberg).
  2344. * PIC32: Add support for the Pinguino MIPS toolchain.
  2345. * PIC32 Drivers: GPIO driver now supports F1 analog regiaters (ANSEL).
  2346. * PIC32 Boards: Add support for the PGA117 on the Mirtoo module.
  2347. * Calypso: Add support for the SSD1783 LCD on the Compal E99.
  2348. * Library: cfsetispeed(), cfsetospeed(), tcflush(), memchr(), and
  2349. memccpy().
  2350. * Applications: Port of freemodbus-v1.5.0. Add support for testing
  2351. devices with multiple ADC, PWM, and QE devices.
  2352. NSH: NSH 'mount' command (with no arguments) will now show mounted
  2353. volumes. Add new NSH 'df' command. Extended 'help' support. NSH
  2354. now catches the return value from spawned applications (provided
  2355. by Mike Smith).
  2356. * Build System: mkconfig will not define CONFIG_DRAM_END. A lot of
  2357. progress has been made on the automated NuttX configuration logic
  2358. (Thanks go to Richard Cochran).
  2359. * Documentation: Document ways to customize the behavior of NSH.
  2360. Bugfixes (see the change log for details) :
  2361. * Serial drivers (all): Fix ioctl return value. Common "upper half"
  2362. serial driver will now return with EINTR if a serial wait is
  2363. interrupted by a signal.
  2364. * FAT: Fix statfs() file name length.
  2365. * LPC43xx: Clock configuration.
  2366. * STM32: Pinmap fixes, SPI driver re-initialization
  2367. * STM32 Boards: Correct and lower SDIO frequency for F2 and f4 boards.
  2368. * AVR: C++ build issues.
  2369. * PM: Fix a place where interrupts were not be re-enabled.
  2370. * Applications: NSH application start-up race conditions.
  2371. * Library: Fieldwidth and justification for %s format. Fixed several
  2372. issues with presenting floating point numbers. NULL definition
  2373. for C++
  2374. As well as other, less critical bugs (see the ChangeLog for details)
  2375. NuttX-6.22
  2376. ----------
  2377. The 89th release of NuttX, Version 6.22, was made on September 29, 2012,
  2378. and is available for download from the SourceForge website. Note
  2379. that release consists of two tarballs: nuttx-6.22.tar.gz and
  2380. apps-6.22.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2381. file for build information).
  2382. This release corresponds with SVN release number: r5206
  2383. Note that all SVN information has been stripped from the tarballs. If you
  2384. need the SVN configuration, you should check out directly from SVN. Revision
  2385. r5206 should equivalent to release 6.22 of NuttX 6.22:
  2386. svn checkout -r5206 svn://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
  2387. Or
  2388. svn checkout -r5206 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
  2389. Additional new features and extended functionality:
  2390. * RTOS: Application entry point is no longer user_start, but can be
  2391. configured using CONFIG_USER_ENTRYPOINT. NuttX now supports two work
  2392. queues: A lower priority work queue (for extended processing) and a
  2393. higher priority work queue (for quick, high priority operations).
  2394. * Memory Management: Added a new granule-based allocated that can be
  2395. used to manage, aligned and quantized DMA memory.
  2396. * File System: Add hooks to allocate I/O memory with and external
  2397. allocated (need if required by DMA).
  2398. * Networking: ENC28J60 driver is (finally) verified.
  2399. * Drivers: Add hooks USB device drivers to allocate I/O memory with and
  2400. external allocated (need if required by DMA). Driver for the Windbond
  2401. SPI FLASH family (W25x16, W25x32, W25x64, and others). ADS7843E driver
  2402. extended for TSC2046 and XPT2046 and verified.
  2403. * ARMv7-M: Added logic to reset the MCU using the NVIC.
  2404. * STM32: Add support for STM32F103VET6.
  2405. * STM32 Drivers: Add logic to re-initialize UARTs a second time to
  2406. enable DMA (Mike Smith). I2C driver error recovery (Mike Smith).
  2407. * STM32 boards: Support for USB host added add to several configurations
  2408. (or at least explained in README files). Support for the Shenzhou
  2409. STM32F107 board (see www.armjishu.com). Support for M3 Wildfire
  2410. STM32F103 board (v2 and v3).
  2411. * Build System: Kconfig string de-quoting logic. Remove comments from
  2412. defconfig files (Kate). Add tool to create NuttX-style symbol tables.
  2413. Numerous changes to configuration logic as needed for the new mconf-based
  2414. configuration (much of this from Richard Cochran). Refactor common
  2415. Make.defs logic into tools/Config.mk (Richard Cochran).
  2416. * Library: Configurable terse output from strerror(). Added perror() (Kate).
  2417. Add %n format to sscanf() (Kate).
  2418. * Applications: Numerous changes and extensions to the old uIP web server
  2419. (from Kate and Max Holtzberg, see the ChangeLog for specific extensions).
  2420. UDP network discovery utility (Max Holtzberg). Embeddable Lightweight
  2421. XML-RPC Server (http://www.drdobbs.com/web-development/an-embeddable-lightweight-xml-rpc-server/184405364, Max Holtzberg).
  2422. Bugfixes (see the change log for details). Some of these are very important
  2423. (marked *critical*):
  2424. * RTOS: Fixes to priority inheritance logic (*critical*). waitpid()
  2425. critical section. Assertion in work_cancel() (Mike Smith). mmap() (Kate).
  2426. * FAT File System: Improper Boolean expression caused un-necessary writes
  2427. and performance issues (*critical*, Ronen Vainish).
  2428. * Networking: Remove an un-necessary delay from recvfrom(). This greatly
  2429. improves network performance (*critical*, Max Holtzberg).
  2430. * Graphics: NX parameter checking errors.
  2431. * Drivers: Fix double release of memory in SDIO-based, MMC/SD driver
  2432. (Ronen Vainish).
  2433. * LPC17xx: Ethernet driver fixes needed for certain PHYs (Kate).
  2434. * AVR: Fix build error (Richard Cochran).
  2435. * STM32: USB OTG FS host driver NAKing an retries. Power management
  2436. compilation errors (Diego Sanchez). Missing SPI3 remap logic.
  2437. * STM32 Drivers: Fix for Ethernet errata for STM32F107 (*critical*).
  2438. Ethernet buffer alignment check. Add "kludge" to Ethernet driver to
  2439. handle DM9161 PHY which (at least on the Shenzhou board), sometimes
  2440. does not come up correctly.
  2441. * Applications: THTTPD (Kate). NSH ping when IP address is on a different
  2442. network (Darcy Gong).
  2443. * Library: fread(), fflush(), fdopen(): Fix error handling logic (Ronen
  2444. Vainish). Fix some field-width handling issues in sscanf()
  2445. As well as other, less critical bugs (see the ChangeLog for details)
  2446. NuttX-6.23
  2447. ----------
  2448. The 90th release of NuttX, Version 6.23, was made on November 5, 2012,
  2449. and is available for download from the SourceForge website. Note
  2450. that release consists of two tarballs: nuttx-6.23.tar.gz and
  2451. apps-6.23.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2452. file for build information).
  2453. This release corresponds with SVN release number: r5313
  2454. Note that all SVN information has been stripped from the tarballs. If you
  2455. need the SVN configuration, you should check out directly from SVN. Revision
  2456. r5313 should equivalent to release 6.23 of NuttX 6.23:
  2457. svn checkout -r5313 svn://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
  2458. Or
  2459. svn checkout -r5313 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
  2460. Additional new features and extended functionality:
  2461. * RTOS: If both atexit() and on_exit() are enabled, use on_exit() to
  2462. implement atexit(). Updates for RGMP 4.0.
  2463. * Binfmt: Add support for loading and executing ELF binary modules from
  2464. a file system.
  2465. * Drivers: Maxim MAX11802 touchscreen controller (Petteri Aimonen)
  2466. * STM32 Driver: Implementation of /dev/random using the STM32 Random Number
  2467. Generator (RNG).
  2468. * STM32 Boards: ADC support for the Shenzhou IV board. Relay support for
  2469. the Shenzhou IV board.
  2470. * C Library: Support is now included for the add-on uClibc++ C++
  2471. standard library support. This includes support for iostreams, strings,
  2472. STL, RTTI, exceptions -- the complete C++ environment. (uClibc++ is
  2473. provided as a separate add-on package due to licensing issues).
  2474. Optimized generic and ARM-specific memcpy() function. Optimized
  2475. memset() function.
  2476. Add support for ferror(), feof(), and clearerror(). Add support for
  2477. __cxa_atexit().
  2478. Math Library: Port of the math library from Rhombus OS by Nick Johnson
  2479. (Darcy Gong).
  2480. * Applications: New NSH commands: ifup, ifdown, urlencode, urldecode,
  2481. base64enc, bas64dec, md5 (Darcy Gong). Add support for NSH telnet login
  2482. (Darcy Gong). Enancements to NSH ping command to support pinging hosts
  2483. with very long round-trip times. Extensions to the ifconfig command
  2484. Darcy Gong),
  2485. Many extensions to the webclient/wget and DNS resolver logic from Darcy
  2486. Gong. JSON, Base64, URL encoding, and MD5 libraries contributed by Darcy
  2487. Gong.
  2488. New examples: ELF loader, JSON, wgetjson, cxxtest, relays.
  2489. Bugfixes (see the change log for details). Some of these are very important
  2490. (marked *critical*):
  2491. * Drivers: W25 SPI FLASH
  2492. * STM32 Drivers: ADC reset
  2493. * Graphics: Missing implementation of the blocked method (*critical*,
  2494. Petteri Aimonen).
  2495. * C Library: Floating point numbers in printf and related formatting functions
  2496. (Mike Smith), cf[get|set]speed() (Mike Smith)
  2497. As well as other, less critical bugs (see the ChangeLog for details)
  2498. NuttX-6.24
  2499. ----------
  2500. The 91st release of NuttX, Version 6.24, was made on December 20, 2012,
  2501. and is available for download from the SourceForge website. Note
  2502. that release consists of two tarballs: nuttx-6.24.tar.gz and
  2503. apps-6.24.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2504. file for build information).
  2505. This release corresponds with SVN release number: r5447
  2506. Note that all SVN information has been stripped from the tarballs. If you
  2507. need the SVN configuration information, you should check out directly from
  2508. SVN. Revision r5447 should equivalent to release 6.24 of NuttX 6.24:
  2509. svn checkout -r5447 svn://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
  2510. Or (HTTP):
  2511. svn checkout -r5447 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
  2512. Additional new features and extended functionality:
  2513. * RTOS:
  2514. - Implemented the POSIX pause() function (still has some compiance
  2515. issues).
  2516. - Tasking logic is extended to support the notion of address
  2517. environments. An address environment is the key notion underlying
  2518. "process" vs. tasks. If tasks are created with address environments
  2519. (by binfmt), the OS will propagate that environment to child threads
  2520. and will destroy the address environment when the "process" exists.
  2521. - If support for the PATH variable is enabled, the OS start up logic
  2522. will create an initial environment containing the default PATH
  2523. setting (CONFIG_PATH_INITIAL). This initial PATH will then be
  2524. inherited by all tasks.
  2525. * Binfmt
  2526. - The NuttX binary loaders have been updated to support the PATH
  2527. environment variable. Now, if the PATH is properly defined, programs
  2528. can be executed from mass storage using only the file name. This
  2529. feature is added to support more standard behavior (eventually, NSH
  2530. will support execution of programs in file systems by just entering
  2531. the file name, perhaps in 6.25?).
  2532. - The NXFLAT and ELF binary loaders have been extended to create
  2533. address environments for any new tasks executed from the file system.
  2534. This feature requires that the architecture support a memory management
  2535. unit (MMU) and the address environment interfaces declared in
  2536. include/nuttx/arch.h (currently, this is only supported by the z180).
  2537. * Drivers: LCD driver for the Univision UG-2864AMBAG01 OLED
  2538. * STM32: Support for STM32F100 high density chips contributed by Freddie
  2539. Chopin.
  2540. * STM32 Drivers: Added optional RS-485 direction bit control (from
  2541. Freddie Chopin).
  2542. * STM32 Boards:
  2543. - Support for generic STM32F100RC board contributed by Freddie Chopin.
  2544. - stm32f4discovery/nxlines: STM32F4Discovery support for the
  2545. UG-2864AMBAG01 OLED.
  2546. - stm32f4discovery/winbuild: A version of the NuttX OS test
  2547. configured to build natively on Windows.
  2548. - stm32f4discovery/elf: Now uses the PATH variable to find ELF
  2549. executables.
  2550. - configs/cloudctrl: Added for Darcy Gong's CloudController board
  2551. * PIC32 Boards: Update the Mirtool configuration for Release 2 of the
  2552. Mirtoo module.
  2553. * Calypso: Add Calypso keypad driver. From Denis Cariki.
  2554. * ZiLOG:
  2555. - Add support for the z180 chip family and, specifically, for
  2556. the P112 retro hardware (see http://p112.feedle.net/).
  2557. - All ZiLOG configurations updated to use the current ZDS-II
  2558. and/or SDCC toolchains.
  2559. * Graphics:
  2560. - Add a semaphore handshake so that operations on buffers from
  2561. the NXMU client will be blocked until the NX server operates on the
  2562. buffer data (from Petteri Aimonen).
  2563. - nxtk_subwindowmove() and nxtk_getwindow(): Improvements to clipping
  2564. logic from Petteri Aimonen.
  2565. * C Library: lib/ sub-directory renamed libc/ (there is a new lib/ sub-
  2566. directory that is used to hold all archives).
  2567. * C++: Exception stubs from Petteri Aimonen.
  2568. * Applications:
  2569. - Add NSH hexdump command to dump the contents of a file (or character
  2570. device) to the console (contributed by Petteri Aimonen).
  2571. - Extend the NSH ifconfig command plus various DHCPC improvements
  2572. (from Darcy Gong).
  2573. * apps/examples:
  2574. - ostest: Replace large tables with algorithmic prime number
  2575. generation. This allows the roundrobin test to run on platforms
  2576. with minimal SRAM (Freddie Chopin).
  2577. - keypadtest: A new keypad test example contributed by Denis Carikli.
  2578. - elf and nxflat: If CONFIG_BINFMT_EXEPATH is defined, these examples
  2579. will now use a relative path to the program and expect the binfmt/
  2580. logic to find the absolute path to the program using the PATH
  2581. variable.
  2582. * Build system:
  2583. - New top-level Makefiles: Makefile.unix and Makefile.win (along with
  2584. numerous changes to other make-related files). This adds basic
  2585. support for building NuttX natively under Windows from a CMD.exe
  2586. window (rather than in a POSIX-like environment). This build: (1)
  2587. Uses all Windows style paths, (2) Uses primarily Windows batch
  2588. commands from cmd.exe, with (3) a few extensions from GNUWin32.
  2589. This capability should still be considered a work in progress
  2590. because: (1) it has not been verfied on all targets and tools,
  2591. and (2) still lacks some of the creature-comforts of the more
  2592. mature environments (like a function configure.sh script and
  2593. 'make menuconfig' support).
  2594. - Example Windows native builds for STM32F4Discovery, eZ80, z16f, z8,
  2595. Z80, and Z180.
  2596. - Several configurations have been converted to work the kconfig-
  2597. frontends mconf configuration tool: stm32f4discovery/nxlines, and
  2598. all eZ80, z16f, z8, Z80, and Z180 configurations.
  2599. - Architectures now include a common Toolchain.defs file that can be
  2600. used to manage toolchains in a more configurable way (most of this
  2601. contributed by Mike Smith).
  2602. * Build tools:
  2603. - Renamed tools/winlink.sh to tools/copydir.sh.
  2604. - Several new tools/scripts to support the Windows native build:
  2605. tools/mkdeps.bat, tools/mkdeps.c, tools/link.bat, unlink.bat, and
  2606. copydir.bat.
  2607. - tools/incdir.sh and incdir.bat now support an -s option to generate
  2608. system header file paths.
  2609. - tools/b16.c: Fixed precision math conversion utility.
  2610. Bugfixes (see the change log for details). Some of these are very important
  2611. (marked *critical*):
  2612. * RTOS: Fix some backward conditional compilation in the work queue
  2613. logic (Freddie Chopin).
  2614. * File System: Uninitialized variable caused assertions (from Lorenz
  2615. Meier).
  2616. * Drivers: Partial fix for STM32 OTGFS device drivers and fix for short,
  2617. unaligned writes in the flash translation layer (drivers/mtd/ftl.c),
  2618. both from Petteri Aimonen.
  2619. * STM32 Drivers:
  2620. - Qencoder driver and TIM3 driver fixes from Ryan Sundberg.
  2621. - Fix timeout delay calculation in the STM32 OTG FS host driver.
  2622. * LPC17xx Drivers: Resources not being properly released when I2C
  2623. driver is un-initialized.
  2624. * Graphics:
  2625. - Fix logic when the mouse drags outside of the window; fix
  2626. another "blocked message" handling case (both from Petteri Aimonen).
  2627. - nxtk_filltrapwindow(): Correct an offset problem (also from Peterri
  2628. Aimonen).
  2629. - nxglib_splitline(): Correct the "fat flat line" bug.
  2630. * C Library:
  2631. - nrand() changes to prevent coefficients from becoming zero which
  2632. would "lock up" the random number generate.
  2633. - Add rounding functions to the math library (contributed by Petteri
  2634. Aimonen).
  2635. * Build system: Changes to MIN definitions in all limit.h header files
  2636. to avoid integer overflows. For example from (-128) to (-127 - 1)
  2637. (from Petteri Aimonen).
  2638. * Applications: Modbus fixes from Freddie Chopin.
  2639. As well as other, less critical bugs (see the ChangeLog for details)
  2640. NuttX-6.25
  2641. ----------
  2642. The 92nd release of NuttX, Version 6.25, was made on February 1, 2013,
  2643. and is available for download from the SourceForge website. Note
  2644. that release consists of two tarballs: nuttx-6.25.tar.gz and
  2645. apps-6.25.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2646. file for build information).
  2647. This release corresponds with SVN release number: r5595
  2648. Note that all SVN information has been stripped from the tarballs. If you
  2649. need the SVN configuration information, you should check out directly from
  2650. SVN. Revision r5595 should equivalent to release 6.25 of NuttX:
  2651. svn checkout -r5595 svn://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
  2652. Or (HTTP):
  2653. svn checkout -r5595 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
  2654. Additional new features and extended functionality:
  2655. * OS Initialization
  2656. - Removed support for CONFIG_BUILTIN_APP_START. This is not really a
  2657. useful feature and creates a violation of the OS layered
  2658. architecture.
  2659. * Task Creation:
  2660. - Implement a simple vfork(). In NuttX-6.25, this interface is
  2661. available only for ARM7/9, ARMv7-M (Cortext-M3/4), and MIPS32
  2662. (PIC32MX) platforms.
  2663. - exec() now sets the priority of the new task to the same priority as
  2664. the parent task (instead of the arbitrary value of 50).
  2665. - New, partially compliant implementations of execv() and execl().
  2666. These are only partially compliant because they do not overlay any
  2667. existing "process space" but rather create the new task and exit().
  2668. - Add a complete implementation of posix_spawn(). This standard
  2669. interface is a better match for an MMU-less architecture than are
  2670. vfork() plus execv() or execl().
  2671. - Add a task start hook that will be called before the task main
  2672. is started. This can be used, for example, to schedule C++
  2673. static constructors to run automatically in the context of the
  2674. new task.
  2675. * Task Parentage
  2676. - Repartitioned tasking data structures. All shared resources are now
  2677. collected together in a "task group". A task group includes the
  2678. original task plus all of the pthreads created by the task.
  2679. - Added support for remember the parent "task group" when a new task is
  2680. started.
  2681. - Added optional support to record the membership of each thread in
  2682. the "task group".
  2683. - Implement support for retaining child task status in the "task group"
  2684. after the child task exists. This is behavior required by POSIX.
  2685. But in NuttX is only enabled with CONFIG_SCHED_HAVE_PARENT and
  2686. CONFIG_SCHED_CHILD_STATUS
  2687. - Add internal logic to "reparent" a task. This is useful,
  2688. for example, where the child task is created through a trampoline
  2689. task that redirects I/O. Reparenting allows the caller of posix_spawn()
  2690. to be reparented for the eventual child thread.
  2691. - Added support for SIGCHLD. Sent to all members of the parent task
  2692. group when the file member of the child task group exits.
  2693. - If SIGCHLD and retention of child task exist status are enabled, then
  2694. a more spec-compliant version of waitpid() is enabled.
  2695. - New interfaces waitid() and wait() are also enabled when SIGCHLD
  2696. is enabled.
  2697. * File System
  2698. - dup() and dup2() can new be used with opened files in a mounted file
  2699. system. This supports re-direction of output in NSH to files.
  2700. - The binfs file system was moved from apps/builtin to fs/binfs. The
  2701. binfs file system was extended to support execution of "builtin
  2702. applications" using exec(), execv(), execl(), or posix_spawn().
  2703. - Added logic based on SIGCHLD to automatically unload and clean-up
  2704. after running a task that was loaded into memory.
  2705. * Binary Formats
  2706. - Much of the logic for "builtin applications" was moved from
  2707. apps/builtin to nuttx/binfmt/libbuiltin. Includes some extensions
  2708. contributed by Mike Smith.
  2709. - A binary loader was added for builtin applications to support
  2710. execution of "builtin applications" using exec(), execv(),
  2711. execl(), or posix_spawn().
  2712. * Drivers:
  2713. - Added logic to marshal and serialized "out-of-band" keyboard
  2714. commands (such as cursor controls and key release events) intermixed
  2715. with normal ASCII keypress data. The encoding is partially integrated
  2716. in the HID keyboard driver and the decoding full integrated into the
  2717. apps/examples hidkbd and keypadtest (the latter contributed by Denis
  2718. Carlikli).
  2719. - Driver for the UG-2864HSWEG01 OLED contributed by Darcy Gong.
  2720. - Add support for removable serial devices (like USB serial). This
  2721. support is enabled by CONFIG_SERIAL_REMOVABLE.
  2722. * ARMv7-M:
  2723. - Added an option to use the BASEPRI register to disable interrupts
  2724. (instead of the PRIMASK). This eliminates some innocuous hardfaults
  2725. that interfere with some debug tools. You need to switch to the
  2726. BASEPRI method only if you have such tool interference.
  2727. * STM32 Drivers
  2728. - Bring STM32 F1 DMA capabilities up to par with the STM32 F2/F4
  2729. (contributed by Mike Smith).
  2730. - Add support for USART single wire mode (Contributed by the PX4
  2731. team).
  2732. - Updates to support for SPI DMA on the STM32 F1/F2/F4. From
  2733. Petteri Aimonen.
  2734. * STM32 Boards:
  2735. - New configuration to support the UG-2864HSWEG01 OLED on the
  2736. STM32F4Discovery board.
  2737. - Added a posix_spawn() test configuration for the STM32F4Discovery.
  2738. * LM3S/LM4F
  2739. - Files and directories repartitioned to support both LM3S and LM4F
  2740. using the STM32 organization as a model.
  2741. - Partial definitions for the LM4F contributed by Jose Pablo Carballo
  2742. (this is still a work in progress).
  2743. * LM3S Boards
  2744. - Added scripts and documentation to use OpenOCD with the LM3S (from
  2745. Jose Pablo Carballo).
  2746. * LPC176x/LPC178x
  2747. - Files and directories repartitioned to support both LPC175x/LPC176x
  2748. and the LPC177x/LPC178x families using the STM32 organization as a
  2749. model. The LPC1788 port is a work in progress by Rommel Marcelo.
  2750. * LPC176x/LPC178x Boards:
  2751. - Added a configuration to support the Wave Share Open1788 board.
  2752. This is still a work in progress by Rommel Marcelo.
  2753. * LPC2148 Boards:
  2754. - Add basic support for the The0.net ZP213x/4xPA board (with the LPC2148
  2755. and the UG_2864AMBAG01 OLED).
  2756. - Add an nxlines configuration for the ZP213x/4xPA (with the LPC2148
  2757. and the UG_2864AMBAG01).
  2758. * Simulator:
  2759. - Add an nxlines configuration for the simulator.
  2760. * Networking:
  2761. - Add logic to work around delayed ACKs by splitting packets
  2762. (contributed by Yan T.).
  2763. - Split net_poll() to create the internal interface psock_poll().
  2764. * LCDs:
  2765. - Added support for LCD1602 alphanumeric LCD (HD4468OU controller).
  2766. * Graphics:
  2767. - Added 5x8 monospace font. This tiny font is useful for graph
  2768. labels and for small bitmapped display. Contributed by Petteri
  2769. Aimonen.
  2770. * Build System:
  2771. - Add an options to better manage toolchain prefixes.
  2772. - Redesigned how the context target works in the apps/ directory.
  2773. The old design caused lots of problems when changing configurations
  2774. because there is no easy way to get the system to rebuild the
  2775. context. This change should solve most the problems and eliminate
  2776. questions like "Why don't I see my builtin application in NSH?"
  2777. * Kconfig Files:
  2778. - There are several new configurations that use the kconfig-frontends
  2779. tools and several older configurations that have been converted to
  2780. use these tools. There is still a long way to go before the conversion
  2781. is complete:
  2782. configs/sim/nxwm
  2783. configs/sim/nsh
  2784. configs/stm3220g-eval/nxwm
  2785. configs/stm32f4discovery/posix_spawn
  2786. configs/olimex-lpc1766stk/nsh
  2787. configs/olimex-lpc1766stk/hidkbd
  2788. configs/olimex-lpc1766stk/nettest
  2789. configs/open1788/ostest
  2790. configs/stm32f4discovery/nsh
  2791. configs/stm32f4discovery/usbnsh
  2792. configs/lm326965-ek (all configurations)
  2793. configs/mcu123-214x/nsh
  2794. configs/ubw32/ostest
  2795. * Tools:
  2796. - tools/kconfig.bat: Kludge to run kconfig-frontends from a DOS shell.
  2797. - tools/configure.c: configure.c can be used to build a work-alike
  2798. program as a replacement for configure.sh. This work-alike
  2799. program would be used in environments that do not support Bash
  2800. scripting (such as the Windows native environment).
  2801. - tools/configure.bat: configure.bat is a small Windows batch
  2802. file that can be used as a replacement for configure.sh in a
  2803. Windows native environment. configure.bat is actually just a
  2804. thin layer that executes configure.exe if it is available. If
  2805. configure.exe is not available, then configure.bat will attempt
  2806. to build it first.
  2807. * Applications:
  2808. - New and modified examples:
  2809. apps/examples/wlan: Remove non-functional example.
  2810. apps/examples/ostest: Added a test of vfork(). Extend signal
  2811. handler test to catch death-of-child signals (SIGCHLD). Add a
  2812. test for waitpid(), waitid(), and wait().
  2813. apps/exampes/posix_spawn: Added a test of posix_spawn().
  2814. - NSH:
  2815. NSH now supports re-direction of I/O to files (but still not from).
  2816. The block driver source argument to the mount command is now
  2817. optional for file systems that do not require a block driver.
  2818. NSH can now execute a program from a file system using posix_spawn().
  2819. Added support for a login script. The init.d/rcS script will be
  2820. executed once when NSH starts; the .nshrc script will be executed
  2821. for each session: Once for serial, once for each USB connection,
  2822. once for each Telnet session.
  2823. - Supports a new daemon that can be used to monitor USB trace outpout.
  2824. - Removed non-functional wlan example.
  2825. Bugfixes (see the ChangeLog for details). Some of these are very important:
  2826. * Tasking:
  2827. - Fixed a *critical* task exit bug. Here is the failure scenario:
  2828. (1) sched_lock() is called increments the lockcount on the current
  2829. TCB (i.e., the one at the head of the ready to run list), (2)
  2830. sched_mergepending is called which may change the task at the head
  2831. of the ready-to-run list, then (3) sched_unlock() is called which
  2832. decrements the lockcount on the wrong TCB. The failure case that
  2833. I saw was that pre-emption got disabled in the IDLE thread, locking
  2834. up the whole system.
  2835. * Signals:
  2836. - sigtimedwait() would return a bad signal number if the signal was
  2837. already pending when the function was called.
  2838. * Drivers:
  2839. - Some SD cards will appear busy until switched to SPI mode for
  2840. first time. Having a pull-up resistor on MISO may avoid this
  2841. problem, but this fix from Petteri Aimonen makes it work also
  2842. without pull-up.
  2843. * STM32 Drivers:
  2844. - STM32 FLASH driver counting error (from Freddie Chopin).
  2845. - STM32 F4 maximum SPI frequency was wrong (corrected by Petteri
  2846. Aimonen).
  2847. * STM32 Boards
  2848. - Due to cloning of untested code, the logic to control on-board
  2849. LEDs did not work on any STM32 boards.
  2850. - Serial devices number /dev/ttyS0-5 is there is a serial console,
  2851. but /dev/ttyS1-6 if there is no serial console.
  2852. * Binary Formats
  2853. - C++ static constructors execute now using a start taskhook
  2854. so that they execute in the context of the child task (instead
  2855. of in the context of the parent task).
  2856. * File Systems:
  2857. - Several FAT-related bugs fixed by Petteri Aimonen.
  2858. * Networking:
  2859. - Fix poll/select issure reported by Qiang: poll_interrupt() must call
  2860. net_lostconnection() when a loss of connection is reported. Otherwise,
  2861. the system will not remember that the connection has been lost and will
  2862. hang waiting on a unconnected socket later.
  2863. - Similar issues corrected for recvfrom() and send().
  2864. - Telnetd would hang in a loop if recv() ever returned a value <= 0.
  2865. * Libraries:
  2866. - fread() could hang on certain error conditions.
  2867. - Can't handle SYSLOG output to a character device from the IDLE task
  2868. (because the IDLE task can't block).
  2869. * Build System:
  2870. - Serial was driver was not being built if there is no console
  2871. device. Obviously, the serial driver may be needed even in
  2872. this case.
  2873. * Additional Bugfixes:
  2874. - sig_timedwait() and clock_time2ticks.c: Timing "rounding" logic
  2875. - ARM9 Compilation issue with low vectors.
  2876. - readline() return value
  2877. - Others as detailed in the ChangeLog: HID keyboard, LPC17xx bit
  2878. definitions, strndup(), PL2303, SYSLOG error handling, AT25,
  2879. apps/examples.
  2880. NuttX-6.26
  2881. ----------
  2882. The 93rd release of NuttX, Version 6.26, was made on March 15, 2013,
  2883. and is available for download from the SourceForge website. Note
  2884. that release consists of two tarballs: nuttx-6.26.tar.gz and
  2885. apps-6.26.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  2886. file for build information).
  2887. This release corresponds with SVN release number: r5745
  2888. Note that all SVN information has been stripped from the tarballs. If you
  2889. need the SVN configuration information, you should check out directly from
  2890. SVN. Revision r5745 should equivalent to release 6.26 of NuttX:
  2891. svn checkout -r5745 svn://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
  2892. Or (HTTP):
  2893. svn checkout -r5745 http://svn.code.sf.net/p/nuttx/code/trunk nuttx-code
  2894. Additional new features and extended functionality:
  2895. * OS Initialization:
  2896. - Add an additional call-out to support board-specific driver
  2897. initialization during the boot-up phase (available with
  2898. CONFIG_BOARD_INITIALIZE=y).
  2899. * Tasking:
  2900. - New interface task_spawn() that is like posix_spawn(), but uses
  2901. entry point addresses like task_create().
  2902. - Additional data restructuring as a continuation of the task group
  2903. changes of NuttX 6.25. These data structures were moved from the
  2904. TCB structure into the task group: pthread join data,
  2905. atexit/on_exit callbacks, waitpid data structures, and message
  2906. queues.
  2907. - TCBs for tasks and pthreads are now separate structures. This
  2908. saves a little memory since tasks do not have to carry the overhead
  2909. for threads and vice versa.
  2910. * Kernel Build:
  2911. - Extensive changes were made to support the kernel build mode. In
  2912. this mode, NuttX is built as a monolithic kernel. NuttX is built
  2913. as a separate kernel mode "blob" and the applications are built
  2914. as a separate user mode "blob". The kernel runs in kernel mode and
  2915. the applications run in user mode (with the MPU restricting user
  2916. mode accesses). Access to the kernel from the user blob is only
  2917. via system calls (SVCalls).
  2918. - Extensive changes were made to the syscall, SVCall, and trapping
  2919. logic. Many internal interfaces were renamed.
  2920. - The memory manager was extended to support both kernel- and user-
  2921. mode allocations. Logic within the kernel needs to use the
  2922. correct kernel- or user-space allocator, depending upon the user
  2923. of the allocated memory.
  2924. - The user-space blob now contains a header built in at the beginning
  2925. of the block that provides the same information that was previously
  2926. provided by a kludgy, auto-generated header file (user_map.h).
  2927. - Basic support implemented for the ARMv7-M family with fragments
  2928. also implemetned for the ARMv6-M and MIPS32 families.
  2929. - Kernel build supported added for the LPC17xx Open1788 and for
  2930. the Atmel SAM3U-EK board. All testing is being performed on the
  2931. Open1788 board.
  2932. * Signals:
  2933. - Delivery of signals to threads within a task group is now compatible
  2934. with the way that signals are delivered to threads within a process.
  2935. * Drivers:
  2936. - Add a driver for the SST29VF NOR FLASH parts.
  2937. - USB device trace/debug feature extended to decode device-specific
  2938. trace events to make the trace output more readable (from Petteri
  2939. Aimonen).
  2940. - USB MSC device driver can not support names of differing sizes
  2941. in the USB descriptor and the SCSI fields (from Petteri Aimonen).
  2942. - Locking added to MMC/SD SPI drivers so that MMC/SD can co-exist on
  2943. the same bus as other SPI devices. Frequency is reset each time
  2944. that the MMC/SD SPI has the bus locked. (from Petteri Aimonen).
  2945. * ARMv6-M (Cortex-M0):
  2946. - Added support for the ARM Cortex-M0 family.
  2947. * nuvoTon NUC120:
  2948. - Added support for the nuvoTon NUC120 MCU (Cortex-M0).
  2949. * nuvoTon NUC120 Boards:
  2950. - Added basic support for the nuvoTon NuTiny-SDK-NUC120 board (Cortex-M0).
  2951. * LPC17xx:
  2952. - Added support for the LPC177x and LPC178x families. Most of this is
  2953. the work of Rommel Marcelo.
  2954. * LPC17xx Boards:
  2955. - Added support for Zilogic System's ARM development Kit, ZKIT-ARM-1769.
  2956. From Rashid.
  2957. - The port for the WaveShare Open1788 board is now functional. Basic
  2958. OS test and NuttShell (NSH) configurations are functional. More
  2959. driver development and testing is needed (from Rommel Marcelo).
  2960. * LPC17xx Drivers:
  2961. - Added an SD card MSI driver for the LPC178x. The driver is marginally
  2962. functional but requires DMA capability to be reliable.
  2963. * STM32
  2964. - Support extended to handle the STM32 F3 family (Cortex-M4 with F1-like
  2965. peripherals).
  2966. * STM32 Boards
  2967. - Added support the STMicro STM32F3Discovery board (STM32 F3).
  2968. * Stellaris LM3S/LM4F
  2969. - Basic support for the LM4F120 family is in place, but untested (mostly
  2970. from Jose Pablo Carballo).
  2971. * Stellaris LM4F Boards
  2972. - Add support for the LM4F120 LaunchPad (untested).
  2973. * Networking:
  2974. - select() should now allocate a little less memory.
  2975. * Memory Management:
  2976. - Extended to support multiple heaps. This is used as part of
  2977. the kernel build in order to support separator user- and
  2978. kernel-mode heaps.
  2979. - The stand-alone memory manager test had to be removed. It
  2980. was too entangled and made extension of the memory manager
  2981. nearly impossible. This is a loss.
  2982. * Build System:
  2983. - Several configurations converted to use the kconfig-frontends
  2984. configuration tool. There are still many more that need to
  2985. be converted.
  2986. * C Library:
  2987. - Move the workqueue logic into the C library. There is now a
  2988. special user-space version of the work queue (which will only
  2989. be used with a NuttX kernel build).
  2990. - Implementation of itoa() contributed by Ryan Sundberg.
  2991. * Applications:
  2992. - The NSH builtin task logic now uses task_spawn() to start builtin
  2993. applications.
  2994. - The OS test now includes a test cased to verify task_restart().
  2995. Efforts In Progress. The following are features that are partially
  2996. implemented but present in this release. Most are expected to be fully
  2997. available in NuttX 6.27.
  2998. * LM4F120 LaunchPad port. Code is in place, but nothing has been tested.
  2999. * WaveShare Open1788 port. This port as actually complete and
  3000. functional. However, there is still ongoing development and
  3001. testing of drivers.
  3002. * Kernel Build. Much progress has been made, but there kernel build is
  3003. not yet fully functional due to several user resources that are not yet
  3004. properly disentangled from the kernel blob.
  3005. * Conversion of old configurations to use the kconfig-frontends
  3006. tool is an ongoing effort that will continue for some time.
  3007. Bugfixes (see the ChangeLog for details). Some of these are very important:
  3008. * Tasking:
  3009. - The wrong PID was being signalled with SIGCHLD. It should be
  3010. the PID of the task that create the task group, not the ID of
  3011. the last thread to leave the task group.
  3012. - Added logic so that some internal resources and states are recovered
  3013. when tasks are deleted or restarted. Handle cases where there are
  3014. outstanding timed events pending when tasks are deleted or restarted.
  3015. * ARMv7-M:
  3016. - Several fixes to the MPU control logic.
  3017. * Drivers:
  3018. - Removable serial drivers race conditions fixed.
  3019. - MAX11802 timing bug (from Petteri Aimonen).
  3020. * STM32 Drivers:
  3021. - Handle cases were SPI DMA logic fails if sem_wait is awakened
  3022. by a signal. Need to clear error flags to prevent corruption of
  3023. subsequent transfers. Also, bit count should not be changed while
  3024. the SPI peripheral is enabled (from Petteri Aimonen).
  3025. - Fixes to the OTG FS device driver from Petteri Aimonen.
  3026. - Fix typos in DMA register header file (from Yan T.)
  3027. * Graphics:
  3028. - Correction to the hyphen in the SANS 17x22 font (from Petteri
  3029. Aimonen).
  3030. * Networking:
  3031. - Corrected errors in the socket poll/select logic. Additional
  3032. state logic was needed to detect if the socket is still connected
  3033. before starting the poll wait. (bug reported by Qiang Yu).
  3034. * Memory Management:
  3035. - mallinfo() should hold the memory manager semaphore (from Petteri
  3036. Aimonen.
  3037. * Build System:
  3038. - Resolved several build errors reported by Mike Smith.
  3039. * Applications:
  3040. - Fixed an NSH memory leak: Needed to detach after creating each
  3041. pthread.
  3042. - readline() now returns EOF on any failure (instead of a negated
  3043. errno value). This is because the underlying read is based on
  3044. logic similar to getc. The value zero (meaning end-of-file)
  3045. was being confused with a NUL. So if a NUL was received, the
  3046. NSH session would terminate because it thought it was the end of
  3047. file.
  3048. NuttX-6.27
  3049. ----------
  3050. The 94th release of NuttX, Version 6.27, was made on April 28, 2013,
  3051. and is available for download from the SourceForge website. Note
  3052. that release consists of two tarballs: nuttx-6.27.tar.gz and
  3053. apps-6.27.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  3054. file for build information).
  3055. Additional new features and extended functionality:
  3056. * OS Initialization:
  3057. - Add missing registration of /dev/zero. Registration of /dev/null
  3058. should depend upon conditional compilation. From Ken Pettit.
  3059. * Tasking:
  3060. - Added a new interface to set aside memory on the task's stack. This
  3061. is used (at least in the kernel build) to hold task arguments.
  3062. - Remove up_assert_code(). One assertion routine is enough.
  3063. * Kernel Build:
  3064. - Extensive changes were made to support the kernel build mode. In
  3065. this mode, NuttX is built as a monolithic kernel. NuttX is built
  3066. as a separate kernel mode "blob" and the applications are built
  3067. as a separate user mode "blob". The kernel runs in kernel mode and
  3068. the applications run in user mode (with the MPU restricting user
  3069. mode accesses). Access to the kernel from the user blob is only
  3070. via system calls (SVCalls).
  3071. - Kernel build configurations for the Open1788 board and for the
  3072. STM32F4Discovery now execute correctly.
  3073. - Changes were made to task and thread start-up routines, signal
  3074. handling, data structures, ARMv7-M SVCalls, stack management
  3075. interfaces,
  3076. * Drivers:
  3077. - Driver for the ST7567 LCD Display Module from Univision Technology
  3078. Inc. Contributed by Manikandan.S
  3079. - SPI initialize functions renamed so that multiple SPI blocks can
  3080. be initialized.
  3081. - Extended to support the RAMTRON FM25V01 device. Contributed by
  3082. Lorenz Meier
  3083. - Serial drivers: TIOCSERGSTRUCT ioctls now conditioned on
  3084. CONFIG_SERIAL_TIOCSERGSTRUCT
  3085. * ARMv7-M (Cortex-M3/4):
  3086. - Added support for modifiable interrupt vectors in RAM
  3087. * nuvoTon NUC1xx:
  3088. - Added kernel build support
  3089. * Freescale Kinetis:
  3090. - Add kernel build support
  3091. - Add support for the Kinetis L family of Cortex-M0+ MCUs. Contributed
  3092. by Alan Carvalho de Assis.
  3093. * LPC17xx:
  3094. - Now holds off sleep mode in the IDLE loop is DMA is in progress
  3095. (because sleep mode will disable CPU SRAM).
  3096. * LPC17xx Boards:
  3097. - ZKIT-ARM-1769: Now supports the ST7567 LCD display module. Added
  3098. an nxhello configuration for testing (Manikandan.S).
  3099. - ZKIT-ARM-1769: Add support for both CAN1 and CAN2. Contributed by
  3100. M.Kannan
  3101. - Open1788: Basic support for the WaveShare Open1788 board is complete
  3102. with working OS test, NSH, and graphics configurations.
  3103. - Open1788: Integrated the LPC178x LCD driver with the WaveShare display.
  3104. Touchscreen support is included, however, there appears to be an
  3105. issue with the Open1788 touchscreen interrupt signal.
  3106. - Open1788: Now supports SDRAM (used to provide the LCD framebuffer).
  3107. - Open 1788: Reversed sense of the IDLE LCD. It is now off when the
  3108. LPC17 is sleeping and on when awake. That is much a better visual
  3109. indication of the dynamic CPU load
  3110. * LPC17xx Drivers:
  3111. - Added an LCD framebuffer driver for the LPC177x/8x family.
  3112. - Implemented LPC17xx GPDMA support.
  3113. - Integrated the LPC17xx GPDMA support into the SD card driver.
  3114. - SSP driver adapted to work with the LPC178x family.
  3115. - Separate LPC176x and LPC178x GPIO logic; this logic is too different
  3116. to maintain in one file with conditional compilation.
  3117. - Re-design of the GPIO logic for the LPC178x family by Rommel Marcelo.
  3118. * LPC43xx:
  3119. - Added kernel build support
  3120. * STM32:
  3121. - Added support for kernel mode build.
  3122. - Added architecture support for the STM32 F427/F437 chips. Contributed
  3123. by Mike Smith
  3124. * STM32 Boards:
  3125. - Added a configuration to support a kernel mode build of the OS test
  3126. on the STM32F4Discovery
  3127. * Stellaris LM3S/LM4F:
  3128. - Added kernel build support
  3129. - Added support for the 7 UARTs on the LM4F120
  3130. * Stellaris LM4F Boards:
  3131. - Added scripts and instructions to simplify use of OpenOCD with ICDI
  3132. (JP Carballo)
  3133. - The basic for the Stellaris LM4F120 Launchpad is complete. This
  3134. includes support for OS test and NSH configurations. Additional
  3135. driver development is needed.
  3136. * Build System:
  3137. - Directories where the same sources files are used to build different
  3138. objects in the first and second pass kernel builds need to keep those
  3139. objects in separate directories so that they are not constantly
  3140. rebuilt.
  3141. * Applications:
  3142. - apps/system/ramtest: Add a simple memory test that can be built
  3143. as an NSH command.
  3144. * Tools:
  3145. - kconfig2html is a new tool which will replace the hand-generated
  3146. documentation of the NuttX configuration variables with auto-
  3147. generated documentation.
  3148. Efforts In Progress. The following are features that are partially
  3149. implemented but present in this release. Most are expected to be fully
  3150. available in NuttX 6.28.
  3151. * A port to the Freescale Freedom KL25Z is complete but not yet stable
  3152. enough. The KL25Z is a low-cost Cortex-M0+ part with 128KB of FLASH
  3153. and 16KB of SRAM. This is is the effort of Alan Carvalho de Assis.
  3154. * Conversion of old configurations to use the kconfig-frontends
  3155. tool is an ongoing effort that will continue for some time.
  3156. At this time, only 32% of the configurations have been converted
  3157. to use the kconfig-frontends tools.
  3158. Bugfixes (see the ChangeLog for details). Some of these are very important:
  3159. * Tasking:
  3160. - Fixed a critical bug: When there is pending C buffered output
  3161. and the system is very busy, the a pthread may be blocked at
  3162. a critical point when trying to exit. Blocking at this critical
  3163. point would cause crashes. All entire task/thread exit logic
  3164. paths were reviewed and failsafe mechanisms were put in place
  3165. to assure that exitting tasks never block after task teardown
  3166. has been started.
  3167. * ARMv6-M:
  3168. - Fixed parameter passing for all system call inline functions with > 3
  3169. parameters
  3170. - Fixed a major problem: The Cortex-M0 has no BASEPRI register but the
  3171. logic of NuttX-6.26 was using it to manage interrupts. Switch to
  3172. using the PRIMASK instead. This means that hardfaults will (again)
  3173. occur when SVC instructions are executed
  3174. * ARMv7-M:
  3175. - Corrected Correct MPU sub-region settings for unaligned regions.
  3176. - In exception handling with CONFIG_NUTTX_KERNEL, need to explicitly
  3177. set and clear the privilege bit in the CONTROL
  3178. - Fixed parameter passing for all system call inline functions with > 3
  3179. parameters
  3180. * Drivers:
  3181. - Support for O_NONBLOCK was not supported in the "upper half"
  3182. serial driver.
  3183. - PL2303 compilation errors
  3184. * Stellaris LM3S/4F:
  3185. - Corrected typos in alternate function definitions.
  3186. * LPC17xx Drivers:
  3187. - Added a work-around for an ADC errata. From Chris Taglia
  3188. - Only one ADC pin was configured. Need to configure all that
  3189. are in the ADC0 set. From MKannan
  3190. * File Systems:
  3191. - The FAT logic was not making a distinction between directory
  3192. non-existence and file non-existence so when it you try to
  3193. create a file in a non-existent directory, it would create a
  3194. file with the name of the missing directory. Reported by Andrew
  3195. Tridgell
  3196. - Several fixes to the FAT file system from Ronen Vainish. These
  3197. fixes mostly involve the logic to extend directory clusters for
  3198. the case of long file names but also include a few important
  3199. general fixes (such as for storing 32 bit FAT values)
  3200. - mkfatfs was writing the boot code to the wrong location. From
  3201. Petteri Aimonen
  3202. * Networking:
  3203. - Fixed a compilation error when socket options are are disabled.
  3204. Reported by Daniel O'Connor
  3205. * C Library:
  3206. - Corrected an error in sscanf. If %n occurs in the format statement
  3207. after the input data stream has been fully parsed, the %n format
  3208. specifier will not be handled. Reported by Lorenz Meier
  3209. - strchr(str, '\0') should return a pointer to the end of the string,
  3210. not NULL. From Petteri Aimonen
  3211. * Build System:
  3212. - Fix naming of NuttX target if EXEEXT is defined.
  3213. * Applications:
  3214. - OS test: Fix timing error in non-cancelable thread test.
  3215. - NSH: Correct the test of the skip input parameter. Was limiting the
  3216. range to <= count. From Ken Petit.
  3217. NuttX-6.28
  3218. ----------
  3219. The 95th release of NuttX, Version 6.28, was made on June 14, 2013,
  3220. and is available for download from the SourceForge website. Note
  3221. that release consists of two tarballs: nuttx-6.28.tar.gz and
  3222. apps-6.28.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  3223. file for build information).
  3224. Additional new features and extended functionality:
  3225. * File Systems:
  3226. - SMART FLASH file system (contributed by Add Ken Pettit).
  3227. * MTD (FLASH) Drivers:
  3228. - Add support of MTD partitions via a new MTD driver that manages a
  3229. set of MTD devices, each managing a subset of the FLASH region
  3230. managed by the parent MTD driver.
  3231. - Extended the MTD interface to provide an (optional) method to
  3232. perform byte oriented writes if supported by the FLASH part.
  3233. - M25Px driver re-architected to use the byte write capability (when
  3234. possible) and to use 4KB sectors for the erase block size when the
  3235. part supports it (from Ken Pettit).
  3236. * LCD Drivers:
  3237. - New interface definitions to support audio devices (from Ken Pettit)
  3238. and alphanumeric, segment LCDs.
  3239. * Wireless Drivers:
  3240. - Added new driver for the wireless nRF24L01+ transceiver (from
  3241. Laurent Latil).
  3242. * Calypso:
  3243. - Added support for the Pirelli DP-L10 phone (from Craig Comstock via
  3244. Alan Alan Carvalho de Assis)
  3245. * STM32:
  3246. - Added an option to conditionally disable the "wfi" sleep mode. This
  3247. is needed with certain JTAG debuggers to prevent the debug session
  3248. from being disconnected (from Ken Pettit).
  3249. - Added support for the STM32L (STM32L15X/STM32L16x) family.
  3250. - Added STM32F103C4 and F103C8 chip support (from Laurent Latil).
  3251. - Added a new interface function, stm32_dmacapable() that can be used
  3252. to determine if DMA is possible from the specified memory address
  3253. (from Petteri Aimonen)
  3254. * STM32 Drivers:
  3255. - If CONFIG_STM32_DMACAPABLE is defined, the STM32 SPI driver now uses
  3256. stm32_dmacapable() to determine if it is possible to perform DMA
  3257. from the specified address. This change is important for the STM32
  3258. F4 which may have SPI data buffers allocated on the stack in CCM
  3259. memory which cannot support the DMA (from Petteri Aimonen).
  3260. * STM32 Boards:
  3261. - Support added for the MikroElektronika Mikromedia for STM32F4
  3262. development board (from Ken Pettit) with the MIO283QT2 LCD and
  3263. touchscreen. Several graphics configurations are included.
  3264. - The HY-mini STM32v board now uses the common SSD1289 driver
  3265. and supported the card detect interrupt. Several new
  3266. configurations also added and some removed (from Laurent Latil).
  3267. - Support added for the R65105-based LCD that comes with some
  3268. HY-Mini STM32v boards (from Christian Faure).
  3269. - Added basic support for the STM32L-Discovery board. Drivers
  3270. for the on-board segment LCD are included.
  3271. - Added support for the STM32 Tiny development board based on the
  3272. STM32 F103C8T6 MCU. This includes support for the nRF24L01+
  3273. wireless on the board (from Laurent Latil).
  3274. * Stellaris LM3S/LM4F:
  3275. - Support added for a TI/Stellaris internal FLASH MTD driver (from Max
  3276. Holtzberg).
  3277. * Stellaris LM4F Boards:
  3278. - The LM3S6965-EK now has configurations for the UDP discovery tool and
  3279. for the TCP echo server (both from Max Holtzberg)
  3280. * Atmel ATSAM3/4:
  3281. - Reorganized, renamed, and updated directory structure to better
  3282. support additional members of the SAM3/4 family.
  3283. - Added support for both the ATSAM4S and ATSAM4L families. The
  3284. ATSAM4S is similar to the ATSAM3U, but the ATSAM4L is quite a
  3285. different beast, really much more akin to the AVR32s SoCs but
  3286. with a Cortex-M4.
  3287. * Atmel ATSAM3/4 Boards:
  3288. - Added support for the Atmel SAM4L Xplained Pro development board.
  3289. This board features the ATSAM4LC4C MCU (Cortex-M4 with 256KB FLASH +
  3290. 32KB SRAM).
  3291. - Added support for the Atmel SAM4S Xplained development board. This
  3292. board features the ATSAM4S16C MCU (Cortex-M4 with 1MB FLASH + 128KB
  3293. SRAM).
  3294. * PIC32MX Boards:
  3295. - Added support for the 1602 segment LCD on-board the Sure PIC32MX
  3296. board. This board will now also support a USB NuttX console and
  3297. the USB monitor test program.
  3298. * Build System:
  3299. - Clean-up of almost all .gitignore files: Made scope of ignore to be
  3300. only the current directory; Ignore .dSYM files in directories where
  3301. .exe's may be built. Also, in Makefiles, clean .dSYM files in
  3302. directories where an .exe may be built.
  3303. - Standardize and consolidated all build-as-an-NSH-application
  3304. configuration settings. Now only CONFIG_NSH_BUILTIN_APPS is
  3305. sufficient to build an application, test, or or example as an NSH
  3306. builtin application.
  3307. - Added support for a generic ARM, ARMv6-M and ARMv7-M Windows EABI
  3308. toolchains.
  3309. * Libraries:
  3310. - Added encoder/decoder logic to marshal and serialize special segment
  3311. LCD (SLCD) commands intermixed with normal ASCII data. This is the
  3312. similar to the encoding/decoding logic that is used to marshal
  3313. special commands from a keyboard.
  3314. - Add dprintf() and vdprintf() (the latter from Andrew Tridgell).
  3315. - Add an application that may be built as an NSH builtin command that
  3316. will erase FLASH using a flash_eraseall NSH command (from Ken Pettit).
  3317. * Applications:
  3318. - Added an MTD partition test/examples. Currently used with (1) the a
  3319. simulation configuration to test MTD partitions on a RAM emulation
  3320. of FLASH and (2) with the Mikroe STM32F4 configuration.
  3321. - Added a test/example to verify alphanumeric, segment LCDs.
  3322. - Added a simple single threaded, poll based TCP echo server based
  3323. on W. Richard Stevens UNIX Network Programming Book (from Max
  3324. Holtzberg).
  3325. - Added several tests of the SMART block driver and file system (from
  3326. Ken Pettit).
  3327. - Added a runtime configuration for the UDP discover utility (from
  3328. Max Holtzberg).
  3329. - Added an example application to demo the nRF24L01 driver (from
  3330. Laurent Latil).
  3331. - New and modified NSH commands:
  3332. Added a -h option to the df command to show the volume information
  3333. in human readable form (from Ken Petit).
  3334. Add a new mksmartfs command (from Ken Petit).
  3335. Efforts In Progress. The following are features that are partially
  3336. implemented but present in this release. Most are expected to be fully
  3337. available in NuttX 6.28.
  3338. * Audio System:
  3339. - A complete audio subsystem include CODECs, higher level management,
  3340. interface definitions, and audio drivers was contributed by Ken
  3341. Pettit. This work has not been completely verified as of this
  3342. release and so is categorized as a work-in-progress. At present,
  3343. progress is blocked due to issues interfacing with the VS1053
  3344. audio DAC on the Mikroe STM32F4 board.
  3345. * kconfig-fronted Configuration:
  3346. - Conversion of old configurations to use the kconfig-frontends
  3347. tool is an ongoing effort that will continue for some time.
  3348. At this time, only 43% of the configurations have been converted
  3349. to use the kconfig-frontends tools.
  3350. Bugfixes (see the ChangeLog for details). Some of these are very important:
  3351. * Tasking:
  3352. - Modify assertion in the priority inheritance logic that is reported
  3353. to cause false alarm assertions.
  3354. * Kernel Build:
  3355. - Typo in syscall proxying logic corrected by Ken Pettit.
  3356. * Networking:
  3357. - Poll setup/teardown logic should ignore invalid (i.e., negative)
  3358. file descriptors (from Max Holtzberg).
  3359. - When readahead data is available, the network poll() logic should
  3360. set POLLIN (or POLLRDNORM), not POLLOUT (from Max Holtzberg).
  3361. * LCD Drivers:
  3362. - Correct power controls in the MIO283QT2 LCD driver.
  3363. * USB Device Controller Drivers:
  3364. - Change the default IN request buffer size from 64 to 96. This will
  3365. avoid requests of exactly MAXPACKET size and, hence, avoid so many
  3366. NULL packets. Also, fix the OUT request buffers size to exactly the
  3367. max packet size. It really cannot be any other size.
  3368. * STM32 Drivers:
  3369. - Correct some bad STM32 F1 DMA definitions that crept into the system
  3370. a few months ago a broke STM32 F1 DMA (from Laurent Latil)
  3371. - Fixed an error in NULL packet handling in the STM32 F1 USB device
  3372. controller driver: If the NULL-packet needed flag ever got set,
  3373. then it was not being cleared and infinite NULL packets resulted.
  3374. This only affects the CDC/ACM class and was the cause of the
  3375. failures using the USB CDC/ACM device as a NuttX console. With this
  3376. change the USB works well as an alternative NuttX console device for
  3377. the STM32 F1 family.
  3378. - Correct some bad condition compilation in the RCC logic (CONFIG_
  3379. missing from setting names). This affects some STM32 FLASH pre-
  3380. fetch settings (from Lorenz Meier).
  3381. - Change for hardware flow control support for STM32. The change also
  3382. fixes incorrect operation of USART2 and UART5 in current master
  3383. (from Lorenz Meier and Mike Smith).
  3384. - Fixed a backward conditional in USB OTG FS host controller driver
  3385. that prevented detection of disconnection events (from Scott).
  3386. * LPC17xx Drivers:
  3387. - I2C interrupt control. Also correction for a single byte read
  3388. timeout error (from M. Kannan).
  3389. * Freescale Kinetis:
  3390. - Freedom KL25Z pin multiplexing and LED control corrections (from
  3391. Alan Carvalho de Assis)
  3392. * PIC32MX:
  3393. - Fix NULL packet handling in the PIC32 USB device driver. Without
  3394. this fix the CDC/ACM driver cannot be used reliably with the PIC32
  3395. USB. With this change the USB works well as an alternative NuttX
  3396. console device.
  3397. * Graphics:
  3398. - Default priorities for NxWidget and NxWM threads should be 100,
  3399. not 50, to be consistent with other default priorities.
  3400. * Applications:
  3401. - Remove the CONFIG_EXAMPLES_NXTEXT_NOGETRUN option from the NXTEXT
  3402. example. The test logic was bad for the case where this options is
  3403. not selected. Also, completed the empty Kconfig file.
  3404. - C++ name mangling was occurring when this example is built as an NSH
  3405. built-in application causing the entry to be undefined when called
  3406. from C code.
  3407. - Add some missing NSH library configuration values (from Lorenz
  3408. Meier).
  3409. NuttX-6.29
  3410. ----------
  3411. The 96th release of NuttX, Version 6.29, was made on July 31, 2013,
  3412. and is available for download from the SourceForge website. Note
  3413. that release consists of two tarballs: nuttx-6.29.tar.gz and
  3414. apps-6.29.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  3415. file for build information).
  3416. Additional new features and extended functionality:
  3417. * Drivers:
  3418. - Generalized the SSD1306 driver and added support UG-2832HSWEG04
  3419. which is very similar to the existing support for the
  3420. UG-2864HSWEG01.
  3421. - Added support for a generic bit-bang SPI driver. This includes
  3422. both a common "upper half" driver as well as a platformp-specific
  3423. "lower half" dirvers based on a common "template."
  3424. * ARMv7-A, Cortex-A5
  3425. - Added support for the ARMv7-A architecture and the Cortex-A5 in particular.
  3426. * ARMv7-M, Cortex-M3/4
  3427. - Modified how some registers are copied during a context switch (with
  3428. lazy FPU register saving). This should save some context switching
  3429. time when the context switch is due to interrupt level processing.
  3430. * STM32:
  3431. - Added support for a separate CCM heap. This may be useful for
  3432. segregating allocations for CCM (which cannot be used for DMA)
  3433. from other allocations (that may be used used for DMA).
  3434. * STM32 Drivers:
  3435. - DAC: Added support for DAC DMA (contributed by John Wharington).
  3436. - I2C: An I2C driver for the STM32 F3 family (from John Wharington).
  3437. * Atmel AT91 SAM/4:
  3438. - Add support for SAM3X and SAM3A chips
  3439. * Atmel AT91 SAM/4 Drivers:
  3440. - Re-architect the SAM3/4 SPI driver so that is it compatible with the
  3441. SPI drivers of other MCUs.
  3442. - Added register definition file for the SAM4L LCD peripheral.
  3443. - Added SAM4L PDCA register definition file
  3444. * Atmel AT91 SAM/4 Boards:
  3445. - SAM4L-Xplained: Added support for the SPI-based SD card on the I/O1
  3446. module.
  3447. - SAM4L-Xplained: Added a driver for the LED1 segment LCD module.
  3448. - SAM4L-Xplained: Added support for the UG-2832HSWEG04 OLED on the
  3449. SAM4L Xplained Pro's OLED1 module
  3450. - SAM4S-Xplained: Added support for on-board 1MB SRAM
  3451. - Arduino Due: Basic support for the Arduino Due (SAM3X) is now
  3452. included.
  3453. - SAM3U-EK: The touchscreen is now functional.
  3454. * Atmel AT91 SAMA5D3
  3455. - Added support for the Atmel AT91SAMA5D3 Cortex-A5 chip family.
  3456. * Atmel AT91 SAMA5D3 Boards
  3457. - Added support for the Atmel SAMA5D3x-EK boards which use the AT9
  3458. SAMA5D3x chips (x=1,3,4,5).
  3459. * Freescale KL25Z Drivers
  3460. - Freescale KL25Z TSI register definitions and example TSI driver for
  3461. the Freedom KL25Z board from Alan Carvalho de Assis.
  3462. - Added SPI driver and register definitions for the Freescale KL25Z.
  3463. - Added a framework for controlling SPI-related discrete inputs and
  3464. outputs. Taken from work by Alan Carvalho de Assis
  3465. * Build System:
  3466. - New sub-directories to hold SPI-related files: includes/nuttx/spi.h
  3467. moved to include/nuttx/spi/.; SPI-related Kconfig info moved from
  3468. drivers/Kconfig to drivers/spi/kconfig.
  3469. - Finally... I changed the naming of configuration variables like
  3470. CONFIG_DRAM_ to CONFIG_RAM_. This has bothered me for a long time
  3471. since most boards don't have DRAM. The more generic RAM naming
  3472. should not produce so much cognitive dissonance
  3473. * Libraries:
  3474. - Added CRC16 support.
  3475. * Applications:
  3476. - Added Zmodem file transfer support. This may be used as an embedded
  3477. library or may be built as 'sz' and 'rz' commands that can be
  3478. executed from NSH.
  3479. - C++ initializers should be set once and, preferably, in the context
  3480. of the task that uses any C++ statically initialized classes. This
  3481. only becomes an issue if cxxtest or helloxx are built as NSH builtin
  3482. applications. Then you want the initialization done in cxxtext or
  3483. helloxx and not in NSH (and certainly not twice). Added
  3484. configuration options to control who does the C++ initialization.
  3485. NSH now does not do C++ initialization be default and must be
  3486. configured to do otherwise. Conversely, cxxtest and helloxx
  3487. will always do C++ initialization unless configured do otherwise.
  3488. - examples/cxxtext: Add ostream test as provided by Michael.
  3489. - NSH: Added a 'cmp' command that can be used to compare two files
  3490. for equivalence. Returns an indication if the files differ.
  3491. Contributed by Andrew Tridgell (via Lorenz Meier).
  3492. Efforts In Progress. The following are features that are partially
  3493. implemented but present in this release. They are not likely to be
  3494. completed soon.
  3495. * Audio System:
  3496. - A complete audio subsystem include CODECs, higher level management,
  3497. interface definitions, and audio drivers was contributed by Ken
  3498. Pettit. This work has not been completely verified as of this
  3499. release and so is categorized as a work-in-progress. At present,
  3500. progress is blocked due to issues interfacing with the VS1053
  3501. audio DAC on the Mikroe STM32F4 board.
  3502. * kconfig-fronted Configuration:
  3503. - Conversion of old configurations to use the kconfig-frontends
  3504. tool is an ongoing effort that will continue for some time.
  3505. At this time, only 45% of the configurations have been converted
  3506. to use the kconfig-frontends tools.
  3507. Bugfixes (see the ChangeLog for details). Some of these are very important:
  3508. * File Systems:
  3509. - Fixed compilation error if no file systems are enabled: Change
  3510. error to ERROR.
  3511. - Read-Ahead/Write buffering: Correct typos that can cause failures
  3512. in some configurations (From Chia Cheng Tsao).
  3513. * Drivers
  3514. - Remove the wait for the touchscreen busy bit in the ADS7843E driver.
  3515. From my reading of the ADS7843 spec, it would not be appropriate to
  3516. wait for the BUSY bit to de-asserted anyway (since it is only de-
  3517. asserted when we read the data). Most boards do not even bother to
  3518. provide the BUSY bit.
  3519. - MMC/SD SPI based driver: Driver needs to make sure that the SPI
  3520. mode and data width are correct.
  3521. - ENC28J60: Change buffer ordering to work around Errata. From Dave
  3522. (ziggurat29).
  3523. * USB Device Controller Drivers:
  3524. - Fixed a typo in the composite device driver unitialization logic.
  3525. DEV1 should be DEV2 in one case.
  3526. - usbdev.h: Fix some typos that cause compiler errors when
  3527. CONFIG_USBDEV_DMA and CONFIG_USBDEV_DMAMEMORY are selected (From
  3528. Chia Cheng Tsao).
  3529. * ARM9:
  3530. - Fix a bug (uninitialized register error) that crept in the ARM9
  3531. boot-up code several years ago. Obviously no one has used the
  3532. ARM9 NuttX port for years!
  3533. * STM32 Drivers:
  3534. - Fix STM32 OTF FS endpoint allocation logic. Apparently the same
  3535. endpoint can be allocated as both an IN or an OUT endpoint. The
  3536. existing implementation only supported one allocation, either IN or
  3537. OUT. This resulted in failures to allocate endpoints when used with
  3538. the CDC/ACM + MSC composite driver (From Chia Cheng Tsao).
  3539. - SDIO: Add support for the data block end (DBCKEND) interrupt to
  3540. terminate transfers (From Chia Cheng Tsao).
  3541. - DAC: Fixed numerous DAC driver errors and added support for DAC
  3542. DMA (contributed by John Wharington).
  3543. * SAM3/4:
  3544. - SAM4S: Correct configuration of PIO pins for SAM4S B and C peripherals.
  3545. - Need to disable write protection before configuring PIO pins.
  3546. - GPIO configuration logic must protect against re-entrancy.
  3547. - Clocking must be applied to the SMC module for the 3X and 3A family in
  3548. order for the NFC SRAM to be functional.
  3549. - Fixed some errors for interrupts on ports D-F.
  3550. * SAM3/4 Drivers:
  3551. - Common SPI driver: Fix SPI mode setting. In the SAM3/4 family, the
  3552. clock phase control (CPHA) is inverted (NPHA). Also fixed an
  3553. incorrect pointer test. Was checking if the wrong pointer was NULL.
  3554. * SAM3/4 Boards:
  3555. - SAM3U-EK: Fix polarity of the /PENIRQ signal (it is active low).
  3556. The SAM3U-EK board now runs at 96MHz.
  3557. * Applications:
  3558. - apps/examples/nxhello: Minor fix for compilation error when the
  3559. display resolution is low (< 8bpp) due to a typo that has been there
  3560. for a long time. Also Correct default colors when in Y1 code mode.
  3561. - apps/system/ramtest: The RAM test was not correctly built
  3562. into the configuration and build system.
  3563. - apps/examples/composite: Change to prevent some false alarm debug
  3564. assertions (From Chia Cheng Tao).
  3565. NuttX-6.30
  3566. ----------
  3567. The 97th release of NuttX, Version 6.30, was made on September 14, 2013,
  3568. and is available for download from the SourceForge website. Note
  3569. that release consists of two tarballs: nuttx-6.30.tar.gz and
  3570. apps-6.30.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  3571. file for build information).
  3572. Additional new features and extended functionality:
  3573. * Common Drivers:
  3574. - Extended TERMIOS support for serial and CDC/ACM drivers. From
  3575. Mike Smith, Andrew Tridgell and Lorenz Meier.
  3576. - Added option to disable serial port reordering. From Lorenz Meier.
  3577. - Several changes to the USB host control interface and extensions to
  3578. common USB host logic to handle host controllers with multiple
  3579. downstream ports in the root hub.
  3580. - USB device tracing: Extended decoding and stringifying of USB trace
  3581. output to include trace output from class drivers.
  3582. - USB host tracing: Added support for USB host tracing similar in
  3583. some ways to USB device tracing: Stringification is an inherent
  3584. part of the trace decoding (not an option). Only available in the
  3585. SAMA5 USB host drivers now.
  3586. * Networking / Network Drivers
  3587. - Support for the Microchip ENCX24J600 Ethernet driver from Max
  3588. Holtzberg
  3589. - CC3000 Networking. Initial support for the TI CC3000 network
  3590. module on the Freescale Freedom-KL25Z board from Alan Carvalho
  3591. de Assis. This is still a work in progress.
  3592. * ARMv7-A, Cortex-A5
  3593. - Restructured some MMU-related logic and header files.
  3594. - Hooks added for Cortex-A8, but not yet used.
  3595. * STM32 Drivers:
  3596. - STM32 SPI: nbits() interface extended to control bit order as well
  3597. as bit width (from Teemu Pirinen)
  3598. * STM32 Boards
  3599. - Olimex STM32-P107: Incorporate ENCX24J600 networking for the Olimex
  3600. STM32 P107 board.
  3601. - LeafLabs Maple Board: Add board support for the LeafLabs Maple and
  3602. Maple Mini boards. From Librae.
  3603. * Atmel AT91 SAMA5D3x
  3604. - Added support for the SAMA5 DMAC controllers.
  3605. - DMA-capable drivers for the SAMA5 SPI peripherals.
  3606. - DMA-capable HSCMCI 0/1/2 drivers.
  3607. - Support for PIO interrupts
  3608. - Utilities for intelligent conversions between physical and virtual
  3609. addresses.
  3610. - Added USB host controller drivers for both the OHCI (low- and full-
  3611. speed) peripheral and the ECHI (high-speed) peripheral.
  3612. - Added USB device controller for the SAMA5 UDPHS peripheral (full-
  3613. and high-speed).
  3614. - Added a Two Wire (TWI) driver. This is a variant of I2C.
  3615. * Atmel AT91 SAMA5D3x-EK Development Boards
  3616. - Now supports onboard SDRAM. Modified heap initialization logic
  3617. to include SDRAM if configured.
  3618. - Integrated a FAT file system on the on-board SPI-based AT25 serial
  3619. FLASH
  3620. - Integrated HSMCI0 and HSMCI1 support for the microSD and full file
  3621. SD card slots. Includes PIO interrupts for card detection events.
  3622. - Integrated USB OHCI and ECHI host and high-speed peripheral support.
  3623. File system on AT25 now exported via Mass Storage Class. Includes
  3624. PIO VBUS controls.
  3625. - Integrated the TWI driver and the I2C tool. Added support for an
  3626. external AT24 serial EEPROM.
  3627. * Applications:
  3628. - apps/examples/cc3000. Initial support for the TI CC3000 network
  3629. module on the Freescale Freedom-KL25Z board from Alan Carvalho de
  3630. Assis. Includes the test to verify the CC3000.
  3631. - apps/examples/usbmsc: apps/examples/usbstorage renamed usbmsc for
  3632. consistency. Change submitted by CCTSAO.
  3633. - apps/system/usbmonitor: The USB monitor has been extended so that
  3634. it can be used with USB device or host trace data.
  3635. Efforts In Progress. The following are features that are partially
  3636. implemented but present in this release. They are not likely to be
  3637. completed soon.
  3638. * CC3000 Networking
  3639. - CC3000 Networking. Initial support for the TI CC3000 network
  3640. module on the Freescale Freedom-KL25Z board from Alan Carvalho
  3641. de Assis. This is still a work in progress.
  3642. * kconfig-fronted Configuration:
  3643. - Conversion of old configurations to use the kconfig-frontends
  3644. tool is an ongoing effort that will continue for some time.
  3645. At this time, only 46% of the configurations have been converted
  3646. to use the kconfig-frontends tools.
  3647. Bugfixes (see the ChangeLog for details). Some of these are very important:
  3648. * File Systems:
  3649. - ROMFS: Fix an error where long (>15) file names were read
  3650. incorrectly from a ROMFS file system. From Mike Smith
  3651. - NXFFS: Clean up some compiler warnings.
  3652. * Common Drivers
  3653. - MMC/SD driver: Correction for a bad return value when multiple
  3654. block SDIO transfers are suppressed. By Andrew Tridgell.
  3655. - USB HID keyboard and mass storage host-side class drivers: Fix some
  3656. compilation errors and warnings when pre-allocated data structures
  3657. are used.
  3658. - USB device-side class drivers: Fix some compilations errors when
  3659. DUALSPEED (i.e., full- and high-sped) support is enabled.
  3660. - CDC/ACM and PL2303: Don't use max packetsize assigned to the endpoint
  3661. when allocating request buffers; The default value of the endpoint
  3662. max packetsize may be incorrect because the endpoint has not yet
  3663. been configured. Really only an issue for high-speed endpoints.
  3664. - USB Host Mast Storage Class: Fixed a problem that was causing some
  3665. devices to fail to initialize: If device is returning fatal transfer
  3666. errors while attempting to initialize, don't bother with the startup
  3667. retries; abort immediately so that the device will be reset and we
  3668. can try again with a better ready device.
  3669. - USB Host Mast Storage Class: Correct a reference counting error:
  3670. When an MSC device transfer fails while waiting for UnitTestReady,
  3671. the reference count on the class was not being decremented. The end
  3672. result is a memory leak as can be seen by the USB device numbers
  3673. incrementing: sda, sdb, sdc, ...
  3674. - USB Device CDC/ACM: Fix backward conditional compilation in the
  3675. CDC/ACM driver with regard to remote wakeup and self-powered
  3676. capabilities. From the PX4 team via Lorenz Meier,
  3677. * Networking / Network Drivers
  3678. - ARP IP harvesting: Correct backward condition in netmask task.
  3679. From Max Holtzberg.
  3680. - Network connection monitor: Fixes a race condition where a loss of
  3681. connection may not be detected when the connection is lost before it
  3682. has been accepted (from Max Holtzberg).
  3683. - TCP/IP Backlog: Fix a critical bug in the TCP/IP backlog
  3684. initialization: Only the first backlog buffer was getting added to
  3685. the free list. From Max Holtzberg.
  3686. - ENC28J60: Fixes and improvements back-ported from the ENCX24J600
  3687. to the ENC28J60 by Max Holtzberg.
  3688. * STM32 Drivers:
  3689. - STM32 I2C fixes for the STM32 F3 family from John Wharington.
  3690. - STM32 I2C Correct an error that crept into the STM32 F1 I2C
  3691. driver with some recent changes. From Librae
  3692. - STM32 F4: Added some missing CONFIG_SERIAL_TERMIOS support; Fixed
  3693. some STM32 F4 Timer 8 pin configurations. From CCTSAO.
  3694. - STM32 SDIO: If CONFIG_SDIO_BLOCKSETUP defined, OS would crash. Now
  3695. Generate an error if CONFIG_SDIO_BLOCKSETUP is defined; that
  3696. option is not yet supported by the STM32 SDIO driver. From CCTSAO
  3697. - STM32 I2C Timers: Some CCER bit settings changed. Submitted by
  3698. CCCTSAO.
  3699. - STM32 CAN: Fix access to CAN filter registers. From the PX4 team
  3700. via Lorenz Meier.
  3701. - STM32 Kconfig: Fix STM32 UART7/8 Kconfig names and UART DMA. From
  3702. the PX4 team via Lorenz Meier.
  3703. * LPC17xx Drivers
  3704. - Fix #endif with missing #if in USB host header file. Reported
  3705. by Andrew Bradford,
  3706. * SAM3/4 Boards:
  3707. - Corrected DMA-related problems: Bad register definitions, parameters
  3708. reversed in a function call.
  3709. - Correct a race condition in the HSMCI driver when an interrupt
  3710. occurs before the wait for the interrupt begins.
  3711. - Peripheral clock setup: Correct a typo in a register name.
  3712. * Atmel AT91 SAMA5D3
  3713. - Order of some operations changed in boot-up logic to defer
  3714. enabling of caching of memory regions until SDRAM is initialized.
  3715. - Correct handling of spurious interrupts.
  3716. * Freescale KL25Z Drivers
  3717. - KL25Z SPI: Correct typo in name of a function. From Alan Carvalho
  3718. de Assis.
  3719. * Applications:
  3720. - apps/examples/composite: Fix a typo that can cause a configuration
  3721. error. From CCTSAO.
  3722. - apps/examples/pwm: Clean-up some configuration confusion.
  3723. - apps/netutils/dhcpd/dhcpd.c: Fixed calculation of the next lease
  3724. address. From Paolo Messina.
  3725. - apps/examples/usbmsc: Don't try to control USB trace if we are
  3726. an NSH built-in task. In that case our attempts are inadequate
  3727. and only interfere with with other logic that is attempting to
  3728. to do the same thing (in NSH or in the USB monitor).
  3729. - apps/examples/usbmsc: IMPORTANT bug fix: Change how the msconn
  3730. works. Because of recent changes the msconn command was hanging.
  3731. This was because the USB MSC start-up logic creates a pthread;
  3732. Now waitpid() will wait until all members of the task group
  3733. exit. So NSH was hanging in waitpid when msconn started even
  3734. though msconn returned. The USB MSC logic really should not use
  3735. a pthread, but we are stuck with that for now. The work-around
  3736. is the msconn now daemonizes itself so that it so that the pthread
  3737. is created in a different task group.
  3738. - apps/nshlib: Fix NSH listing output for the case of a single file.
  3739. From the PX4 team; provided by Lorenz Meier.
  3740. NuttX-6.31
  3741. ----------
  3742. The 98th release of NuttX, Version 6.31, was made on October 28, 2013,
  3743. and is available for download from the SourceForge website. Note
  3744. that release consists of two tarballs: nuttx-6.31.tar.gz and
  3745. apps-6.31.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  3746. file for build information).
  3747. Additional new features and extended functionality:
  3748. * General:
  3749. - Standardized stack checking logic so the interfaces can be used
  3750. by common stack monitoring logic.
  3751. * Audio Subsystem and Audio Drivers:
  3752. - Ken Pettit has finally released his long awaited audio subsystem.
  3753. This is a generic audio subsystem that is appropriate for the
  3754. deeply embedded MCU. Current testing has, however, been focused
  3755. on the VS1053 CODEC chip.
  3756. - Ken Pettit's VS1053 audio CODEC driver is now functional.
  3757. * Networking / Network Drivers
  3758. - Add the prefix ETH0 to all PHY configuration selections. This
  3759. will allow us to support to Ethernet MAC drivers with two different
  3760. PHYs (identified with ETH0 and ETH1). Enabled with CONFIG_NETDEV_MULTINIC.
  3761. - Add MII/RMII PHY definitions for the Micrel KSZ8051 PHY.
  3762. - Add GMII/GRMII PHY definitions for the Micrel KSZ9021/31 PHY.
  3763. - New network-optimized, higher-performance sendfile() implementation
  3764. from Max Holtzberg.
  3765. - Added a simple routing table. This table is currently only used (1)
  3766. when we need to look-up an Ethernet device based on an IP address,
  3767. and (2) in the ARP logic when we need to request the MAC address of
  3768. the router, vs the MAC address of the peer.
  3769. - Make net_close() nonblocking and free unestablished connections if
  3770. no free connections available. From Max Holtzberg.
  3771. - Changed the meaning of the uip_*input functions. They now return
  3772. success when a packet is dropped; This is needed for the ENCX24J600
  3773. driver that must make a decision to return the packet or not: It
  3774. should not retry dropped packets. From Max Holtzberg.
  3775. - David Sidrane has completed integration of the CC3000 networking.
  3776. This is much more than a network driver: It is a complete
  3777. replacement for the NuttX networking with off-chip networking support
  3778. in the CC3000.
  3779. - Numerous enhancements to the ENCX24J600 driver from Max Holtberg.
  3780. * Other Common Drivers:
  3781. - The SST25 serial FLASH MTD driver now includes support for the
  3782. SST25VF016B. From David Sidrane.
  3783. - Add a preflight method to the SDIO interface to support the STM32
  3784. DMA usage model. From Mike Smith.
  3785. - Enhanced the MMC/SD SDIO driver to perform DMA preflight operations
  3786. and fail DMA read/write requests that fail preflighting. From Mike
  3787. Smith.
  3788. - Add an ioctl command that can be used to trigger ADC/DAC conversion
  3789. under application control.
  3790. * File Systems:
  3791. - Enhanced the FAT32 filesystem code to understand DMA preflight
  3792. failures, and to use the file sector buffer as a bounce buffer when
  3793. a user-supplied buffer is not suitable for DMA. From Mike Smith.
  3794. * Atmel AT91 SAMA5D3x
  3795. - Add support so that subsets of the total DRAM (and other external
  3796. memory) can be added to the heap, leaving other memory reserved for
  3797. other purposes (like the LCDC framebuffers).
  3798. * Atmel AT91 SAMA5D3x Drivers:
  3799. - Use more descriptive task names when starting the EHCI and OHCI
  3800. monitor tasks.
  3801. - Added a 10/100Base-T Ethernet (EMAC) driver.
  3802. - Added a 1000Base-T Ethernet (GMAC) driver.
  3803. - Added a Real Time Clock (RTC) driver and integrated with the NuttX
  3804. system time logic.
  3805. - Added support for /dev/random using the SAMA5D3x True Random Number
  3806. Generator (TRNG).
  3807. - Added a Watchdog Timer (WDT) driver.
  3808. - Added a Timer/Counter (TC) library with interface that make be used
  3809. by other drivers that need timer support.
  3810. - Added an ADC driver that can collect multiple samples using the
  3811. sequencer, can be trigger by a timer/counter, and supports DMA data
  3812. transfers.
  3813. - Added a touchscreen driver based on the special features of the
  3814. SAMA5D3 ADC peripheral.
  3815. - Added an LCD controller (LCDC) frame buffer driver.
  3816. - Added a CAN driver. However, testing has been delayed because of
  3817. cabling issues.
  3818. - Basic header file support is available for the Image Sensor
  3819. Interface (ISI) camera interface. Work on the camera driver is
  3820. underway and is expected in the next release.
  3821. * Atmel AT91 SAMA5D3x-EK Development Boards
  3822. - Add OS test support for the FPU test.
  3823. - Enable the task name feature board configuration sto provide
  3824. prettier ps command output.
  3825. - Added NX and NxWM configurations to verify the LCD and touchscreen.
  3826. There are still some outstanding issues with the NxWM configuration
  3827. as of this release.
  3828. - The TRNG and /dev/random are now enabled by default in the demo
  3829. configuration.
  3830. * Atmel AT91 SAM3/4 Boards:
  3831. - Add configuration to select revision 3 of the Arduino Due which has
  3832. some small but important differences. Suggested by gdi@embedders.org.
  3833. * STMicro STM32:
  3834. - Add support for the STM32F207ZE chip. From Martin Lederhilger.
  3835. * STMicro STM32 Boards:
  3836. - Add configuration for the Spark Core. The initial check-in is
  3837. basically the Maple Mini board and subsequent development by David
  3838. Sidrane is his special Spark emulation hardware. The configuration
  3839. should be very mature when actual Spark hardware is available.
  3840. - Support for the Olimex STM32 P207 board added by Martin Lederhilger.
  3841. - Configuration for the Mikroe STM32F4 board configuration updated for
  3842. audio support by Ken Pettit.
  3843. * NXP LPC17xx Boards:
  3844. - zkit-arm-1769: LED1 is now user controllable after booting. From
  3845. Rashid Fatah.
  3846. * Kinetis KL Drivers:
  3847. - PIT and TPM register definitions header files for the from Alan
  3848. Carvalho de Assis.
  3849. - Added low-level getc() function for operation with no file system.
  3850. The KL25Z can now support NSH in a very minimal system that does
  3851. not even have a file system.
  3852. * Kinetis KL Boards
  3853. - A new configuration called minnsh was added is an experiment to
  3854. see how small we can get the NuttX footprint and still support NSH.
  3855. From Alan Carvalho de Assis..
  3856. * TI Calypso Phones:
  3857. - Basic board support for the Motorola C139 (Compal E86) phone. From
  3858. Craig Comstock.
  3859. * Applications:
  3860. - Moved several useful examples from apps/examples to apps/system.
  3861. This includes USB MSC, USB CDC/ACM, and USB Composite.
  3862. - New addroute and delroute commands added to NSH in order to manage
  3863. the network routing table.
  3864. - Numerous enhancements and updates to the CC3000 example from David
  3865. Sidrane.
  3866. - Add a new stack monitor daemon that can be used to constantly
  3867. monitor stack usage by all threads.
  3868. - Numerous changes to get NSH working with no file system. Basically
  3869. this suppresses I/O redirection and replaces file I/O with calls to
  3870. low-level console read/write functions. Suggested by Alan Carvalho
  3871. de Assis.
  3872. - apps/system/nxplayer: A new, command-line media player called
  3873. 'nxplayer' from Ken Pettit.
  3874. - apps/examples/random: Add a simple test that dumps values from
  3875. /dev/random.
  3876. - apps/examples/adc: Add support so that a ADC driven by software
  3877. triggering can be tested.
  3878. * Build System:
  3879. - The MKDEP tools now support a new argument that identifies the
  3880. object file path.
  3881. Efforts In Progress. The following are features that are partially
  3882. implemented but present in this release. They are not likely to be
  3883. completed soon.
  3884. * kconfig-fronted Configuration:
  3885. - Conversion of old configurations to use the kconfig-frontends
  3886. tool is an ongoing effort that will continue for some time.
  3887. At this time, only 48% of the configurations have been converted
  3888. to use the kconfig-frontends tools.
  3889. Bugfixes (see the ChangeLog for details). Some of these are very important:
  3890. * Initialization and Scheduling:
  3891. - IDLE thread initialization logic should not call group_setupidlefiles()
  3892. if there are no file descriptors (and, hence, no file system).
  3893. - Fix some cornercase error handling logic: If sched_releasetcb() is
  3894. called as part of a failed pthread startup before the flags field in
  3895. the TCB has been initialized, then a crash occurs. Pointed out by
  3896. David Sidrane.
  3897. * Networking / Network Drivers:
  3898. - Look up of a device using subnet will fail if the packet is being
  3899. sent out of our subnet (via a router). The fallback here is just to
  3900. use the only device ("eth0") if the subnet lookup fails (this logic
  3901. was extended to handle multiple Ethernet devices by adding a simple
  3902. routing table).
  3903. - Fix some backward conditional logic in send() that enabled the
  3904. check if the ARP address is in the ARP table. From Max Holtzberg.
  3905. - Notify the socket layer from the network monitor if a connection is
  3906. lost before the monitoring callback has been registered. From Max
  3907. Holtzberg.
  3908. - send(): Reset the send timeout when the data is ACKed, not when the
  3909. data is sent. Remove conditions on checking for timeout. From Max
  3910. Holtzberg.
  3911. - Correct how the TCP/IP initial minimum MSS is calculated. Max
  3912. Holtzberg.
  3913. - TCP state machine: Move tcp connection into SYN_RCVD state after
  3914. aception instead of bypassing and moving directly into ESTABLISHED.
  3915. From Max Holtzberg.
  3916. - Numerous fixes to the ENCX24J600 driver from Max Holtberg.
  3917. * USB Drivers:
  3918. - Change naming of SELFPOWERED and REMOTEWAKEUP to avoid name
  3919. collisions. Prepend the name of the driver (for example
  3920. CDCACM_SELFPOWERED).
  3921. - CDC/ACM class driver: Change the interval for the interrupt
  3922. endpoint from 0xff (invalid) to 10. This is not a critical
  3923. change but will avoid a complaint from the Linux driver when
  3924. it overrides the 0xff value.
  3925. * ARM Cortex-A5:
  3926. - Fix an error in data cache clean and invalidate functions: Fix of
  3927. addresses to cache line boundaries.
  3928. * Atmel AT91 SAMA5D3x Drivers:
  3929. - Correct some inconsistencies in the way that USB configuration
  3930. settings are used. This caused compilation errors in SAMA5 OHCI
  3931. when USB debug was ON but USB host tracing was off.
  3932. - When 480MHz UPLL is used to drive OHCI, it should have a divider
  3933. of 10. However, that does not work. A divider of 5 does. Why?.
  3934. - OHCI HCD: Fix a place where DMA-related data needed to be flushed
  3935. to data cache; Fix another where a virtual address was being used
  3936. in a register where a physical address was required.
  3937. - HSMCI Driver: TX DMA disabled. It is just not reliable. No idea
  3938. why. RX DMA is still used.
  3939. - STM32F103C pinmapping corrections from David Sidrane.
  3940. * Atmel SAMA5D3x-EK Board
  3941. - Increase the number of pre-allocated watchdog timers. The default
  3942. number of 4 was easily being exhausted in the more complex
  3943. configurations.
  3944. * STMicro STM32:
  3945. - STM32 F4 DMA definitions: Typo fixes for UART7 and UART8 DMA
  3946. configs. From Mike Smith.
  3947. - DMA priority configuration corrections from Mike Smith.
  3948. - Changes to the stm32_dmacapable API. In order to correctly
  3949. verify that a buffer can be transferred, the transfer count and
  3950. the CCR value are required. Implemented stm32_dmacapable for
  3951. stm32f1xx devices. Enhanced stm32_dmacapable for stm32f2xx and
  3952. stm32f4xx devices to check for additional conditions that will cause
  3953. DMA to fail or lose data.
  3954. - STM32 F1 DMA fix from David Sidrane: The DMA_CNDTRx register
  3955. cannot be modified if the DMA channel is disabled.
  3956. * STMicro STM32 Drivers:
  3957. - Fix compilation errors from bad bit definitions in ADC and PWM
  3958. register. From Martin Lederhilger.
  3959. - DMA-related fixes to the SPI driver from Ken Pettit.
  3960. * NXP LPC17xx Drivers:
  3961. - Remove undefined spi_select() prototype. This was causing compile
  3962. time warnings.
  3963. * NXP LPC17xx Boards:
  3964. - zkit-arm-1768: MMC/SD is on SPI, not SSP0. From Rashid Fatah.
  3965. * C Library
  3966. - scanf() fixes from kfrolov: 1) sscanf() function hangs in the
  3967. following example: sscanf("2", "%u,%u,%u,%u", ...), 2) sscanf()
  3968. returns incorrect number of parsed numbers if some arguments
  3969. can't be parsed: sscanf("=2", "%u,%u,%u,%u",...)==1 instead of
  3970. 0, and 3) using of char* instead of const char* in vsscanf
  3971. function leads to warnings from GCC.
  3972. * Build System
  3973. - Dependency generation generation was broken for directories that
  3974. keep objects in a sub-directory. The MKDEP tools now support a new
  3975. argument that identifies the object file path.
  3976. - tools/define.sh: 'cut' no longer works as it once did. Script
  3977. adapted to observed behavior.
  3978. * Applications:
  3979. - Remove a warning from the NSH library when DHCP is not enabled.
  3980. - Default NSH IP address should be 0x0a000001 (10.0.0.1), not
  3981. 0xa0000001 (160.0.0.1). Ditto for the gateway.
  3982. - Add some missing options to the OS test Kconfig file
  3983. - Fix some bad conditional compilation in the USB monitor.
  3984. - Fix default I2C frequency used by the I2C tool: 400KHz instead
  3985. of 4MHz. Suggested by Max Kriegleder.
  3986. - Increase stack size for the system/info command. Ken Petit
  3987. reports that this simple command can exceed its 768 stack size
  3988. under certain conditions. The size is marginal and has been
  3989. increased to 1024 by default but is also now configurable.
  3990. - apps/Makefile: Needs to include external/Make.defs if we want
  3991. allow external applications to participate in the NuttX
  3992. configuration. Suggested by gdi@embedders.org.
  3993. - apps/netutils/telnetd: Missing argument to debug statement
  3994. can cause crashes in certain error conditions. From David
  3995. Sidrane.
  3996. - apps/examples/can: Correct an error in a debug statement. From
  3997. Martin Lederhilger.
  3998. NuttX-6.32
  3999. ----------
  4000. The 99th release of NuttX, Version 6.32, was made on December 7, 2013,
  4001. and is available for download from the SourceForge website. Note
  4002. that release consists of two tarballs: nuttx-6.32.tar.gz and
  4003. apps-6.32.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  4004. file for build information).
  4005. Additional new features and extended functionality:
  4006. * General:
  4007. - Extension and standardization of stack debug logic. Now includes
  4008. coloration of the IDLE and interrupt stacks as well as the heap.
  4009. Suggested by David Sidrane.
  4010. * Audio Subsystem and Audio Drivers:
  4011. - I2S interface definition. Integrates with audio sub-system.
  4012. - VS1053 worker thread stack size is now configurable and assigned a
  4013. name via pthread_setname_np(). From Ken Pettit.
  4014. * Networking / Network Drivers
  4015. - Updates and adaptations to support for TI CC3000 wireless module
  4016. from David Sidrane. These updates include multi-threading support
  4017. and interface and header file changes to integrate more seamlessly
  4018. with NuttX applications.
  4019. * File Systems:
  4020. - procfs: Add support for a tiny procfs file system. The initial
  4021. offering is little more that a proof of concept but may be developed
  4022. further in subsequent releases.
  4023. - NXFFS: An initial attempt was made to integrate NXFFS with the NAND
  4024. MTD driver. Changes were made to handle bad blocks. However, I
  4025. later realized that NXFFS cannot handle NAND because the way that
  4026. is re-writes blocks is incompatible with the NAND ECC handling.
  4027. These changes were backed-out so as not to introduce turmoil, but
  4028. can be re-enabled if needed via configuration option.
  4029. - NXFFS: Make the start up scan of the media a configuration option.
  4030. It just takes to long and is not really necessary! Those rare cases
  4031. where the scan was helpful can be fixed using MDIOC_BULKERASE IOCTL
  4032. command.
  4033. * General Drivers:
  4034. - I2S: A simple character driver was added to support I2S accesses.
  4035. This driver in its current state is intended only to support I2C
  4036. testing and would not be appropriate to used for any real driver
  4037. application.
  4038. * MTD Drivers
  4039. - Add a container for an MTD device that can be used to provide a
  4040. simple, lightweight interface to configuration data storage that
  4041. resides on some storage media that is wrapped as an MTD device.
  4042. From Ken Pettit.
  4043. - New interface definition for lower half NAND drivers.
  4044. - MTD Nand: Add MTD NAND driver that will support ONFI devices,
  4045. non-ONFI devices (via table lookup), bad block checking, software
  4046. ECC (Hamming), and will interact with the lower-half, hardware-
  4047. specific, NAND driver. Based on BSD-compatible Atmel sample code.
  4048. - MTD geometry structure is now packed so that it can support larger
  4049. erase block sizes needed by NAND without increasing the size of
  4050. the geometry structure.
  4051. - SST25: Add another SST25 SerialFlash driver, sst25xx.c. This one
  4052. differs from sst25.c in that it supports larger SST25 parts: In
  4053. the larger parts support page write instead of byte/word writes
  4054. like the smaller parts. From Ken Pettit.
  4055. * USB Drivers
  4056. - STM32 F1 USB Device: Add support for decoded USB trace strings.
  4057. From David Sidrane.
  4058. * ARM
  4059. - Add more ARM9 cache management functions to flush and invalidate
  4060. D-Cache for DMA support.
  4061. * Atmel AT91 SAMA5D3x Drivers:
  4062. - Many new drivers including CAN, PWM, SSC/I2S
  4063. - PCK: Add support for programmable clock outputs.
  4064. - NAND: Driver with hardware ECC and DMA support
  4065. * Atmel AT91 SAMA5D3x Boards:
  4066. - SAMA5D3x-EK: Add support for the apps/examples/i2schar test.
  4067. - SAMA5D3x-EK: Provides board-specific memory controller initialize
  4068. for NAND flash.
  4069. - SAMA5D3x-EK: Add support for "auto-mounting" NAND MTD block driver
  4070. or NXFFS file system.
  4071. * Atmel AT91 SAM3/4 Boards:
  4072. - Basic support for the Atmel SAM4E family. From Mitko.
  4073. * STMicro STM32:
  4074. - Added support for the STM32F429. From Ken Pettit.
  4075. - Added support for GPIOK and GPIOJ. From Ken Pettit.
  4076. * STMicro STM32 Drivers
  4077. - STM32 F4 OTG FS/HS Device: OTG FS device and host drivers extended
  4078. so that they can support either the OTG FS peripheral or the OTG HS
  4079. peripheral (in FS mode). This was done as a quick way to get USB
  4080. support on the STM32F429 which has only OTG HS. From Ken Pettit.
  4081. - Added header files and driver framework for the STM32F429 LTDC
  4082. framebuffer driver. From Ken Pettit.
  4083. * STMicro STM32 Boards:
  4084. - Support for the Spark board was completely by Davide Sidrane. The
  4085. Spark configuration includes integrated CC3000 wireless support, FAT
  4086. file system on the SerialFlash and a composite device that can be
  4087. used both to export the FAT file system and to provide a serial
  4088. interface.
  4089. - The Mikroe-stm32f4 now uses /dev/config for configuration data
  4090. storage. From Ken Pettit.
  4091. - Added support for the STM32F429I-Discovery board from Ken Pettit.
  4092. - Added board support for the ViewTool STM32F103/F107 board with the
  4093. STM32F107VCT6 installed.
  4094. * NXP LPC31xx Drivers:
  4095. - USB ECHI HCD: Add a driver for the low-/full-/high-speed variant
  4096. of the EHCI host controller.
  4097. * NXP LPC31xx Boards:
  4098. - Board-specific USB host support for the Embedded Artists EA3131 board.
  4099. (Missing PCA9532 controls).
  4100. - Add support for the Olimex LPC-H3131 board. Including USB host
  4101. support (which does not depend on the PCA8532 interface).
  4102. * Kinetis KL Drivers:
  4103. - PWM driver for the Freescale Kinetis KL family from Alan Carvalho
  4104. de Assis.
  4105. * Kinetis KL Boards
  4106. - Freedom-KL25Z: Add PWM support from Alan Carvalho de Assis.
  4107. * TI Stellaris LM3S
  4108. - Don't initialize .data in start-up logic if not running from FLASH.
  4109. * Applications:
  4110. - apps/platform: A new home for platform-specific application code.
  4111. - Define a common interface that can be used to manage platform-
  4112. specific configuration data. From Ken Pettit.
  4113. - apps/examples/configdata: A unit test for the MTD configuration
  4114. data driver from Ken Pettit.
  4115. - Aapps/platform/mikroe-stm32f4: dd platform-specific storage of
  4116. configuration data for the Mikroe-stm32f4. From Ken Pettit.
  4117. - apps/examples/cc3000: Fine tuning of memory usage from David Sidrane.
  4118. - apps/system/nxplayer: Play thread stack size is now configurable.
  4119. All NxPlayer threads now have names assigned via pthread_setname_np().
  4120. From Ken Pettit.
  4121. - apps/examples/i2schar: The I2S test based on the I2S character
  4122. driver.
  4123. - apps/examples/hidkbd/hidkbd_main.c: Now calls a function named
  4124. arch_usbhost_initialize() that must be provided by the platform-
  4125. specific code.
  4126. - NSH:
  4127. - hexdump: Add skip= and count= options to the hexdump command. From Ken Pettit.
  4128. - Allow USB trace without a USB console. From David Sidrane.
  4129. - Mount command updates from Ken Pettit.
  4130. - Add an option to the mkfatfs command to specify FAT12, FAT16, or FAT32.
  4131. * Tools
  4132. - tools/mkctags.sh: A script for creating ctags from Ken Pettit.
  4133. Efforts In Progress. The following are features that are partially
  4134. implemented but present in this release. They are not likely to be
  4135. completed soon.
  4136. * kconfig-fronted Configuration:
  4137. - Conversion of old configurations to use the kconfig-frontends
  4138. tool is an ongoing effort that will continue for some time.
  4139. At this time, only 50% of the configurations have been converted
  4140. to use the kconfig-frontends tools.
  4141. Bugfixes (see the ChangeLog for details). Some of these are very important:
  4142. * File Systems
  4143. - FAT: In one error return case, the error return value was not being
  4144. set, making the failure look like success. From David Sidrane.
  4145. - mount: SMART FS must be included in the conditional compilation for
  4146. the set of file systems that require block drivers. From Daniel
  4147. Palmer.
  4148. - SmartFS: Fixed a minor bug with SMART partition number reporting
  4149. that would only be seen if both partition support and multi-root
  4150. directory support are enabled at the same time. From Ken Pettit.
  4151. - Deadlock: The inode semaphore must be re-entrant. Here is the re-
  4152. entrant path that I found: (1) USB host connects to FLASH drive and
  4153. creates /dev/sda, (2) /dev/sda is mounted, (3) FLASH drive is
  4154. removed but /dev/sda is not destroyed because there is still a
  4155. reference on the device because of the mount, (4) umount() is
  4156. called, taking the inode semaphore, now the driver tries to destroy
  4157. the block driver by calling unregister_blockdriver(). But (5)
  4158. unregister_blockdriver() also takes the inode semaphore causing a
  4159. deadlock if the inode semaphore is not re-entrant.
  4160. - FAT: Fix a typo in the FAT16 formatting logic. Was this ever able to
  4161. format a FAT16 volume?
  4162. * MTD Drivers
  4163. - MTD Partitions: Fix erase block vs page block confusion. From Ken
  4164. Pettit
  4165. - SST25 Serial Flash: Improved write performance by fixing a bug that
  4166. prevented operation in the faster write mode. From David Sidrane.
  4167. * USB Drivers:
  4168. - USB MSC Device: pthread_join() does not work if called from a
  4169. different task group than the pthread. This is correct behavior,
  4170. but still a problem. The correct solution would be configure the
  4171. USB MSC thread to a task, however, this workaround from David
  4172. Sidrane plugs the hole for now.
  4173. - USB CDC/ACM, USB MSC, and Composite Device Classes: Un-initialization
  4174. logic caused re-use of a stale pointer. Changed to a two pass
  4175. un-initialization for the case of the composite driver: Memory
  4176. resources are not freed until the second un-initialization pass.
  4177. From David Sidrane.
  4178. * STMicro STM32 Drivers:
  4179. - STM32 F1 USB Device: Fix some errors that cause crashes when the USB
  4180. was disconnected. From David Sidrane.
  4181. - STM32 F1 USB Device: Correct EP0 state handling logic when buffers
  4182. larger than the EP0 packet size are sent. From David Sidrane.
  4183. - STM32 F1 USB Device: The long outstanding bug involving the handling
  4184. of OUT SETUP commands has been fixed in the STM32 F1 USB device
  4185. driver by David Sidrane.
  4186. - Kconfig: Add missing setup of CAN TSEG1 and TSEG2 values. From
  4187. Martin Lederhilger.
  4188. * Tools
  4189. - tools/mkconfig.c: SMART FS must be included in the conditional
  4190. compilation for the set of writable file systems. Noted by Daniel
  4191. Palmer.
  4192. * Applications:
  4193. - apps/platform/Makefile: Was not dealing with the bin sub-directory
  4194. correctly.
  4195. - apps/system/composite/composite_main.c: The wrong handle was getting
  4196. nullified. From David Sidrane.
  4197. NuttX-6.33
  4198. ----------
  4199. The 100th release of NuttX, Version 6.33, was made on January 30, 2014,
  4200. and is available for download from the SourceForge website. Note
  4201. that release consists of two tarballs: nuttx-6.33.tar.gz and
  4202. apps-6.33.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  4203. file for build information).
  4204. Additional new features and extended functionality:
  4205. * Core OS Interfaces
  4206. - nanosleep() added. sleep() and usleep() are no longer core OS
  4207. interfaces. These have been moved into the library and re-implemented
  4208. as simple wrappers around nanosleep().
  4209. * File Systems
  4210. - procfs restructured by Ken Pettit. Added files for MTD status.
  4211. - procfs extended to show uptime and task group status.
  4212. - procfs now shows stack information.
  4213. * Networking
  4214. - Add support for the SO_LINGER socket option. Extended from logic
  4215. provided by Jason Jiang. Enabled with CONFIG_NET_SOLINGER.
  4216. - TCP write buffering support added. From Jason Jiang.
  4217. - Changes from Max Holtzberg to improve how network status is
  4218. reported. New controls to manage carrier detect.
  4219. * Graphics
  4220. - Massive reshuffling of files with little or no logic changes. This
  4221. reshuffling was necessary to build graphics applications with the
  4222. kernel builds where the graphics application lie in user space and
  4223. the core graphic server likes in kernel space. Moved much logic out
  4224. of nuttx/graphics to a new user library, libnx.
  4225. * Cortex-A5/A8/A9
  4226. - Existing Cortex-A5 support updated to include Cortex-A8/9.
  4227. - Add the syscall.h header file needed for the Cortex-A architecture.
  4228. - Start-up logic now supports execution from FLASH with .data and
  4229. .bss in SDRAM. This was not possible prior to this because .bss
  4230. and .data were initialized before SDRAM was configured.
  4231. * Allwinner A10:
  4232. - Basic support for the Allwinner A10 (Cortex-A8) is in place.
  4233. * Allwinner A10 boards
  4234. - Support for the pcDuino v1 board has been added. This support
  4235. is not yet very mature and still lacks many drivers. It is a
  4236. good starting point, however, if anyone wants to develop A10
  4237. support.
  4238. * Atmel SAMA5D3X
  4239. - Start-up logic now supports execution from FLASH with .data and
  4240. .bss in SDRAM. This was not possible prior to this because .bss
  4241. and .data were initialized before SDRAM was configured.
  4242. * Atmel SAMA5D3X Boards
  4243. - Partial logic in place to support the OV2640 camera. Still needs
  4244. quite a bit of additional logic to be useful.
  4245. * ARMv7-M
  4246. - Add support for high priority, nested interrupts. This change
  4247. effects not only core ARMv-7M logic, but all ARMv7-M MCU logic:
  4248. LM3S, LM4F, LPC17xx, LPC43xx, SAM3, SAM4, and STM32. See
  4249. https://cwiki.apache.org/confluence/display/NUTTX/High+Performance%2C+Zero+Latency+Interrupts
  4250. * STMicro STM32
  4251. - Add clocking support for STM32F107 USB OTG FS (which does not yet
  4252. work)
  4253. - Single-wire UART support for the F1 series from Thomas Grubler.
  4254. * STMicro STM32 Boards
  4255. - The Viewtool board can now be configured to support either the
  4256. STM32F103VCT6 or the STM32F107VCT6.
  4257. - The Viewtool STM32F107VCT6 now supports networking with the
  4258. DP83848C module installed.
  4259. - Add support for Viewtool SSD1289-based LCD on the Viewtool
  4260. STM32F103VCT6 board (untested)
  4261. - Add support for the XPT2046 touchscreen controller on the Viewtool
  4262. LCD module connected to the Viewtool STM32F103 board.
  4263. - Added kernel mode build support for the STM3240G-EVAL board. Added
  4264. a new kernel mode NxWM build configuration
  4265. - C++ static constructor logic from the nuttx/configs/stm3240g-eval/
  4266. directory to the apps/platform/stm3240g-eval/up_cxxinitialize.c
  4267. where is belongs so that it is available in user-space in the kernel
  4268. mode build.
  4269. - Add native Windows build support for the Olimex STM32 P107. From
  4270. Max Holtzberg
  4271. - Support for the STM32VL-Discovery board. Contributed by Alan
  4272. Carvalho de Assis
  4273. - Added a configuration for testing simple configurations on the
  4274. PX4FMU v2.
  4275. * ZiLOG ZNEO Boards
  4276. - Add an NSH configuration for the Z16F2800100ZCOG ZNEO board.
  4277. - Added support for the Toyaga 16Z ZNEO board. The 16Z board is
  4278. based on the ZiLOG ZNEOZ16F2811AL20EG part. See
  4279. https://github.com/toyaga/16z for further information
  4280. - Developed a patch to work around a compiler error that is revealed
  4281. when building the NSH configuration.
  4282. * Architecture-Independent Drivers
  4283. - OV2640 Camera Driver.
  4284. - Support for the Sharp Memory LCD from Librae.
  4285. * Library
  4286. - Pattern matching logic extended to handle set of characters and
  4287. ranges of character values. From Ken Pettit.
  4288. - sleep() and usleep() moved into the C library. These are not
  4289. longer core OS interfaces; they are simple wrappers for the
  4290. nanosleep().
  4291. - Add an implementation of gets_s().
  4292. - Extend fopen() to include support for C11 exclusive open ("x")
  4293. open mode.
  4294. - Add an implementation of stpcpy()
  4295. - strtol(), strtoll, strtoul(), strtoull(), and strtod() from
  4296. libc/string to libc/stdlib where they belong.
  4297. * Header Files
  4298. - Add rsize_t to include/sys/types.h
  4299. - Add the C11 thread.h header file
  4300. * Configuration/Build System
  4301. - Top level Makefile now supports qconfig and/or gconfig targets that
  4302. may be used for configuration. These may be used if you build
  4303. kconfig-frontends with support for kconfig-qconf and/or
  4304. kconfig-gconf.
  4305. - Add CONFIG_DEBUG_NOOPT. Now you can independently enable/disable
  4306. debug symbols and optimization
  4307. - File system related header files moved to include/nuttx/fs
  4308. - Video related header files moved to include/nuttx/video
  4309. - Changes for native Windows build: fix creation of a .version file
  4310. if one does not exist. Make sure that the APPDIR environment
  4311. variable is set before configuring. From Max Holtzberg.
  4312. - Board configuration sub-directory can now be specified. The default
  4313. need not be used. This is only useful when CONFIG_ARCH_BOARD_CUSTOM
  4314. is selected and there is no meaningful default sub-directory.
  4315. - Many functions renamed to better conform with the naming standard:
  4316. up_buttoninit() renamed to board_button_initialize(), up_buttons()
  4317. renamed to board_buttons(), up_irqbutton() renamed to
  4318. board_button_irq(), up_ledinit() renamed to board_led_initialize(),
  4319. up_ledon() renamed to board_led_on(), and up_ledoff() renamed to
  4320. board_led_off(). All prototypes removed from board.h header files.
  4321. Now ONLY prototypes in include/nuttx/arch.h.
  4322. * Applications
  4323. - NSH: Refactor. Separate NSH command handling and command execution
  4324. from NSH line parsing.
  4325. - NSH: Will now support multiple commands on a command line, each
  4326. separated with a semi-colon.
  4327. - NSH: Add support of commands enclosed in back quotes as command
  4328. arguments.
  4329. - NSH: Can now handle arguments that are concatenations of constant
  4330. strings, command return data, application return data, and
  4331. environment variables.
  4332. - NSH: Add true and false commands.
  4333. - NSH: Add support for while-do-done and until-do-done loops. These
  4334. only work when executing a script file because they depend on the
  4335. ability to seek in the file to implement the looping behaviors.
  4336. Can be conditionally compiled out to reduce footprint.
  4337. - NSH: Loosen up if-then-else-fi syntax to allow a command to be on
  4338. the same line as the then or else tokens like:
  4339. "if true; then echo true; else echo false; fi". More like bash.
  4340. - NSH: Add a break command that can be executed with a loop to
  4341. terminate the loop immediately.
  4342. - system/inifile: A simple .INI file parser.
  4343. - system/vi: Add support for a tiny, VI work-alike editor. This is
  4344. a minimal full screen editor that works with a terminal emulator
  4345. that using VT100 commands.
  4346. Efforts In Progress. The following are features that are partially
  4347. implemented but present in this release. They are not likely to be
  4348. completed soon.
  4349. * kconfig-fronted Configuration:
  4350. - Conversion of old configurations to use the kconfig-frontends
  4351. tool is an ongoing effort that will continue for some time.
  4352. At this time, only 53% of the configurations have been converted
  4353. to use the kconfig-frontends tools.
  4354. Bugfixes (see the ChangeLog for details). Some of these are very important:
  4355. * Core OS
  4356. - Added missing sem_timedwait() system call.
  4357. * Networking
  4358. - Prevent tcp_connect callback from being double freed. From Max
  4359. Holtzberg
  4360. - uiplib: Support new definitions and state passing for network
  4361. device status. From Maz Holtzberg.
  4362. * File Systems
  4363. - FAT: (1) A correction to FAT cluster allocation, and (2) Fix to some
  4364. root directory logic that was conditionally done only for FAT 32.
  4365. Apparently this needs to done for all FAT types. Both from Andrew
  4366. "Tridge" Tridgell via Lorenz Meier.
  4367. * Binary Formats
  4368. - Fix a small memory leak when attempting to load a program from a file.
  4369. * Cortex-A8/9
  4370. - Fix some errors in the cache invalidation logic (only seem to matter
  4371. for Cortex-A8).
  4372. - Add more nop's after enabling the MMU. The cortex-a8 seems to need
  4373. these
  4374. * Graphics
  4375. - Fix a typo that caused a compilation error when
  4376. CONFIG_NXCONSOLE_BPP < 8. From Librae
  4377. * ARMv7-M
  4378. - Correct alignment of RAM vector table.
  4379. - Interrupt handling: Do not disable and enable the IRQ on each
  4380. entry, (2) this interferes with controlling the IRQ interrupt
  4381. setting from interrupt handlers, and (3) up_disable_irq() does
  4382. not work anyway so that this has never done anything.
  4383. - Fix all implementations of up_disable_irq() for all Cortex-M3 and
  4384. M4 architectures: To enable an interrupt on the Cortex-M3/4 CPU,
  4385. you need to set a bit in the ISER register. To disable the
  4386. interrupt, you need to set a bit in the ICER register. Existing
  4387. logic was trying to disable interrupts by clearing the bit in the
  4388. ISER register. That will not work; writing a '0' to the ISER
  4389. register has no effect. That means that up_disable_irq() was
  4390. doing nothing! It turns out that that is not really important
  4391. because up_disable_irq() is not really used for that purpose. But
  4392. some spurions STM32 ADC interrupts have been reported to me and this
  4393. turned out to be the cause in that case. Thanks to Manuel Stühn for
  4394. the tip.
  4395. * STMicro STM32
  4396. - Fix configuration and pin definitions that would prevent building
  4397. USB for the connectivity and performance lines.
  4398. - STM32L15xx: Fix a typo in USB pin definitions
  4399. - Fix pin definition names for SPI2 MOSI and MISO. Noted by Brian Webb
  4400. - Various fixes for STM32F103ZE SPI3 pin mapping definitions. From
  4401. Steve Redler IV
  4402. * STMicro STM32 Boards
  4403. - Olimex STM32-P107: Failed to build if SPI3 for UEXT is not remapped.
  4404. From Max Holtzberg
  4405. * x86 Boards
  4406. - Add a configuration option to select the -m32 compiler option when
  4407. building for a 32-bit target on a native 64-bit compiler. So far,
  4408. only used for the qemu/i486 configuration.
  4409. - Patch from Matt Campbell to fix 'Error: .size expression for idle_stack
  4410. does not evaluate to a constant".
  4411. * Library
  4412. - strftime(): Needs null termination on the generated string. From
  4413. Max Holtzberg.
  4414. - Typo in ctype.h macro name: iscntrl(), not iscontrol().
  4415. - If there are no arguments (argc == 1), then getopt() will leave the
  4416. optind variable in an undefined state (2014-1-20).
  4417. - ARMv7-M memcpy(): Assembler changes with the gcc-47 distribution
  4418. from ARM mean that we need to be explicit about branch sizes; one
  4419. or more of the wide branch opcodes results in bad table branching.
  4420. From Mike Smith.
  4421. * Configuration/Build System
  4422. - Fixes for some tools/ for Windows build issues from Max Holtzberg.
  4423. - Config.mk: 'cypath' must be called if we are using a Windows native
  4424. toolchain with the Cygwin 'make' to convert paths to proper
  4425. Windows paths. From Richard Cochran.
  4426. - ARM Makefile: Dependency directory list is now computed from the
  4427. VPATH. From Richard Cochran.
  4428. - builtin/Makefile: Fixes for native Windows build from Max Holtzberg.
  4429. - Refactor some configuration dependencies: NSH networking features
  4430. should depend on netutil selections; netutil selections, in turn,
  4431. should depend on networking selections.
  4432. * Applications
  4433. - NSH: Modified the df -h logic to eliminate truncating numbers in
  4434. conversion (like 7900 -> 7M). From Ken Pettit.
  4435. NuttX-7.1
  4436. ---------
  4437. The 101st release of NuttX, Version 7.1, was made on March 15, 2014,
  4438. and is available for download from the SourceForge website. Note
  4439. that release consists of two tarballs: nuttx-7.1.tar.gz and
  4440. apps-7.1.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  4441. file for build information).
  4442. The previous NuttX version was 6.33. The NuttX minor version number is
  4443. incremented on each release, but the major version number is incremented
  4444. only when an incompatibility with previous versions is included in the
  4445. release. In this case, the legacy, manual configuration is no longer
  4446. supported by the NuttX build system beginning with NuttX 7.1. Only the
  4447. newer configurations generated by the kconfig-frontends tools will generate
  4448. viable NuttX configurations.
  4449. All board configurations in the NuttX source tree have been converted to
  4450. use the newer configuration, but if you have some older style configurations
  4451. for you board, you will need to convert those configurations to use the
  4452. kconfig-frontends tools before taking any new code from the repository. See
  4453. https://cwiki.apache.org/confluence/display/NUTTX/Converting+Legacy+Configurations+to+Use+kconfig-mconf
  4454. for some guidelines.
  4455. Additional new features and extended functionality:
  4456. * Core OS:
  4457. - System time logic now includes logic to measure and calculate the
  4458. CPU load percentage (from David Alessio). This CPU load logic
  4459. extended to keep counts on each thread. The per-thread CPU is
  4460. now reported in the procfs under <pid>/loadavg An asynchronous,
  4461. "external" clock may be used to drive the CPU load calculations
  4462. for more accurate measurements when needed.
  4463. * File Systems:
  4464. - As mentioned above, the per-thread CPU load information is now
  4465. reported in the procfs under <pid>/loadavg.
  4466. - Many file system interfaces have been extended to operate on the
  4467. top-level NuttX pseudo filesystem. These include rmdir, mkdir,
  4468. rename, and unlink. This capability can be disabled with
  4469. CONFIG_DISABLE_PSEUDOFS_OPERATIONS in order to keep the footprint
  4470. small.
  4471. * Networking:
  4472. - Numerous updates and improvements to the CC3000 driver from David
  4473. Sidrane.
  4474. * Common Drivers:
  4475. - Defined a mouse interface that is very similar to a touchscreen
  4476. interface, but allows reporting of all mouse buttons. Also, unlike
  4477. touchscreen drivers, mouse drivers need to report positional data
  4478. with no button is pressed so that the mouse position can drive a
  4479. cursor.
  4480. - Added support for a USB HID boot mouse device. Cursor support is
  4481. not integrated and must be provided by the application based upon
  4482. the reported mouse data.
  4483. - Support added for the MIO283QT9A LCD from Toby Duckworth.
  4484. * Atmel SAMA4E:
  4485. - Added complete architecture support for the Atmel AT91 SAM4E
  4486. Cortex-M4F parts.
  4487. * Atmel SAM4E Board Support:
  4488. - Add board support for the SAM4E-EK board.
  4489. * Atmel SAM4E Drivers:
  4490. - Added logic to manage the Cortex-M Cache Control block.
  4491. - Developed and integrated an Ethernet MAC driver for the SAM4E.
  4492. - Backported the SAMA5 SPI driver to the SAM3/4 architecture. The
  4493. SAMA5 version supports both multiple SPI peripherals as needed by the
  4494. SAM3A and SAM3X and also supports DMAC (but not PDC) needed by the
  4495. SAM4E.
  4496. * Atmel SAM D20:
  4497. - Added basic architecture support for the Atmel AT91 SAM D20
  4498. Cortex-M0+ parts.
  4499. * Atmel SAM D20 Board Support:
  4500. - Added basic support for SAM D2 Xplained Pro board. Currently, the
  4501. NuttShell (NSH) works reliably over a serial port. An SPI driver
  4502. has also been developed. Work with the SAM D20 has been temporarily
  4503. stopped, however, in order to focus on the SAM4E-EK.
  4504. * TI Tiva TMC4C123G:
  4505. - Added architecture support for the TI Tiva TM4C123G parts. This was
  4506. merged into the existing support for the LM3S and LM4F families.
  4507. All directory, file, and function references changed from lm to tiva.
  4508. * TI Tiva TMC4C123G Board Support:
  4509. - Added basic board support for the TM4C123G-Launchpad. As of this
  4510. release the TM4C123G-Launchpad board support is untested and likely
  4511. incomplete.
  4512. * STMicro STM32 Boards:
  4513. - The Mikroe STM32F4 can now support the newer MIO283QT9A LCD. From
  4514. Toby Duckworth.
  4515. - Miscellaneous changes to better support FPU on STM32F429 Discovery
  4516. from David Alessio.
  4517. * NXP LPC2378 Drivers:
  4518. - Incorporated I2C and SPI drivers for the LPC23xx from Lizhuoyi.
  4519. * QEMU i486 Drivers:
  4520. - New QEMU keyboard and VGA drivers from Lizhuoyi.
  4521. * Documentation:
  4522. - Added a coding standards document. See
  4523. https://nuttx.apache.org/docs/latest/contributing/coding_style.html
  4524. * Configuration/Build System:
  4525. - A configuration option, CONFIG_DEFAULT_SMALL, was added to select
  4526. default values for configuration variables based upon whether you
  4527. want a smaller footprint or more features. This is not very useful
  4528. if you are modifying existing configurations because then the
  4529. default values do not apply.
  4530. - CONFIG_DEFAULT_SMALL has been defined on all tiny MCU configurations
  4531. so that they do not grow so rapidly when new, optional features are
  4532. added.
  4533. - The legacy, manual configuration is no longer supported by the
  4534. NuttX build system. Only the newer configurations generated by
  4535. the kconfig-frontends tools will generate viable NuttX
  4536. configurations. All board configurations in the NuttX source tree
  4537. have been converted to use the newer configuration, but if you have
  4538. some older style configurations for you board, you will need to
  4539. convert those configurations to use the kconfig-frontends tools. See
  4540. https://cwiki.apache.org/confluence/display/NUTTX/Converting+Legacy+Configurations+to+Use+kconfig-mconf
  4541. for some guidelines.
  4542. * Applications:
  4543. - NSH can now use an EMACS-like command line editor. This CLE, is
  4544. really more like the traditional readline than is the default, tiny
  4545. the NuttX readline .
  4546. - The touchscreen example can now be configured to work with either a
  4547. touchscreen or a mouse device.
  4548. - Several NSH commands can now be used to operate on objects in the
  4549. top-level pseudo-filesystem: rmdir, mkdir, mv, and rm. This
  4550. capability can be disabled with CONFIG_DISABLE_PSEUDOFS_OPERATIONS
  4551. in order to keep the footprint small.
  4552. - If both the CPU load feature and the procfs features are enabled,
  4553. then the NSH 'ps' command will show the CPU load used by each
  4554. thread.
  4555. Bugfixes (see the ChangeLog for details). Some of these are very important:
  4556. * Core OS:
  4557. - task_terminate() always returned an error because the return value
  4558. was not being set correctly (from Gosha).
  4559. - nanosleep() Fix a missing call to re-enable interrupts (from Jason
  4560. Jiang).
  4561. * File Systems:
  4562. - Fixed an error in the FAT logic that can cause file corruption. The
  4563. error conditions are rare and only seen with very large files (from
  4564. Andrew Tridgell). This replaces a previous, partial fix for the same
  4565. problem.
  4566. - Fixed memory leaks in the NXFFS open() and stat() implementations
  4567. (from Lzyy).
  4568. - The interfaces include opendir(), readdir(), et al, were modified so
  4569. that errors will not be reported if you attempt to list a empty
  4570. pseudo-directory.
  4571. * Networking:
  4572. - Fix one place where the connection reference count was not being
  4573. decremented in the socket close() logic. This is really a cosmetic
  4574. change BUT when CONFIG_DEBUG_NET is enabled, it will cause assertions.
  4575. - Backed out a small part of the NuttX 6.33 write buffering changed.
  4576. David G says that this causes problems in connecting to a server.
  4577. - In DHCPD, there was a place where the logic was calling ntohl()
  4578. inappropriately; the address was already in the correct order. How
  4579. could DHCPD have worked with this bug?
  4580. * TI Tiva/Stellaris Drivers:
  4581. - Fixed cut'n'paste error that prevented UARTS2-7 from being used with
  4582. the LM4F120 Launchpad.
  4583. - Fixed several errors there were unmasked with UARTs > UART2 are
  4584. enabled (grom Gosha).
  4585. * Allwinner A10 Drivers:
  4586. - Fixed cut'n'paste error that prevented UARTS2-7 from being used with
  4587. the pcDuino.
  4588. * NXP LPC17xx Drivers:
  4589. - Fix an compilation error that crept into the LPC17xx USB host driver.
  4590. * STMicro STM32 Drivers:
  4591. - Fix cloned typo in the serial driver: FLOWCONTROL vs FLOWCONROL.
  4592. - Disable SPI before changing DPI CR1 register (from David Sidrane).
  4593. - stm32 TIM: Set the timer CCMR when selecting timer channel. From
  4594. David Sidrane.
  4595. - Fix typo in a Makefile: stm32_pwm.c not stm32_psm.c. Noted by Max
  4596. Kriegleder.
  4597. * Library:
  4598. - More sscanf() bug fixes from David Sidrane.
  4599. * Header files:
  4600. - cstdbool: Ignore _Bool8 if CONFIG_C99_BOOL8=y
  4601. * Configuration/Build System:
  4602. - Several changes to restore the broken native Windows build
  4603. * NuttShell (NSH):
  4604. - Use strncpy vs strcpy in the Telnet console logic to avoid
  4605. overrunning the username and password buffers (from Bertold Van den
  4606. Bergh).
  4607. - Add a newline after printing the file in the 'cat' command. This
  4608. prevents the NSH prompt from be in the same line as the final line
  4609. of the file in the case where there is no newline at the end of the
  4610. file.
  4611. NuttX-7.2
  4612. ---------
  4613. The 102nd release of NuttX, Version 7.2, was made on April 29, 2014,
  4614. and is available for download from the SourceForge website. Note
  4615. that release consists of two tarballs: nuttx-7.2.tar.gz and
  4616. apps-7.2.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  4617. file for build information).
  4618. Additional new features and extended functionality:
  4619. * Core OS:
  4620. - Add support for CLOCK_REALTIME. From Macs N.
  4621. * Network Utilities:
  4622. - Add a very primitive NTP client.
  4623. - DNS resolver: Long needed major clean up for coding style and
  4624. unification of naming conventions (resolv vs dns).
  4625. * Common Drivers:
  4626. - Add a new MTD driver that can be used to contain another driver and
  4627. force its apparent sector size to be 512 bytes.
  4628. - If DCD can support queuing of stall requests, then the USB MSC stall
  4629. work around delays are not necessary.
  4630. - Redesign threading module used with the USB MSC driver. It was using
  4631. pthreads before and these were changed to a kernel thread. The reason
  4632. for this has to do with task grouping: A pthread is a memory of the
  4633. group of the task that started it. A kernel thread is independent of
  4634. the task that started in (other than knowing it as the parent). This
  4635. allows me to remove so kludge logic to "deparent" the pthread on
  4636. startup.
  4637. - Update the MIO183QT-9A LCD driver to support reading from the LCD.
  4638. From Toby Duckworth.
  4639. - Timer "upper half" driver and l"lower half" interface definition from
  4640. Bob Doiron.
  4641. * Atmel SAM4E/4S Board Support:
  4642. - All SAM4E configurations updated to run with 120MHz CPU speed and
  4643. with the CMCC enabled.
  4644. - Support for the SAM4S Xplained Pro board from Bob Doiron.
  4645. - Add watchdog driver. From Bob Doiron.
  4646. * Atmel SAM4E/4S Drivers:
  4647. - Add a USB full speed device driver (UDP) for the SAM4E.
  4648. - Add support in HSMCI and SPI drivers to invalidate cached memory if
  4649. the CMCC is enabled.
  4650. - Add logic to handle SPI word widths > 8
  4651. - Port RTC driver from SAMA5 to SAM3/4. From Bob Doiron.
  4652. - HSMCI: Extensions from Bob Doiron needed to support PDC-based HSMCI
  4653. DMA transfers. Verified on the SAM4S Xplained Pro.
  4654. * Atmel SAMA5:
  4655. - Add support for the SAMA5D36 chip.
  4656. - Add functions to calculate PLLACK, PCK, and MCK frequencies given
  4657. the main clock frequency.
  4658. - Implemented RAM functions. When booting directly into NOR flash,
  4659. reconfiguring the PLL while executing out of NOR FLASH causes
  4660. crashes. This was fixed by David Sidrane by implementing RAM
  4661. functions. The killer code is copied and executed from ISRAM and
  4662. the crash is avoided.
  4663. * Atmel SAMA5 Drivers:
  4664. - Add support for the SAMA5D3 DBGU.
  4665. * Atmel SAMA5 Board Support:
  4666. - Add a board support configuration for the Atmel SAMA5D3 Xplained
  4667. board running out of SDRAM. When booting from SDRAM, start-up logic
  4668. needd to query the PMC registers to determine the MCK, PCK, etc.
  4669. - For all SAMA5 boards, added support for 528MHz clocking.
  4670. * TI Tiva/Stellaris:
  4671. - Modify the logic to disables the interrupts and sets the default
  4672. interrupt priority so that it uses the ICTR to get the number of
  4673. interrupt lines/registers. This is instead of using some fixed
  4674. number of initializations based a priori knowledge of the number
  4675. of interrupt lines in the MCU.
  4676. * STMicro STM32
  4677. - Add support for the STM401RE. From Frank Bennett.
  4678. * STMicro STM32 Boards:
  4679. - STM32F4Discovery: Add support to register keyboard and mouse
  4680. classes if so configured. From Leo.
  4681. - Add support for the Nucleo-F401RE board. From Frank Bennett.
  4682. * STMicro STM32 Drivers:
  4683. - Add STM32 Ethernet IGMP hashing support. From Manuel Stühn.
  4684. - OTG FS Host: USB host tracing added by Leo.
  4685. * Freescale Kinetis
  4686. - Modify the logic to disables the interrupts and sets the default
  4687. interrupt priority so that it uses the ICTR to get the number of
  4688. interrupt lines/registers. This is instead of using some fixed
  4689. number of initializations based a priori knowledge of the number
  4690. of interrupt lines in the MCU.
  4691. * NXP LPC17xx
  4692. - Modify the logic to disables the interrupts and sets the default
  4693. interrupt priority so that it uses the ICTR to get the number of
  4694. interrupt lines/registers. This is instead of using some fixed
  4695. number of initializations based a priori knowledge of the number
  4696. of interrupt lines in the MCU.
  4697. * ZiLOG ZNEO Drivers
  4698. - Added ZNEO ESPI driver.
  4699. * Library:
  4700. - Finish incomplete support for ferror(). From Macs N.
  4701. * Documentation:
  4702. - UsbTrace.html: Add some discussion of the USB monitor.
  4703. * Configuration/Build System:
  4704. - compiler.h: Add macro UNUSED() that can be used to eliminate
  4705. warnings about variables that are set to values that are not
  4706. used.
  4707. * Debugging Support:
  4708. - Add a configuration option to enable dumping of the USB trace buffer
  4709. on assertion.
  4710. * Applications:
  4711. - IGMP Example: Fill out Kconfig file; update makefile so that the
  4712. IGMP example can be used as an NSH built-in application. From Manuel
  4713. Stühn.
  4714. - lcdrw Example: Fill out empty Kconfig file.
  4715. - touchscreen Example: Add a configuration option to indicate if
  4716. architecture-specific initialized is required, yes or no.
  4717. - System usbmsc: Back out the USBMSC daemon... it is no longer needed
  4718. with the recent fix to the USBMSC class driver.
  4719. - NSH: malloc/free IOBUFFER for 'cat' and 'hexdump' commands instead of
  4720. using the stack. From Bob Doiron.
  4721. - cpuhog, serialblaster, and serialrx Examples: Stress test examples
  4722. added by Bob Doiron.
  4723. Bugfixes (see the ChangeLog for details). Some of these are very important:
  4724. * Core OS:
  4725. - errno_get_errno_ptr() and getpid(): Add some checks. If these
  4726. functions are called very early in initialization before the tasking
  4727. structures are initialized, they would not behave properly.
  4728. * Networking:
  4729. - IGMP-related bug fixes from Manuel Stühn.
  4730. - In netdev_findbyaddr(), skip network devices that are in the "down"
  4731. state. It does not make sense to consider an address match with a
  4732. "down" device. From Brennan Ashton.
  4733. * Network Utilities:
  4734. - DHCPD: The correct value of the PAD option. Should be zero, not
  4735. one. From Brennan Ashton.
  4736. - Corrections to the NTP client from Manuel Stuehn.
  4737. * Common Drivers:
  4738. - usbhost.h: Fix some USB HID-related conditional compilation. From Leo.
  4739. - USB HID mouse driver: Don't include NAKs from the device in the error
  4740. count. From Leo.
  4741. * TI Tiva/Stellaris:
  4742. - Add corrected control logic for TM4C125GXL based on logic from Daniel
  4743. Carvalho with modifications. The LM4F120 also works well with this
  4744. change.
  4745. * STMicro STM32 Drivers:
  4746. - STM32 F2 SPI: Correct a mapping for SPI MOSI pin. From dlsitzer.
  4747. - OTG FS Host: Fixes related to low-speed devices and interrupt
  4748. endpoints from Leo. Necessary in order to use a USB HID mouse
  4749. device.
  4750. - STM32 SDIO: The dmaflight method must be conditioned on
  4751. CONFIG_SDIO_PREFLIGHT. Noted by Pelle Windestam.
  4752. - Sourceforge Ticket #26. up_prioritize_irq should not be called
  4753. if CONFIG_ARCH_IRQPRIO is not defined.
  4754. * Atmel SAM3/4:
  4755. - Fix some backward conditional compilation in the start-up logic.
  4756. - Fix initialization of the default interrupt priorities. This is
  4757. a critical bug fix!
  4758. - SAM4S: Fix error in macros that disable peripheral clocking. From
  4759. Bob Doiron.
  4760. * Atmel SAMA5:
  4761. - Fix double mapping of SDRAM when executing out of SDRAM. In this
  4762. case, the SDRAM was already mapping in arm_head.S.
  4763. - In clock configuration, the BMS bit handling was fixed to match
  4764. what the HW really does. From David Sidrane.
  4765. - TLB Bufferable bit did not do what I thought it was going to do.
  4766. I though I was selecting a write-through cache, but the result was
  4767. that all caching was disabled and NOR FLASH accesses were very slow.
  4768. - Move the un-definitions of __ramfuncs__ from the clock configuration
  4769. .c file to the .h file. Otherwise, the attribute will be applied
  4770. differently for the prototype and the function definition.
  4771. Sourceforge patch 38 from Luciano Neri.
  4772. * Atmel SAMA5 Drivers:
  4773. - Fix a case in the UDPHS driver where received status was not being
  4774. cleared, causing OUT SETUP commands to fail.
  4775. - TWI data sending fails to increment the number of bytes transferred
  4776. on first byte sent. from David Sidrane.
  4777. - If running from SDRAM, then BOARD_MCK_FREQUENCY is not a constant
  4778. and cannot be used in conditional compilation. All drivers fixed
  4779. EXCEPT for the PWM and Timer/Counter drivers which will need some
  4780. more extensive redesign.
  4781. * Atmel SAMA5 Boards:
  4782. - SAMA5D3x-EK: The red LED is controlled by PE24 which is also the
  4783. camera/ISI interface reset line. So if the a camera is installed,
  4784. then we must avoid controlling the red LED or we inadvertently
  4785. also reset the camera module. Noted by David Sidrane.
  4786. - Header files reference type xcpt_t in certain configurations and
  4787. so must include nuttx/irq.h. This is Sourceforge bug 25 submitted
  4788. by Luciano Neri.
  4789. * NXP LPC17xx Drivers
  4790. - arm/src/lpc17xx/Kconfig and lpc17_ethernet.c: The default interrupt
  4791. priority should be default, not the highest priority (2014-4-19).
  4792. * ZiLOG ZNEO
  4793. - Fix calculation of timer reload and prescaler. The timer frequency
  4794. was way too fast.
  4795. * Library:
  4796. - strncpy(): Change ordering of test and copy. Logic would have
  4797. failed if n=0; one byte was always copying before testing
  4798. for the end of the copy.
  4799. - Fix a counting error in the return value from sscanf(). Noted by
  4800. kfrolov. Also, sscanf() should return EOF if no values were
  4801. converted.
  4802. - Fix a logic error in ftell(). It was simply using the file offset
  4803. and did not take into account data buffered in memory. From Macs N.
  4804. - sccanf(): Use stroul() vs strol() with %u format otherwise, range
  4805. of values is restricted because of sign bit. From kfrolov.
  4806. * Configuration/Build System:
  4807. - Fix a build error that occurs when only USB device tracing is enabled.
  4808. * NuttShell (NSH):
  4809. - Fix NuttShell version number display in the NSH welcome message.
  4810. version.h was not being included.
  4811. * Other Applications:
  4812. - sysinfo: CONFIG_VERSION_BUILD is a string an needs to be
  4813. printed with %s, not %d. Noted by Librae.
  4814. - nxplayer: Compilation failure in one configuration reported by
  4815. Manuel Stuhn.
  4816. - System sdcard: Remove an STM32 dependency. From Bob Doiron.
  4817. - telnetd Example: Naming is confused. In someplaces 'telnetd',
  4818. and in others 'shell.' All changes to telnetd. Noted by Pelle
  4819. Windestam.
  4820. NuttX-7.3
  4821. ---------
  4822. The 103rd release of NuttX, Version 7.3, was made on June 25, 2014,
  4823. and is available for download from the SourceForge website. Note
  4824. that release consists of two tarballs: nuttx-7.3.tar.gz and
  4825. apps-7.3.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  4826. file for build information).
  4827. Additional new features and extended functionality:
  4828. * Core OS:
  4829. - Dynamic loader: Framework to support Pascal P-Code as a binary
  4830. format that can be exec'ed from a file system.
  4831. - Dynamic Loader: Extend the binfmt interface to handle error
  4832. conditions where format-specific clean-up is needed in the event
  4833. of error conditions. This is needed by the P-Code binfmt.
  4834. * Networking
  4835. - IOB: Add a generic I/O buffer chain logic. This logic uses small,
  4836. pre-allocated buffers that can be chained together to support
  4837. transfers of any size, using fewer resources and also without
  4838. committing in advance to a TCP window size. There is now only
  4839. one I/O type used in the networking and it is these I/O buffer
  4840. chains.
  4841. - TCP Write Buffering: TCP write buffering logic converted to use
  4842. I/O buffer chains.
  4843. - TCP Read-Ahead Buffering: TCP read-ahead buffering logic converted
  4844. to use I/O buffer chains.
  4845. - Includes logic to support throttling of read-ahead buffering if
  4846. the read-ahead buffering is competing with write buffering for
  4847. I/O buffers.
  4848. - Raw Sockets: Add support for the AF_PACKET socket family. From
  4849. Daniel Lazlo Sitzer.
  4850. * Common Drivers:
  4851. - W25 Serial FLASH driver extended by Mark Whitehorn to support the
  4852. 8Mbit W25Q80BV part.
  4853. - Add support for Fujitsu MB85RS1MT RAMTRON part. From Charles Ash.
  4854. - Enhancements to the generic timer interface to support capture mode
  4855. from Bob Doiron.
  4856. - Add an rxflowcontrol method to the serial interface to better
  4857. 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.
  4858. * Atmel SAM4C
  4859. - Add support for the SAM4CM family. From Max Neklyudov.
  4860. * Atmel SAM4E/4S Drivers:
  4861. - RTT driver from Bob Doiron. Also added high resolution RTC
  4862. emulation using the RTT for the sub-second counter.
  4863. * Atmel SAM4E/4S Board Support:
  4864. - The SAM4S Xplained Pro now uses the extended timer/counter
  4865. features. From Bob Doiron.
  4866. - Added a touchscreen and LCD driver for the SAM4E-EK board (the LCD,
  4867. however, not yet fully functional).
  4868. * Atmel SAMA5:
  4869. - Optimized, high performance, assembly language memcpy(). This is
  4870. the same optimized memcpy() function that Mike Smith brought in
  4871. for the ARMv7-M with minor tweaks by David Sidrane to work with
  4872. the ARMv7-A.
  4873. - Basic support added for the SAMA5D4 family.
  4874. * Atmel SAMA5 Drivers:
  4875. - SAMA5D4: New drivers unique to the SAMA5D4: XDMAC, SAIC, and
  4876. others.
  4877. * Atmel SAMA5 Board Support:
  4878. - SAMA5D4-MB: Initial board support for the SAMA5D4-MB/EK boards.
  4879. * STMicro STM32
  4880. - Add support for the STM32152 and STM32162 Medium+ density parts
  4881. (plus miscellaneous other improvements to the original STM32151
  4882. logic). From Jussi Kivilinna and Sami Pelkonen.
  4883. * STMicro STM32 Boards:
  4884. - Support for the Olimex STM32 H405 board contributed by Martin
  4885. Lederhilger.
  4886. * STMicro STM32 Drivers:
  4887. - Implement the rxflowcontrol method to the serial interface to better
  4888. support RX flow control. From Jussi Kivilinna.
  4889. * NXP LPC17xx Drivers:
  4890. - Added support for the RTC, ADC, DAC, Timers, PWM and MCPWM
  4891. drivers. From Max (himax).
  4892. * NXP LPC17xx Boards:
  4893. - Support for the RTC, ADC, DAC, Timers, PWM and MCPWM integrated
  4894. in the LPCXpresso LPC1768 board support. From Max (himax).
  4895. * Library:
  4896. - Add support for seek-able streams.
  4897. * Configuration/Build System:
  4898. - Restructured network directories, header files, and naming to
  4899. better modularize the networking and to better integrate the
  4900. networking with the rest of NuttX.
  4901. * Applications:
  4902. - prun: An NSH built-in application that can be used to run
  4903. Pascal P-Code programs either programmatically or from the NSH
  4904. command line.
  4905. - netpkt: A "raw" socket test from Lazlo Sitzer.
  4906. - hex2bin: A library and built-in task to convert from
  4907. 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).
  4908. 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):
  4909. * Core OS:
  4910. - Dynamic Loader: Fix an error in a symbol table search function.
  4911. Noted by Pelle Windestam.
  4912. - Dynamic Loader: Fix a critical error in exec(); argv was not
  4913. being passed.
  4914. - mq_notify: Test for a valid signal number was inverted; this
  4915. function could not have been working correctly before??? From
  4916. eero.nurkkala.
  4917. - Fix typo in conditional compilation: CONFIG_CLOCK_MONOTONIC vs.
  4918. CLOCK_MONOTONIC. From Manuel Stühn.
  4919. * Graphics
  4920. - Fix typos in several RGB conversion macros.
  4921. * Networking:
  4922. - Modify TCP timeout handling to provent situations where connections
  4923. may not be freed. From Max Holtzberg.
  4924. - Improved TCP fallback allocation logic from Max Holtzberg. Also,
  4925. fallback mechanism is disabled when SO_LINGER is to prevent
  4926. deadlocks.
  4927. - Write Buffering: Add checks from buffer allocation failures. From
  4928. Max/Himax.
  4929. * Network Utilities:
  4930. - webserver: httpd_fs_open() should return OK on success and ERROR on
  4931. failure, not 1 and 0.
  4932. * Common Drivers:
  4933. - Make sure that all references to up_prioritize_irq() are
  4934. conditioned on CONFIG_ARCH_IRQPRIO. Problem noted by Mike Smith.
  4935. - CC3000: Correct SPI mode for CC3000 is CPOL=0 CHPA=1. From Jussi
  4936. Kivilinna.
  4937. - CC3000: Fix a race condition in thread start-up logic. From Jussi
  4938. Kivilinna.
  4939. - CC3000: Additional fixes including a compilation failure if POLL is
  4940. enabled. From Jussi Kivilinna.
  4941. * USB Drivers:
  4942. - CDC/ACM and PL2303 device: Reset RX head to avoid resending last
  4943. serial data when USB cable disconnected/re-connected. From
  4944. Lizhuoyi.
  4945. * TI Tiva/Stellaris Boards:
  4946. - The Nucleo-F401RE has no on-board crystals and, hence, needs to run
  4947. with the PLL input from the on-chip HSI clock.
  4948. * STMicro STM32 Drivers:
  4949. - Serial: Handle configuration for the case of 8-bit data with
  4950. parity. From Freddie Chopin.
  4951. * Atmel SAM3/4 Boards:
  4952. - There was a cloned error in all SAM3/4 board configurations (and
  4953. for a few other architectures as well). Button interrupts not
  4954. being disabled after being detached. As a result, unexpected
  4955. interrupts could be received after the button interrupt was
  4956. detached.
  4957. * Atmel SAMA5:
  4958. - Fix some critical typos in the SAMA5D3 DMA definitions.
  4959. * STMicro STM32 Drivers
  4960. - I2C: Add an alternative I2C implementation for the STM32 F103 that
  4961. works around errata in that specific part. From Patrizio Simona.
  4962. - RTCC: Add retry logic to RTC initialization. It sometimes takes
  4963. longer for the RTC to initialize, at least as noted on an F2 part.
  4964. From Daniel Lazlo Sitzer.
  4965. * NXP LPC17xx Drivers
  4966. - GPDMA: Fix an error when DMA is started: The read-modify-write
  4967. fails when the DMA is started. This is because the value read is
  4968. not the same as the value set (on write it is the number of
  4969. transfers to do; on read it is the number of transfers completed).
  4970. From Lizhuoyi.
  4971. * Library:
  4972. - snprintf(): If the size passed to snprintf() is zero, then
  4973. snprintf() must write nothing, but instead return the size of the
  4974. buffer needed to hold the entire string. From Sami Pelkonen.
  4975. * Configuration/Build System:
  4976. - The alternate console device CONFIG_NSH_CONDEV must not be defined
  4977. unconditionally. This causes errors when using Telnet sessions.
  4978. This was solved by adding CONFIG_NSH_ALTCONDEV: CONFIG_NSH_ALTCONDEV enables or disables the feature then, if
  4979. enabled, CONFIG_NSH_CONDEV provides the alternative console
  4980. device name.
  4981. - Many files: Convert all old-style GCC variadic macros to the C99
  4982. form. Recent GCC changes tightens up that behavior and can cause
  4983. some problems (at least for the IAR compiler for some reason).
  4984. Noted by Bob Grimes.
  4985. - tools/configure.sh: In-place SED edit messes up permissions on
  4986. windows. From Hannes Delago.
  4987. * Build Tools:
  4988. - tools/mkfsdata.pl: Apparently, the trailing the 0x00 in http
  4989. server files is seen as a bug in javascript and images. From
  4990. Max/Himax.
  4991. * Other Applications:
  4992. - I2C Tool: Fix to show the updated register address on each
  4993. fetch (vs. showing the same starting address each time). From
  4994. Ryan VanSickle.
  4995. - CLE was not returning the terminating newline character. But
  4996. reported by Max kriegleder.
  4997. NuttX-7.4
  4998. ---------
  4999. The 104th release of NuttX, Version 7.4, was made on August 15, 2014,
  5000. and is available for download from the SourceForge website. Note
  5001. that release consists of two tarballs: nuttx-7.4.tar.gz and
  5002. apps-7.4.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  5003. file for build information).
  5004. Additional new features and extended functionality:
  5005. * Core OS:
  5006. - Beginnings of a crypto/ subsystem from Max Neklyudov
  5007. - Tickless operation: NuttX now supports a mode with no periodic
  5008. timer interrupts. Rather, timed events are handle via an interval
  5009. timer. This (1) lowers the rate of interrupt processing to timer
  5010. events, (2) gives much high timing resolution, and (3) allows lower
  5011. power modes of operation where the CPU is not constantly being
  5012. interrupted by the timer.
  5013. - Restructured the OS files under sched/ to better support the already
  5014. modular nature of the RTOS.
  5015. * Networking
  5016. - Substantial directory and header file reorganization and renaming to
  5017. make the NuttX networking implementation more modular.
  5018. - Add network device ioctl to access PHY registers. From Daniel Lazlo
  5019. Sitzer
  5020. * Binary Loader:
  5021. - Various changes associated with symbol tables from Pelle Windestam.
  5022. * Graphics:
  5023. - colorcmp(): New utility to compare two colors.
  5024. - The initial background color is now configurable. Includes logic to
  5025. eliminates multiple background updates to get the right color.
  5026. - Minor configuration changes to handle mouse X/Y and touchscreen
  5027. X/Y differently.
  5028. * File System/Block Drivers:
  5029. - SmartFS: Increase some variables from uint16_t to uint32_t to handle
  5030. larger device sizes. From Ken Pettit.
  5031. - Add configurable AES encryption support to the block-to-character
  5032. (BCH) driver. This allows any block device to be accessed as an
  5033. encrypted character device. From Max Nekludov
  5034. - Add an MTD layer that will add read-ahead or write buffering to any
  5035. MTD driver (incomplete).
  5036. - Automounter: Add support for an auto-mounter that will automatically
  5037. mount and unmount a file system a media is inserted and removed
  5038. * Audio/Audio Drivers
  5039. - WM8904 audio CODEC driver.
  5040. - PCM .WAV file decoder. Fast forward implemented with sub-sampling
  5041. (currently no rewind support).
  5042. - Add a NULL audio device that can be used to simply unit-level testing
  5043. of audio decoders.
  5044. - Audio subsystem now supports interfaces for fast-forward and rewind
  5045. needed by CMediaPlayer; add hooks for equalizer settings needed by
  5046. the WM8904 CODEC.
  5047. * Other Common Drivers:
  5048. - MTD: Extend erase block size to 18-bits in order (decrease block
  5049. size to 14-bits) to handle parts with large erase blocks. From Kosma
  5050. Moczek
  5051. - maxTouch: Add support for the Atmel maXTouch touchscreen controller.
  5052. * Host Simulation:
  5053. - Provides the timers needed to support the Tickless mode of operation.
  5054. * Atmel SAM4C:
  5055. - Add SAM4CM IPC register header file. From Max Neklyudov
  5056. - Various fixes PMC and clock configuration for the SAM4CM port from
  5057. Max Neklyudov
  5058. * Atmel SAM4E/4S Drivers:
  5059. - SAM4 AES driver. Contributed by Max Neklyudov
  5060. * Atmel SAMA5:
  5061. - Add logic to redirect all SAMA5D4 interrupts to the AIC
  5062. - Add a configuration option to reserve DRAM for a framebuffer when
  5063. executing out of DRAM. This optional was available before when
  5064. executing out of NOR, but needs to work a little differently in
  5065. this case.
  5066. - Add SAMA5 slow (32.768KHz) clock support.
  5067. - Add support for the ARM L2CC-PL310 L2 cache. The system runs with
  5068. L2CC cache enabled but there is some issues still with the LCD DMA;
  5069. I suspect that the memory timing configuration for L2CC needs to
  5070. be tuned.
  5071. - Provides the timers needed to support the Tickless mode of operation.
  5072. * Atmel SAMA5 Drivers:
  5073. - XDMAC-based HSCMI driver for the SAMA5D4
  5074. - Adapt the SAMA5D3 LCDC driver to work with the SAMA5D4 which has
  5075. no hardware cursor.
  5076. - PIO: Add a new interface sam_pio_forceclk() that can be used to
  5077. force PIO clocking on. I am afraid I was too conservative with
  5078. PIO clocking in the initial design; this is the price.
  5079. - TWI: Now supports the up_i2creset() method.
  5080. - TWI: Use sam_pio_forceclk() so that we can read the current state
  5081. of an open-drain output in the TWI reset logic.
  5082. - SSC: SCC Frame Synch Delay and Start Delay are now configurable.
  5083. - PCK: Add the slow clock and the main clocks as options for the
  5084. PCK configuration.
  5085. - Timer/Counter: Can now handle non-constant BOARD_MCK_FREQUENCY. Also
  5086. now supports methods to attach client interrupt handlers
  5087. - One shot and free-running timers. These are wrappers around the low
  5088. level timer/counter logic to provide one-shot and free-running
  5089. timers. These were developed to support the Tickless operation, but
  5090. can be used for any purpose.
  5091. * Atmel SAMA5 Board Support:
  5092. - Add a boot loader that runs from ISRAM and loads an Intel HEX file
  5093. into DRAM.
  5094. - Add a configuration that will load a bootloader into AT25 Serial
  5095. FLASH
  5096. - SAMA5D4-EK NSH configuration supports many more features: RTC, HSCMI
  5097. card detection, maXTouch touchscreen, TM7000 LCD, the command line
  5098. media player (currently using the NULL audio device), automounter,
  5099. and others.
  5100. - SAMA5D4-EK: Add an NxWM configuration using the TM7000 LCD with
  5101. the maXTouch multi-touch touchscreen.
  5102. - SAMA5D4-EK NxWM: Uses new, larger icons in configuration instead of
  5103. scaling.
  5104. - SAMA5D4-EK NxWM: The NxPlayer and audio system are now enabled in
  5105. the default configuration (but currently using the NULL audio
  5106. device). The automounter is used to automatically mount media
  5107. on an SD card.
  5108. - SAMA5D3x-EK: Add a configuration to support the command line
  5109. NxPlayer and to verify the WM8904 CODEC driver.
  5110. * STMicro STM32:
  5111. - Add support for the STM32F103RC and RD. From Kosma Moczek
  5112. - Add a procfs entry to show the state of the CCM heap usage.
  5113. From Pelle Winderstam
  5114. * STMicro STM32 Drivers:
  5115. - Unconfigure GPIO pins when closing a serial port to prevent back
  5116. effects from back-powering on the TX pin. From Kosma Moczek
  5117. * NXP LPC17xx Drivers:
  5118. - ADC: Added burstmode ADC conversion mode, with CONFIG_ADC_BURSTMODE
  5119. option in Kconfig. From Max
  5120. - Ethernet: Added option to use the kernel worker thread to do most of
  5121. the workload with CONFIG_NET_WORKER_THREAD option in Kconfig. From Max
  5122. - Ethernet: Critical bugfix: From time to time (after some hours) the
  5123. Ethernet receiver would lose one receive interrupt and the IP stack
  5124. never recover because there is no receive watchdog as the transmit
  5125. watchdog. From Max
  5126. * NXP LPC17xx Boards:
  5127. - mbed: Port ADC, DAC, and PWM logic from the configs/zkit-arm-1769.
  5128. From Max
  5129. - mbed: Eliminated a problem with PHY DP83848C : it doesn't need a
  5130. specific initialization on mbed. From Max
  5131. * Library:
  5132. - Adds support for localtime. From Max Neklyudov
  5133. * Configuration/Build System:
  5134. - Make variable definitions 'static const' when possible to save RAM
  5135. usage. From Kosma Moczek
  5136. * Applications:
  5137. - system/mdio: New PHY tool from Daniel Lazlo Sizter.
  5138. - NSH: Networking logic modified to handler the case of SLIP
  5139. transport. From Max Neklyudov.
  5140. - NSH: Add a configuration to use a USB keyboard for the stdin
  5141. device.
  5142. - NSH: Software assigned MAC address is now configurable. From Lazlo.
  5143. - NSH: Also add an option to let platform-specific logic select the
  5144. MAC address.
  5145. - NSH: There is now a configuration option that will bring up the
  5146. network on an separate thread. Since the network bring-up is
  5147. asynchronous, there are no serial console start-up delays due
  5148. to the network negotiation time.
  5149. - NxPlayer: Changes to integrate with Ken's NxWM::CMediaPlayer.
  5150. - NxPlayer: Add interfaces for fast-forward and rewind needed by
  5151. CMediaPlayer; add interface for equalizer settings needed by the
  5152. WM8904.
  5153. - NxPlayer: Supports new way of identifying the end of the audio
  5154. stream (see the Audio section above).
  5155. - Sudoku: Add a sudoku game.
  5156. 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):
  5157. * Graphics:
  5158. - NxConsole: Fix scrolling for the case of the framebuffer device. In
  5159. this case, the logic for clearing the vacated region at the bottom
  5160. was missing so garbage would scroll up from the last, uncleared
  5161. line.
  5162. * Networking:
  5163. - Important fix to the read-ahead buffer queue management: Consumed
  5164. bytes were being trimmed from the head of the queue, but the queue
  5165. head itself was not being updated. From Rony XLN.
  5166. - Fix an error in SLIP escaping. From Max Neklyudov
  5167. * Network Utilities:
  5168. - Fix an include file ordering problem when CONFIG_NET_STATISTICS=y.
  5169. - Move statistics from uip.h to new netstats.h to remove a circular
  5170. inclusion problem
  5171. - Various fixes for networking and tiny webserver from Max
  5172. - webclient: Fix to offset calculation from Rony Xln. Prevents 0x0a
  5173. at the beginning of lines.
  5174. - webserver: Fix some configuration usage issues. From Max.
  5175. - webserver: Missing logic to close sockets on loop termination.
  5176. * File System / Block Drivers:
  5177. - SmartFS: Fix for a bug that would show up if CONFIG_MTD_BYTE_WRITE
  5178. was not selected and the SMART sector size was larger than the MTD
  5179. device's block size (like it would be if using SMARTFS on larger
  5180. flash devices). From Ken Pettit.
  5181. * Audio:
  5182. - Change how the end of the audio stream is detected by the leaf audio
  5183. component. This used to be done by looking for the first partial
  5184. buffer. That does not work with the in-place sub-sampling performed
  5185. by the PCM decoder: That always reduces the size of the buffer so
  5186. that all buffers only partially filled by the time they get to the
  5187. leaf. Now, a flag is set in the audio buffer flags set to indicate
  5188. the final buffer in the stream.
  5189. * Common Drivers:
  5190. - RAMLOG putc() method needs to set the errno and return EOF on a
  5191. failure.
  5192. - Add missing configuration option to select the MAX11802 touchscreen
  5193. controller. From Petteri Aimonen
  5194. * Atmel SAMA5D3/4:
  5195. - Fix logic in conversion of physical and virtual DRAM addresses when
  5196. running out of DRAM. This is an important bug fix for the SAMA5D3
  5197. and 4 when running out of DRAM .
  5198. - Critical SAMA5D3 and 4 bug fix: PIO clocking must be enabled for
  5199. all input pins or else the value that is read never changes.
  5200. * Atmel SAMA5D3/4 Drivers:
  5201. - OHCI: Fix an error in a DEBUGASSERT statement. Caused an
  5202. assertion to fire inappropriately when a low- or full-speed device
  5203. was removed and CONFIG_DEBUG=y
  5204. - OHCI: Pointers to allocated port values were not being
  5205. nullified after being deallocated. This caused some assertions
  5206. to fire when debug was enabled
  5207. - SSC: Needs to account for data offset in audio buffer
  5208. * ARMv7-M:
  5209. - Correct the initial value of the BASEPRI register. This was
  5210. apparently never being initialized! From Max
  5211. * STMicro STM32 Drivers:
  5212. - I2C: Fix missing configuration of GPIO pins in I2C driver. Fix
  5213. from Alex D.
  5214. - STM32 OTGFS device: Various changes to try to reduce that amount of
  5215. time in interrupts handles and with interrupts disabled. From
  5216. Petteri Aimonen
  5217. * Atmel SAM3/4 Drivers:
  5218. - Ethernet: Wrong bits being cleared before OR-ing in new settings.
  5219. - Ethernet: Fix an error in the function that determines the number
  5220. of free TX descriptors. This is an important bugfix on busy
  5221. networks.
  5222. - I2C: Test for read or write operation was reversed. How could
  5223. this have worked before?
  5224. * Atmel SAM3/4 Boards:
  5225. - SAM4S Xplained-Pro: Correct description of LEDs and usage. From
  5226. Kosma Moczek
  5227. * Atmel SAMA5:
  5228. - PIO: Fix definitions that could disable PIO interrupt support if only
  5229. PIOE interrupts were enabled
  5230. - PIO: Macro SAM_PION_VBASE is not define-able for the SAMA5D4 and must
  5231. be replaced with a table lookup.
  5232. - PIO: Fix a typo in Schmitt trigger configuration; Configure pin as a
  5233. vanilla input first so that final pin configuration is more read-able
  5234. (i.e., easier to debug)
  5235. - PIO: Logic for Schmitt trigger selection backward
  5236. - SAMA5D4: Correct system timer frequency. Input clock is MCK/2, not MCK.
  5237. * Atmel SAMA5 Drivers:
  5238. - Ethernet: Wrong bits being cleared before OR-ing in new settings.
  5239. - Ethernet: Fix an error in the function that determines the number
  5240. of free TX descriptors. This is an important bugfix on busy
  5241. networks.
  5242. - HSMCI: The 8-byte SCR transfer was failing silently with the DMA
  5243. transfer, leaving the SD card in single bit mode. Fixed by adding
  5244. a non-DMA read transfer mode.
  5245. - HSMCI: Fix a problem on card insertion/removal callback handling.
  5246. Interrupts were being disable so that the callbacks occurred with
  5247. interrupts disabled. This resulted in loss of some interrupts and
  5248. some not-so-good behaviors. The solution is to perform all
  5249. callbacks on the work thread unconditionally
  5250. * Atmel SAMA5 Boards:
  5251. - PIO: Fix some cloned errors in SAM GPIO interrupt setup
  5252. * NXP LPC17xx Drivers:
  5253. - Ethernet: Comment out an assertion that is reported to fire
  5254. inappropriately. From Max
  5255. * Library:
  5256. - stdint.h: Correct naming of [U]INT_LEASTn_{MAX|MIN} and
  5257. [U]INT_FASTn{MAX|MIN}. From Kosma Moczek
  5258. - unistd.h: POSIX definitions should be defined to a value. rom Kosma
  5259. Moczek
  5260. - Fixes associated with rint() and related interfaces in the math
  5261. library.
  5262. * Configuration/Build System:
  5263. - NAME_MAX not available on SunOS; use FILENAME_MAX or MAXNAMELEN.
  5264. Noted by Douglas Beattie
  5265. * Applications:
  5266. - NSH: if # appears on line, need to comment ignore additional
  5267. commands on the line
  5268. - NxPlayer: Check for file read errors and end-of-file with zero
  5269. bytes read. Other error handling corrected as well.
  5270. - NxPlayer: NxPlayer needs to set curbyte field to zero before
  5271. enqueuing a buffer. Otherwise, it looks like beginning of the
  5272. buffer has already been consumed.
  5273. NuttX-7.5
  5274. ---------
  5275. The 105th release of NuttX, Version 7.5, was made on September 28, 2014,
  5276. and is available for download from the SourceForge website. Note
  5277. that release consists of two tarballs: nuttx-7.5.tar.gz and
  5278. apps-7.5.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  5279. file for build information).
  5280. Additional new features and extended functionality:
  5281. * Core OS:
  5282. - Watchdog Timer Allocation: (1) If we run out of pre-allocated
  5283. watchdog times, the logic will now allocate additional timers
  5284. from the heap. A reserve of pre-allocated watchdog timers is
  5285. maintained so that there will always be timers available for
  5286. interrupt handlers. (2) Added support for statically allocated
  5287. watchdog timer
  5288. - Address Environment Support: (2) New OS APIs integrated into all
  5289. platform-specific context switching logic (up_block_task(),
  5290. up_unblock_task(), _exit(), and others).
  5291. - Kernel Build Support: (1) The MPU based "kernel build" renamed to a
  5292. protected build (CONFIG_BUILD_PROTECTED); added support for the a
  5293. new MMU-based "kernel build" (CONFIG_BUILD_KERNEL), (2) The system
  5294. call library can now be built with CONFIG_NUTTX_KERNEL. New
  5295. selection: CONFIG_LIB_SYSCALL.
  5296. - System Startup: Add configuration options to start the system from
  5297. a program on a file system (versus an address in memory).
  5298. - Startup Parameter Passing. There used to be two ways to pass
  5299. parameters to new tasks, depending upon the configuration: Either
  5300. (1) argv[] as created as an array with each string strdup'ed. Or
  5301. (2) argv[] array and strings were created on the stack before the
  5302. new task was started. Now, there is only one way, way (1). Way
  5303. (2) might be slightly more compact, but this is not worth carry the
  5304. complexity of two different ways of doing the same thing.
  5305. - Board Initialization: Add capability to perform initial board
  5306. initialization on a separate worker thread. This is needed because
  5307. there are many cases where initialization logic cannot execute on
  5308. the start-up/IDLE thread. That is because blocking or waiting is
  5309. not permitted on the IDLE thread.
  5310. * Memory Management:
  5311. - Granule Allocator: (1) Add a new function to reserve un-allocatable
  5312. regions in the granule heap. (2) Add interfaces to support
  5313. un-initializing a granule allocator.
  5314. - Page Allocator: Add a simple physical page allocator based on the
  5315. existing NuttX granule allocator. I am not certain if the granule
  5316. allocator is sufficiently deterministic for long range use, but it
  5317. gets get a page allocator in place for testing very quickly.
  5318. - Remove CONFIG_MM_MULTIHEAP. Non-multiheap operation is no longer
  5319. supported.
  5320. - sbrk(): sbrk() is now supported in the kernel build to permit
  5321. dynamically sized, per-process heaps.
  5322. - Per-Process Heaps: Space at the beginning of the process data space
  5323. is now reserved for user heap management structures. In the kernel
  5324. build mode, these heap structures are shared between the kernel and
  5325. use code in order to allocate user-specific data.
  5326. - User Heap Management: When a privileged thread exits, we have to
  5327. use the kernel allocator to free memory; when an unprivileged thread
  5328. exits, we don't have to do anything... heap memory will be cleaned
  5329. up when the address environment is torn down.
  5330. - Inter-Process Shared Memory Support: (1) Add implementation and
  5331. documentation for shmget(), shmctl(), shmat(), and shmdt(). (2)
  5332. Add system system calls to support the user call gate to the shared
  5333. memory interfaces. (3) Add platform-specific interface definitions
  5334. needed to support the shared memory feature.
  5335. - Virtual Page Allocator: Add support for a per-process virtual page
  5336. allocator. This is a new member of the task_group_s structure. The
  5337. allocator must be initialized when a new user process is started and
  5338. uninitialize when the process group is finally destroyed. It is
  5339. used by shmat() and shmdt() to pick the virtual address onto which
  5340. to map the shared physical memory.
  5341. * File Systems/Block Drivers/MTD:
  5342. - SMART FS and SMART FS procfs updates from Ken Pettit.
  5343. - The MTD Read-ahead/Write buffer layer appears is now functional.
  5344. * Binary Formats:
  5345. - Add logic to initialize the per-process user heap when each user
  5346. process is started.
  5347. * Graphics:
  5348. - Change all occurrences of NxConsole to NxTerm.
  5349. * Networking:
  5350. - PHY Interrupts: (1) Standardize a PHY interrupt attachment
  5351. interface. (2) Add support for an ioctl that can be used to notify
  5352. an application when there is a change in the network status
  5353. signalled by a PHY interrupt.
  5354. - Improved Send Logic: In the past, the first packet send to a new
  5355. network peer would fail; there would be no entry in the ARP table
  5356. for the peer and so an ARP request could replace that first packet.
  5357. Now as an option if CONFIG_NET_ARP_SEND=y, all send logic will (1)
  5358. check if the peer MAC address is in the ARP table and, if not, (2)
  5359. send ARP requests periodically to get the mapping and (3) wait for
  5360. the ARP response. Then (4) when the ARP response is received then
  5361. the actual send logic will be initiated. Thus there may be a delay
  5362. with the first packet sent to a new peer, but the packet should not
  5363. be lost
  5364. * Host Simulation:
  5365. - Emulated SPI FLASH driver for the sim target from Ken Pettit.
  5366. * Intel x86:
  5367. - The default host is now x86_64 and the -m32 option will be
  5368. automatically selected for simulation builds.
  5369. * Intel 8051 Family:
  5370. - Removed all support for the 8051 family architecture from the NuttX
  5371. source tree. The obsoleted code along with the removal patch can
  5372. now be found at misc/Obsoleted/. This code was removed because (1)
  5373. although some functionality has been demonstrated, I am not aware of
  5374. any really successful ports of NuttX to any 8051, and (2) the 8051,
  5375. with its hardware stack, forces limitations and complications to the
  5376. other architectures and make growth and development of NuttX more
  5377. complex.
  5378. * ZiLOG ZNeo Boards:
  5379. - configs/16z: Support for this board has been removed from the NuttX
  5380. source tree (but still can be found in the misc/Obsoleted
  5381. directory). This port is not ready for usage but may return to the
  5382. NuttX tree at some point in the future.
  5383. * Atmel SAM3/4 Boards:
  5384. - SAM4E-EK: Add (1) a fully-functional ILI9341-based LCD driver and
  5385. (2) a fully-functional NxWM configuration.
  5386. * ARMv7-A:
  5387. - Address Environments: Add support for application address
  5388. environments using the Cortex-A MMU. Implement standardized
  5389. platform-specific interfaces of NuttX address environment
  5390. support.
  5391. - Cache Operations: Implement standardized, platform-specific cache
  5392. operations. These are called from the ELF loader in order to flush
  5393. D-cache and invalidate I-cache after an ELF module has been loaded
  5394. into memory. With this change, ELF modules work correctly on the
  5395. SAMA5/Cortex-A platform.
  5396. - Kernel Build: (1) Add implementations of system call gate. (2) Add
  5397. CRT0 start-up file that can be linked with separately built user
  5398. programs. (3) Add support for delivery of use-mode signals in the
  5399. kernel build. (4) Add logic to initialize the per-process user heap
  5400. when each user process is started. (5) ARMv7-A exception handling
  5401. needs to work a little differently if we support user mode
  5402. processes. This is because R13 and R14 are paged differently
  5403. between user and SVC mode.
  5404. - Shared Memory Support: (1) Add logic necessary to handle remapping
  5405. of shared memory on context switches. (2) Extend virtual/physical
  5406. address conversions to include addresses in shared memory. (3) Add
  5407. implementation of platform-specific shared memory support.
  5408. * Atmel SAMA5D Drivers:
  5409. - Implement all network ioctls, including the new ioctl to setup PHY
  5410. event notifications.
  5411. - In kernel build with address environment, need logic to map user
  5412. virtual addresses to physical addresses, and vice versa.
  5413. * Atmel SAMA5D Boards:
  5414. - SAMA5D3 Xplained, SAMA5D3-EK, and SAMA5D4-EK: Convert existing
  5415. board specific PHY interrupt interfaces to use newly defined
  5416. standard interface.
  5417. - SAMA5D4-EK: Add a configuration for testing the kernel build
  5418. configuration. There are configurations to boot either from an SD
  5419. card or from and in-memory ROMFS file system.
  5420. - SAMA5D4-EK: Add documentation/support for Rev E. board.
  5421. * STMicro STM32 Drivers:
  5422. - Ethernet: Modified to support the change to the network ioctl
  5423. signature changes. Also add support for new ioctl to setup PHY
  5424. event notifications.
  5425. * STMicro STM32 Boards:
  5426. - STM32F4Discovery with STM32F4DIS-BB: Add a network enabled NSH
  5427. configuration for the STM32F4Discovery board with the STM32F4DIS-BB
  5428. base board installed. Includes support for the microSD card slot on
  5429. the STM32F4DIS-BB base board.
  5430. * TI Tiva Drivers:
  5431. - Add support for the TI CC3200. From Jim Ewing.
  5432. * TI Tiva Boards:
  5433. - Add support for the TI CC3200 Launchpad. From Jim Ewing.
  5434. * C Library:
  5435. - Re-implemented poll() delay using sem_timedwait().
  5436. * Configuration/Build System:
  5437. - Export Target: In the kernel or protected builds, (1) only the user
  5438. libraries should be exported, (2) do not copy internal header files
  5439. or build scripts if this is a kernel or protected build, and (3)
  5440. needs to bundle up the user C startup file (crt0), not the kernel
  5441. head object for the kernel and protected builds.
  5442. - Add logic that will permit us to build user libraries with different
  5443. CFLAGS than kernel code. This is needed because we need the
  5444. -fno-common option when building ELF code to prevent SHN_COMMON
  5445. relocations.
  5446. * Applications:
  5447. - NSH: Extend the NSH network initialization logic. There is now an
  5448. option that will create a network monitor thread that will monitor
  5449. the state of the link. When the link goes down, the code will
  5450. attempt to gracefully put the Ethernet driver in a down state; When
  5451. the link comes back, the code will attempt to bring the network back
  5452. up.
  5453. - ELF Example: The ELF test/example has been extended so the
  5454. individual ELF test programs can link against the SYSCALL library
  5455. (if it is available) or against the C library to eliminate or
  5456. minimize the need for symbol tables.
  5457. - Change all occurrences of NxConsole to NxTerm.
  5458. - MTDRWB Example: Add an example to test MTD R/W buffering.
  5459. - OS Test Example: Add a trivial test of sem_timedwait.
  5460. * Application Configuration/Build System:
  5461. - Import Target: (1) Add logic that will allow building applications
  5462. against a NuttX export package (vs. the nuttx/ source tree). (2)
  5463. Add .config file to export package. (3) Create apps/import. Create
  5464. apps/import/Make.defs that does things like define CFLAGS; ELF build
  5465. requires -fno-common in CFLAGS. Copy some base logic from
  5466. nuttx/tools/Config.mk to apps/import/Make.defs. (4) Add
  5467. apps/import/scripts/gnu-elf.ld GCC linker script for ELF import
  5468. builds.
  5469. - All Makefiles: (1) Add an install target to all makefiles. For
  5470. the import build, the top-level Makefile now does two passes: (1)
  5471. builds libapp.a, then (2) installs the programs into apps/bin. (2)
  5472. Add program installation for CONFIG_BUILD_KERNEL in all Makefiles
  5473. that build a main(). (3) For kernel build, the object file
  5474. containing main cannot go into library because of name collisions.
  5475. The object file must be handled as a special case in every Makefile.
  5476. - All Built-In Programs: With kernel build (CONFIG_BUILD_KERNEL),
  5477. entry point to all tasks is main(), not some xyz_main().
  5478. - NSH: Several commands must be disabled in the kernel build because
  5479. they depend on interfaces that are not available outside of the
  5480. kernel: dd, df, losetup, mkfatfs, mkdr, and ps.
  5481. - apps/tools/: (1) Add mkimport.sh to expload an NuttX import package
  5482. and install in apps/import. (2) Add mkromfsimg.sh script to create
  5483. a BOOT ROMFS filesystem image.
  5484. - ELF and NxFLAT Examples: Do not build test cases that use
  5485. task_create() if there is an address environment.
  5486. * Tools:
  5487. - refresh.sh: Add a tool to make refreshing configurations easier
  5488. when you want to do a lot of them.
  5489. - mksyscall.c: Build syscalls that do not need header files.
  5490. - mkexport.sh: Add .config file to export package.
  5491. - See above for new apps/tools scripts.
  5492. Efforts In Progress. The following are features that are partially
  5493. implemented but present in this release. They are not likely to be
  5494. completed soon.
  5495. * Processes. Much of the work in this release is focused on the
  5496. realization of Unix-style user processes in NuttX. There is more to
  5497. be done, however. The full roadmap and status is available at:
  5498. https://cwiki.apache.org/confluence/display/NUTTX/Memory+Configurations
  5499. * XMega: There are some fragments in place for an XMega port. That
  5500. port has not really started, however.
  5501. * Galileo: Similarly, there are fragments in place for an Intel Galileo
  5502. port. The port not been started in earnest either.
  5503. 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):
  5504. * Core OS:
  5505. - Kernel build fixes: (1) IDLE TCB setup needs to indicate that the
  5506. IDLE thread is a privileged, kernel thread. (2) Don't build
  5507. task_create() or task_spawn() interfaces if there is an address
  5508. environment. (3) posix_spawn() kernel proxy thread should be a
  5509. kernel thread, not a user task.
  5510. - Several pthread interfaces: Add const storage class to phthread
  5511. parameters. From Freddie Chopin.
  5512. - sched/clock: Remove vestiges of g_tickbias; need, instead, to apply
  5513. time bias to g_basetime in order to provide the correct system time.
  5514. - System Calls: (1) Several typos fixed; corrected integration of
  5515. exevc(), execvl(), posix_spawn, and posix_spawnp system calls. (2)
  5516. If we are configured to use a kernel stack while in SYSCALL handling,
  5517. then we need to switch back to the user stack to deliver a signal.
  5518. * File Systems/Block Drivers/MTD:
  5519. - procfs: Fix some procfs breakage introduced by reorganizing some
  5520. non-reorganizable data structures. From Ken Pettit.
  5521. - AT45: In at45db_bwrite , the buffer is not increased when writing
  5522. more than 1 page. Sourceforge bug #34.
  5523. * Binary Formats:
  5524. - ELF relocations. Some relocation types do not have a named symbol
  5525. associated with them. The design did not account for that case.
  5526. - ELF Loader: Critical bugfix.. BSS was not being cleared.
  5527. * Memory Management:
  5528. - Granule allocator initialization uses wrong allocator to setting
  5529. aside kernel memory.
  5530. - Add a flag to group structure: If the group is created by a kernel
  5531. thread, then all resources in the group must be privileged.
  5532. * Cryptogrphic Support:
  5533. - crypto/cryptodev.c: Path segments reversed in include file path. Noted by Brennan Ashton.
  5534. * Common Drivers:
  5535. - Common CAN upper-half: In can_txdone, waiters on the semaphore
  5536. should be informed regardless of the return value of can_xmit. First
  5537. it returns -EIO if there are no new packets, and second the
  5538. information of the waiters is about the last transferred packet.
  5539. From Daniel Lazlo Sitzer.
  5540. * ARM:
  5541. - System Calls: Fix a typo in system call when fetching parameter from
  5542. the stack: regs[REG_PC]+4 is the address, not regs[REG_PC+4].
  5543. * STMicro STM32 Drivers:
  5544. - STM32 F401 UART: Correct support for USART6 on this chip. From
  5545. Freddie Chopin.
  5546. - STM32 FLASH fixes: use size_t instead of uint16_t, make interface
  5547. more generic. From Freddie Chopin.
  5548. - Fix for UART7 and UART8 on STM32 clock enable from Aton.
  5549. - CAN: At the end of the interrupt handler, the interrupts were being
  5550. disabled, if all packets have been transferred when the interrupt
  5551. handler was invoked. This is problematic, because the interrupt
  5552. handler calls can_txdone of the upper half which can enqueue new
  5553. packets to send. Removed the block altogether, because can_txdone
  5554. calls can_xmit which disables interrupts if there are no new packets
  5555. to send. From Daniel Lazlo Sitzer.
  5556. - Additional STM32 CAN correction suggested by Max Holtzberg.
  5557. * STMicro ST32 Boards:
  5558. - configs/mikroe-stm32f4: Fix a few compile bugs and minor corrections
  5559. to the mikroe-stm32f4 configuration source. From Ken Pettit.
  5560. * ARM9/ARMv7-A:
  5561. - System Calls: Fix ARM7/9 and Cortex-A SYSCALLs: For threads in SVC
  5562. mode, the SVC instructions clobbers R14. This must be taken account
  5563. in the inline assembly.
  5564. - Task Setup: All tasks, even user mode tasks, must start in
  5565. supervisor mode until they get past the start-up trampoline.
  5566. - ARMv7-A: Modify up_fullcontextrestore() for CONFIG_BUILD_KERNEL.
  5567. It changed CPSR while in kernel. That will crash if the new CPSR is
  5568. user mode while executing in kernel space. Fixed by adding a
  5569. SYS_context_restore system call. There is an alternative, simpler
  5570. modification to up_fullcontextrestore() that could have been done:
  5571. It might have been possible to use the SPSR instead of the CPRSR and
  5572. then do an exception return from up_fullcontextrestore(). That
  5573. would be more efficient, but I never tried it.
  5574. * Atmel SAM3/4 Boards:
  5575. - SAM3X/Arduino Due: Fix typo in sam3x_periphclks.h; add SCLK
  5576. definitions to board.h header file. From Fabien Comte.
  5577. - SAM3 RTT: Only SAM4 family has RTTDIS bit in the MR register.
  5578. SourceForge bug #33 from Fabien Comte.
  5579. * C Library:
  5580. - sscanf(): NuttX libc tried to guess how many characters to parse,
  5581. extracted them into a buffer, then ran strtol() on that buffer.
  5582. That guess was often wrong. A better approach would be to call
  5583. strtol() directly on the input data, using the endptr return value
  5584. to determine how many characters to skip after parsing. From Kosma
  5585. Moczek.
  5586. - Corrected atan2 implementations from Denis Arnst.
  5587. - Change to lib_dtoa() to fix precision error from trailing zeroes.
  5588. From Bob Doiron.
  5589. * Applications:
  5590. - Fix NSH PS command: If there are no arguments, it could print
  5591. garbage for argument list.
  5592. * Configuration/Build System:
  5593. - Null Example: Need to include config.h it order know if this is or
  5594. is not a kernel build. This problem still exists in several other
  5595. file that may need to define main().
  5596. NuttX-7.6
  5597. ---------
  5598. The 106th release of NuttX, Version 7.6, was made on November 26, 2014,
  5599. and is available for download from the SourceForge website. Note
  5600. that release consists of two tarballs: nuttx-7.6.tar.gz and
  5601. apps-7.6.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  5602. file for build information).
  5603. Additional new features and extended functionality:
  5604. * Core OS:
  5605. - Moved name semaphore and message queue support out of the OS and
  5606. into the VFS. These improves the architecture by unifying the
  5607. management of named resources, removes redundant resource management
  5608. logic, and makes named semaphores and message queues visible in the
  5609. file system. By default, these are visible at /var/lock and
  5610. /var/mqueue.
  5611. - Add SIGPOLL for use as part of the AIO implementation.
  5612. - Remove CONFIG_MAX_TASK_ARGS configuration. There is now no
  5613. predetermined limit on the number of arguments that may be passed
  5614. to a new task on start-up.
  5615. * Work queues:
  5616. - Add support for priority inheritance on the low priority worker
  5617. queue. That is, if a higher priority thread has scheduled work, the
  5618. priority of the low priority worker thread(s) will be boost to the
  5619. priority of the queuing thread. At work is performed at at least
  5620. thread priority of the scheduling thread. If there are multiple
  5621. worker threads, then all threads get reprioritized. Currently
  5622. only implemented for AIO.
  5623. - Add support for multiple low-priority work queue threads. This
  5624. allows individual worker threads to block indefinitely for I/O as
  5625. necessary without halting the entire work queue.
  5626. * VFS/General Drivers:
  5627. - Implement create() (as a macro).
  5628. - Add pread() and pwrite(). Also added pread() and pwrite()
  5629. system calls.
  5630. - AIO: Add aio_read(), aio_write(), aio_return(), aio_error(),
  5631. aio_suspend(), aio_canel(), lio_listio(), and aio_fsync(). This
  5632. logic minimizes the creation of new threads by using the new
  5633. features also added to the low priority work queue with this
  5634. release. It uses the new low priority worker thread interface
  5635. to adjust the priority of the worker thread according to the
  5636. priority of the AIO client thread
  5637. - Implement standard syslogmask() to control logging (also removing
  5638. the non-standard syslog_enable()).
  5639. * File Systems/Block Drivers/MTD:
  5640. - Extend MTD support to the M25P16. From Sébastien Lorquet.
  5641. * Drivers:
  5642. - BCH (Block-to-Character): Add support for seeking in BCH. From
  5643. Sébastien Lorquet.
  5644. * Graphics Support/Graphics-Related Drivers:
  5645. - Add support for a generic ILI9341 LCD driver. From Marco Krahl.
  5646. - Add ANSI/VT100 foreground and background color commands.
  5647. - Add driver for ST7565 LCD that works with NHD-C12864KGZ display. From Pierre-noel Bouteville.
  5648. * Networking:
  5649. - Verify that multiple networks can be supported.
  5650. - Add support for the case where there are multiple networks: One
  5651. being Ethernet and the other not (SLIP, PPP, ...). The primary
  5652. difference from the standpoint of the stack is that (1) ARP may or
  5653. may not be necessary, (2) the size of the link layer header will
  5654. vary, and (3) different MTUs and TCP receive windows may be used
  5655. with each link. Suggested by Brennan Ashton.
  5656. - Extensions to UDP and TCP connection structures for the case of
  5657. multiple networks. In this case, assigned port numbers only have to
  5658. be unique with respect to the IP address. So, for example, you
  5659. could have multiple port 80's, one on each network.
  5660. * Host Simulation:
  5661. - Removed the old, strange up_stdio.c and implemented a simulated UART
  5662. driver to provide the console input. The new logic starts a
  5663. separate, Linux domain pthread to read the console input in raw mode
  5664. and provides the incoming data to NuttX via standard NuttX domain
  5665. IPCs.
  5666. - Add support for 64-bit longjmp/setjmp in simulator platform. This
  5667. will permit operation of the simulation natively on a 64-bit
  5668. platform.
  5669. * ARMv7-M:
  5670. - Add ARMv7-M CMSIS ITM header file and library. From Pierre-noel
  5671. Bouteville.
  5672. - Add ARMv7-M CMSIS DWT and TPI header files. From Pierre-noel
  5673. Bouteville.
  5674. - Add ARMv7-M support to use ITM for SYSLOG debug output. Includes
  5675. logic from Pierre-noel Bouteville.
  5676. * Atmel SAM3/4 Drivers:
  5677. - Add support for SAM3/4 basic serial TERMIOS and flow control.
  5678. There are issues with IFLOW control: PDC or DMAC support is
  5679. required.
  5680. * Atmel SAM3/4 Boards:
  5681. - SAM4E-EK: Add support for PHY interrupt.
  5682. * Atmel SAMA5D Boards:
  5683. - SAMA5D3-Xplained: Add a configuration that provides a simple test
  5684. for the EMAC and GMAC on the SAMA5D3 working together.
  5685. - SAMA5D4-EK: Add a configuration that provides a simple test for the
  5686. EMAC0 and EMAC1 on the SAMA5D4 working together.
  5687. * Freescale KL:
  5688. - Add an I2C header file for the Freescale KL family. From Alan
  5689. Carvalho de Assis.
  5690. * NXP LPC32xx:
  5691. - Add support for tickless operation using the NXP LPC43xx. From
  5692. Brandon Warhurst.
  5693. * SiLabs EFM32:
  5694. - Add a basic port for the SiLabs EFM32 family. Includes many files
  5695. contributed by Pierre-noel Bouteville .
  5696. * SiLabs EFM32 Boards:
  5697. - Add board support for the EFM32 Gecko Starter Kit.
  5698. - Add board support for the Olimex EFM32G8809128 STK. NOTE: I am
  5699. unable to test this configuration due to tool-related issues.
  5700. - Add board support for the SiLbas EFM32GG Giant Gecko Starter kit.
  5701. * STMicro STM32:
  5702. - Add support for the STM32 F411RE from Serg Podtynnyi.
  5703. - Add support for the STM32F103RG. From Murilo Ponte.
  5704. * STMicro STM32 Drivers:
  5705. - STM32 F4: Add logic that implement true high speed support for the
  5706. STM32 OTGHS peripheral and concurrent support for both LS and HS
  5707. OTG. New OTGHS drivers provided for both device and host. From
  5708. Brennan Ashton.
  5709. * STMicro STM32 Boards:
  5710. - STM32 Nucleo-F411RE: Extend this board configuration to also support
  5711. the Nucleo-F411RE. From Serg Podtynnyi.
  5712. - Add support for the STM32F429i Discovery's LCD (SPI based). From
  5713. Marco Krahl.
  5714. - configs/stm32f100rc_generic: Removed this generic board configuration.
  5715. I have decided to stop support of generic board configurations. Generic
  5716. board configurations do not provide support for any specific hardware
  5717. but can be useful only if there are not other examples for the setup
  5718. for a particular architecture. Not the case here.
  5719. * C Library:
  5720. - Add a mostly bogus wchar.h header file. This file is mostly bogus
  5721. because none of the wide character operations are currently
  5722. supported in the NuttX C library. The file does provide the wchar_t
  5723. types needed by some software, however.
  5724. - Add isatty() function. From Alan Carvalho de Assis.
  5725. - Add mktemp(), mkstemp(), tmpnam() and tempnam().
  5726. * Configuration/Build System:
  5727. - Add a PRELINK macro to Config.mk. From Kriegleder.
  5728. - compiler.h: Defines inline functions as not instrumented - this is
  5729. relevant for anyone using instrumentation. From Lorenz Meier.
  5730. * Applications:
  5731. - apps/interpreter/bas: Added in the Michael Haardt's BAS 2.4 adapted
  5732. for use by NuttX by Alan Carvalho de Assis. Includes support for
  5733. VT100 terminals and color commands.
  5734. - Examples: Added bastest/ which holds a special version of Michael
  5735. Haardt's BAS 2.4 test files adapted for use by NuttX on a ROMFS file
  5736. system.
  5737. - Examples: Add a simple UDP relay bridge for testing configurations
  5738. with multiple networks. Includes a host-side test driver for
  5739. testing the bridge.
  5740. - Netutils: Add implementation of timeouts for the netutils webclient.
  5741. From Brennan Ashton
  5742. - NSH: Add support for a custom NSH ROMFS startup image header file
  5743. location. From Martin Lederhilger.
  5744. - OS test: Add a simple test of named semaphores.
  5745. - OS test: Add AIO test case in OS test.
  5746. Efforts In Progress. The following are features that are partially
  5747. implemented but present in this release. They are not likely to be
  5748. completed soon.
  5749. * Processes. Much of the work in this release is focused on the
  5750. realization of Unix-style user processes in NuttX. There is more to
  5751. be done, however. The full roadmap and status is available at:
  5752. https://cwiki.apache.org/confluence/display/NUTTX/Memory+Configurations
  5753. * XMega: There are some fragments in place for an XMega port. That
  5754. port has not really started, however.
  5755. * Galileo: Similarly, there are fragments in place for an Intel Galileo
  5756. port. The port not been started in earnest either.
  5757. Bugfixes. Only the most critical bugfixes are listed here (see the
  5758. ChangeLog for the complete list of bugfixes and for additional, more
  5759. detailed bugfix information):
  5760. I ran cppcheck against the entire code base and correct many latent bugs
  5761. including things as serious as memory leaks, two locations where interrupts
  5762. were be disabled but never re-enabled, and errors in the Tickless mode of
  5763. operation. My thanks to the developers of cppcheck! I am impressed!
  5764. * Core OS:
  5765. - vfork(): Now that arguments are kept on the stack, the way that
  5766. arguments are passed from parent to child in vfork() must change.
  5767. This bug has always been present, but was not visible with the
  5768. old strdup() way of passing arguments.
  5769. - vfork() problem: If we get to vfork() via system call, then we
  5770. need to clone some system call information so that the return form
  5771. the cloned system call works correctly.
  5772. - Fixes to tickless operation code, especially in alarm mode. From
  5773. Brandon Warhurst.
  5774. - Fix an important bug in the watchdog timer creation logic.
  5775. - Calling mq_timedreceived() with immediate timeout was getting stuck
  5776. and not timing out. Immediate timeout is achieved by setting absolute
  5777. timeout value to past time, for example abstime={ .tv_sec=0,
  5778. .tv_nsec=0 }. However absolute time was converted to relative time
  5779. using unsigned integer arithmetic and resulted large ticks count by
  5780. clock_abstime2ticks, instead of expected negative ticks value.
  5781. Change corrects clock_abstime2ticks() to return negative ticks, if
  5782. absolute time is in the past. From Jussi Kivilinna.
  5783. * Memory Management:
  5784. - Fix a place in the memory manager where it explicitly assumed that
  5785. the size of a pointer is 4 bytes. That assumption was OK if the
  5786. actual size is smaller but made the heap unstable when used with
  5787. the x86_64 host simulation.
  5788. - Granule Allocator: If the INTR granule allocator mode is enabled,
  5789. there is no semaphore to destroy. From Lorenz Meier.
  5790. * Networking:
  5791. - Network routing: I don't think that the net_route() function has
  5792. ever worked correctly. The source IP was updated in the match
  5793. struct instead of the route IP. From Brennan Ashton.
  5794. - Move and rename IP header flag definitions. The problem fixed here
  5795. is that there IP header flag definitions were not available when TCP
  5796. was disabled. The IP flags are used in ICMP and IGMP.
  5797. - Network routing: Refuse to perform routing table lookups for the
  5798. Broadcast IP address. From Brennan Ashton.
  5799. - Network routing: Add logic to netdev_findbyaddr() to return the
  5800. correct network device for the case where a broadcast
  5801. address is used. This change caused trivial ripples through other
  5802. files because additional parameters are required for
  5803. netdev_findbyaddr() when CONFIG_NET_MULTINIC.
  5804. * File Systems/Block Drivers/MTD:
  5805. - NXFFS Dump: Fix problems with redefinitions of fdbg macro. With the
  5806. fix to the syslog prototype, a LOG priority must now be the first
  5807. parameter. Fixed by replacing all occurrences of fdbg with
  5808. syslog(LOG_DEBUG, and eliminating the macro redefinitions. Noted
  5809. by Sebastien Lorquet.
  5810. - poll() was not waking up from signals (for example mq_notify()
  5811. events). From Jussi Kivilinna.
  5812. - poll(): Add proper handling for sem_timedwait errnos. From Jussi
  5813. Kivilinna.
  5814. - include/nuttx/fs/fs.h: Fix typo in conditional compilation. From
  5815. Alan Carvalho de Assis.
  5816. * Graphics/Graphic-Related Drivers:
  5817. - Remove warnings when CONFIG_NXTK_BORDERWIDTH is set to zero. From
  5818. Pierre-Noel Bouteville.
  5819. * Common Drivers:
  5820. - Make standard syslog and vsyslog POSIX compliant (also modify
  5821. non-standard syslog functions for compatibility).
  5822. - R/W buffering: Fix typo that can cause compilation error.
  5823. * Atmel SAM3/4:
  5824. - SAM4S: Add missing SPI0 clock configuration macro for the SAM4S. From spasbyspas.
  5825. * Atmel SAM3/4 Drivers:
  5826. - SAM4E-EK: Fix an error in a USART1 pin number.
  5827. * Atmel SAMA5D3/4 Drivers:
  5828. - SAMA5DF4: Fix several typos that will prevented EMAC1 from
  5829. initializing properly.
  5830. * NXP LPC43xx:
  5831. - Fixes to allow compile of lpc43_gpioint.c. From Brandon Warhurst.
  5832. * STMicro STM32:
  5833. - Add missing ADC pinmap definitions for the STM32 F103R from Martin
  5834. Lederhilger.
  5835. * STMicro STM32 Drivers:
  5836. - STM32 EXTI: Correct STM32 RTC EXTI bit definition. From Lazlo.
  5837. - STM32 IWDG, WWDG, DBGMCU: Fix watchdog stop bit usage. From Lazlo.
  5838. - STM32 OTGFS: Correct a typo in the STM32 OTGFS register bit definitions.
  5839. * ARM:
  5840. - ARM up_internal.h: Add protection from C++ name mangling in the
  5841. ARM up_internal.h. From Lorenz Meier.
  5842. * MicroChip PIC32MX:
  5843. - PIC32MX7: DEVCFG0 bit 2 must be set. Writing bit 2 as zero can
  5844. brick the CPU on some versions. From Cris Kvist.
  5845. * C Library:
  5846. - The implementation of access() as vararg macro has the issue that
  5847. any function call with the same name (even in a C++ class) will
  5848. match with it and result in a compile error. Replaced with a small
  5849. function. This resolves the compile issue, and shouldn't have
  5850. negative side effects for users of the function. From Lorenz Meier.
  5851. - The definition of strncpy() is that empty space should be zero-
  5852. filled, the change adds the zero filling (See the POSIX spec here:
  5853. http://pubs.opengroup.org/onlinepubs/7908799/xsh/strncpy.html). From
  5854. Lorenz Meier.
  5855. - limits.h: Remove the definition of INT_FAST32_MIN which is already
  5856. defined in stdint.h (the correct location). From Lorenz Meier.
  5857. * Applications:
  5858. - apps/: Correct everything under apps to use the corrected syslog
  5859. interfaces. Remove any non-portable uses of syslog.
  5860. - NSH: Fix ls -l output for regular files.
  5861. - NSH: Fix reversed in/out file closing in DD command when an error
  5862. occurs. From Ken Pettit.
  5863. - NSH: Add logic to restart the console wait if an error occurs
  5864. while reading from the console. In USB console startup, the logic
  5865. must be able to open the USB serial and receive 3 newlines.
  5866. However, it the USB driver is disconnected or otherwise fails before
  5867. the 3 newlines are received, the receive loop becomes a killer,
  5868. infinite loop, CPU hog. Noted by spasbyspas.
  5869. - Netutils: Fix memcpy of host address in netlib_gethostaddr(). From
  5870. Brennan Ashton.
  5871. - Netutils: If you make a DNS request before the DNS address it would
  5872. cause an assertion. The state of the IP setting is not something the
  5873. application should be aware of, it should only be concerned with
  5874. whether or not the name was resolved. From Brennan Ashton.
  5875. - Netutils: Fix md5 hashing when digest[$i] islower that 16. From
  5876. Sergey.
  5877. - Stack Monitor: Fix compile problems introduced when the syslog()
  5878. prototype changed; Also update Makefile for kernel build From
  5879. Radoslaw Adamczyk.
  5880. - Examples: Update NxTerm makefile for kernel-build issues. From
  5881. Radoslaw Adamczyk.
  5882. - Examples: Fixes to keypadtest from Pierre-Noel Bouteville.
  5883. - Examples: These examples all set the IP address of eth1 but the
  5884. netmask and gateway of eth0 if DHCP is enabled: discover, tcpecho,
  5885. webserver, xmlrpc. That can't be right.
  5886. NuttX-7.7
  5887. ---------
  5888. The 107th release of NuttX, Version 7.7, was made on January 26, 2015,
  5889. and is available for download from the SourceForge website. Note
  5890. that release consists of two tarballs: nuttx-7.7.tar.gz and
  5891. apps-7.7.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  5892. file for build information).
  5893. Additional new features and extended functionality:
  5894. * Core OS:
  5895. - Task exit handling: Add logic to clean up after task_delete() or
  5896. pthread_cancel() if the task happens to be waiting on a semaphore
  5897. when was is cancelled.
  5898. - Stack coloration: Removed CONFIG_DEBUG_STACK and replaced it with
  5899. CONFIG_STACK_COLORATION that does the same thing but without enabling
  5900. debug. From David Sidrane.
  5901. * Common Drivers:
  5902. - Discrete joystick driver: Added an interface definition and upper
  5903. half driver for a discrete joystick device (where X/Y changes are
  5904. indicated with button presses).
  5905. - Analog joystick driver: Added an interface definition and upper
  5906. half driver for a analog joystick device (where X/Y positions are
  5907. sampled, numeric values).
  5908. - Add driver support for the ADXL345 accelerometer. From Alan
  5909. Carvalho de Assis
  5910. - Generic serial driver: Add watermark levels to the serial RX flow
  5911. control logic. Modify the rxflowcontrol method to accept the number
  5912. of bytes in the buffer and a boolean indication of which watermark
  5913. was crossed.
  5914. * File Systems/Block Drivers/MTD:
  5915. - Add procfs write support. From Ken Petit.
  5916. - Implemented wear-leveling in the SmartFS. From Ken Pettit.
  5917. - MMC/SD Interface: MMCSD SDIO: Add support for a new
  5918. SDWAIT_WRCOMPLETE condition. The previous logic used a busy-wait
  5919. loop to poll the card R1 status to determine when the card was
  5920. ready for the next transfer. That busy-wait can be quite long --
  5921. up to hundreds of milliseconds. An alternative is to look the SD D0
  5922. pin which will change state when the card is no longer busy. This
  5923. change avoids the busy-wait poll by reconfiguring the SD D0 pin as a
  5924. GPIO interrupt, then waiting for the card to become ready without
  5925. taking up CPU cycles. From David Sidrane.
  5926. * Drivers:
  5927. - Add support for a generic EEPROM driver that accesses EEPROM as a
  5928. character driver (vs. an MTD driver). From Sébastien Lorquet.
  5929. * Graphics Support:
  5930. - Many new fonts converted for use with NuttX and added by
  5931. Pierre-noel Bouteville
  5932. * Networking:
  5933. - IPv4 support is now conditioned on CONFIG_NET_IPv4.
  5934. - Implemented and verified IPv6 support conditioned on
  5935. CONFIG_NET_IPv6. Either IPv4 or IPv4 or both may be selected.
  5936. Sockets, of course, must be bound to one or the other. Added support
  5937. for IPv6 ioctls to manipulate IP addresses.
  5938. - Integrated support for ICMPv6 and the ICMPv6 Neighbor Discovery
  5939. Protocol and ICMPv6 ECHO request/reply needed to support ping logic.
  5940. - All Ethernet drivers: Modified to support. Most, however, are
  5941. still missing address filtering logic required for ICMPv6 Neighbor
  5942. Discovery Protocol. See
  5943. https://cwiki.apache.org/confluence/display/NUTTX/IPv6
  5944. - Also added missing raw/packet socket support to all Ethernet drivers.
  5945. * Host Simulation:
  5946. - Add a configuration build and test the Traveler first person game
  5947. using the simulator.
  5948. - Add an X11 mouse-based simulation of an analog joystick device
  5949. * Atmel SAMA5D Boards:
  5950. - Add analog Joystick shield support for the SAMA5D3 Xplained board.
  5951. * Freescale KL Drivers:
  5952. - Add GPIO interrupt capability for the KL architecture. From Alan
  5953. Carvalho de Assis
  5954. * Freescale KL Boards:
  5955. - Freedom-KL25Z: Add board support for the ADXL345 accelerometer. From
  5956. Alan Carvalho de Assis
  5957. - Freedom-KL25Z: Update the Freedom KL25Z board CC3000 support to use
  5958. the current CC300 interfaces. From Alan Carvalho de Assis
  5959. * NXP LPC43xx Boards:
  5960. - A port of NuttX to the LPC4357-EVB from Toby Duckworth. This port
  5961. is a leverage of the LPC3330-Xplorer port and still have a some
  5962. misinformation from that port that needs to be updated for the
  5963. LPC4357-EVB.
  5964. * SiLabs EFM32 Drivers:
  5965. - Serial: Add support for serial termios TCGET and TCSET. For the
  5966. moment, only set/get speed is implemented. From Pierre-noel
  5967. Bouteville.
  5968. - RMU: Add support for the EFM32 reset management unit (RMU). From
  5969. Pierre-noel Bouteville.
  5970. * SiLabs EFM32 Boards:
  5971. - Add support for timer/PWM on the EFM32GG. From Pierre-noel
  5972. Bouteville
  5973. * STMicro STM32:
  5974. - Enable support for the STM32 F102. From the PX4 team.
  5975. * STMicro STM32 Drivers:
  5976. - STM32 F429 LTDC: Add interface to perform hardware accelerated layer
  5977. operation. Provides access to a reference of a specific ltdc layer.
  5978. From Marco Krahl
  5979. - STM32 F429 LTDC support: Implemented LTDC framebuffer support for the
  5980. generic nuttx framebuffer interface. Also implements the interface to
  5981. perform hardware accelerated layer operation by the ltdc controller
  5982. and dma2d controller later. From Marco Krahl.
  5983. - STM32: Add support for the internal low speed clock (LSI) as a
  5984. source of the RTC clock. Some boards do not have the external
  5985. 32kKhz oscillator installed, for those boards we must fallback to
  5986. the crummy internal RC clock. From Kevin Hester
  5987. - STM32 SDIO: Add support for the new SDWAIT_WRCOMPLETE condition.
  5988. From David Sidrane
  5989. * STMicro STM32 Boards:
  5990. - Add a discrete Joystick support for the STM3210E-EVAL.
  5991. - Add analog Joystick shield support for the Nucleo F4x1RE boards.
  5992. - STM32 F429i-Disco: Add support for initializing of the ltdc
  5993. controller and the lcd device connected on the stm32f429i-disco.
  5994. From Marco Krahl.
  5995. - Removed the px4-v2_upstream configuration. This was not the
  5996. official configuration for the PX4 board and has led to confusion
  5997. by NuttX users. The board configuration also requires some ongoing
  5998. maintenance and customization to support ongoing PX4 testing and
  5999. evaluation. It is best retained the PX4 repositories where it can
  6000. be properly maintained and not in the upstream NuttX repository.
  6001. * TI Tiva:
  6002. - Add support for the TI Tiva TM4C 129X family. Some unverified
  6003. support for the TM4C 1294 is also in place.
  6004. * TI Tiva Drivers:
  6005. - Added support for Tiva I2C driver. Verified on the Tiva TM4C123G
  6006. and TM4C129X.
  6007. - Added a Tiva TM4C129X Ethernet driver.
  6008. - Add a timer library for generic support of Tiva timers
  6009. - Add a driver lower half for drivers/timer.c. Only 32-bit periodic
  6010. timers are supported. This provides userspace access to timers.
  6011. * TI Tiva Boards:
  6012. - TM4C123G Launchpad: Add initialization logic for an external AT24
  6013. EEPROM. This is intended only to support testing of the Tiva I2C
  6014. driver.
  6015. - Board support for the Tiva DK-TM4C129x Connected Development Kit.
  6016. - DK-TMC129X: Add an IPv6-enabled NSH configuration.
  6017. * C Library/Header Files:
  6018. - Added support for a variadic ioctl() function. The ioctl()
  6019. interface is a non-standard, Unix interface. NuttX has always used
  6020. the older, three-parameter version. Most contemporary systems now,
  6021. however, use a variadic form of the ioctl() function. Added an
  6022. option to insert a shim layer to adapt the three-parameter ioctl()
  6023. to use the variadic interface form. Internally, the ioctl handling
  6024. is the same three-parameter logic. The only real complexity to the
  6025. shim is in how the system calls must be handled.
  6026. - Added sys/custom_file.h. Used when CUSTOM_FILE_IO is define and
  6027. avoids re-definition errors about the FILE define. From Thomas
  6028. Gruber via the PX4 repository
  6029. - Add CRC8 support to the C library. From Ken Pettit.
  6030. - math.h: Added support for the expm1 functions. From Brennan Ashton
  6031. * Applications:
  6032. - apps/examples/djoystick: Add a test of the discrete joystick
  6033. driver.
  6034. - apps/examples/ajoystick: Add a test of the analog joystick
  6035. driver.
  6036. - apps/examples/ltdc: Add ltdc test example. From Marco Krahl
  6037. - apps/system/lm75: Add a tiny application to read the temperature
  6038. from an LM-75 (or compatible) temperature sensor
  6039. - apps/examples/timer: Add a trivial test of the timer driver
  6040. - apps/system/cu: Add a minimalist implementation of the 'cu'
  6041. terminal program (part of Taylor UUCP for ages). Using it, you can
  6042. simply open a serial port and interact with it. Using '~.' you can
  6043. leave the terminal program and drop back to nsh. This might come
  6044. in handy for people that have e.g. GSM modems, GPS receivers or
  6045. other devices with text based serial communications attached to
  6046. their NuttX systems. From Harald Welte
  6047. - apps/interpreters/micropython: A port of Micro Python to NuttX.
  6048. Contributed by Dave Marples
  6049. - apps/netutils/dnsclient: Can select to be either IPv4 or IPv6, but
  6050. not both (IPv6 still does not compile)
  6051. - apps/netutils/netlib: Add new library functions to manipulate IPv6
  6052. addresses.
  6053. - apps/examples/nettest: Update test so that it can be used to test
  6054. IPv6 TCP sockets
  6055. - apps/examples/udp: The UDP test example has been extend to support
  6056. IPv6 domain sockets
  6057. - apps/nshlib: Add logic to initialize IPv6 addresses
  6058. - apps/nshlib: Add the ping6 command to support checking IPv6 networks.
  6059. - apps/nshlib: Clean up network status presentation for IPv6
  6060. Efforts In Progress. The following are features that are partially
  6061. implemented but present in this release. They are not likely to be
  6062. completed soon.
  6063. * IPv6. While basic IPv6 support was completed in NuttX-7.7,
  6064. there are lingering issues with getting IPv6 compatibility
  6065. with applications and network utilities.
  6066. * Processes. Much of the work in this release is focused on the
  6067. realization of Unix-style user processes in NuttX. There is more to
  6068. be done, however. The full roadmap and status is available at:
  6069. https://cwiki.apache.org/confluence/display/NUTTX/Memory+Configurations
  6070. * XMega: There are some fragments in place for an XMega port. That
  6071. port has not really started, however.
  6072. * Galileo: Similarly, there are fragments in place for an Intel Galileo
  6073. port. The port probably will not happen (I gave my Galileo board away!).
  6074. Bugfixes. Only the most critical bugfixes are listed here (see the
  6075. ChangeLog for the complete list of bugfixes and for additional, more
  6076. detailed bugfix information):
  6077. * Core OS:
  6078. - POSIX message queues: msg type should be char * not void * in
  6079. mq_send, mq_timedsend, mq_receive, and mq_timedreceive. Noted by
  6080. Pierre-Noel Bouteville
  6081. - POSIX message queues: In message queue creation return ENOSPC error
  6082. if size exceeds the configured size of pre-allocated messages; Use
  6083. ENOSPC vs ENOMEM per OpenGroup.org. From Pierre-Noel Bouteville.
  6084. - Task Names: strncpy() will not copy the terminating \0 into the
  6085. destination if the source is larger than the size of the
  6086. destination. Ensure that the last byte is always zero and let
  6087. strncpy() only copy CONFIG_TASK_NAME_SIZE bytes. The issue of
  6088. unterminated names can be observed in ps when creating a pthread
  6089. while CONFIG_TASK_NAME_SIZE is set to 8. From Daniel Willmann
  6090. * Memory Management:
  6091. - Granule allocator: Fixes some issues found by the PX4 team using
  6092. Coverity. From Pavel Krienko
  6093. * Networking:
  6094. - Several fixes correcting issues with the CC3000 networking. From
  6095. Jussi Kivilinna
  6096. - CC3000 Fix: Data can be unaligned. When dereferenced as an input
  6097. ntosh(), a bad value is returned. Reported by Alan Carvalho de
  6098. Assis
  6099. - Correct naming of fields in struct sockaddr_in6: sin6_port and
  6100. sin6_family, not sin_port and sin_family.
  6101. - accept(): Correct the value returned by accept() in the case where
  6102. net_lockingwait() is called. It was returning -1 and losing the
  6103. errno value. Noted by Rony Xln
  6104. * Common Drivers:
  6105. - Loop device should return -EINTR is interrupted by a signal.
  6106. - M25P serial flash driver: Add subsector size of the M24P16 part.
  6107. From Lazlo
  6108. - Common serial driver: In case a thread is doing a blocking operation
  6109. (e.g. read()) on a serial device, while it is being terminated by
  6110. pthread_cancel(), then uart_close() gets called, but the semaphore
  6111. is still blocked. This means that once the serial device is opened
  6112. next time, data will arrive on the serial port (and driver
  6113. interrupts handled as normal), but the received characters never
  6114. arrive in the reader thread. The problem was fixed by re-
  6115. initializing the semaphores on the last uart_close() on the device.
  6116. From Harald Welte
  6117. - Pipes: Fixes some issues found by the PX4 team using Coverity. From
  6118. Pavel Krienko
  6119. - CDC/ACM driver: Fixes some issues found by the PX4 team using
  6120. Coverity. From Pavel Krienko
  6121. * NXP LPC43xx Drivers:
  6122. - LPC4357: Changes required to get USART 2 & 3 working on the
  6123. lpc4357-evb. From Toby Duckworth.
  6124. * STMicro STM32:
  6125. - Several fixes correcting issues with the STM32 header files from
  6126. Jussi Kivilinna
  6127. * STMicro STM32 Drivers:
  6128. - Ported Tridge's STM32 I2C noise resilience logic from the PX4
  6129. repository.
  6130. - STM32 F2 and F4: Set the GPIO_SPEED_50MHz on all F2 and F4 SPI pin
  6131. configurations. This is based on an F411 SPI1 errata but the fixed
  6132. is generalized to all SPI and all F2 and F4. Discovered and fixed
  6133. by Sebastien Lorquet.
  6134. - Fix for STM32 OTGHS device driver working in FS mode. From Ken
  6135. Pettit.
  6136. - For STM32 OTG HS DEV (in FS mode): Disable ULPI clock enable in RCC
  6137. AHB1 Register. If Both ULPI and the FS clock enable bits are set in
  6138. FS mode, then the ARM never awakens from WFI due to a chip issue.
  6139. This is only an issue if you are using the internal PHY. From Ken
  6140. Pettit.
  6141. - STM32 F429 LTDC: Add missing clut register definition. From Marco
  6142. Krahl
  6143. - STM32 serial: fix declaration and definition of up_receive() and
  6144. up_dma_receive() to match fields in the interface definition of
  6145. struct uart_ops_s. From Freddie Chopin.
  6146. * TI Tiva Drivers:
  6147. - Fix Tiva IRQ control logic; was limited to only 64 IRQs. That is a
  6148. problem for higher numbered IRQs on many platforms
  6149. * C Library/Header Files:
  6150. - avsprintf(): Fix a bug in usage of va_list on x86. On x86,
  6151. va_list is a pointer to a single copy on the stack. avsprintf()
  6152. calls lib_vsprintf() twice and so traverses the va_list twice using
  6153. va_start. va_start modifies that single copy on the stack so that
  6154. the second call to lib_vsprintf() fails. This appears to be an
  6155. issue with x86 only so far.
  6156. - stdint.h: Don't use hex values to specify minimum values of fixed
  6157. width, signed values. Hex values are inherently unsigned and not
  6158. usable for this purpose in all contexts.
  6159. - strncpy(): Would trash a lot of memory if n == 0. From Yasuhiro
  6160. Osaki.
  6161. - sscanf(). Accept %X and %F as well as %x %f as a format specifiers.
  6162. From Sébastien Lorquet
  6163. * Applications:
  6164. - apps/examples/romfs: fix romfs example builtin app registry issue.
  6165. From Librae
  6166. - apps/system/cdcacm, composite and usbmsc: Fix some strangely placed
  6167. conditional compilation. Looks like an automated update went awry
  6168. - apps/netutils/telnetd: Add protection when CONFIG_SCHED_HAVE_PARENT
  6169. is enabled: Call sigaction with SA_NOCLDWAIT so that exit status is
  6170. not retained (no zombies) and block receipt of SIGCHLD so that
  6171. accept is not awakened by a signal. If accept() is awakened by a
  6172. signal, do not do anything crazy like exit. Most from Rony Xln
  6173. - apps/nshlib/: NSH TFTP get command: Wrong file name used for the
  6174. destination. From Lazlo
  6175. NuttX-7.8
  6176. ---------
  6177. The 108th release of NuttX, Version 7.8, was made on February 11, 2015,
  6178. and is available for download from the SourceForge website. Note
  6179. that release consists of two tarballs: nuttx-7.8.tar.gz and
  6180. apps-7.8.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  6181. file for build information).
  6182. This release is primarily a bugfix release for the NuttX-7.7 version that
  6183. was release just two weeks prior. That release included substantial
  6184. modifications in the NuttX networking to accommodate support for IPv6. This
  6185. release follows close behind NuttX-7.7 in order to correct some the problems
  6186. discovered in that networking code. This release does, however, include a
  6187. small number of new features and bug fixes unrelated to NuttX networking.
  6188. Additional new features and extended functionality:
  6189. * Core OS:
  6190. - Tickless Mode: added limit of maximum delay that can be request
  6191. by the scheduler tickless logic. This is necessary so that the
  6192. tickless logic does not request a delay beyond the capability of the
  6193. underlying hardware. From Macs Neklyudov.
  6194. * Common Drivers:
  6195. - VFS Unlink: Add an unlink method to both the character and block
  6196. driver interface. This is important because if the driver inode is
  6197. unlinked and there are no open references to the driver, then the
  6198. driver resources will be stranded. On the unlink call, the driver
  6199. has the opportunity (1) check if there an any open references, and
  6200. if not, (2) free the driver resources.
  6201. - Pipes and FIFOs: Implement the unlink method. If the pipe/FIFO is
  6202. unlinked, it will marked the pipe/FIFO as unlinked. If/when all
  6203. open references to the driver are closed, all of the driver
  6204. resources will be freed.
  6205. - Added an option to use the syslog'ing device as the system console.
  6206. This option enables a low-level, write-only console device at
  6207. /dev/console (similar to the low-level UART console device). From
  6208. Pierre-noel Bouteville.
  6209. * File Systems/Block Drivers/MTD:
  6210. - RAM/ROM disk: Add logic to dispose of the driver and RAM buffer
  6211. when the RAM disk has been unlinked and all open references to the
  6212. RAM disk have been closed. Add new parameters to romdisk() to
  6213. specify what should be done with the RAM/ROM buffer in this case --
  6214. Should it be freed or not? Changed all calls to ramdisk() to use
  6215. these new parameters.
  6216. * Networking:
  6217. - Add support for local, Unix domain sockets. Support included for
  6218. both SOCK_STREAM and SOCK_DGRAM style local socket.
  6219. - UDP enhancement: Add UDP read-ahead support. In addition to
  6220. eliminating the main reason for lost UDP packets, then change
  6221. enables support for for poll/select on UDP sockets and also non-
  6222. blocking UDP sockets. From Macs Neklyudov.
  6223. - SLIP interface improvements. From Macs Neklyudov.
  6224. - IPv6 Neighbor Solicitation: Added logic to support verification
  6225. that we have the IPv6 address in the Neighbor Table before sending
  6226. any packets. If not, then the Neighbor Solicitation message is
  6227. sent. This feature is important because otherwise the first packet
  6228. sent to a remote peer will fail (it would have been replaced with a
  6229. Neighbor Solicitation).
  6230. - IPv6 Autonomous Auto-Configuration: Added support for sending
  6231. ICMPv6 Router Solicitation and receiving Router advertisement. The
  6232. local IPv6 address, mask, and router address are then auto-configured
  6233. from the response..
  6234. - IPv6 Router Support: Add logic to behave like a router (if so
  6235. configured) only in the sense that NuttX will send the router
  6236. advertisement message in response to any received router solicitation
  6237. messages. Thus, one NuttX node in a network can configure the IPv6
  6238. addresses of all other nodes in the network.
  6239. - Optional IPv6 address filtering added to all Ethernet drivers for
  6240. the all-routers multicast address.
  6241. * Atmel AVR:
  6242. - Added architecture support for the Atmel AVR ATMega1284P MCU. From
  6243. Jedi Tek'Unum.
  6244. * Atmel AVR Boards:
  6245. - Added support for the LowPowerLab MoteinoMEGA that is based on the
  6246. Atmel AVR ATMega1284P MCU. From Jedi Tek'Unum.
  6247. * Atmel SAMA4:
  6248. - Add support for Tickless mode of operation for the SAM4CM platform.
  6249. From Macs Neklyudov.
  6250. * Atmel SAMA4 Drivers:
  6251. - Ethernet: The SAM4E Ethernet driver can now be configuration to
  6252. perform all network processing on the work queue. This greatly
  6253. reduces the amount of interrupt level processing to service Ethernet
  6254. packets.
  6255. - SAM4E Ethernet: Add support multicast address matching and IPv6.
  6256. * Atmel SAMA4 Boards:
  6257. - SAM4E-EK: The nsh configuration now configures the Ethernet driver
  6258. for execution on the work thread.
  6259. * Atmel SAMA5D Drivers:
  6260. - SAMA5D4 Ethernet: The SAMA5D4 Ethernet driver can now be configuration
  6261. to perform all network processing on the work queue. This greatly
  6262. reduces the amount of interrupt level processing to service Ethernet
  6263. packets.
  6264. - SAMA5D3 and SAMA5D4 Ethernet: Add support multicast address matching
  6265. and IPv6.
  6266. * Atmel SAMA5D Boards:
  6267. - SAMA5D4-EK; Added a configuration to testing IPv6.
  6268. - SAMA5D4-EK: Converted the nsh and ipv6 configurations to configure
  6269. the Ethernet driver to use the work queue (vs. interrupt level
  6270. processing).
  6271. * Freescale KL:
  6272. - Add architectural support for the K26Z128VLH4 chip. From Derek B. Noonburg.
  6273. * Freescale KL Boards:
  6274. - Add board support for the Freedom KL26Z board. From Derek B. Noonburg.
  6275. * NXP LPC17xx Drivers:
  6276. - Ethernet: Add support multicast address matching and IPv6.
  6277. * SiLabs EFM32:
  6278. - Add configurable option to unconditionally enable LE clocking. Even
  6279. you don't use core clock LE as source for LFA or LFB, to read are
  6280. write any register not clocked by HFPERCLK or HFCORECLK, HFCORECLKLE
  6281. should be enabled. From Pierre-noel Bouteville.
  6282. * SiLabs EFM32 Drivers:
  6283. - EFM32 RTC: RTC driver using BURTC. From Pierre-Noel Bouteville.
  6284. * STMicro STM32 Drivers:
  6285. - AES: Add driver for STM32L162XX AES peripheral. From Juha Niskanen.
  6286. - Ethernet: The STM32 Ethernet driver can now be configuration to
  6287. perform all network processing on the work queue. This greatly
  6288. reduces the amount of interrupt level processing to service Ethernet
  6289. packets.
  6290. - Ethernet: Add support multicast address matching and IPv6.
  6291. * STMicro STM32 Boards:
  6292. - Added an IPv6 configuration for the STM32F4-Discovery board (with the
  6293. STM32-DISCO_BB base board).
  6294. - Converted all STM32F4-Discovery configurations (with base board) to
  6295. configure the Ethernet driver to use the work queue (vs. interrupt
  6296. level processing).
  6297. * TI Tiva Drivers:
  6298. - Added support for TM4C123G timers. From Calvin Maguranis.
  6299. - Added a Tiva ADC driver. From Calvin Maguranis.
  6300. * TI Tiva Boards:
  6301. - Added TM4C123G timers on the TM4C123G Launchpad. From Calvin Maguranis.
  6302. - Added Tiva ADC support to the TM4C123G-Launchpad. From Calvin Maguranis.
  6303. * C Library/Header Files:
  6304. - Math Library: Added support for inverse hyperbolic functions,
  6305. isfinite(), error functions, nan(), copysign(), and trunc()
  6306. functions. From Brennan Ashton.
  6307. * Applications:
  6308. - apps/examples/ustream: Add a simple test of Unix domain stream
  6309. sockets.
  6310. - apps/examples/udgram: Add a simple test of Unix domain datagram
  6311. sockets.
  6312. - apps/netutils/netlib: Add utilities to convert to/from prefix
  6313. lengths from/to 128-bit network masks.
  6314. - apps/nshlib: Modify the NSH IPv6 ifconfig command to show the more
  6315. standard post-pended prefix value, rather than the full 128-bit
  6316. netmask.
  6317. Efforts In Progress. The following are features that are partially
  6318. implemented but present in this release. They are not likely to be
  6319. completed soon.
  6320. * Processes. Much of the work in this release is focused on the
  6321. realization of Unix-style user processes in NuttX. There is more to
  6322. be done, however. The full roadmap and status is available at:
  6323. https://cwiki.apache.org/confluence/display/NUTTX/Memory+Configurations
  6324. * XMega: There are some fragments in place for an XMega port. That
  6325. port has not really started, however.
  6326. Bugfixes. Only the most critical bugfixes are listed here (see the
  6327. ChangeLog for the complete list of bugfixes and for additional, more
  6328. detailed bugfix information):
  6329. * Core OS:
  6330. - Work Queues: Fix a backward calculation when determining the time
  6331. to the next interesting event. . From Liio Chen via the PX4
  6332. repository.
  6333. - clock_systimespec(): Fixes for compilation errors in certain
  6334. configurations. From Macs Neklyudov.
  6335. * Graphics
  6336. - Fixed a problem with one of the font files. From Pierre-noel Bouteville.
  6337. * Networking:
  6338. - IOB Deadlock: There were issues with the TCP write-ahead buffering
  6339. if CONFIG_NET_NOINTS was enabled: There is a possibility of
  6340. deadlocks in certain timing conditions: The network should never
  6341. wait for TCP read-ahead buffering space to be available. It should
  6342. drop the packets immediately if no buffering is available. This was
  6343. fixed by duplicating most of the IOB interfaces: The versions that
  6344. waited are still present (like iob_alloc()), but now there are non-
  6345. waiting versions of the same interfaces (like iob_tryalloc()). The
  6346. TCP read-ahead logic now uses only these non-waiting interfaces.
  6347. - TCP Deadlock: Fix another deadlock when CONFIG_NET_NOINTS is enabled.
  6348. tcp_write_buffer_alloc() calls sem_wait() with network locked. That
  6349. worked if CONFIG_NET_NOINTS was not defined because interrupts are
  6350. automatically restored when the wait happens. But with
  6351. CONFIG_NET_NOINTS=y, the wait blocks with the network locked -- bad
  6352. style and also can lead to a deadlock condition.
  6353. - ARP response waiting: Fixes another CONFIG_NET_NOINTS issue. When
  6354. called sem_timedwait() with the network locked, the network stays
  6355. locked while we wait which is not what we want (without CONFIG_NET_NOINTS,
  6356. interrupts are re-enabled while we wait and all is well).
  6357. - TCP accept(): Fix a major TCP bug introduced with the NuttX-7.7
  6358. IPv6 changes: Some connection logic was reordered; setting the
  6359. socket as 'connected' got moved to BEFORE the point where the check
  6360. was made if the socket was already connected. The resulting behavior
  6361. was odd: Telnet would connect, but then when you exit and reconnect,
  6362. it would fail to connect. But then if try again, it would connect
  6363. okay. So the symptom was connect-fail-connect-fail-...
  6364. - Lots of build problems introduced into multiple NIC support with the
  6365. IPv6 changes of NuttX-7.7. Many places where conditional logic based
  6366. on CONFIG_NETDEV_MULTINIC is confused with CONFIG_NET_MULTILINK.
  6367. Lots of code changed with IPv6 that was never compiled with MULTINIC
  6368. enabled.
  6369. * Common Drivers:
  6370. - Pipes and FIFOs: Fix a race condition between FIFO buffer operations
  6371. and the opening and closing of FIFOs which necessary when the FIFOs
  6372. are used to support Unix domain, datagram sockets. The default
  6373. policy is the deallocate FIFO buffering when the last client closes
  6374. the pipe. When when used for datagram communications, packets left
  6375. in the FIFO will be lost. Some like UDP read-ahead is needed: The
  6376. buffered data in the FIFO needs to be retained until the reader gets
  6377. a chance to re-open the FIFO. Added an ioctl (PIPEIOC_POLICY) to
  6378. control the buffer policy. Default (0) is the legacy behavior; Unix
  6379. domain datagram logic sets the alternative policy so that the packet
  6380. data persists after the FIFO is closed.
  6381. - RAMTRON: Table of parts is not terminated properly if
  6382. CONFIG_RAMTRON_FRAM_NON_JEDEC is not defined. Noted by David
  6383. Sidrane.
  6384. * All Architectures:
  6385. - Removed all occurrences of up_maskack_irq() that disables interrupts
  6386. with up_ack_irq() that only acknowledges the interrupts. This is only
  6387. used in interrupt decoding logic. Also remove the logic that
  6388. unconditionally re-enables interrupts with the interrupt exits. This
  6389. interferes with the drivers ability to control the interrupt state.
  6390. This is a necessary, sweeping, global change and unfortunately
  6391. impossible to test.
  6392. * ARM
  6393. - ARMv7-A and ARMv7-M memcpy(): Optimized ARM assembly language
  6394. memcpy's were not returning a value in R0 they are required to do.
  6395. From David Sidrane.
  6396. - ARMv7-A interrupt handler should not automatically re-enable interrupts
  6397. on interrupt return. That interferes with the driver's ability to
  6398. manage interrupts. Analogous change made to all other architectures
  6399. as well (ARM7, ARM9, HC, SH, x86, z16, z80, etc,. See above.).
  6400. * STMicro STM32:
  6401. - GPIO Interrupts: Disabling any of EXTI 5-9 interrupts was disabling
  6402. interrupts for all EXTI 5-9. Same issue with EXTI 10-15. From Jussi
  6403. Kivilinna.
  6404. * STMicro STM32 Drivers:
  6405. - RTCC: Fix for recent changes that caused compilation failrues with
  6406. STM32L15XX configurations. From Jussi Kivilinna.
  6407. - SPI: The source clock for SPI 4,5, and 6 should be PCLK2, not PCLK1
  6408. (for F411, F427, and F429). Per David Sidrane.
  6409. * C Library/Header Files:
  6410. - execl(): Fix bad logic in counting the number of arguments.
  6411. execl() parameter passing could never have worked. Noted by
  6412. Pierre-noel Bouteville.
  6413. * Applications:
  6414. - Fix for building with parallel make. Build-server sometimes failed
  6415. 'make -j24' with errors in the builtin line or or sometimes silently
  6416. succeeds but generated builds that contain a random subset of
  6417. configured NuttX applications. There are two root causes for this:
  6418. (1) Recipes for building builtin_list.h and builtin_proto.h are
  6419. not linearizable, and (2) Nothing ensures that 'make context' is run
  6420. first for apps/builtin. This change address both issues. From Juha
  6421. Niskanen.
  6422. NuttX-7.9
  6423. ---------
  6424. The 109th release of NuttX, Version 7.9, was made on April 14, 2015,
  6425. and is available for download from the SourceForge website. Note
  6426. that release consists of two tarballs: nuttx-7.9.tar.gz and
  6427. apps-7.9.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  6428. file for build information).
  6429. Additional new features and extended functionality:
  6430. * Core OS:
  6431. - Assertions: Add support for dumping board-specific information on
  6432. assertions. From David Sidrane.
  6433. - boardctl(): : Add a new non-standard OS interface called boardctl().
  6434. This is similar to a driver IOCTL call. But this is an IOCTL call
  6435. directly on the board logic. This function will eventually replace
  6436. all of the ad hoc OS interfaces that are current used to perform
  6437. application specific initialization and application driver test
  6438. configuration. It essentially formalizes and institutionalizes
  6439. these rogue interface in to at least a single crazy call.
  6440. * Graphics:
  6441. - Line Joins: Line drawing graphic functions now take an argument that
  6442. will draw a circular "cap" on the ends of lines to support cleaner
  6443. joining of lines segments..
  6444. * Common Drivers:
  6445. - SPI iInterface: Add an SPIDEV_USER so that there can be board-
  6446. specific definitions of SPI devices.
  6447. - I2C Interface: Add a user provided void * argument to the I2C
  6448. callback method for the I2C slave interface. Suggested by Nate
  6449. Weibley.
  6450. - AT24 EEPROM Driver: Add support for (1) the byte-oriented read()
  6451. method, (2) devices that have extended memory regions, and (3)
  6452. devices that use 8-bit addressing.
  6453. - Freescale MPL115A barometer: Add driver for the Freescale MPL115A
  6454. barometer. From Alan Carvalho de Assis.
  6455. - CS2100-CP: Add a driver for the CS2100-CP Fractional-N Multipler
  6456. chip.
  6457. - RTC IOCTls: Added the definitions of a driver based RTC interfaces
  6458. and RTC upper half driver.
  6459. * File Systems/Block Drivers/MTD:
  6460. - umount2(): Added to support un-mount flags. umount() is now a macro
  6461. that just calls umount2() with flags = 0.
  6462. - File system interface: Pass the umount2() flags to every unbind()
  6463. implementation. That is where the decision to umount or not and how
  6464. to umount will be made.
  6465. - FAT unbind: Add support for umount2(target, MNT_FORCE) in the FAT
  6466. file system.
  6467. * Networking:
  6468. - netdev_register(): Improve the network device registration logic.
  6469. When multiple link types are used, modify how each interface number
  6470. is assigned to the device name by incrementing the device number
  6471. individually for each interface link type. From Max Neklyudov.
  6472. - Add TUN network device. Used to support the Netutils PPPD
  6473. implementation. From Max Neklyudov.
  6474. * ARMv7-M
  6475. - ARM Cortex-M7: Add basic support for the Cortex-M7 architecture.
  6476. - ARMv7 Common Lazy Exception handling. Add common support for lazy
  6477. FPU state saving. MCU-specific lazy FPU saving was already in place.
  6478. This change just makes the code share-able.
  6479. * Atmel SAMA5D3/4 Drivers:
  6480. - SAMA5 Serial: Backport support for flowcontrol and termios from
  6481. SAM3/4.
  6482. * Atmel SAMV7:
  6483. - Atmel SAMV7: Add architecture support for the Atmel SAMV7 family
  6484. (Cortex-M7)
  6485. * Atmel SAMV7 Boards:
  6486. - Atmel SAMV71 Xplained Ultra: Add board support for this SAMV7 board.
  6487. This initialize release includes support for: SDRAM, TWI/I2C, SPI,
  6488. Ethernet, HSMCI, DMA, GPIOs, UARTs, AT24 EEPROM and the maXTouch
  6489. Xplained Pro LCD. Drivers are available for SSC/I2C, the WM8904,
  6490. the maXTouch trouchscreen, and USB device but have not yet been
  6491. fully integrated in this release.
  6492. * SiLabs EFM32 Drivers:
  6493. - EFM32 USB Device is now functional with the efforts of From Pierre-
  6494. noel Bouteville.
  6495. - EFM32 I2C: Add I2C driver. From Pierre-noel Bouteville.
  6496. * STMicro STM32:
  6497. - STM32F372/F373: Adds architecture support for this STM32 parts.
  6498. Tested on STM32F373CC. Contributed by Marten Svanfeldt.
  6499. * STMicro STM32 Drivers:
  6500. - STM32 RTCC: Break out a new internal interface, stm32_rtc_setdatetime().
  6501. This eliminates some un-necessary time conversions. From Freddie Chopin.
  6502. - STM32 RTCC: Add an implementation of the RTC lower half interface
  6503. for the STM32.
  6504. - STM32 RTCC: Extend the RTC interface to support reading subseconds.
  6505. From Jussi Kivilinna.
  6506. - STM32 BBSRAM: Adds the ability to use the STM32F2 and STM32F4 Battery
  6507. Backed SRAM in the file system. With an option to Save Panic context
  6508. to one of the files. From David Sidrane.
  6509. * STMicro STM32 Boards:
  6510. - Olimexino-STM32: Board support for the Olimexino STM32 board from David
  6511. Sidrane.
  6512. - Viewtool-STM32F107: Add support for an optional, add-on Freescale
  6513. MPL115A baramoter. From Alan Carvalho de Assis.
  6514. * TI Tiva:
  6515. - TM4C1294: Add support for the TM4C1294. Contributed by Frank Sautter.
  6516. * TI Tiva Drivers:
  6517. - Tiva ADC: Updated files to allow for ADC and PWM triggering by a
  6518. timer. Refactoring of ADC implementation. From Calvin Maguranis.
  6519. - Tiva Timer: Refactoring by Calvin Maguranis
  6520. * TI Tiva Boards:
  6521. - TM4C123G-launchpad: Add ADC support. From Calvin Maguranis.
  6522. - TM4C123G-launchpad: Add board button interrupt support. From Calvin
  6523. Maguranis.
  6524. - TM4C1294 Launchpad: Add support for the TM4C1294 Launchpad.
  6525. Contributed by Frank Sautter.
  6526. * Microchip PIC32
  6527. - PIC32MZ: Add architectural support for the PIC32MZ (MIPS32 M14k).
  6528. Includes contributions from Kristopher Tate.
  6529. * Microchip PIC32MZ Boards
  6530. - PIC32MZ Starter Kit: Add basic board support for the PIC32MZ.
  6531. Includes contributions from David Sidrane.
  6532. * C Library/Header Files:
  6533. - gettimeofday(): This function is no longer a core OS interface. It
  6534. is only a wrapper around clock_settime().
  6535. - settimeofday(): Added. gettimeofday has been deprecated in POSIX
  6536. 2008. settimeofday() was never part of POSIX, but I decided to add
  6537. it to libc as well just for symmetry.
  6538. - Day-of-Week: Add CONFIG_TIME_EXTENDED to support the last 3 members
  6539. of the tm struct and support for filling them in with the day of the
  6540. week. From David Sidrane.
  6541. - sighold(), sigrelse(), sigignore(), sigset() and sigpause(): New
  6542. signal handling functions.
  6543. - sys/select.h: Extend the fd_set type definition so that it can
  6544. handle more than 32 descriptors (if so configured). From Max
  6545. Neklyudov.
  6546. - netdb.h: Add a mostly-commented-out version of the standard netdb.h
  6547. header file.
  6548. - include/nuttx/board.h: Remove common board function prototypes from
  6549. other files and consolidate them in this new header file.
  6550. * Applications:
  6551. - OS test: Improved error checking for sem_timedwait() from Juha
  6552. Niskanen.
  6553. - OS test: Add a simple test of sigprocmask, sighold, and sigrelse.
  6554. - PPPD test: Add PPPD test case. Split out from the PPPD daemon by
  6555. Brennan Ashton.
  6556. - Netutils: Add a PPP daemon. From Max Neklyudov.
  6557. - NSH: NSH initialization now calls boardctl(BOARDIOC_INIT) instead
  6558. of nsh_archinitialize(). Remove support for CONFIG_NSH_ARCHMAC.
  6559. It is not used and there are better ways to do that operation.
  6560. - NSH: Allow NSH 'date' command with no hardware RTC. This command
  6561. is useful without an RTC too. Also, this permits testing on the
  6562. simulator which never has an RTC.
  6563. - apps/examples/: Several tests changed (touchscreen adc, pwm,
  6564. graphics). No longer call directly into the OS, but rather
  6565. indirectly via boardctl().
  6566. - Modbus: Includes extensions to support RTU master mode by
  6567. Armink(383016632@qq.com): https://github.com/armink/FreeModbus_Slave-Master-RTT-STM32.
  6568. Ported to NuttX by Darcy Gong.
  6569. - TZ database: All logic to build timezone database needed for
  6570. localtime() support. Does not do much else yet.
  6571. Efforts In Progress. The following are features that are partially
  6572. implemented but present in this release. They are not likely to be
  6573. completed soon.
  6574. * Processes. Much of the work in this release is focused on the
  6575. realization of Unix-style user processes in NuttX. There is more to
  6576. be done, however. The full roadmap and status is available at:
  6577. https://cwiki.apache.org/confluence/display/NUTTX/Memory+Configurations
  6578. * XMega: There are some fragments in place for an XMega port. That
  6579. port has not really started, however.
  6580. Bugfixes. Only the most critical bugfixes are listed here (see the
  6581. ChangeLog for the complete list of bugfixes and for additional, more
  6582. detailed bugfix information):
  6583. * Core OS:
  6584. - atexit(): Fix compile failure due to reference to undefined variable
  6585. in certain configurations. From Juha Niskanen.
  6586. - syscalls: Last changes to message queue prototypes did not make it
  6587. into call gate logic. Some additional errors had crept as well since
  6588. the system calls are seldom used.
  6589. - waitpid(): Do not use uninitialized boolean in waitpid(). From Juha
  6590. Niskanen.
  6591. - Timing functions: Fix some nanosecond comparisons. Comparisons should
  6592. be greater than OR EQUAL TO 1000000000 for maximum value of nanoseconds
  6593. in struct tm. From Juha Niskanen.
  6594. - Time initialization: Fix an error in time initialization when there
  6595. is no RTC and the time is initialized from a fixed configured value.
  6596. The call to clock_calendar2utc() was returning the time in units of
  6597. seconds. The initialization logic, however, was expecting to get
  6598. time in units of days. This problem has been there forever but
  6599. obviously has not significant impact to behavior in systems where
  6600. time is not visible.
  6601. - mq_timedsend(): Should not check for valid time if there is space
  6602. in the message queue. Noted by Freddie Chopin.
  6603. - select() and sem_timedwait(): Fix places where the errno value was
  6604. being overwritten by subsequent actions so that the returned errno
  6605. value was incorrect. From Max Neklyudov.
  6606. - clock_systimer64(): Fix a problem in clock_systimer64 that occurs
  6607. when (1) the 64-bit system time is enabled, and (2) the value of
  6608. CONFIG_USEC_PER_TICK is less than 1 milliseconds (such as when using
  6609. the tickless mode of operation). In that case, the conversion of
  6610. time to 64-bit millisecond value in clock_systmer64() causes some
  6611. bad times to be returned. Time was converted to milliseconds, then
  6612. to configured ticks. Precision was lost in the millisecond
  6613. conversion. The fix is to first convert time to a 64-bit microsecond
  6614. value, then to the configured tick value. Noted by David Sidrane.
  6615. - clock_systimespec(): When an RTC is used clock_systimespec() must
  6616. subtract the basetime from the returned time. It needs to return
  6617. the time since power up, no the current time. Issue noted by Max
  6618. Neklyudov.
  6619. - AIO: correct some backward tests in aio_read() and aio_write():
  6620. Socket descriptors have higher numbers than file descriptors. In
  6621. aio_contain(), Copy u.ptr (void *) when initializing aioc and not
  6622. the case specific u.aioc_filep. From Michal Ulianko.
  6623. * File Systems/Block Drivers/MTD:
  6624. - procfs: Fix potential NULL pointer dereference of 'node'. From
  6625. Juha Niskanen.
  6626. - FAT: fat_unbind() was accessing 'fs->fs_sem' after freeing the 'fs'
  6627. struct. From Juha Niskanen.
  6628. - mkfatfs: Use DMA memory for mkfatfs when needed. This makes mkfatfs
  6629. use fat_dma_alloc() when CONFIG_FAT_DMAMEMORY is set. This is needed
  6630. to ensure mkfatfs operates with boards that use DMA for microSD.
  6631. From Andrew Tridgell via the PX4/NuttX repository.
  6632. - FAT unmount: Fix a bug in the FAT unbind() logic. There were
  6633. problems with the way certain internal list handling was
  6634. implemented. The end result is that newly opened or cloned file
  6635. structures were never being added to the list of open files. So
  6636. when the unmount() happens, it always looked like there were not
  6637. open files and a crash could ensue.
  6638. - FAT mounting: Fix misthink when CONFIG_ENDIAN_BIG=y. From Lwazi Dube.
  6639. * Common Drivers:
  6640. - CAN upper half driver: Some lines had to be reordered in the can_open
  6641. function otherwise the open count will only be incremented from 0 to
  6642. 1. This caused problems when trying to open the can bus from two
  6643. different tasks. SourceForge Patch #46.
  6644. * Crypto:
  6645. - crypto: Fix issues when AES support was added for the STM32L1.
  6646. From Juha Niskanen.
  6647. * Networking:
  6648. - Network initialization: Divide net_intiialize() into net_setup() and
  6649. net_initialize() to solve a chicken-and-egg problem. net_setup()
  6650. must be called before up_initialize() is called so that networking
  6651. data structures are ready to register new network devices.
  6652. net_initialize() now does only timer related operations and is
  6653. called AFTER up_initialize() where the timers are configured.
  6654. Problem noted by Max Neklyudov.
  6655. - netdev_unregister(): Fix a list handling error. From Max Neklyudov.
  6656. - Socket dup: Do not call sockfd_socket() twice. From Juha Niskanen.
  6657. * Common Drivers:
  6658. - max11802 touchscreen: Fix possible unmatched IRQ restore (not
  6659. normally a problem, but could happen in certain configurations).
  6660. Noted by Juha Niskanen.
  6661. - MMCSD SPI Multi-block transfers: ACMD23 must be preceded with CMD55
  6662. command as any other ACMD commands. Also, after the block reading
  6663. wait loop must be inserted before writing the next block of data to
  6664. the sd card. From Dmitry Nikolaev via Jussi Kivilinna.
  6665. - MMCSD SDIO: Fix some bad logic when file system debug is turned on:
  6666. Arguments to syslog were missing so that garbage was being printed.
  6667. - Common upper-half serial driver: Report correct number of bytes free
  6668. in serial buffer with FIONWRITE. From Sami Pelkonen via Jussi Kivilinna.
  6669. - Pipes/Fifos: Fix zero-lenth writes to pipes/FIFOs. From Jussi Kivilinna.
  6670. - USB device MSC: Add NULL pointer check. From Juha Niskanen.
  6671. - BCH driver: Avoid NULL pointer dereference when bch->refs == 255.
  6672. From Juha Niskanen.
  6673. - Various drivers: The inode unlink method should not be support if
  6674. operations on the root pseudo-filesystem are disabled.
  6675. * ARMv7-M
  6676. - ARMv7M MPU: Bad syntax in ARMv7-M MPU logic would cause failure to
  6677. write the correct value to the MPU_RASR register. From Juha Niskanen.
  6678. * Atmel SAM3/4 Drivers:
  6679. - SAM3/4 Serial TERMIOS: A side-effect of changing serial settings
  6680. via TERMIOS (such as tcsetattr) is that serial interrupts were being
  6681. left disabled. This is not a problem if the serial configuration is
  6682. changed when there are no open references to the serial device. In
  6683. that case, serial interrupts are disabled and will not be enabled
  6684. enabled until the serial device is first opened. But it is fatal if
  6685. the serial device is already opened and if there is a task waiting
  6686. to receive data. In that case, the side-effect of disabling
  6687. interrupts is fatal: That task is then left hanging with interrupts
  6688. disabled.
  6689. - SAM3/4 Serial: The IMR register is read-only. This means that
  6690. sam_restoreints() did not actually re-enable UART interrupts
  6691. (Fortunately, that function was not being used up to this point).
  6692. - SAMA5 HSMCI: Fix a bug in SAMA5 HSMCI. The bitfield mask and shift
  6693. values were reversed resulting in a trashed value for the number of
  6694. blocks in the BLOCKR register. This was sufficient to prevent DMA
  6695. writes from working.
  6696. * Atmel SAMA5 Drivers:
  6697. - SAMA5 Timer/Counter: Fix typos in timer/counter header file. From
  6698. Bob Doiron.
  6699. * STMicro STM32 Drivers:
  6700. - STM32 PWR and RTC: Changes to support fully write protecting the
  6701. backup domain. N.B. stm32_pwr_enablebkp did not account for the delay
  6702. from enable to the domain being writable. The KISS solution is a
  6703. up_udelay. A more complex solution would be a negated write test
  6704. with restore. From David Sidrane.
  6705. - STM32 SPI: Add missing SPI callback functions to the STM32 SPI
  6706. driver. From Freddie Chopin.
  6707. - STM32 I2C: Add missing NULL check. From Juha Niskanen.
  6708. - STM32 USB device: Fix stale initialization invalidating later NULL
  6709. check. From Juha Niskanen.
  6710. - STM32 UART: Fix RX DMA setup for UART5. From Jussi Kivilinna.
  6711. - STM32 UART: Make input hardware flow-control work with RX DMA. From
  6712. Jussi Kivilinna.
  6713. - STM32 RTC and clock control: The STM32F4Discovery board doesn't
  6714. come with a Low speed external oscillator so the default LSE source
  6715. for the RTC doesn't work. In stm32_rtcc.c the up_rtc_initialize()
  6716. logic doesn't work with the LSI. The check on RTC_MAGIC on the BK0R
  6717. register lead to rtc_setup() call that rightfully enables the LSI
  6718. clock; but the next times, when the rtc is already setup, the
  6719. rtc_resume() call does NOT start the LSI clock! The right place to
  6720. put LSE/LSI initialization is inside stm32_stdclockconfig() in
  6721. stm32fxxxxx_rcc.c. Doing this I checked the possible uses of the
  6722. LSI and the LSE sources: the LSI can be used for RTC and/or the
  6723. IWDG, while the LSE only for the RTC (and to output the MCO1 pin).
  6724. This change is not verified for any other platforms. From Leo
  6725. Aloe3132
  6726. * Tiva Drivers:
  6727. - Tiva GPIO driver needed small fixes in the configuration routines and
  6728. discovered false-positive bugs in interrupt testing: interrupts are
  6729. now verified to actually be working reliably. From Calvin Maguranis .
  6730. * MIPS32:
  6731. - mips32/Toolchain.mk: Current Pinguino toolchain uses the prefix p32-
  6732. instead of mips-.
  6733. * C Library/Header Files:
  6734. - sigaddset() and sigdelset(): Need to set errno if a bad signal
  6735. number is received.
  6736. - sfrtime(): Missing implementation of %C in sfrtime() C (was being
  6737. treated as %y). From Freddie Chopin.
  6738. - pthread.h: Fix PTHREAD_COND_INITIALIZER.
  6739. - ungetc.c: Fix NULL pointer dereference in ungetc() if 'stream' was
  6740. NULL, 'stream->fs_oflags' was evaluated. From Juha Niskanen.
  6741. - Fixes to asinh(), atanh(), and sinh(): The 'basic' expansions all
  6742. exhibited bad cancellation errors near zero (<= 1E-10). This can be
  6743. easily seen e.g. with x = 1E-30, the results are all zero though they
  6744. should be extremely close to x. The cutoff values (1E-5, 1E-9) are
  6745. chosen so that the next term in the Taylor series is negligible (for
  6746. double). Functions could maybe be optimized to use only first term (x)
  6747. and a smaller cutoff, just bigger than where the cancellation occurs
  6748. - localtime(): Inconsistent configuration name: CONFIG_LIBC_TZDIR vs
  6749. CONFIG_LIBC_TZ_TZDIR. Former wins.
  6750. * Applications:
  6751. - Modbus: Fix some compile problems when TCP is enabled.
  6752. NuttX-7.10
  6753. ----------
  6754. The 110th release of NuttX, Version 7.10, was made on June 9, 2015,
  6755. and is available for download from the SourceForge website. Note
  6756. that release consists of two tarballs: nuttx-7.10.tar.gz and
  6757. apps-7.10.tar.gz. Both may be needed (see the top-level nuttx/README.txt
  6758. file for build information).
  6759. Additional new features and extended functionality:
  6760. * Binary Loader:
  6761. - ARMv-7M, binfmt/, STM32: Add support uClibc++ exceptions. This
  6762. involved additional handling for relative relation types, additional
  6763. support for unwinding, as well as additional changes. The
  6764. culmination of a big effort from Leo Aloe3132.
  6765. * Graphics/Graphic Drivers:
  6766. - RA8875 LCD driver contributed by Marten Svanfeldt.
  6767. * File Systems/Block Drivers/MTD:
  6768. - Union File System: Add support for a union file system that can be
  6769. used to overlay and merge the content of two mounted file systems.
  6770. * USB Host:
  6771. - USB Hub Support: Bring in USB hub-related files from
  6772. https://github.com/kaushalparikh/nuttx. This is the work of Kaushal
  6773. Parikh. This is quite a bit more hub logic was needed in before the
  6774. USB hub support was fully functional. This involved changing many
  6775. USB host controller driver interfaces and modifications to many
  6776. drivers.
  6777. - USB host CDC/ACM class driver: Added initial implementation of a
  6778. host-side CDC/ACM driver. Initial version was a great learning
  6779. experience, but probably should be partially redesigned (as
  6780. discussed in the top-level TODO file).
  6781. - IPv6 Routing: Complete implementation of the IPv6 routing logic.
  6782. From Max Neklyudov.
  6783. * Networking:
  6784. - Local Sockets: Add poll support for Unix stream sockets. From Jussi
  6785. Kivilinna.
  6786. - net/: ARP, ICMP, ICMPv6, PKT, TCP, and UDP now all receive event
  6787. notifications from both network device packet processing, but now
  6788. also from Device-specific events such as when the network goes down.
  6789. The device notification callback structure is now supports dual
  6790. linkages so that the client can receive notifications from both
  6791. source; The device structure now includes a list of clients that
  6792. want to receive device related notifications. This prevents network
  6793. actions from hanging when the device goes down and will be an
  6794. essential part of future support for removable network devices.
  6795. Some of the core logic was contributed by Max Neklyudov.
  6796. - TUN: Misc. improvements to the TUN driver, mostly related to poll().
  6797. Also several bugfixes. From Max Neklyudov.
  6798. * Simulation Platform:
  6799. - Simulator: Add logic to test localtime and TZ database. See
  6800. apps/system/README.txt for info.
  6801. - Simulation: Add a configuration for testing the Union File System.
  6802. * Calypso:
  6803. - Calypso Compal-E86: Updates for execution out of FLASH on the C139
  6804. phone. From Craig Comstock.
  6805. * Atmel SAMD/L:
  6806. - SAML21 Support: And chip definitions, configuration framework,
  6807. memory map and pin configuration files for SAML21 support.
  6808. * Atmel SAMD/L Boards:
  6809. - SAML21-Xplained: Add a board support for the SAML21 Xplained Pro.
  6810. This is based on the similar SAMD20 Xplained Pro board.
  6811. * Freescale/NXP KL:
  6812. - KL25Z64: Added support for the KL25Z64. The KL25Z64 is a lower
  6813. memory variant of the KL25Z128 and is used on the Teensy LC. From
  6814. Michael as SourceForge patch 50.
  6815. * Freescale/NXP KL Boards:
  6816. - Teensy-LC: Add board support for the Teensy LC board. Support is
  6817. based off the Freedom KL25Z board. LED, PWM, and UART0 have been
  6818. tested. The SPI pins are mapped correctly but have not yet been
  6819. tested. From Michael Hope as SourceForge patch 51.
  6820. * NXP LPC111x:
  6821. - LPC111x: Support for the LPC11xx family (the LPC1115 MCU in
  6822. particular). Contributed by Alan Carvalho de Assis.
  6823. * NXP LPC111x Boards:
  6824. - LPCXpresso LPC1115: Support for the LPCXpression LPC1115
  6825. board. Contributed by Alan Carvalho de Assis.
  6826. * NXP LPC17xx Drivers:
  6827. - LPC17xx Ethernet: Add support for the Micrel KSZ8041 PHY to the
  6828. LPC17xx Ethernet driver.
  6829. * NXP LPC17xx Boards:
  6830. - Lincoln60: Add a network enabled configuration for the Lincoln60
  6831. board.
  6832. * Atmel SAM3/4 Drivers:
  6833. - SAM4CM: Add support for optical mode for the SAM4CM UART1. From
  6834. Max Neklyudov.
  6835. * Freescale (NXP) Kinetis:
  6836. - Kinetis K20: Basic support for the Kinetis K20 architecture. Taken
  6837. from PX4. This is the work of Jakob Odersky.
  6838. * Atmel SAMV7 Boards:
  6839. - SAMV71-Xplained w/maXTouch Xplained Pro: A TWIHS fix was the last
  6840. barrier to getting the touchscreen working in the maXTouch Xplained
  6841. Pro LCD. Added the NxWM integrated graphics demonstration
  6842. configuration.
  6843. * STMicro STM32:
  6844. - STM32: Added support for STM32F302K8 and STM32F302K6. From Ben Dyer
  6845. via PX4/David Sidrane.
  6846. - STM32F205RG: Add basic support for the STM32F205RG. From SourceForge
  6847. Ticket 40 (anonymous, 2015-05-31).
  6848. - STM32 F3: Add DBGMCU register definitions for the F3 family. From
  6849. Greg Meiste.
  6850. * STMicro STM32 Drivers:
  6851. - STM32 LCDC: Defined a second interface for the dma2d controller.
  6852. LTDC only controls the display visibility but the DMA2D controller
  6853. changes the content of the frame buffer (buffer of the layer). From
  6854. Marco Krahl.
  6855. - STM32 PVD: Added support for STM32's Programmable Voltage Detector
  6856. (PVD) feature. By Dmitry Nikolaev, submitted by Juha Niskanen.
  6857. * STMicro STM32 Boards:
  6858. - STM32F429i-Disco: Add support for the new DMA2D features to the LTDC
  6859. configuration. From Marco Krahl.
  6860. * TI Tiva Boards:
  6861. - TM4C1294 Launchpad: Added TM4C1294NCPDT EN0_LED2 (10/100-Base-Tx);
  6862. removed all booster pack pin definitions. From Frank Sautter.
  6863. * C Library/Header Files:
  6864. - libc: Add an option to disable support for long long formats in
  6865. lib_vsprintf(). On very tiny platforms, this reduces the footprint
  6866. by omitting large libgcc.a libraries to perform the 64-bit
  6867. arithmetic operations. From Alan Carvalho de Assis.
  6868. * Applications: apps/system:
  6869. - nuttx/zoneinfo: Add logic to build a ROMFS file system
  6870. containing the timezone data.
  6871. * Applications: apps/nshlib:
  6872. - Add poll support for Unix stream sockets. From Jussi Kivilinna.
  6873. - Enhancements to NSH ifconfig for case of multi-link operation, TUN
  6874. device and local connections. From Max Neklyudov.
  6875. - Enhanced output to NSH ping command from Max Neklyudov.
  6876. - The NSH mount command now recognizes the Union filesystem type when
  6877. listing mounted file systems.
  6878. * Applications: apps/netutils:
  6879. - apps/netutils/thttpd/ and apps/examples/thttpd/: Add support for
  6880. using binfs/ with the Union FS instead of NXFLAT. NXFLAT is
  6881. probably the better solution but recently compiler changes make it
  6882. unusable. binfs or ELF are fallback binary formats. This commit
  6883. adds an option to use binfs with the Union FS.
  6884. * Applications: apps/examples:
  6885. - Modify/simpify apps/examples build files. From Roman Saveljev.
  6886. - apps/examples/ltdc: Add testing support for the STM32 LTDC's 2D DMA.
  6887. From Marco Krahl.
  6888. - apps/examples/ostest: Add a test of nested signals. There are no
  6889. failures to handle signals but neither am I getting any nested signal
  6890. handling.
  6891. - apps/examples/elf: Add configuration options to support building the
  6892. hello++4 example that depends upon having uClibc++ available. Also
  6893. add hello++5 to the ELF example From Leo aloe3132.
  6894. - apps/examples/unionfs: Add a test of the union file system to
  6895. apps/examples.
  6896. Efforts In Progress. The following are features that are partially
  6897. implemented but present in this release. They are not likely to be
  6898. completed soon.
  6899. * Processes. Much of the work in this release is focused on the
  6900. realization of Unix-style user processes in NuttX. There is more to
  6901. be done, however. The full roadmap and status is available at:
  6902. https://cwiki.apache.org/confluence/display/NUTTX/Memory+Configurations
  6903. * XMega: There are some fragments in place for an XMega port. That
  6904. port has not really started, however.
  6905. Bugfixes. Only the most critical bugfixes are listed here (see the
  6906. ChangeLog for the complete list of bugfixes and for additional, more
  6907. detailed bugfix information):
  6908. * Core OS:
  6909. - boardctl(): Add missing case causing that caused failures of PWM
  6910. test.
  6911. - pthread_kill(): Re-implemented pthread_kill(). It was just a simple
  6912. wrapper around kill() but since the correct dispatching of signals
  6913. for multi-threaded task groups has been implemented, calling kill()
  6914. does not do what pthread_kill() is supposed to do. The corrected
  6915. implementation of pthread_kill() will direct the signal specifically
  6916. to the specific pthread and no other.
  6917. - uint32_t callbacks: Update the type passed to watchdog timer
  6918. handlers. Using uint32_t is a problem for 64-bit machines because
  6919. it is too small to pass a pointer. uintptr_t is a more appropriate
  6920. type.
  6921. - mq_timedreceive(): move the location where the errno value is set;
  6922. the ETIMEDOUT errno setting was being overwritten by subsequent
  6923. actions before returning. Noted by Freddie Chopin.
  6924. - POSIX message queues: Move mq_setattr() and mq_getattr() from
  6925. nuttx/libc/mqueue to nuttx/sched/mqueue. Also add syscall support
  6926. for mq_setattr() and mq_getattr(). This is necessary in protected
  6927. and kernel builds because in those cases the message queue
  6928. structure is protected and cannot be accessed directly from user
  6929. mode code.
  6930. * File Systems/Block Drivers/MTD:
  6931. - MTD: Increase the size of the fields in the geometry structure
  6932. (again) to support larger FLASH sizes. Needed by Sebastien Lorquet.
  6933. * Common Drivers:
  6934. - poll(): Fix resource leak and memory corruption on poll failure.
  6935. From Jussi Kivilinna.
  6936. * USB Host:
  6937. - LPC31xx and SAMA5Dx EHCI: Fix cache related problem in LPC31 and
  6938. SAMA5Dx EHCI drivers. All buffers are now aligned with the cache
  6939. line size in both starting address and in length. This cause major
  6940. problems in unlucky builds where the USB host buffers where
  6941. unaligned and abutting other data. The cache flush and invalidate
  6942. operations could be subverted by accesses to adjacent data or could
  6943. have unexpected side effects. This bug has been in the ECHI drivers
  6944. forever, but was only revealed due to unlucky memory allocations
  6945. during the integration of the hub feature.
  6946. * USB Device:
  6947. - All USB device class drivers: There needs to be a check to make
  6948. sure that the size of a returned string does not exceed the size of
  6949. the allocated request buffer. Strings such as vendor names or
  6950. product names will be truncated to fit in the request buffer.
  6951. * Networking:
  6952. - TCP: Correct failures in long Telnet sessions by increasing th
  6953. size of the number of bytes sent from uint16_t to uint32_t. This
  6954. avoids an integer overflow that causes a long Telnet session to be
  6955. closed unexpectedly. From Rony XLN.
  6956. - Network locks: Correct some network lock logic: Two error
  6957. conditions where the network was not being unlocked and one where it
  6958. was getting unlocked twice. From Jussi Kivilinna.
  6959. - Local Sockets: Local stream sockets had problem of double releasing
  6960. pipes (both server and client attempt release), which causes wrong
  6961. pipe pair being closed in multi-client case. Solve by adding per
  6962. connection instance ID to pipe names. From Jussi Kivilinna.
  6963. - TCP: Fix an important TCP networking bug: 16-bit flags was being
  6964. converted to 8-bits in a few locations, causing loss of status
  6965. indications.
  6966. - TCP: net_startmonitor() always returned OK. In the race case
  6967. where a socket has already been closed, it correctly handled the
  6968. disconnection event but still returned OK. Returning OK caused the
  6969. callers of net_startmonitor() to assume that the connection was
  6970. okay, undoing the good things that net_startmonitor() did and
  6971. causing the socket to be incorrectly marked as connected. This
  6972. behavior was noted by Pelle Windestam.
  6973. - setsockopt() failed when setting timeouts to values less tha 100
  6974. msec. That is because the timeout is limited to stops of 1
  6975. decisecond and because the conversion of structure timeval was
  6976. truncating the microsecond remainder. The utility
  6977. net_timeval2dsec() now accepts and option to determine how it
  6978. handles the remainder: truncate, discarding the remainder, use
  6979. the remainder to round to the closed decisecond value, or use any
  6980. non-zero remainder to the next larger whole decisecond value. Bug
  6981. discovered by Librae.
  6982. - TCP: In the TCP connection operation, it was trying to setup the
  6983. network monitor BEFORE the socket was successfully connected. This,
  6984. of course, has ALWAYS failed because the socket is not yet connected
  6985. and the TCP state is not yet correct for a connected socket. However,
  6986. because of other changes net_startmonitor() now returns a failure
  6987. condition that causes worse problems when trying to connect. The fix
  6988. is to move the logic that starts the network monitor to AFTER the
  6989. socket has been successfully connected.
  6990. * Atmel SAM3/4 Drivers:
  6991. - SAM4CM and SAMA5D Free-running timer: Logic that samples the free
  6992. running counter reads the pending interrupt status register and can
  6993. cause interrupts to be lost. So, if when the status register is
  6994. read, the logic must also handle the timer overflow event. Found
  6995. and fixed by Max Neklyudov.
  6996. * Atmel SAMA5 Drivers:
  6997. - SAM3/4 Serial: When reconfigured, serial does not receive bytes
  6998. from UART. This happens because RX interrupt was disabled in the
  6999. setup routine. Fixed this I save interrupt configuration before
  7000. UART shutdown and restore it after. From Max Neklyudov.
  7001. * NXP LPC17xx Drivers:
  7002. - LPC176x GPIO: Reorder steps when an output GPIO is configured in
  7003. order to avoid transient bad values from being output. From Hal
  7004. Glenn.
  7005. - LPC17 USB OHCI: Correct some initialization of data structures.
  7006. When hub support is enabled, it would overwrite the end of an array
  7007. and clobber some OS data structures.
  7008. - LPC17xx Ethernet: Review, update, and modify the Ethernet driver so
  7009. that it works better with CONFIG_NET_NOINTS=y. Also, update all
  7010. LPC17xx networking configurations so that they have
  7011. CONFIG_NET_NOTINTS=y selected.
  7012. * SiLabs EMF32 Drivers:
  7013. - EFM32 SPI: Add missing SPI GPIO pin initialization. From Pierre-noel
  7014. Bouteville.
  7015. * STMicro STM32:
  7016. - STM32 F3: Added missing EXTI definitions for the STM32 F3; Correct
  7017. an error the port D base address in the STM32 F30x and F37x memory
  7018. maps. From Greg Meiste.
  7019. * STMicro STM32 Drivers:
  7020. - STM23 RTC: Fix an error introduced into stm32_pwr_enablebkp().
  7021. That function must preserve the previous state of backup domain
  7022. access on return.
  7023. - STM32 RTC counter: Now need to enable backup domain write access
  7024. when setting the time. From Darcy Gong.
  7025. - STM32 OTG FS and HS: Added protection in the event that out-of-bound
  7026. endpoint numbers are received. From David Sidrane.
  7027. * STMicro STM32 Boards:
  7028. - STM32F429i Disco: (1) Fix a bad return value if the LCD driver is
  7029. already initialized. (2) The LCD driver initialization is now
  7030. performed during the early boot sequence. (3) Increased the size
  7031. of the message queue from 32 to 64 in the lcd configuration. From
  7032. Marco Krahl.
  7033. * TI Tiva
  7034. - Fixes for Tiva TM4C1294NCPDT. From Frank Sautter.
  7035. * Atmel SAMV71 Drivers:
  7036. - SAMV7 TWIHS: Fix SAMV TWIHS logic that performs multi-message
  7037. transfers with and without repeated starts.
  7038. * Atmel SAMA5D3/4 Dirvers:
  7039. - SAMA5 CAN: Fix SAMA5 CAN frame construction. From Max Holtzberg.
  7040. * C Library/Header Files:
  7041. - stdlib.h: MAX_RAND should be RAND_MAX.
  7042. - assert.h: Wrap definitions of assertion macros in do while so that
  7043. they are valid C statements. Numerous places throughout the code
  7044. where semicolons were missing at the end of an assertion also had to
  7045. be fixed. Suggested by orbitalfox.
  7046. - inetntoa(): Correct errors in printing IP address when type char is
  7047. signed and the value is >= 128. From Max Neklyudov.
  7048. * Tools:
  7049. - Tools: Fix test for the existence of the apps/ directory in
  7050. configure.c. Fix backward interpretation of options, -l was selecting
  7051. Windows and -w was selecting Linux. This was SourceForege Ticket #39.
  7052. * Applications: apps/nshlib:
  7053. - apps/nshlib/nsh_timcmds.c: Check return values from time functions.
  7054. - apps/nshlib/: Fix handling of gmtime_r return value in time commands.
  7055. gmtime_r returns a pointer, not an int.
  7056. * Applications: apps/netutils:
  7057. - apps/netutils/ntp: Fix mismatched sched_lock/unlock. Noted by Juha
  7058. Niskanen.
  7059. * Applications: apps/examples:
  7060. - apps/examples/nxlines: Fix missing right bracket that causes
  7061. compile error when CONFIG_NX_XYINPUT=y. From Librae.
  7062. - apps/examples: When boardctl() fails, need to print errno not the
  7063. returned value which will always be -1.
  7064. - apps/examples: Correct use of the BOARDIOC_GRAPHICS_SETUP boardctl()
  7065. call.
  7066. NuttX-7.11 Release Notes
  7067. ------------------------
  7068. The 111th release of NuttX, Version 7.11, was made on August 13 2015,
  7069. and is available for download from the Bitbucket.org website. Note
  7070. that release consists of two tarballs: nuttx-7.11.tar.gz and
  7071. apps-7.11.tar.gz. These are available from:
  7072. https://bitbucket.org/patacongo/nuttx/downloads
  7073. https://bitbucket.org/nuttx/apps/downloads
  7074. Both may be needed (see the top-level nuttx/README.txt file for build
  7075. information).
  7076. Additional new features and extended functionality:
  7077. * Core OS:
  7078. - clock_gettime(): Use up_timer_gettime for CLOCK_MONOTONIC in
  7079. tickless mode. From Max Neklyudov.
  7080. - waitpid(): Implement WNOHANG for waitpid() only and for the case of
  7081. CONFIG_SCHED_HAVE_PARENT not selected. From Max Neklyudov.
  7082. - SCHED_SPORADIC: Add a sporadic scheduler to NuttX.
  7083. - Extend the processor-specific interface to include information to
  7084. support the Sporadic Scheduler.
  7085. - sem_tickwait(): Added this function for internal use within the OS.
  7086. It is a non-standard but more efficient version of sem_timedwait()
  7087. for use in higher performance device drivers.
  7088. * Binary Loader:
  7089. * Graphics/Graphic Drivers:
  7090. - Graphics: Implement anti-aliasing in order to clean the drawing of
  7091. all edges. Anti-aliasing is supported in the horizontal, raster
  7092. direction only.
  7093. - SSD1306 LCD Driver: Modify the SSD1306 LCD driver to support either
  7094. the SPI or I2C interface. From Alan Carvalho de Assis.
  7095. * File Systems/Block Drivers/MTD:
  7096. - mount: Add the ability to mount a file system on top of en existing
  7097. node in the pseudo-file system.
  7098. - epoll(): Add a very simple epoll layer just around poll calls. To
  7099. satisfy build app requirements. From Anton D. Kachalov.
  7100. * Common Device Drivers:
  7101. - IOCTL: Add relay IOCTL definitions. From Max Neklyudov.
  7102. - I/O Expander Framework: Add an I/O expander driver framework. From
  7103. Sebastien Lorquet
  7104. - NXP PCA9555 I/O Explander. Add PCA9555 driver.From Sebastien
  7105. Lorquet
  7106. - BMP180 Barameter: Add support to Bosch BMP180 barometer. From
  7107. Alan Carvalho de Assis.
  7108. - CAN IOCTLs: Add CAN IOCTL command definitions to manage CAN message
  7109. filtering
  7110. - CAN Driver: Add configuration to support DLC to byte conversions
  7111. needed for CAN FD mode.
  7112. - SPI Slave Interface: Add a definition of an SPI slave interface.
  7113. - LM92 Temperature Sensor: Add a driver for the LM92 temperature
  7114. sensor. Contributed by Paul Alexander Patience.
  7115. - AS5048B Rotary Magnetic Sensor: Add support for an AS5048B rotary
  7116. magnetic sensor. From Paul Alexander Patience.
  7117. - Ramtron Driver: Update to include supportf for newer RAMTRON parts.
  7118. From David Sidrane.
  7119. - MB7040 Sonar Driver: Add support for a MB7040 sonar driver. From
  7120. Paul Alexander Patience.
  7121. - ms5805 Altimeter Driver: Add support for an MS5805 altimeter. From
  7122. Paul Alexander Patience.
  7123. * Networking:
  7124. - DNS Client: Implement the low-level network DNS packet protocol to
  7125. request and receive IPv6 address mappings.
  7126. - NetDB: Add support for a DNS host name resolution cache. This can
  7127. save a lot of DNS name server lookups (but might also have the
  7128. negative consequence of using stale IP address mappings.
  7129. - NetDB: Name resolution logic now supports lookups from a file like
  7130. /etc/hosts.
  7131. - Network Initialization: Add CONFIG_NETDEV_LATEINIT that can be
  7132. used to suppress calls to up_netinitialize() from early in
  7133. initialization.
  7134. - FTMAC100 Ethernet MAC Driver. Add support for Faraday FTMCA100
  7135. Ethernet MAC/ From Anton D. Kachalov.
  7136. - UDP Networking: Add support for send() for connected UDP sockets.
  7137. * Crypto:
  7138. - Add CFB and MAC AES modes. From Max Neklyudov.
  7139. * Simulation Platform:
  7140. - Simulation: Implement board_power_off() for the simulation platform.
  7141. This allows for a graceful exit from the simulation.
  7142. * MoxaRT:
  7143. - MoxaRT SoC: Add support for MoxaRT SoC found in the most Moxa serial
  7144. converters such as NP51x0, NP66xx, UC72xx. From Anton D. Kachalov.
  7145. * MoxaRT Boards:
  7146. - Moxa NP51x0: Moxa NP51x0 series of 2-port advanced RS-232/422/485
  7147. serial device servers. From Anton D. Kachalov.
  7148. * ARMv6-M:
  7149. - ARMv6-M Assertions: Port some per-process stack dumping logic from
  7150. ARMv7-M to ARMv6-M. From Alan Carvalho de Assis.
  7151. * Atmel SAMD/L Boards:
  7152. - SAML21: DMA: Add SAML21 DMA support.
  7153. - SAMD21: Add architecture support for the SAMD21 family.
  7154. - SAMD21-Xplained: Board configuration for the SAMD21 Xplained board.
  7155. * Atmel SAM3/4 Drivers:
  7156. - SAM4E: Add default loop optimization if EEFC_FMR is available in the
  7157. configuration (i.e., for SAM4S and 4E). From Marco Aurélio da Cruz.
  7158. - crypto/ and SAM4CM: Add CFB and MAC AES modes. From Max Neklyudov.
  7159. - SAM3/4: Add a TWI driver for the SAM4CM. From Max Neklyudov.
  7160. * Freescale (NXP) Kinetis:
  7161. - Kinetis: Add support for MK20DN--VLH5 and MK20DX---VLH5. Needed
  7162. for backward compatible support for Teensy-3.0.
  7163. * Freescale (NXP) Kinetis Boards:
  7164. - Teensy 3.x: Add board support for the PJRC Teensy-3.0 and
  7165. Teensy-3.1 boards.
  7166. * Atmel SAMV7 Drivers:
  7167. - SAMV7: Add an MCAN driver for the SAMV7 platform.
  7168. - SAMV7 SPI Slave Driver: Add the an SPI slave driver.
  7169. * STMicro STM32:
  7170. - STMicro STM32 F7: Add architecture support for the STMicro STM32
  7171. F7.
  7172. - STM32 F446: Add support for the STMicro STM32 F446. From David
  7173. Sidrane.
  7174. * STMicro STM32 Drivers:
  7175. - STM32 F7: Add an STM32 F7 Ethernet driver.
  7176. - STM32 F7: Port the STM32 F4 DMA driver.
  7177. - STM32 F4 ADC: Add DMA support to the ADC driver for STM32 F4. From
  7178. Max Kriegler.
  7179. * STMicro STM32 Boards:
  7180. - STM32F762G-Disco: Add support for the STMicro STM32 F7 Discovery
  7181. board.
  7182. - STM32F4-Disco: Add support to BMP180 driver on the STM32F4 Discovery.
  7183. From Alan Carvalho de Assis.
  7184. * C Library/Header Files:
  7185. - Add asctime(), asctime_r(), ctime(), and ctime_r().
  7186. - sethostname(): Add support for sethostname().
  7187. - gethostbyname() and gethostbyaddr(): Add support for
  7188. gethostbyname() and gethostbyaddr(). Also support included for the
  7189. non-standard gethostbyname_r() and gethostbyaddr_r(). This moves
  7190. the DNS client logic from apps/ into the NuttX libc implementation.
  7191. * Tools:
  7192. - testbuild.sh: Add a script that can be used to perform building
  7193. testing for several board configurations.
  7194. * Build/Configuration System:
  7195. - apps/ Build System: No longer depends on hardcoded lists of
  7196. directories. Instead, it does a wildcard search to find all
  7197. appropriate directories. This means that to install a new
  7198. application, you simply have to copy the directory (or link it) into
  7199. the apps/ directory. If the new directory includes a Makefile and
  7200. Make.defs file, then it will automatically be included in the build.
  7201. - mkkonfig.sh: Add the tool mkkconfig.sh that dynamically builds the
  7202. apps/Kconfig file at configuration time. The hardcoded
  7203. configuration file has been removed and now the top-level Makefile
  7204. executes tools/mkkconfig.sh to auto-generate the top-level Kconfig
  7205. file. A new apps/ make target call preconfig: was added to support
  7206. this operation. Now you do not have to modify the top-level Kconfig
  7207. file to add a new directory into the configuration; the top-level
  7208. subdirectory simply needs to include a Kconfig file and it will
  7209. automatically be included in the configuration. The native Windows
  7210. build is temporarily broken until a new apps/tools/mkconfig.bat
  7211. script is generated.
  7212. - mkkconfig.bat: Add the Windows script corresponding to
  7213. apps/tools/mkkconfig.sh. Needed for a Windows native build.
  7214. * Applications: apps/nshlib:
  7215. - NSH shutdown command: NSH will now support an (optional) shutdown
  7216. command if the board provides the option CONFIG_BOARDCTL_POWEROFF.
  7217. The command can also be used to reset the system if
  7218. CONFIG_BOARDCTL_RESET=y.
  7219. - NSH uname command: Add support for a uname command.
  7220. - NSH nslookup command: Add an nslookup command.
  7221. * Applications: apps/system:
  7222. - NetDB: Add a system command to access the network database.
  7223. - readline(): Add support for Unix-style tab complete to readline.
  7224. Contributed by Nghia Ho.
  7225. - readline(): Extended the tab-completion support to also expand NSH
  7226. command names.
  7227. - readline(): Add support for an in-memory command line history that
  7228. can be retrieved using the up and down arrows. Contributed by Nghia
  7229. Ho.
  7230. * Applications: apps/netutils:
  7231. - DNS client: Moved the DNS client logic into the NuttX C library.
  7232. It is a necessary part for the full implementation of the netdb logic
  7233. and provides more flexibility in that location.
  7234. - Replace calls to the non-standard dns_gethotip() with calls to
  7235. standard gethostbyname().
  7236. - NetLib: Create netlib wrapper functions around dns_getserver() and
  7237. dns_setserver() to isolate application code from changes to those
  7238. interfaces.
  7239. * Applications: apps/examples:
  7240. - OS test: Extend the OS test to include a test of
  7241. pthread_mutex_trylock() for recursive mutexes. From Juha Niskanen.
  7242. - OS test: Add a test for the sporadic scheduler.
  7243. Bugfixes. Only the most critical bugfixes are listed here (see the
  7244. ChangeLog for the complete list of bugfixes and for additional, more
  7245. detailed bugfix information):
  7246. * Core OS:
  7247. - pthreads: Use -1 instead of 0 as PID for unclaimed mutexes. From
  7248. Juha Niskanen.
  7249. - pthreads: Implement pthread_mutex_trylock() for recursive mutexes.
  7250. From Juha Niskanen.
  7251. - pthread_create(): Group binding needs to be cleared before
  7252. sched_releasetcb(), as otherwise group_leave() will be called and
  7253. group->tg_nmembers decremented or group being released. group_leave()
  7254. should be called only after group_join() is called, not after
  7255. group_bind(). From Jussi Kivilinna.
  7256. - Protected Mode User Memory Allocator: Redesigned how the user space
  7257. heap is accessed from the kernel code in protected mode. It used to
  7258. call memory management functions in user space via function pointers
  7259. in the userspace interface. That is inefficient because the first
  7260. thing that those memory management functions do is to trap back into
  7261. the kernel to get the current PID. Worse, that operation can be
  7262. fatal is certain fragile situations such as when a task is exiting.
  7263. The solution is to remove all of the memory management function
  7264. calls from the interface. Instead, the interface exports the users
  7265. pace heap structure and then kernel size implementations of those
  7266. memory management functions will operate on the userspace heap
  7267. structure. This avoids the unnecessary system calls and, more
  7268. importantly, failures do to freeing memory when a test exits.
  7269. - pthread_create(): Fix an (unlikely) error in fallback value in the
  7270. event of a failure (which should never occur).
  7271. * Common Drivers:
  7272. - STMPE811 Driver: In stmpe811_instanciate() when
  7273. CONFIG_STMPE811_MULTIPLE is enabled, and the call to
  7274. stmpe811_checkid() fails, then the linked device list is not
  7275. restored to its previous state. From Sebastien Lorquet.
  7276. - CAN driver: Fix an issue in the CAN driver where the rx_sem count
  7277. can grow beyond bounds.
  7278. * File System/Block Drivers:
  7279. - NFS client: Fix prototype of unbind method. The function prototype
  7280. was not updated for NFS after a recent change to the file system
  7281. interface. From Manuel St??.
  7282. * Networking/Network Drivers:
  7283. - netconfig.h: Fix some backward compilation that was emitting #error
  7284. in the wrong condition when SLIP was enabled.
  7285. - SLIP Driver: Fix a missed name change when many of network
  7286. interface names changed sometime back but were apparently never
  7287. updated for SLIP.
  7288. - Networking: Allow receipt of empty UDP packets. From Max Neklyudov.
  7289. * ARMv6-M:
  7290. - ARMv6-M: Fix Cortex-M0 assembly error when the interrupt stack is
  7291. enabled. From Alan Carvalho de Assis.
  7292. * Atmel SAMD/L Drivers:
  7293. - SAMD20, D21, L21: In the SAML21, SERCOM5 uses a different SLOW clock
  7294. channel (and, hence, also a different SLOW GCLK generator). This
  7295. means that the channel selection cannot be a global definition but
  7296. must be a per SERCOM configuration setting.
  7297. - SAMD/L: Several fixes to register definitions and types. From
  7298. Janne Rosberg.
  7299. * Atmel SAM3/4 Drivers:
  7300. - SAM3/4 UART: Back out an error introduced with commit
  7301. 02c33f66c5a8be774034cd40e4125e9323c7b4d8. Causes an infinite loop in
  7302. up_lowputc(). From Max Neklyudov.
  7303. - SAM4CM: Fix SUPC register definitions. From Max Neklyudov.
  7304. - SAM3/4 WDT: Correct some problems with SAM3/4 watchdog driver.
  7305. Includes some small improvements. From Max Neklyudov.
  7306. * Atmel SAMV7 Drivers:
  7307. - SAMV7 UART: Also back the bad cloned change o sam_lowputc.c for
  7308. SAMV7 platform.
  7309. * NXP LPC43xx Drivers:
  7310. - LPC4350: Correct some LPC4350 GPIO pin configurations. From
  7311. Alessandro Temil.
  7312. * SiLabs EMF32 Drivers:
  7313. - EFM32 SPI: Correct write to incorrect register in EFM32 SPI driver.
  7314. From Pierre-noel Bouteville.
  7315. * STMicro STM32 Drivers:
  7316. - STM32 F15x: STM322 F15x stm32_stdclockconfig() was calling
  7317. stm32_pw_setvos() which accessed PWR_CR via an inactive APB From
  7318. Juha Niskaneni.
  7319. - STM32 Ethernet: Extend STM32 Ethernet operating frequency to 180MHz.
  7320. From Sebastien Lorquet.
  7321. * STMicro STM32 Boards:
  7322. - SAMV7 Xplained: In clock configuration, divider was set to 25 to get
  7323. 25*12MHz=300MHz CPU clock. The correct multiplier is 24 because the
  7324. calculation if (24+1)*12MHz. So the board was running at 312MHz.
  7325. From Efim Monjak.
  7326. * ARMv7-A:
  7327. - Cortex-A5 vfork(): Fix a Cortex-A compilation error when system
  7328. calls are enabled in modes other than CONFIG_BUILD_KERNEL.
  7329. * Atmel SAMA5 Drivers:
  7330. - SAMA5Dx EHCI: Fix some bad conditional compilation that left a
  7331. function undefined if CONFIG_USBHOST_ASYNCH is not selected.
  7332. * C Library/Header Files:
  7333. - getopt(): Uninitialized variable can cause hardfault from getopt()
  7334. if required argument is missing. From George McWilliams.
  7335. * Applications: apps/nshlib:
  7336. - NSH/THHPD: Change decoding to handle the increased size of the
  7337. scheduling policy field in the TCB.
  7338. * Applications: apps/netutils:
  7339. - THTTPD: Fix compilation problems when
  7340. CONFIG_THTTPD_GENERATE_INDICES is defined.
  7341. - THTTPD: Missing gci-src as a dependency path when building with
  7342. BINFS enabled.
  7343. * Applications: apps/examples:
  7344. - poll() example: Fix a few bit-rot compilation errors.
  7345. - Nx Lines example: If CONFIG_NX_ANTIALIASING=y, then the nxlines
  7346. example now erases a line that is 2 pixels longer and 2 pixels wider
  7347. than the line it drew. That eliminates edges effects due to
  7348. applying the anti-aliasing algorithm twice. A better solution
  7349. would be to make anti-aliasing an option for each graphics call so
  7350. you would rend the line with anti-aliasing ON and clear it with
  7351. anti-aliasing OFF. but I don't have the wherewithal for that change
  7352. today.
  7353. - OS test: Improve synchronization in round robin tests. On very fast
  7354. processors, there are race conditions that make the test fail.
  7355. Need better interlocking to assure that the threads actually do start
  7356. at the same time.
  7357. NuttX-7.12 Release Notes
  7358. ------------------------
  7359. The 112th release of NuttX, Version 7.12, was made on October 1, 2015,
  7360. and is available for download from the Bitbucket.org website. Note
  7361. that release consists of two tarballs: nuttx-7.12.tar.gz and
  7362. apps-7.12.tar.gz. These are available from:
  7363. https://bitbucket.org/patacongo/nuttx/downloads
  7364. https://bitbucket.org/nuttx/apps/downloads
  7365. Both may be needed (see the top-level nuttx/README.txt file for build
  7366. information).
  7367. Additional new features and extended functionality:
  7368. * Graphics/Graphic Drivers:
  7369. - Added SSD1351 OLED controller support. Contributed by Paul
  7370. Alexander Patience.
  7371. * Common Device Drivers:
  7372. - MS58xx: Generalize the MS5805 altimeter driver to support other
  7373. family members. From Paul Alexander Patience.
  7374. - CAN driver interface: Add an error indication bit to the CAN
  7375. message report.
  7376. - Developed a new interface for QSPI. Most QSPI hardware (such as the
  7377. SAMV71) used a programmed interface to access the QuadSPI FLASH.
  7378. That programmed interface is no compatible with the simpler NuttX
  7379. SPI data transfer interface.
  7380. - Added a driver for ST25L1*K QuadSPI parts.
  7381. - Renamed the battery driver interface to battery_gauge since it
  7382. really only implements a battery fuel gauge. From Alan Carvalho de
  7383. Assis.
  7384. - Added a new framework to support a batter charger interface. From
  7385. Alan Carvalho de Assis.
  7386. - Added a BQ24250 battery charger driver. From Alan Carvalho de Assis.
  7387. * Networking:
  7388. - Added support for the local loopback device (dev lo, hostname localhost).
  7389. - Added NetDB support for the local loopback device.
  7390. - Network initialization: Automatically initialize all the TUN and
  7391. loopback devices if they arein the configuration.
  7392. * Simulation Platform:
  7393. - The simulation now runs under Cygwin64. Modern Cygwin X86_64
  7394. machines follow the Microsoft ABI for parameter passing. The Linux
  7395. System 5 ABI would not work on X86_64-based Cygwin machines. Newer
  7396. Cygwin tool chains do nor pre-pend symbol names with the underscore
  7397. character.
  7398. * Atmel SAMA5Dx:
  7399. - Added architectural support for the Atmel SAMA5D2 parts. Not fully
  7400. verified in this NuttX release.
  7401. * Atmel SAMA5Dx Boards:
  7402. - Added support for the Atmel SAMA45D2 Xplained Ultra board. Not
  7403. fully verified in this NuttX release.
  7404. * Atmel SAMV7 Drivers:
  7405. - SAMV7 USBHS DCD: The device controller driver is (finally)
  7406. functional.
  7407. * NXP LPC17xx:
  7408. - Implement options to use external SDRAM and or SRAM for the heap.
  7409. From Pavel Pisa.
  7410. * NXP LPC43x:
  7411. - Added architectural support for the LPC4370. From Lok Tep.
  7412. * NXP LPC43xx Drivers:
  7413. - Added Ethernet support. From Ilya Averyanov.
  7414. - Added LPC43xx EHCI driver from Ilya Averyanov.
  7415. * NXP LPC43xx Drivers:
  7416. - Added support for the NXP LPC4370-Link2 development board from Lok
  7417. Tep.
  7418. * STMicro STM32:
  7419. - Added architectural for STM32F303K6, STM32F303K8, STM32F303C6,
  7420. STM32F303C8, STM32F303RD, and STM32F303RE devices. From Paul
  7421. Alexander Patience.
  7422. * STMicro STM32 Drivers:
  7423. - Added OTG support for STM32F44x. From David Sidrane.
  7424. * STMicro STM32 Boards:
  7425. - Added support for the STMicro Nucleo F303ERE board from Paul
  7426. Alexander Patience.
  7427. * C Library/Header Files:
  7428. - stdlib: Add support for div() to the C library. From OrbitalFox.
  7429. Also added ldiv() and lldiv() which are equivalent to div() with
  7430. long and long long types, respectively, instead of int.
  7431. - Added an implementation of the standard shutdown function.
  7432. * Tools:
  7433. - tools/mksymtab: declare g_symtab array as const to occupy RO section
  7434. (Flash). From Pavel Pisa.
  7435. * Build/Configuration System:
  7436. - Simplify configs/ Makefiles by combining common logic into a new
  7437. Board.mk Makefile fragment. From Paul Alexander Patience.
  7438. * Applications: apps/system:
  7439. - apps/system/symtab: Optional canned symtab inclusion to the build.
  7440. When option CONFIG_SYSTEM_SYMTAB is selected and symbol table file
  7441. libc/symtab/canned_symtab.inc is prepared then application can use
  7442. system provided complete symbol table. The option has substantial
  7443. effect on system image size. Mainly code/text. If loading of
  7444. applications at runtime is not planned do not select this. From
  7445. Pavel Pisa.
  7446. * Applications: apps/canutils:
  7447. - apps/canutils/uavcan: Add support for libuavcan. From Paul Alexander Patience.
  7448. * Applications: apps/examples:
  7449. - apps/examples/can: Extend the CAN loopback test by adding more
  7450. command line options.
  7451. - apps/examples/usbserial: Can now be run as an NSH builtin-function.
  7452. Now uses a configurable IO buffer size.
  7453. - apps/examples/nettest: Add option to suppress network initialization.
  7454. This is necessary if the nettest is run from NSH which has already
  7455. initialized the network.
  7456. - apps/examples/nettest: Extend test so that can be performed using
  7457. the local loopback device.
  7458. - apps/examples/netloop: Add a test of the local loopback device.
  7459. - apps/examples/udpblaster: Add a test to stress the network by
  7460. sending UDP packets at a very high rate. .
  7461. - apps/examples/uavcan: libuavcan example from Paul Alexander Patience.
  7462. Bugfixes. Only the most critical bugfixes are listed here (see the
  7463. ChangeLog for the complete list of bugfixes and for additional, more
  7464. detailed bugfix information):
  7465. * Core OS:
  7466. - wd_create(): Correct a counting error in the number of available
  7467. watchdog timers. When the number of free timers is low, the counter
  7468. could be incremented below zero.
  7469. - mq_open(): When message queue is opened, inode_reserve() leaves the
  7470. reference count at zero. mq_open() logic must assure that the
  7471. reference count of the newly created inode is one.
  7472. - work_queue(): Logic that sets the queued indication and the logic
  7473. that does the actual queuing must be atomic.
  7474. * Binary Loader:
  7475. - Fix a memory leak in the built-in application logic: File was not
  7476. being closed. From Bruno Herrera.
  7477. * File System/Block Drivers:
  7478. - poll(): If we fail to setup the poll for any file descriptor, for
  7479. any reason, set the POLLERR bit.
  7480. - rwbuffer: Fix some logic errors. From Dmitry Nikolaev via Juha
  7481. Niskanen.
  7482. - ROMFS: One allocation was not being freed if there was a subsequent
  7483. failure to allocation I/O buffers resulting in a memory leak on
  7484. certain error conditions. From Bruno Herrera.
  7485. * Networking/Network Drivers:
  7486. - Fix a bug in tun interface driver. From Max Neklyudov.
  7487. - recvfrom(): Correct wait for new data when NET_UDP_READAHEAD is
  7488. enabled. Fix size accounting when recvfrom_udpreadahead() sets
  7489. state.rf_recvlen == -1. I have not checked if data are accumulated
  7490. to the right position in the buffer however. From Pavel Pisa.
  7491. - networking: Correct return value from psock_tcp_accept(). From
  7492. SaeHie Park.
  7493. - TCP: Fix a problem in when there are multiple network devices.
  7494. Polls were being sent to all TCP sockets before. This is not good
  7495. because it means that packets may sometimes be sent out on the wrong
  7496. device. That is inefficient because it will cause retransmissions
  7497. and bad performance. But, worse, when one of the devices is not
  7498. Ethernet, it will have a different MSS and, as a result, incorrect
  7499. data transfers can cause crashes. The fix is to lock into a single
  7500. device once the MSS is locked locked down.
  7501. - net/tcp: The logic that binds a specific network device to a
  7502. connection was faulty for the case of multiple network devices. On
  7503. bind(), the local address should be used to associate a device with
  7504. the connection (if the local address is not INADDR_ANY); On connect(),
  7505. the remote address should be used (in case the local address is
  7506. INADDR_ANY). On accept(), it does not matter but the remote address
  7507. is the one guaranteed to be available.
  7508. - net/tcp: Fix unbuffered send compilation error when Ethernet is not
  7509. enabled. From Alan Cavalho de Assis.
  7510. * ARMv7-M:
  7511. - All ARMV7-M IRQ setup: Always set the NVIC vector table address
  7512. unconditionally. This is needed in cases where the code is running
  7513. with a bootload and when the code is running from RAM. It is also
  7514. needed by the logic of up_ramvec_initialize() which gets the vector
  7515. base address from the NVIC. Suggested by Pavel Pisa.
  7516. - Fix some H/W floating point logic: In the original implementation,
  7517. !defined(CONFIG_ARMV7M_CMNVECTOR) was a sufficient test to determine
  7518. if lazy floating point register saving was being used. But recents
  7519. changes added common lazy register as well so now that test must be
  7520. (!defined(CONFIG_ARMV7M_CMNVECTOR) || defined(CONFIG_ARMV7M_LAZYFPU)).
  7521. - ARMv7-M, all "lazy" interrupt stack logic. Assembly instruction
  7522. that fetches the saved value is incorrect; replace with more
  7523. traditional push and pop. This is an important fix. Noted by
  7524. Stefan Kolb.
  7525. - All ARMV7-M: Force 8-byte stack alignment when calling from assembly
  7526. to C to interrupt handling.
  7527. - up_schedulesigaction(): Fix logic that determines if there is a
  7528. pending signal action before scheduling the next signal action.
  7529. Both the test and the scheduling action need to be atomic. This
  7530. problem was fixed on the ARMv7-M but also ported to other
  7531. architectures that had the same issue.
  7532. * NXP LPC43xx:
  7533. - LPC43xx: Fix NVIC_SYSH_PRIORITY_STEP define. From Ilya Averyanov.
  7534. - LPC43xx: Fix missing #define in eeprom. From Ilya Averyanov.
  7535. * NXP LPC43xx Drivers:
  7536. - Fixed the SPI driver. From Ilya Averyanov.
  7537. * Atmel SAMA5 Drivers:
  7538. - LPC31 and SAMA5D EHCI: Fix qh_ioccheck to move bp to next QH. From
  7539. Ilya Averyanov.
  7540. - LPC31 and SAMA5D EHCI: Performance improvement: Do not disable the
  7541. asynchronous queue when adding a new QH structure. From Ilya
  7542. Averyanov.
  7543. * C Library/Header Files:
  7544. - gethostbyname(): correct returned address format when DNS is used.
  7545. The hostent.h_addr_list should point to raw in_addr or in6_addr
  7546. as defined in the standard. Original implementation used that for
  7547. numeric addresses but for DNS lookup returned pointer to whole
  7548. sockaddr_in or sockaddr_in6. From Pavel Pisa .
  7549. - asin(): The function did not convert for some input values. asing()
  7550. did not convert for values which do not belong to the domain of the
  7551. function. But aside of that the function also did not converge for
  7552. allowed values. I achieved a conversion of the function by
  7553. reducing the DBL_EPSION and by checking if the input value is in
  7554. the domain of the function. This is a fix for the problem but the
  7555. function should always terminate after a given number of iterations.
  7556. From Stefan Kolb.
  7557. - Change all references from avsprintf to vasprintf. From Sebastien
  7558. Lorquet.
  7559. * Applications: apps/nshlib:
  7560. - Fix error handling in 'cat' command. On a failure to allocate
  7561. memory, a file was not being closed. From Bruno Herrera.
  7562. - Fix error handling in 'mv' command. On a failure to expand the
  7563. second path, the memory allocated for the expansion of the first
  7564. path was not being freed. From Bruno Herrera.
  7565. * Applications: apps/system:
  7566. - apps/system/netdb: Failed to build if CONFIG_NET_HOSTFILE was not
  7567. defined because gethostbyaddr() was not available. Noted by
  7568. OrbitalFox.
  7569. * Applications: apps/netutils:
  7570. - Various Kconfig files in netutils: Fix some changes from from
  7571. NETUTILS_DNSCLIENT to NETDB_DNSCLIENT. From Pavel Pisa.
  7572. * Applications: apps/modbus:
  7573. - Macros PR_BEGIN_EXTERN_C and PR_END_EXTERN_C were not defined in
  7574. all contexts. Replace with explicit expansion in all cases. From Stefan Kolb.
  7575. NuttX-7.13 Release Notes
  7576. ------------------------
  7577. The 113th release of NuttX, Version 7.13, was made on December 5, 2015,
  7578. and is available for download from the Bitbucket.org website. Note
  7579. that release consists of two tarballs: nuttx-7.13.tar.gz and
  7580. apps-7.13.tar.gz. These are available from:
  7581. https://bitbucket.org/patacongo/nuttx/downloads
  7582. https://bitbucket.org/nuttx/apps/downloads
  7583. Both may be needed (see the top-level nuttx/README.txt file for build
  7584. information).
  7585. Additional new features and extended functionality:
  7586. * Core OS:
  7587. - External RTC: Added OS support for external RTC chips.
  7588. - boardctl(): Add a command to the boardctl() interface to obtain a
  7589. board unique ID.
  7590. * File Systems:
  7591. - TMPFS: Add support for a new TMPFS, RAM file system. The TMPFS
  7592. file system does not require any significant amount of memory
  7593. itself. It will grow dynamically as files are added and shrink back
  7594. when files are deleted. A very low overhead way to retain temporary
  7595. files.
  7596. - VFS: The VFS was extended to support standard file operations on
  7597. block drivers (open, close, read, write, etc.). The open() interface
  7598. accomplishes this by creating a temporary character driver to mediate
  7599. the character oriented accesses to the block driver.
  7600. - HOSTFS: Added a HOSTFS file system for use with the simulator. The
  7601. HOSTFS file system mounts in the simulated NuttX context by provides
  7602. proxied access to the file system on the host PC. This is useful for
  7603. providing file system content and nonvolatile storage of files in the
  7604. simulation environment. From Ken Pettit.
  7605. - MTD/PROCFS: Add an interface to un-register an MTD procfs entry.
  7606. From Ken Pettit.
  7607. - filemtd: A new MTD conversion layer that will convert a regular file
  7608. (or driver file) to an MTD device. This is useful for testing on the
  7609. simulation using the HOSTFS. From Ken Pettit.
  7610. - PROCFS: Extended to include networking entries in the procfs. Device
  7611. status, device statistics, and network statistics are now available
  7612. from the PROCFS.
  7613. - PROCFS: The PROCFS file system can now be configured so that it
  7614. supports runtime registration of PROCFS entries with
  7615. CONFIG_FS_PROCFS_REGISTER=y.
  7616. * Graphics/Graphic Drivers:
  7617. - ST7565 Driver: Extend to include support for the ERC12864-3. From
  7618. Pierre-noel Bouteville.
  7619. * Common Device Drivers:
  7620. - User buttons: Added a character driver to support application access
  7621. to board buttons. Supports notification of button activity via
  7622. signals.
  7623. - User LEDs: Added a character driver to support application access
  7624. to on-board LEDs.
  7625. - Zero Cross: Added a Zero Cross device driver support. From Alan
  7626. Carvalho de Assis.
  7627. - MAX6675: Added support to Thermocouple-to-Digital converter MAX6675.
  7628. From Alan Carvalho de Assis.
  7629. - BCH: Block-to-character (BCH) driver should forward ioctl() calls
  7630. to the contained block driver.
  7631. - S25FL1xx: Added a S25FL1xx QuadSPI FLASH driver.
  7632. - On-Chip FLASH: Added an upper half MTD device that can use the
  7633. interfaces defined in included/nuttx/progmem.h to provide a
  7634. standard MTD driver.
  7635. - Serial: Implemented high level DMA infrastructure for serial
  7636. devices. From Max Neklyudov.
  7637. - AT24XX: Add support for multiple AT24xx EEPROM parts, each with
  7638. unique I2C addresses, but otherwise identical.
  7639. - External RTC: Added drivers for external I2C RTC chips: DS3102,
  7640. DS1307, DS3231, DS3232, and NXP PCF85263.
  7641. - W25: Added support for byte write mode to the W25 FLASH driver. From
  7642. Ken Pettit.
  7643. - dev/loop: Added a loop character device. losetup() and loteardown()
  7644. should not be called directory from applications. Rather, these
  7645. functions are now available as IOCTL commands to the loop driver.
  7646. - dev/smart: Added support for a /dev/smart loop device. From Ken
  7647. Pettit.
  7648. * Networking:
  7649. - Driver Statistics: Most network drivers do not support statistics.
  7650. Those that do only supported them when DEBUG is enabled. Each
  7651. driver collected an architecture specific set of statistics and
  7652. there was no common mechanism to view those statistics. Thus,
  7653. the driver feature was mostly useless. This release standardizes
  7654. the driver statistics and puts the definition in the common network
  7655. device structure defined in netdev.h where they can be accessed by
  7656. network applications. All Ethernet drivers that collect statistics
  7657. have been adapted to use these common statistics.
  7658. * Simulation Platform:
  7659. - W25 FLASH: Added support for W25 FLASH simulation. From Ken Pettit.
  7660. - HOSTFS: Added support for the HOSTFS file system (see "File Systems",
  7661. above).
  7662. * Atmel SAMV7:
  7663. - SAME70: Added support for the SAME70 family of chips.
  7664. - Tickless: SAMV7 now supports the tickless mode of operation.
  7665. * Atmel SAMV7 Drivers:
  7666. - MPU: Added MPU and protected build support.
  7667. - QSPI: Added a QuadSPI FLASH driver. This driver operates in the
  7668. memory-mapped, Serial Memory Mode (SMM).
  7669. - FLASH: Added support to write on-chip FLASH.
  7670. - Timer/Counter: TC driver ported to SAMV7 from the SAMA5. Free-running
  7671. and one-short timer logic also ported.
  7672. - PCK: Brought programmable clock (PCK) logic from SAMA5 into SAMV7.
  7673. - Timer/Counter: Support PCK6 as an optional source for the timer/
  7674. counter clock.
  7675. * Atmel SAMV7 Boards:
  7676. - SAME70-Xplained: Add NSH and networking configurations for the
  7677. SAME70 Xplained board. Includes verified support for serial console,
  7678. LEDs, buttons, SDRAM, HSMCI SD card, and networking.
  7679. - SAMV7-XULT and SAME70-Xplained: If Tickless mode is selected then
  7680. enable PCK6 as a timer/counter clock source
  7681. * STMicro STM32:
  7682. - CCM PROCFS: Is no longer a part of the 'base' procfs entries and can
  7683. now only be supported via run time registration with
  7684. CONFIG_FS_PROCFS_REGISTER=y.
  7685. * STMicro STM32 Drivers:
  7686. - Timers: Add a compatible lower-half timer driver for use with the
  7687. common timer upper-half driver. From Wail Khemir.
  7688. * STMicro STM32 Boards:
  7689. - STM32F4-Discovery: Add low level support for the Zero Cross driver
  7690. for the STM32F4-Discovery. From Alan Carvalho de Assis.
  7691. - STM32F4-Discovery: Add board config to support for the MAX6675. From
  7692. Alan Carvalho de Assis.
  7693. * C Library/Header Files:
  7694. - bsearch(): Added the bsearch() function from NetBSD.
  7695. - freopen(): Added support for freopen().
  7696. - strftime(): Added day-of-week support (when available).
  7697. * Tools:
  7698. - nxstyle: Add crappy style checking tool nxstyle.c. See thee tools/
  7699. README file for more info.
  7700. * Applications: NSH
  7701. - mksmartfs command: Add configuration option to supported multiple
  7702. rootdirectories. From Ken Pettit.
  7703. - Add support for 'basename' and 'dirname' commands.
  7704. - set command: Like bash, NSH set command now strips off any leading
  7705. or trailing whitespace.
  7706. - mount command: The mount commands now accepts mount options
  7707. (currently needed only for the hostfs file system). From Ken
  7708. Pettit.
  7709. - losetup command: NSH no longer calls losetup() and loteardown
  7710. directly. Now it opens /dev/loop and accomplishes these things
  7711. using ioctl() calls.
  7712. - ifconfig command: If CONFIG_NETDEV_STATISTICS=y, then print the
  7713. network driver statistics in the ifconfig.
  7714. - ifconfig, ifup, and ifdown: These commands now uses /proc/net/<dev>
  7715. to view network device configuration and status and /proc/net/stat
  7716. to show network statistics. A consequence of this is that you
  7717. cannot view this network information if the procfs is not enabled
  7718. and mounted at /proc.
  7719. - losmart command: Added a new NSH losmart command. losmart setups
  7720. up a loop device for the smart MTD driver similar to losetup but
  7721. with different syntax. From Ken Pettit.
  7722. - ps command: The 'ps' command now uses /proc/<pid>/ to obtain task
  7723. status information. A consequence of this is that you cannot use
  7724. the 'ps' command if the procfs is not enabled and mounted at /proc.
  7725. * Applications: apps/system:
  7726. - apps/system/hexed: Port the hexed command line hexadeciamal editor
  7727. to NuttX. See http://apps.venomdev.net/hexed/.
  7728. * Applications: apps/fsutils:
  7729. - apps/fsutils/smartfs: Move into apps/fsutils from kernel, now uses
  7730. only open and ioctl. From Ken Pettit.
  7731. * Applications: apps/examples:
  7732. - apps/examples/fstest: Add a generic file system test. This is
  7733. essentially the same as examples/smart, but has all of the SmartFS
  7734. specific logic ripped out. This was created for testing the new
  7735. TMPFS.
  7736. - apps/examples/zerocross: Add a Zero Cross application example. From
  7737. Alan Carvalho de Assis.
  7738. - apps/examples/media: Add a simple test for access of media via a
  7739. block driver or MTD driver.
  7740. Bugfixes. Only the most critical bugfixes are listed here (see the
  7741. ChangeLog for the complete list of bugfixes and for additional, more
  7742. detailed bugfix information):
  7743. * Core OS:
  7744. - Fixed an error in clock_timespec_subtract(). Found by Lok.
  7745. - pthreads: CRITICAL BUGFIX: Logic was wiping out the indication that
  7746. of the type of a pthread. Hence, it could be confused as a task.
  7747. Found because this was causing a crash when /proc/nnn/cmdline was
  7748. printed.
  7749. * File System/Block Drivers:
  7750. - SMART MTD: Fix some Smart wear-leveling bugs. Fixed SmartFS wear
  7751. level error that occurs when the logical sector size is too small to
  7752. save all wear level status bytes in a single sector. Logical
  7753. sectors 1 and 2 were simply not being allocated and then the
  7754. read_sector and write_sector routines were failing. From Ken
  7755. Pettit.
  7756. * Graphics/Graphic Drivers:
  7757. - ILI9432: Fixed errors in orientation. Portrait, RPortrait, and
  7758. Landscript should work correly now. They were displayed mirrored.
  7759. From Marco Krahl.
  7760. * Common Drivers:
  7761. - CAN: Fix a problem in the CAN upper-half driver that occurs only
  7762. for CAN hardware that support a H/W FIFO of outgoing CAN messages.
  7763. In this case, there can be a hang condition if both the H/W and
  7764. S/W FIFOs are both full. In that case, there may be no event to
  7765. awaken the upper half driver. Add a new (conditional) CAN upper
  7766. half interface called can_txready() that can be used by the lower
  7767. half driver to avoid this hang condition.
  7768. - MS58xx: Fix some issues with initialization and with CRC
  7769. calculation. From Karim Keddam.
  7770. - W25: Fixed W25 FLASH driver page read/write logic. From Ken Pettit.
  7771. * Atmel SAMV7 Drivers:
  7772. - USART1 pin configuration: Reconfigure System I/O when using USART1.
  7773. From Frank Benkert.
  7774. - MCAN: Added a call to can_txready() to the MCAN driver.
  7775. * STMicro STM32 Drivers:
  7776. - stm32 F4: Fix some TIM12 pin mappings. From Max Kriegleder.
  7777. * STMicro STM32 Boards:
  7778. - STM32F429i-Disco: Calculated partition boundaries based on page
  7779. block sizes but mtd_partition() is expecting calculations based on
  7780. erase block size. From Alan Carvalho de Assis.
  7781. * C Library/Header Files:
  7782. - sys/types.h: When building on a 64-bit machine, the size of size_t
  7783. should be 64-bits. In general, I believe that sizeof(size_t) should
  7784. be the same as sizeof(uinptr_t). mmsize_t should always be 32-bits
  7785. in any event. The last change to stddef has been backed out. With
  7786. these changes, the simulator builds without errors or warnings an a
  7787. 64-bit machine.
  7788. * Applications: apps/nshlib:
  7789. - The I/O buffer, g_iobuffer, should not be a global buffer. That
  7790. will not work in an environment where there are multiple NSH
  7791. sessions. The I/O buffer must, instead, be a part part of the
  7792. session-specific data defined in nsh_console.h.
  7793. NuttX-7.14 Release Notes
  7794. ------------------------
  7795. The 114th release of NuttX, Version 7.14, was made on January 28, 2016,
  7796. and is available for download from the Bitbucket.org website. Note
  7797. that release consists of two tarballs: nuttx-7.14.tar.gz and
  7798. apps-7.14.tar.gz. These are available from:
  7799. https://bitbucket.org/patacongo/nuttx/downloads
  7800. https://bitbucket.org/nuttx/apps/downloads
  7801. Both may be needed (see the top-level nuttx/README.txt file for build
  7802. information).
  7803. Additional new features and extended functionality:
  7804. * Core OS:
  7805. - modules: Add support for kernel modules: insmod, rmmod, support
  7806. functions. procfs support for user lsmod functioniality.
  7807. - SIGEV_THREAD: Add support for the SIGEV_THREAD notification method
  7808. in struct sigevent. This initial implementation will only work in
  7809. the FLAT build since it utilizes the work queue for signal
  7810. callbacks. See the top-level TODO file for additional details.
  7811. - 64-Bit Timer: If the 64-bit timer is selected, then use it whenever
  7812. clock_systimer() is called rather then chopping the 64-bit timer
  7813. down to 32-bits. Add a new type, systime_t to represent the 32- or
  7814. 64-bit system timer. This eliminates clock_systimer32() and
  7815. clock_systime64(); there is now only clock_systimer().
  7816. * Common Device Drivers:
  7817. - Telnet Driver: Move the Telnet driver from apps/ to
  7818. nuttx/drivers/net. It is a driver a belongs in the OS. Now works
  7819. like the loop device: A new interface called telnet_initialize()
  7820. registers a telnet session "factory" device at /dev/telnet. Via
  7821. ioctl, the factory device can create instances of the telnet
  7822. character devices at /dev/telnetN to support Telnet sessions.
  7823. - PCA9635PW: Add a driver for the PCA9635PW I2C LED driver IC which
  7824. can be used to control the intensity of up to 16 LEDs. From
  7825. Alexander Entinger.
  7826. - MCP9844: Driver for the MCP9844 I2C digital temperature sensor with
  7827. a selectable resolution. From Alexander Entinger.
  7828. - PN532: Add driver for the NXP PN532 NFC-chip. From Janne Rosberg
  7829. and others at Offcode Ltd.
  7830. - LSM9DS1: Add driver for the STMicro LSM9DS1 chip. The LSM9DS1 is a
  7831. system-in-package featuring a 3D digital linear acceleration sensor,
  7832. a 3D digital angular rate sensor, and a 3D digital magnetic sensor.
  7833. From Paul Alexander Patience.
  7834. - CAN Interface: Add more extensive error reporting capaibility to
  7835. the CAN interface definitions. From Frank Benkert.
  7836. - SPI Interface: Add an optional hwfeatures() method to the SPI
  7837. interface.
  7838. * Simulation Platform:
  7839. - NSH configuration uses the custom start up scriptwith a read-only
  7840. passwd file. Includes hooks for an MOTD message.
  7841. * ARMv7-R
  7842. - ARMv7-R: Add basic architecture support for the ARMv7-R processor
  7843. family.
  7844. * Atmel AVR:
  7845. - Atmega2560: Add support for the Atmega2560. From Dimitry Kloper.
  7846. - debug.h: Add an AVR-specific header file used when the AVR MEMX
  7847. pointer is used. From Dimitri Kloper.
  7848. * Atmel AVR Boards:
  7849. - Arduino-Mega2560: Add support for the Arduino-Mega2560. From
  7850. Dimitry Koper.
  7851. * Atmel SAMV7 Drivers:
  7852. - Port the TRNG driver from the SAMA5D3/4 to the SAMV7.
  7853. - Port the WDT driver from the SAMA5D3/4 to the SAMV7.
  7854. - Add an RSWDT driver.
  7855. * Atmel SAMV7 Boards:
  7856. - SAMV71-XULT: Add configuration for testing OS modules.
  7857. * Freescale Kinetis:
  7858. - MK60N512VLL100: Add support for the MK60N512VLL100 Kinetis part.
  7859. From Andrew Webster.
  7860. * Freescale Kinetis Boards:
  7861. - ENET: Numerous updates to the Kinetis ENET driver. That driver is
  7862. now functional. From Andrew Webster.
  7863. * NXP LPC43xx Boards:
  7864. - WaveShare LPC4337-WS: Support for the WaveShare LPC4337-WS board.
  7865. From Lok Tep.
  7866. * STMicro STM32 Drivers:
  7867. - Timer Capture: Add timer input capture driver. From Pierre-Noel
  7868. Bouteville.
  7869. * STMicro STM32 Boards:
  7870. - Olimex STM32 H407: Added a port to the Olimex STM32 H407 board.
  7871. This board features the STMicro STM32F407ZGT6 (144 pins).
  7872. Contributed by Neil Hancock.
  7873. * TI TMS550 Boards:
  7874. - TI LaunchXL-TMS57004: Add basic board support for TI LaunchXL-
  7875. TMS57004. Still a work in progress.
  7876. * C Library/Header Files:
  7877. - sys/time.h: Add timeradd(), timersub(), timerclear(), timerisset(),
  7878. and timercmp() as macros. These are non-POSIX interfaces, but
  7879. included in most BSD deriviatives, including Linux. From Manuel St??.
  7880. - AVR support: Introduce support for Atmel toolchain in-flash strings.
  7881. Atmel toolchain AVR compiler provides a transparent in-flash object
  7882. support using __flash and __memx symbols. The former indicates to
  7883. compiler that this is a flash-based object. The later used with
  7884. pointer indicates that the referenced object may reside either in
  7885. flash or in RAM. The compiler automatically makes 32-bit pointer
  7886. with flag indicating whether referenced object is in flash or RAM
  7887. and generates code to access either in run-time. Thus, any function
  7888. hat accepts __memx object can transparently work with RAM and flash
  7889. objects.
  7890. For platforms with a Harvard architecture and a very small RAM like
  7891. AVR this allows to move all constant strings used in trace messages
  7892. to flash in the instruction address space, releasing resources for
  7893. other things. This change introduces IOBJ and IPTR type qualifiers.
  7894. The 'I' indicates that the object may lie in instruction space on a
  7895. Harvard architecture machine. For platforms that do not have __flash
  7896. and __memx or similar symbols IOBJ and IPTR are empty, making the
  7897. types equivalent to, for example, 'const char' and 'const char*'.
  7898. For Atmel compiler these will become 'const __flash char' and
  7899. 'const __memx char*'. All printf() functions and syslog() functions
  7900. are changed so that the qualifier is used with the format parameter.
  7901. From Dimitry Kloper.
  7902. - debug.h: Add configuration to support an architecture-specific
  7903. debug.h header file. From Dimitri Kloper.
  7904. - netdb: Add support for the use of a DNS resolver file like
  7905. /etc/resolv.conf.
  7906. - TEA: Add an implementation of the Tiny Encryption Algorithm.
  7907. - math32.h: Add some utilities to support 64-bit arithmetic
  7908. operations for platforms that do not support long long types.
  7909. * Tools:
  7910. - tools/cnvwindeps.c: Add a tool that will convert paths in
  7911. dependencies generated by a Windows compiler so that they can be
  7912. used with the Cygwin make.
  7913. - tools/mkwindeps.sh: A script that coordinates use of cnvwindeps.exe.
  7914. Dependencies now work on the Cygwin platform when using a Windows
  7915. ative toolchain.
  7916. * Applications: NSH
  7917. - Module Commands: Add module commands: insmod, rmmod, and lsmod.
  7918. - Time Command: Add a 'time' command that may be used to time the
  7919. execution of other commands.
  7920. - Password Commands: Add useradd, userdel, and passwd commands.
  7921. - MOTD: Now supports a Message of the Day (MOTD) that will be
  7922. presented after the NSH greeting.
  7923. - Session Logins: All sessions may be protected with logins using the
  7924. encrypted password in /etc/passwd.
  7925. - Extended Logins. Added optional platform-specific function to
  7926. perform password verification and optional delay after each failed
  7927. login attempt.
  7928. * Applications: apps/fsutils:
  7929. - apps/fsutils/passwd: Utility library for accessing a password file
  7930. like /etc/passwd.
  7931. * Applications: apps/netutils:
  7932. - apps/netutils/telnetd: Now creates Telnet sessions by opening a new
  7933. factory device at /dev/telnet and then using ioctl calls to create
  7934. the session character drivers at /dev/telnetN.
  7935. - apps/netutils/netlib: Add netlib_get_dripv4addr() and
  7936. netlib_get_ipv4netmask(). From Pelle Windestam.
  7937. * Applications: apps/examples:
  7938. - apps/examples/module: Add a test harness for verifying NuttX kernel
  7939. modules.
  7940. - apps/examples/pca9635: Add a simple test of PCA9635PW PWM LED driver.
  7941. From Alan Carvalho de Assis.
  7942. - apps/examples/ostest: Add a test of POSIX timers using SIGEV_THREAD.
  7943. Bugfixes. Only the most critical bugfixes are listed here (see the
  7944. ChangeLog for the complete list of bugfixes and for additional, more
  7945. detailed bugfix information):
  7946. * Core OS:
  7947. - pthreads: CRITICAL BUGFIX: Logic was wiping out the indication that
  7948. of the type of a pthread. Hence, it could be confused as a task.
  7949. - waitpid: CRITICAL BUGFIX. Add a reference count to prevent waitpid
  7950. from using stale memory released by the waited-for task group.
  7951. - clock_systimespec(): Fix an error in a time conversion.
  7952. * File System/Block Drivers:
  7953. - poll(): Fix handling of sem_tickwait() return value sem_tickwait()
  7954. does not return an -1+errno, it returns a negated errno value.
  7955. Noted by Freddie Chopin.
  7956. * Common Drivers:
  7957. - TUN Driver: Fix a compile time error in the TUN driver. From
  7958. Vladimir Komendantskiy.
  7959. - USB Host HID Parser: Wrong size used in memcpy(). From Hang Xu.
  7960. - PCA9555: Fixed a bug in the function pca9555_setbit which occurs if
  7961. someone tries to set one of the pins 8-15. The problem is that
  7962. after the check if the pin is greater than 7 the variable addr is
  7963. incremented and used in the Call I2C_WRITEREAD. But later in the
  7964. call to the I2C_WRITE buf[0] is used as address but this address is
  7965. not incremented as it should be. Note address does mean the address
  7966. to the register in the ioexpander and not the I2C address. From
  7967. Stefan Kolb.
  7968. * Networking:
  7969. - TCP/IOB: Numerous fixes, mostly relate to TCP and IOB buffering
  7970. and race conditions. These were necessary for for the NuttX
  7971. networking later to be stable in some stress testing. From Andrew
  7972. Webster.
  7973. * Atmel SAMV7 Drivers:
  7974. - USBHS Device: In USBHS device driver, fix check if zero length
  7975. packet is needed.
  7976. * STMicro STM32 Drivers:
  7977. - OTG FS Host: Fix some backward arguments to stm32_putreg(). Note
  7978. by Hang Xu.
  7979. * Tools:
  7980. - tools/mkdeps.c: Extended/fixed support for --winpath option.
  7981. Dependencies now work under Cygwin with a native Windows toolchain.
  7982. * Build System:
  7983. - apps/platform/Makefile: Use a relative path to the board directory
  7984. link rather than the absolute path. For Cygwin, the absolute would
  7985. would need converted with cygpath. But just using the relative path
  7986. is a simpler solution.
  7987. NuttX-7.15 Release Notes
  7988. ------------------------
  7989. The 115th release of NuttX, Version 7.15, was made on March 27, 2016,
  7990. and is available for download from the Bitbucket.org website. Note
  7991. that release consists of two tarballs: nuttx-7.15.tar.gz and
  7992. apps-7.15.tar.gz. These are available from:
  7993. https://bitbucket.org/patacongo/nuttx/downloads
  7994. https://bitbucket.org/nuttx/apps/downloads
  7995. Both may be needed (see the top-level nuttx/README.txt file for build
  7996. information).
  7997. Additional new features and extended functionality:
  7998. * Core OS:
  7999. - Add a state variable that provides the current level of OS
  8000. initialization. This is needed by some logic that may attempt to
  8001. run early in the start-up sequence but cannot run if a sufficient
  8002. level of initialization has not yet occurred.
  8003. - Spinlocks: Add interface definitions for to support spinlocks as
  8004. needed for multi-CPU configurations.
  8005. - SMP support. Support for Symmetric Multi-Processing (SMP) added.
  8006. This affects many internal data structures, spinlock extensions
  8007. and renaming of interrupt enable/disable interfaces, new platform
  8008. interfaces to support CPU initialization and inter-actions, and
  8009. new application interfaces to manage CPU affinity. The changes
  8010. are too extensive to summarize here; see the SMP Wiki page at
  8011. https://cwiki.apache.org/confluence/display/NUTTX/SMP. The
  8012. new platform interfaces are also described in the NuttX porting
  8013. guide: https://nuttx.apache.org/docs/latest/quickstart/organization.html.
  8014. Only partially verified; awaiting hardware for the complete
  8015. verification.
  8016. - TLS: Basic definitions needed to support thread local storage
  8017. (TLS). TLS is not used anywhere yet (and may not be used in the
  8018. near future either).
  8019. - Performance Monitoring: Add a configuration option to buffer
  8020. RTOS instrumentation data in an in-memory buffer.
  8021. - boardctl(): Add boardctl() support that will permit applications
  8022. to control USB devices.
  8023. * File Systems/Block Drivers:
  8024. - procfs: Add /proc/kmm entry that shows that state of the kernel
  8025. heap. Only useful in PROTECTED and KERNEL build modes where there
  8026. is a kernel heap.
  8027. - procfs: Add support for showing CPU in the taste status if SMP is
  8028. enabled.
  8029. * Networking:
  8030. - ARP: Add support for IOCTL commands to manage the ARP table.
  8031. - IEEE 802.15.4 and 6LowPAN: There are some radio drivers and a
  8032. directory structure is in place. However, most of this
  8033. development is occurring on a fork and is not yet available in the
  8034. NuttX repositories. Hopefully in NuttX-7.16.
  8035. * Common Device Drivers:
  8036. - ADS1242: Driver for the 24-Bit Differential Input ADC ADS1242 that
  8037. communicates via SPI with a MCU. Reading the ADC conversion result
  8038. as well as configuring the ADC, setting the input channel, etc. is
  8039. implemented via ioctl calls. However, it does not yet implement
  8040. the standard ADC interface. From Alexander Entinger.
  8041. - U-Blox Modem: Add an upper half driver for the U-Blox Modem. From
  8042. Vladimir Komendantskiy.
  8043. - I2C: Add an I2C, "upper half", character drivers to support raw I2C
  8044. data transfers for test applications.
  8045. - RGB LED: Add a driver to manage a RGB LED via PWM. From Alan
  8046. Carvalho de Assis.
  8047. - Performance Monitoring: Add a character driver that will allow an
  8048. application to read buffered scheduler instrumentation data.
  8049. * Simulation Platform:
  8050. - SMP: Add multi-CPU support to the simulation to support SMP
  8051. investigation. There are issues with the simulation and it is less
  8052. than perfect but sufficient for some very preliminary testing of
  8053. the core SMP feature.
  8054. * ARMv7-A, ARMv7-R, and ARMv7-M:
  8055. - ARMv7-A, ARMv7-R, and ARMv7-M: Add test-and-set logic and
  8056. definitions needed to supports spinlocks.
  8057. - ARMv7-A: Added MPCOre Generic Interrupt Controller (GICv2) and
  8058. Global Timer support
  8059. - ARMv7-A: Now includes in MCU-specific hooks needed for SMP support.
  8060. * Atmel SAMV7 Drivers:
  8061. - HSMSI: HSMCI driver can now be configured to handle unaligned data
  8062. buffers.
  8063. * NXP Freescale LPC11xx/17xx/43xx and LPC2378 Drivers:
  8064. - I2C: Backported the LPC43XX I2C driver, replacing the LPC11XX,
  8065. LPC17XX, and LPC2378 I2C drivers. This gives us the I2C_TRANSFER
  8066. method in all I2C drivers.
  8067. * NXP Freescale LPC17xx Boards:
  8068. - Support for the u-blox GSM and GPS module evaluation board with
  8069. NXP LPCExpresso LPC1768. The GSM module is one of LISA-C200,
  8070. LISA-U200 or SARA-G350. The GPS module is one of MAX-M7 or
  8071. MAX-M8. From Vladimir Komendantskiy.
  8072. * NXP Freescale i.MX6:
  8073. - Basic support is in place for the i.MX6 Quad/Dual MCUs.
  8074. Verification is, however, waiting for the receipt of hardware.
  8075. * NXP Freescale i.MX6 Boards:
  8076. - Sabre-6Quad: Basic support for the NXP/Freescale Sabre 6Quad
  8077. board is in place but waiting for hardware for verification.
  8078. * STMicro STM32:
  8079. - STM32F46xx: Support for STM32F46xx from Paul Alexander Patience
  8080. - STM32L4: Add support for the STM32L4 family. From Sebastien
  8081. Lorquet.
  8082. * STMicro STM32 Boards:
  8083. - STM32F4 Discovery: Add PWM support for the onboard RGB LED. From
  8084. Alan Carvalho de Assis.
  8085. - Nucleo-L476: Add support for the Nucleo-L476 board. From Sebastien
  8086. Lorquet.
  8087. - STM32L476VG Discovery: Add support for the STM32L476VG Discovery
  8088. board. From Dave.
  8089. * Tools:
  8090. - tools/refresh.sh now has a --silent option so that it can be used in
  8091. batch modes without human input.
  8092. * Build System:
  8093. - Added a 'make olddefconfig' target that will refresh a .config file
  8094. without interaction.
  8095. * Applications: NSH
  8096. - 'arp': Add an 'arp' command that will support access to the OS ARP
  8097. table.
  8098. - 'ps': The 'ps' command will show CPU if SMP is enabled.
  8099. * Applications: apps/netutils:
  8100. - apps/netutils/chat: Chat logic contributed by Vladimir
  8101. Komendantskiy.
  8102. - apps/netutils/netlib: Add utility functions to support accesses to
  8103. the ARP table.
  8104. * Applications: apps/examples:
  8105. - apps/examples/chat: Chat example contributed by Vladimir
  8106. Komendantskiy.
  8107. - apps/system/ubloxmodem: Example to control the power
  8108. state of the modem in nsh. From Vladimir Komendantskiy.
  8109. - apps/examples/leds: An example to demonstrate use of LED driver.
  8110. - apps/examples/smp: Add a test to verify SMP configurations.
  8111. - apps/examples/rgbled: Example using the RGB LED driver to drive an
  8112. RGB LED via PWM. From Alan Carvalho de Assis.
  8113. - apps/examples/ostest: Add a test of TLS.
  8114. - apps/examples/sched_note: Add a simple example to exercise the
  8115. scheduler instrumentation logic.
  8116. Bugfixes. Only the most critical bugfixes are listed here (see the
  8117. ChangeLog for the complete list of bugfixes and for additional, more
  8118. detailed bugfix information):
  8119. * Core OS:
  8120. - Signals: Move the list of signal actions from the TCB to the group
  8121. structure. Signal handlers are not per thread but, rather, per task
  8122. group. I know, I preferred it the other way too, but this is more
  8123. compliant with POSIX.
  8124. - Semaphores: Add an internal, non-standard interface to reset a
  8125. semaphore count. This is sometimes needed by drivers in order to
  8126. recover from error conditions. Were previously using sem_init()
  8127. which is both inappropriate and incorrect if the semaphore count is
  8128. negative.
  8129. - Low-Priority Work Queue: Fix logic to find an IDLE worker thread;
  8130. the test for busy was backward. From Linfei Chen.
  8131. * File System/Block Drivers:
  8132. - FAT: Add an option to force all transfers to be performed
  8133. indirectly using the FAT file system's internal sector buffers.
  8134. This is a fix for the case where the user provided buffers are not
  8135. properly aligned for DMA (as with THTTPD).
  8136. - MTD: Increase block size in mtd_geometry_s to 32-bits.
  8137. * Common Drivers:
  8138. - I2C: Restructured the I2C interface as necessary to eliminate some
  8139. thread-safety issues inherent in the legacy I2C interface design.
  8140. This effects the interface definition, all I2C clients, and all low-
  8141. level I2C drivers. I have used caution, but I still expect a change
  8142. of this magnitude to introduce some errors. Any bug reports of bug
  8143. fixes will be much appreciated.
  8144. - I2C_RESET: Eliminate up_i2creset(). It should not be a global
  8145. function; Now it is an I2C interface method.
  8146. - PCA555: Add logic to make the PCA555 driver thread safe.
  8147. - syslog: If syslog timestamping is enabled, don't try to get the time
  8148. if the timer hardware has not yet been initialized.
  8149. - AT24xx driver: Correct missing address calculation logic. From Frank
  8150. Benkert.
  8151. * Networking:
  8152. - Networking drivers that support CONFIG_NET_NOINTS: Fix a race
  8153. condition that can cause the TX poll timer to stop running. From
  8154. Manuel Stuhn.
  8155. - Timer Poll: Fix some logic when there are multiple network
  8156. interfaces. In this case, TCP timeout events can really only being
  8157. processed when the poll from the correct device is received.
  8158. * Atmel SAMV7 Drivers:
  8159. - SAMV7 USB HS device: The USB driver has had some issue that would
  8160. occasionally cause loss of packets. Back last December, a fix was
  8161. put in for this but the fix apparently worsens the problem; now
  8162. causing hangs. The basic problem is that the number of busy banks
  8163. (NBUSYBKS) status is not real time but is delayed. This was fixed;
  8164. now when the DMA completes and NBUSYBKS > 0, the NBUSYBK is
  8165. interrupt is enabled and the operations are deferred until NBUSYBKS
  8166. is truly zero.
  8167. * Tools:
  8168. - tools/testbuild.sh: .config files were not being updated because
  8169. (a) kconfig-conf was being called in the wrong directory and (b)
  8170. apps/Kconfig had not yet been created. Now uses 'make
  8171. olddefconfig'.
  8172. * Applications: apps/system:
  8173. - apps/system/i2c: The I2C tool now obeys it OS interfacing: it now
  8174. uses an I2C character driver to access the I2C bus.
  8175. - apps/system/cdcacm, usbmsc, and composite: Use new boardctl()
  8176. instead of calling directly in the OS when possible.
  8177. * Applications: apps/netutils:
  8178. - apps/netutils/dhcpd: DHCPD no longer calls directly into the OS but
  8179. uses the new network IOCTL commands to modify the ARP table.
  8180. * Applications: apps/modbus:
  8181. - apps/modbus/nuttx/portserial.c: Was not returning an error on
  8182. failure to open the device driver. From Olololshka kokoko.
  8183. * Applications: apps/examples:
  8184. - apps/examples/usbserial, composite, usbterm: Use new boardctl()
  8185. instead of calling directly in the OS when possible. There are
  8186. still a few bad OS calls for USB device interfaces that do not yet
  8187. have boardctl() commands.
  8188. * Applications: apps/platform:
  8189. - Moved C++ initialization logic out of the RTOS and into the
  8190. application space, specifically to apps/platform/board, where it
  8191. belongs.
  8192. NuttX-7.16 Release Notes
  8193. ------------------------
  8194. The 116th release of NuttX, Version 7.16, was made on June 1, 2016,
  8195. and is available for download from the Bitbucket.org website. Note
  8196. that release consists of two tarballs: nuttx-7.16.tar.gz and
  8197. apps-7.16.tar.gz. These are available from:
  8198. https://bitbucket.org/nuttx/nuttx/downloads
  8199. https://bitbucket.org/nuttx/apps/downloads
  8200. Both may be needed (see the top-level nuttx/README.txt file for build
  8201. information).
  8202. Additional new features and extended functionality:
  8203. * Core OS:
  8204. - Power Management: Add activity domain to all PM interfaces and
  8205. driver callbacks. If CONFIG_PM_NDOMAINS == 1, then the legacy
  8206. behavior is preserved. If CONFIG_PM_NDOMAINS > 1, then multiple
  8207. PM domains are supported. This will allow separate control for
  8208. certain power management groups. For example, a network can be
  8209. shut down without affect an ongoing UI (and vice versa).
  8210. - board_app_initialize(): board_app_initialize() now accepts an
  8211. argument that may be used to support initialization in different
  8212. configurations.
  8213. * File System and Block and MTD Drivers:
  8214. - N25Qxxx: Add MTD support for Micron N25Qxxx family of QSPI flash.
  8215. From Dave (ziggurat29).
  8216. - SST26F: Add an MTD driver for SST26F spi/qspi flash devices (SPI
  8217. mode only). From Sebastien Lorquet.
  8218. - File Descriptor Detach: Add logic to detach a file structure from a
  8219. file descriptor. This is for use only within the OS. It permits an
  8220. open file or driver to be used across multiple threads.
  8221. * Networking and Network Drivers:
  8222. - listen()/accept(): Separate out psock_listen() and psock_accepti()
  8223. for internal, thread independent OS usage (i.e., without a socket
  8224. descriptor).
  8225. - VNC Server: Add support for a VNC server. This logic is code
  8226. complete and functional, but not well tested.
  8227. * Graphics and Graphic Drivers:
  8228. - Framebuffer driver: Add a display number to each interface in order
  8229. to support multiple display devices.
  8230. - VNC Server: Add support for a VNC server. This logic is code
  8231. complete and functional, but not well tested.
  8232. - LCD Backpack: Add support for PCF8574 LCD Backpack driver. This
  8233. driver supports an interface board that is based on the PCF8574 I/O
  8234. expander and supports the HD44780-based (or compatible) LCD modules.
  8235. There are a myriad of different vendors of such, but they are
  8236. principally the same, save wiring and minor features like jumpers
  8237. for I2C addresses. This driver supports known and unknown variants.
  8238. From Dave (ziggurat29).
  8239. * Common Device Drivers:
  8240. - RTC: Simplify the RTC interface. The old interface was way too
  8241. complex and was not fully implemented anywhere.
  8242. - BH1750FVI: Add a character driver for Rohm Ambient Light Sensor
  8243. BH1750FVI. From Alan Carvalho de Assis.
  8244. - CAN: Improve CAN error reporting. From Frank Benkert.
  8245. - aes.h: Modifications to the crypto API needed for LPC43xx. From
  8246. Alexander Vasiljev.
  8247. - ADC: Interface no longer uses global adc_receive() call. Added a
  8248. new bind() method to the ADC interface. Now the ADC upper half
  8249. driver will register its receipt-of-data callback. This change
  8250. allows the ADC lower half driver to be used with a differ ADC upper
  8251. half.
  8252. * Simulation Platform:
  8253. - Linux Host Networking: Enhance networking support for the
  8254. simulation under Linux. Includes updated support for Linux TUN/TAP,
  8255. and the addition of support for Linux bridge devices. From Steve.
  8256. * ARMv7-A, ARMv7-R, and ARMv7-M:
  8257. - ARMv7-M: Convert more assembly language files for use with the IAR
  8258. toolchain. From Kha Vo.
  8259. - ARMv7-A: Complete re-design of SMP-related logic to initialize each
  8260. CPUn, n > 0, when CONFIG_SMP=y.
  8261. * Atmel SAMV7:
  8262. - Add a JTAG config and ERASE config to Kconfig to set the
  8263. CCFG_SYSIO SYSIO Pins. From David Sidrane.
  8264. - System Reset: Add the up_systemreset interface to the samv7 arch. The
  8265. approach is slightly different in that: 1) It enables ARCH_HAVE_RESET
  8266. and allows the user to set if, and for how long, to drive External
  8267. nRST signal. It also does not contain a default board_reset, as that
  8268. really should be done in the config's src if CONFIG_BOARDCTL_RESET
  8269. is defined. From David Sidrane.
  8270. * Atmel SAMV7 Boards:
  8271. - SAMV71-XULT: Add configuration(s) that were be used to verify VNC
  8272. graphics output as well as mouse and keyboard input.
  8273. * NXP Freescale i.MX6 Boards:
  8274. - Sabre-6Quad: The basic i.MX6 port is complete. This is a minimal
  8275. port at present and probably still has some as-of-yet-undiscovered
  8276. issues.
  8277. - Sabre-6Quad: Basic SMP NSH configuration is now working. But this
  8278. is probably only because the SMP test case does not stress the
  8279. logic. There are know outstanding SMP issues as noted in the
  8280. Sabre-6Quad README.txt file.
  8281. * NXP Freescale LPC43xx:
  8282. - LPC4337jet100: Add definitions for the LPC4337jet100 chip. From
  8283. Alexander Vasiljev.
  8284. * NXP Freescale LPC43xx Drivers:
  8285. - AES: Add AES support. From Alexander Vasiljev.
  8286. * STMicro STM32:
  8287. - STM32 L4: Add configuration options to allow SRAM2 to be used for
  8288. heap, or not at all, and to zero-initialize it on OS start, or not
  8289. at all. From Dave dev@ziggurat29.com.
  8290. - STM32 L4: Add support for HSE and MSI clocks, and auto trim of MSI
  8291. to LSE (needed for USB). From Dave (ziggurat29)
  8292. - STM32 L4: Add support for unique id function to arch; modified board
  8293. to support unique id boardctl. From Dave (ziggurat29)
  8294. * STMicro STM32 Drivers:
  8295. - STM32 F4 RTC: Add a custom RTC driver with support for alarms. From
  8296. Neil Hancock.
  8297. - STM32 L4 QSPI: Add a QSPI driver with DMA support and (optional
  8298. memory mapped mode support. From Dave ziggurat29).
  8299. - STM32, STM32 L4, and STM32 F7 Serial: Add support for compliant
  8300. SD-style breaks. From David Sidrane.
  8301. - STM32 L4 CAN: Add CAN support for STM32L4. From Sebastien Lorquet.
  8302. - STM32 1-Wire: Add support for a custom 1-wire driver. The serial
  8303. driver already supports a 1-wire interface, but this driver uses the
  8304. same serial logic to implement a lower half driver much like the
  8305. I2C lower half driver. From Aleksandr Vyhovanec.
  8306. - STM32 L4 SPI: Add support for SPI 4 and 5 on stm32f411 chips. From
  8307. Konstantin Berezenko.
  8308. - STM32 ADC: Allow omitting use of channels in a lower part of PWM.
  8309. From Pierre-noel Bouteville.
  8310. - STM32 L4 I2C: Get I2C working for STM32L4. From Dave (ziggurat29).
  8311. * STMicro STM32 Boards:
  8312. - STM3220G-EVAL: Add support for both the IAR and uVision GCC IDEs.
  8313. From Kha Vo.
  8314. - STM32F429I Discovery: Add support for the uVision GCC IDE. From
  8315. Kha Vo.
  8316. - STM32F4 Discovery: Integrate BH1750FVI driver in the STM32F4 Discovery
  8317. board. From Alan Carvalho de Assis.
  8318. - STM32L476VG Discovery: Add support for QSPI based N25Qxxx flash.
  8319. From Dave (ziggurat29)
  8320. - STM32L476VG Discovery: Add board ioctls for allowing user application
  8321. to cause QSPI memory mapped mode to be engaged and disengaged. Also
  8322. partitioned QSPI flash for file system and other (eventually xip).
  8323. From Dave (ziggurat29)
  8324. - Nucleo-144: Basic port for the Nucleo-144 board with the STM32F746ZG
  8325. MCU. From Kconstantin Berezenko.
  8326. - STM32F103 Minimum: Add support for this minimual STM32F103CBT6 "blue"
  8327. board. From Alan Carvalho de Assis.
  8328. - STM32F411E Discovery: Add basic configuration for stm32f411e-disco
  8329. board with STM32F411VE chip. From Konstantin Berezenko.
  8330. * Build/Configuration System:
  8331. - Moved NuttX repository to https://bitbucket.org/nuttx/nuttx.
  8332. Eliminated use of sub-modules.
  8333. - Add support for the IAR toolchain for the limited case of the ARMv7-M
  8334. architecture and the STM32 chip. From Aleksandr Vyhovanec.
  8335. - make export: Pass top-level make to the script to allow -j greater
  8336. than 1. From David Sidrane.
  8337. - fs/Kconfig: Allow CONFIG_FS_WRITABLE to be manually selectable. This
  8338. is needed when there are no writable file systems, but write support
  8339. is still needed in BCH or FTL.
  8340. - arch/*/Makefile: Add definitions that can be overrided to use GCC
  8341. instead of LD in the final link. From Paul Alexander Patience .
  8342. * Applications: apps/netutils:
  8343. - apps/netutils/esp8266: ESP8266 driver application. From Pierre-noel
  8344. Bouteville.
  8345. * Applications: apps/examples:
  8346. - apps/examples/alarm: Add a simple test of the ALARM iotcl calls of
  8347. the RTC driver.
  8348. - apps/examples/nximage: Add a configuration option to select
  8349. greyscale.
  8350. * Platforms: apps/platform:
  8351. - apps/platform/nucleo-144: Add platform files for NUCLEO-144
  8352. (NUCLEO-F746ZG). From Mark Olsson.
  8353. - apps/examples/media: You can now override the default device driver
  8354. path by providing an alternal path on the command line. From
  8355. Sébastien Lorquet.
  8356. Works-In-Progress:
  8357. * IEEE802.14.5/6LowPAN. Hooks and framework for this effort were
  8358. introduced in NuttX-7.15. Work has continued on this effort on
  8359. forks from the main repositories, albeit with many interruptions.
  8360. The completion of this wireless feature will postponed until at
  8361. least NuttX-7.17.
  8362. * i.MX6 SMP. Partially functional, but there is more that still
  8363. needs to be done.
  8364. Bugfixes. Only the most critical bugfixes are listed here (see the
  8365. ChangeLog for the complete list of bugfixes and for additional, more
  8366. detailed bugfix information):
  8367. * Core OS:
  8368. - Various places: Search for places where a stray semicolon following
  8369. an if condition cause the if body to be executed unconditionally.
  8370. Fixes in all SAM DMA logic, unionfs, OS signalling logic, and others.
  8371. - enter/leave_critical_section() may attempt to access task lists
  8372. before they have been initialized in the SMP configuration.
  8373. * File System/Block Drivers:
  8374. - SMART MTD: Return code of smart_scan not checked, can cause success
  8375. result in failure case, leading to 'dev' pointer being invalid. From
  8376. Dave (ziggurat29)
  8377. - mount: Fix a backward debug assertion. Noted by David Sidrane.
  8378. * Common Drivers:
  8379. - NRF24L01: Fix backward calculation of relative frequency. Noted by
  8380. Henry Zhang.
  8381. - PCA9555 I/O expander: Fix an error in the PCA9555 driver: Under
  8382. certain error conditions, interrupts were not being re-enabled.
  8383. Sebastien Lorquet.
  8384. - ADS1255: Must not do SPI access from interrupt handler. Use the
  8385. worker thread instead. Must also lock the SPI bus before using it.
  8386. - Several SPI-based drivers modified. All drivers that use SPI must
  8387. call SPI_LOCK and SPI_UNLOCK. This is not optional.
  8388. - MS583730: Fix a bug in crc computation for ms583730. Implement
  8389. POSIX read.
  8390. * Atmel SAMV7:
  8391. - Fix typo in MATRIX register definitions. From Stefan Kolb.
  8392. - SAMV7 Tickless Mode: This is a fix to a problem in the handling of
  8393. the oneshot timer. Due to a wrong assumption concerning the behavior
  8394. directly after the start of the timer/counter the function
  8395. sam_oneshot_cancel calculates the wrong remaining time. The code
  8396. assumes that the counter register is zero directly after the start
  8397. of the timer, but this is not true. To start the time/counter a
  8398. software trigger is invoked, this trigger starts the timer/count and
  8399. sets the counter register to zero, but the reset of the counter
  8400. register is not performed instantly. According to the datasheet:
  8401. "The counter can be reset by a trigger. In this case, the counter
  8402. value passes to zero on the next valid edge of the selected clock."
  8403. Thus the counter is set to zero between 0 and USEC_PER_TICK
  8404. microseconds after the clock was started.
  8405. In my fix I use the freerun count value to determine if at least one
  8406. tick passed since the start of the timer and thus if the value of
  8407. the oneshot counter is correct. I also tried to use the function
  8408. up_timer_gettime to achieve this but, at least if compiled with
  8409. no optimization the problem vanishes without using the value of the
  8410. function, the function call takes too long.
  8411. Another problem treated in the fix is that if the oneshot timer/counter
  8412. is canceled, we only know the remaining time with a precision of
  8413. USEC_PER_TICK microseconds. This means the calculated remaining time
  8414. is between 0 and USEC_PER_TICK microseconds too long. To fix this I
  8415. subtract one tick if the calculated remaining time is greater than
  8416. one tick and otherwise set the remaining time to zero. By doing so
  8417. the measured times are much more precise as without it. From Stefan
  8418. Kolb.
  8419. * Atmel SAMA5:
  8420. - SAMA5: Stefan Kolb's change to the SAMV7 Oneshot Timer should also
  8421. be applied to the SAMA5 oneshot time since the drivers are identical.
  8422. * Atmel SAM3/4:
  8423. - SAM3/4: Stefan Kolb's change to the SAMV7 Oneshot Timer should also
  8424. be applied to the SAM3/4 oneshot time since the drivers are identical.
  8425. * Atmel SAMV7 Drivers:
  8426. - SAMV7 TWIHS (as well as SAM3/4 and SAMA5: Ensure that the TWIHS
  8427. (i2c) hw gets its clock set when the sequence of
  8428. sam_i2cbus_initialize(), sam_i2cbus_uninitialize(), then
  8429. sam_i2cbus_initialize() or twi_reset() is called. I found this a
  8430. while back in the stm32 family, so there may be more arch-es with
  8431. this sort of bug. I suppose any driver that has the notion of "do
  8432. not set the freq if it is already set" could be suspect. From David
  8433. Sidrane.
  8434. - USBHS Device: Remove disabling of whole USB on suspend of USBHS.
  8435. This fix removes the disabling of the whole USB peripheral on
  8436. suspend interrupt. Its enough to freeze the clock instead. When
  8437. disabling the whole peripheral, the next wakeup-interrupt comes up
  8438. with an disabled clocking. The unfreeze clock has no effect, because
  8439. the master clock is disabled. This makes all registers, including
  8440. the IDR unwriteable and the IRQ falls in an endless loop blocking
  8441. the whole system. Furthermore the disabling of the peripheral clock
  8442. prevents hotplugging or reconnecting the USB. From Frank Benkert.
  8443. - MCAN: Fix missing unlock of device in MCAN mcan_txempty(). From
  8444. Frank Benkert.
  8445. * STMicro STM32:
  8446. - STM32 L4 Clocking: Problem with resetting backup domain clears
  8447. clocking options set up before in *rcc.c use INITS flag to avoid
  8448. magic reg value to detect power up reset state of RTC correct a
  8449. problem clearing interrupt flags (they weren't) which prevented an
  8450. alarm from ever being used more than once per reset cycle. From
  8451. Dave (ziggurat29)
  8452. * STMicro STM32 Drivers:
  8453. - STM32L4 SPI: That STM32Lr SPI driver is quite different. They now
  8454. handle frames of arbitrary size between 4 and 16 bits. It was broken
  8455. before a new bit has to be set (RX fifo threshold) to handle <= 8-bit
  8456. transactions. If not set, the default is 16-bit packed >=8-bit
  8457. frames and the RXNE bit is never set (it is set when 16-bits are
  8458. received). weird things as always. This also add 8-bit access
  8459. routines to the data register, because a 16-bit access to the data
  8460. register when the frame size is below 9 bits is interpreted as a
  8461. packed dual frame exchange. Sebastien Lorquet.
  8462. - STM32: Correct some bad commits that broke the LTDC display example.
  8463. From Marco Krahl.
  8464. - STM32 F4 RTC: Fix logic in F4 RTCC driver that prevent ALARM
  8465. interrupt. From Neil Hancock.
  8466. - STM32 F1 ADC: Fix STM32 ValueLine ADC IRQ number selection. From
  8467. David Sidrane.
  8468. * STMicro STM32 Boards:
  8469. - STM32F429I Discovery: Correct some bad commits that broke the LTDC
  8470. display example. From Marco Krahl.
  8471. * TI Tiva:
  8472. - GPIO Interrupts: Fix a bug of GPIO falling-edge interrupt for tiva.
  8473. From Young.
  8474. * C Library:
  8475. - math: Add a NAN test on 'x' in asin function of lib_asin.c. Suggested
  8476. by Pierre-noel Bouteville.
  8477. * Build/Configuration System:
  8478. - Several Makefiles: Add .PHONY definitions to prevent 'clean up to date'
  8479. message weirdness when 'make clean' is done with no .config or
  8480. Make.defs file.
  8481. NuttX-7.17 Release Notes
  8482. ------------------------
  8483. The 117th release of NuttX, Version 7.17, was made on July 25, 2016,
  8484. and is available for download from the Bitbucket.org website. Note
  8485. that release consists of two tarballs: nuttx-7.17.tar.gz and
  8486. apps-7.17.tar.gz. These are available from:
  8487. https://bitbucket.org/nuttx/nuttx/downloads
  8488. https://bitbucket.org/nuttx/apps/downloads
  8489. Both may be needed (see the top-level nuttx/README.txt file for build
  8490. information).
  8491. Additional new features and extended functionality:
  8492. * File System and Block and MTD Drivers:
  8493. - drivers/mtd: Add a driver of IS25xP SPI flash devices. Based on
  8494. sst25xx driver. From Marten Svanfeldt.
  8495. * Networking and Network Drivers:
  8496. - Break out internal interface psock_ioctl().
  8497. * Common Device Drivers:
  8498. - PTYs: Added support for pseduo-terminals: Device drivers that can be
  8499. used for communications between tasks (usually with re-directed I/O).
  8500. Based on existing pipe logic.
  8501. - Button upper half driver: Added support for poll().
  8502. - CAN: Add support for poll. From Paul Alexander Patience.
  8503. - GPIO: Add support for a simple GPIO driver. It supports only pre-
  8504. configured input, output, and interrupting pins with basic input and
  8505. output operations. Interrupt events can lead to notification via a
  8506. signal.
  8507. - I/O Expander: Shadow-Mode: The output- and configuration registers of
  8508. the IO-Expander are held in the microcontrollers memory and only
  8509. written to the IO-Expander. This reduces bus traffic and is more
  8510. error-proof than the normal read-modify-write operation. Retry Mode:
  8511. If enabled and an error occurs while writing to the IO-Expander the
  8512. current transmission is automatically repeated once. From Michael
  8513. Spahlinger.
  8514. - Pipes/FIFOs: Add support to allocating different sizes for pipe and
  8515. fifo buffers. Adds mkfifo2() and pipe2() which are just like mkfifo()
  8516. and pipe(), but allow control of the size of the underlying, in-memory
  8517. circular buffer. Move pipe() and mkpipe() to the C library, they are
  8518. no longer core OS interfaces. Capability currently used only by PTY
  8519. logic to support, configurable, smaller buffers for PTYs.
  8520. * SYSLOG/Debug Output:
  8521. - SYSLOG: Consolidated all SYSLOG logic in drivers/syslog. Added an
  8522. abstraction layer that supports: (1) redirection of SYSLOG outpout.
  8523. This is usually so that you can boot with one SYSLOG output but
  8524. transition to another SYSLOG output when the OS has initialialized,
  8525. (2) adds common serialization of interrupt output as a configuration
  8526. option. Without this configuration setting, interrupt level output
  8527. will be asynchronous. And (3) vsyslog is now a system call and is
  8528. usable with other-than-FLAT builds.
  8529. - SYSLOG: syslog() will now automatically redirect output to
  8530. lowsyslog() if called from an interrupt handler.
  8531. - Extended SYSLOG logic so that we can send SYSLOG output to a file.
  8532. - SYSLOG character device channel will now expand LF to CR-LF.
  8533. Controllable with a configuration option.
  8534. - Add a SYSLOG character device that can be used to re-direct output
  8535. to the SYSLOG channel (Not be be confused the SYSLGO output to a
  8536. character device).
  8537. - Debug features are now enabled separately from debug output.
  8538. (1) CONFIG_DEBUG is gone. It is replaced with CONFIG_DEBUG_FEATURES.
  8539. (2) The macros dbg() and vdbg() have renamed as _err() and _info(),
  8540. respectively. This also applies to all of the variants as well,
  8541. XXdbg() and XXvdbg(). (3) Add a new debug level, _warn() (and
  8542. all variants XXwarn(), XXvwarn(), etc.). (4) Debug assertions can
  8543. now be enabled separately from debug output. (5) You can now enable
  8544. subsystem/device driver debug output at different output levels. For
  8545. example, CONFIG_DEBUG_FS no longer enables file system debug output
  8546. It enables general file system debug logic and enables selection of
  8547. CONFIG_DEBUG_FS_ERROR, CONFIG_DEBUG_FS_WARN, and CONFIG_DEBUG_FS_INFO.
  8548. - Since the SYSLOG layer now automatically handles low-level vs.
  8549. high-level output, the low-level (ll) variants of the debug macros
  8550. were eliminated.
  8551. - Reviewed all uses of *err(). These macro family should indicate
  8552. only error conditions. Convert *err() to either *info() or add
  8553. ERROR:, depending on if an error is reported.
  8554. - _alert(): New debug macro: _alert(). This is high priority,
  8555. unconditional output and is used to simplify and standardize crash
  8556. error reporting.
  8557. - Many CONFIG_DEBUG_* options did not have matching macros defined in
  8558. include/debug.h. Rather, there were various definitions scattered
  8559. throughout the sourse tree. These were collected together and
  8560. centralized with single macro definitions in include/debug.h
  8561. * Simulation Platform:
  8562. - Added the simulated QSPI (N25Q) flash to the simulation and extended
  8563. flash simulation capabilities to run with MTD drivers based on config
  8564. options (currently m25p, sst26 and w25). From Ken Pettit.
  8565. * Atmel SAMV7 Drivers:
  8566. - SPI: SPI-Freq. 40MHz; VARSELECT; hw-features This change adds the
  8567. following improvements:
  8568. o Increase the allowed SPI-Frequency from 20 to 40 MHz.
  8569. o Correct and rename the "VARSELECT" option This option was
  8570. included in the code as "CONFIG_SPI_VARSELECT" but nowhere
  8571. defined in a Kconfig file. The change renames it to
  8572. "CONFIG_SAMV7_SPI_VARSELECT" and corrects the implementation
  8573. according the datasheet of Atmel. In short, this option
  8574. switches the processor from "fixed peripheral selection"
  8575. (single device) to "variable peripheral selection" (multiple
  8576. devices on the bus).
  8577. o Add a new Function to the interface to control the timing and
  8578. delays of the chip according the ChipSelect lines. This function
  8579. can control the delay between the assertion of the ChipSelect and
  8580. the first bit, between the last bit and the de-assertion of the
  8581. ChipSelect and between two ChipSelects. This is needed to tune
  8582. the transfer according the specification of the connected devices.
  8583. o Add three "hw-features" for the SAMV7, which controls the behavior
  8584. of the ChipSelect:
  8585. - force CS inactive after transfer: this forces a (short) de-
  8586. assertion of the CS after a transfer, even if more data is
  8587. available in time
  8588. - force CS active after transfer: this forces the CS to stay
  8589. active after a transfer, even if the chip runs out of data.
  8590. Btw.: this is a prerequisite to make the LASTXFER bit working
  8591. at all.
  8592. - escape LASTXFER: this suppresses the LASTXFER bit at the end
  8593. of the next transfer. The "escape"-Flag is reset automatically.
  8594. From Frank Benkert
  8595. - TWISHS: Driver improvements from Michael Spahlinger.
  8596. - GPIO-Driver fixed for Open-Drain Pins:
  8597. o sam_gpioread: Now the actual line level from the pin is read
  8598. back. This is extremely important for Open-Drain Pins, which
  8599. can be used bidirectionally
  8600. o Re-Implemented twi_reset-function and enhanced it so it can be
  8601. called from inside the driver (see next point)
  8602. o Glitch-Filter: Added a configuration option to enable the twi-
  8603. built-in glitch filter
  8604. o Added a "Single Master Mode": In EMC Testing the TWI-Bus got
  8605. stuck because the TWI-Master detected a Multi-Master access (but
  8606. there is no second master). With the option "Single Master" we
  8607. detect these events and automatically trigger a twi_reset. We
  8608. also do an automatic recovery if a slave got stuck (SDA stays
  8609. low).
  8610. With the above changes I2C-Bus reliability in harsh environments (eg.
  8611. EMC) is greatly improved. The small change in the GPIO-Driver was
  8612. necessary because otherwise you cannot read back the correct line
  8613. status of Open-Drain Outputs and this is needed by the twi_reset
  8614. function. From Michael Spahlinger
  8615. * NXP Freescale LPC43xx Drivers:
  8616. - EMC: Extend LPC43xx EMC code to support SDRAM on a dynamic memory
  8617. interface. From Vytautas Lukenskas.
  8618. * NXP Freescale Kinetis:
  8619. - Kinetis K64: Add basic support for the K64 family. I leveraged the
  8620. changes from https://github.com/jmacintyre/nuttx-k64f and merged
  8621. into the existing kinetis code with a lot of changes and additions
  8622. (like pin multiplexing definitions).
  8623. * NXP Freescale Kinetis Drivers:
  8624. - Add a KinetisUSB device controller driver. Derived from the pic32mx
  8625. usb driver, which uses the same usb controller. From kfazz.
  8626. - Kinetis pwm support, based on the KL pwm driver. From kfazz.
  8627. - Kinetis Ethernet: Add support for the KSZ8081 PHY.
  8628. - Kinetis Ethernet: Modified Ethernet driver to try all PHY addresses
  8629. and then only fail if the driver cannot find a usable PHY address.
  8630. This means that you no longer have to specific the PHY address in
  8631. advance.
  8632. - Kinetis Ethernet: Add support for CONFIG_NET_NOINTS. The driver no
  8633. longer runs the networking at interrupt level but can defer interrupt
  8634. work to the high-priority work queue.
  8635. * NXP Freescale Kinetis Boards:
  8636. - Teensy-3.x: Add USB support and a usbnsh configuration.
  8637. From kfazz (2016-06).
  8638. - Freedom-K64F: Add support for the NXP Freedom-K64F board at 120MHz.
  8639. This is primarily the work of Jordan Macintyre. I leveraged this
  8640. code from https://github.com/jmacintyre/nuttx-k64f which was, itself,
  8641. a leverage from the old K60 TWR configuration. This includes
  8642. significant corrections (LEDs, buttons, README, etc) and extensions
  8643. and updates to match more recent BSPs.
  8644. - Freedom-K64F: Added a configuration that supports networking.
  8645. * STMicro STM32:
  8646. - STM32 F1-4: Added support for the STM32F105R. From Konstantin
  8647. Berezenko.
  8648. - STM32 F4: Added support for the STM32FF76xxx and STM32FF7xx
  8649. families. From David Sidrane.
  8650. - STM32 F1-4: Add support for Tickless mode (two timer
  8651. implementation). From Max Neklyudov.
  8652. - STM32 L4: Add support for tickless OS, and incidentally timers,
  8653. PWM, oneshot, free-running.... From ziggurat29.
  8654. * STMicro STM32 Drivers:
  8655. - STM32 F1-4: Add the up_getc() function to STM32 in order to support
  8656. the minnsh configuration. From Alan Carvalho de Assis.
  8657. - STM32 F7: Add SPI driver. From David Sidrane.
  8658. - STM32 F7: Add SPI, I2C, and ADC drivers. From Lok Tep.
  8659. - STM32 L4: Add ioctls to set/get CAN bit timing in stm32l4. Add
  8660. ioctl hooks to allow future management of can id filters. From
  8661. Sebastien Lorquet.
  8662. - STM32 L4: Add some CAN mode IOCTL calls. These will be useful for
  8663. device autotest when the application boots. They are redundant
  8664. with the CONFIG_CAN_LOOPBACK option, which can now just be
  8665. interpreted as a default setting. From Sebastien Lorquet.
  8666. - STM32 F1-4: Port STM32L4 CAN IOCTLs to STM32. From Sebastien Lorquet.
  8667. - STM32 L4: Implementation of loopback IOCTLs. From Sebastien
  8668. Lorquet.
  8669. - STM32 F7: Added SDMMC1 support for stm32F7 74-75. From Lok Tep.
  8670. - STM32 F7: Add USB support. From Lok Tep.
  8671. - STM32 F7: Added PWR, RTC, and BBSRAM support for stm32f7. From David
  8672. Sidrane.
  8673. - STM32 F7: Added STMF7xxx RTC. From David Sidrane.
  8674. - STM32 F7: Added STM32F7 DBGMCU. From David Sidrane.
  8675. - STM32 L4: Port support for both RX FIFOs from STM32 CAN. From Paul
  8676. Alexander Patience.
  8677. * STMicro STM32 Boards:
  8678. - Added a minnsh configuration for the STM32F103-Minimum board. From
  8679. Alan Carvalho de Assis .
  8680. - Added support for the Nucleo-F767ZI board. From David Sidrane.
  8681. - Nucleo-144/Nucleo-F767ZI: Add test for STM32 F7 SPI. From David
  8682. Sidrane.
  8683. - Nucleo-144: Added SDMMC support to Nucleo-144. From David Sidrane.
  8684. - Olimex STM32-E4077: Add support for Olimex STM32 E407 board. From
  8685. Mateusz Szafoni.
  8686. - Nucleo-144: Added USB OTG device to Nucleo-144. From David Sidrane.
  8687. - Nucleo-144: Added bbsram test to Nucleo-144. From David Sidrane.
  8688. - STM32F4 Discovery: Add CAN support for STM32F4 Discovery. From
  8689. Matthias Renner.
  8690. - STM32F4 Discovery: added a canard configuration files. From
  8691. Matthias Renner.
  8692. - STM32F4 Discovery: Add FPU support for ostest for the STM32F4
  8693. Discovery platform. From David Alessio.
  8694. - STM32L476 Discovery: Update stm32l476 disco to include init code for
  8695. smartfs and nxffs for cases where those fs are included in build.
  8696. From ziggurat29.
  8697. * C Library/Header Files:
  8698. - include/assert.h: Check if NDEBUG is defined. From Paul Alexander
  8699. Patience.
  8700. - assert.h: Define static assert for C++ usage. From Paul Alexander
  8701. Patience.
  8702. - Add crc64 support. From Paul Alexander Patience.
  8703. - hex2bin: Move the portable library portion of apps/system/hex2bin
  8704. the C library with the OS internals. It is used in certain internal
  8705. boot-loader builds.
  8706. - Add raise().
  8707. - libm: This change should significantly improve the performance of
  8708. single precision floating point math library functions. The vast
  8709. majority of changes have to do with preventing the compiler from
  8710. needlessly promoting floats to doubles, performing the calculation
  8711. with doubles, only to demote the result to float. These changes only
  8712. affect the math lib functions that return float. From David Alessio.
  8713. - printf(): If there are no streams, let printf() fall back to use
  8714. syslog() for output.
  8715. - Move pipe() and mkpipe() to nuttx/libc, they are no
  8716. longer core OS interfaces. Capability currently used only by PTY logi
  8717. to support, configurable, smaller buffers for PTYs.
  8718. - Move driver-related files from include/nuttx to include/nuttx/drivers.
  8719. Move driver related prototypes out of include/nuttx/fs/fs.h and into
  8720. new include/drivers/drivers.h.
  8721. - include /nuttx/lib: Move library-related files from include/nuttx to
  8722. include/nuttx/lib.
  8723. * Build/Configuration System:
  8724. - Custom Board Configuration: Add logic to support custom board
  8725. directories that include a Kconfig file. During the context phase
  8726. of the build, any Kconfig file in the custom board directory is
  8727. copied into configs/dummy, replacing the existing Kconfig file with
  8728. the target Kconfig file.
  8729. - Remove the includes/apps link to apps/include. It is no longer
  8730. used. From Sebastien Lorquet.
  8731. * Tools:
  8732. - tools/tesbuild.sh will now build NxWM configurations.
  8733. * Application Build/Configuration System:
  8734. - Change to the way that apps/ Kconfig files are generated in
  8735. order to better support reuse of the apps/ directory in NuttX
  8736. products. Changes include: Make the full tree use wildcards
  8737. make.defs, Add empty preconfig rules to 'leaf' makefiles, Use
  8738. directory.mk for recursive dir makefiles, Individual app kconfig
  8739. fixes, Recursive Kconfig autogeneration, Add kconfig files for
  8740. pcode and tiff, and fix a gitignore rule, From Sébastien Lorquet.
  8741. - apps/include directory structure reorganized. There are no longer
  8742. any header files in the apps/include/. directory. Rather, sub-
  8743. directories were added to match the partitioning of apps/ sub-
  8744. directories and the header files were moved into the appropriate
  8745. sub-directory. This change is intended to help with some changes
  8746. being considered by Sébastien Lorquet.
  8747. - Call all includes from <apps/bla/bla.h> to "bla/bla.h". From Sebastien
  8748. Lorquet.
  8749. - Add apps/include to include path in top-level Make.defs file.
  8750. * Applications: apps/nshlib:
  8751. - Make NSH net-initialization be a configuration option. From Marten
  8752. Svanfeld.
  8753. - Add NTP client initialization in NSH network startup logic. From
  8754. David S. Alessio .
  8755. - 'ps' command now prints out the stack usage if stack coloration is
  8756. enabled. From Frank Benkert.
  8757. - Allow stack usage to be disabled on constrained systems. From David
  8758. Sidrane.
  8759. * Applications: apps/netutils:
  8760. - NTP Client: Add retries. From David S. Alessio.
  8761. - NTP Client: The NTP client will now optionally use pool.ntp.org as
  8762. the NTP server; and reset the retry count upon success -- more robust.
  8763. From David Alessio.
  8764. - ESP8266: Add logic to set the BAUD rate. From Pierre-noel Bouteville.
  8765. - ESP8266: In Kconfig, select ARCH_HAVE_NET when NETUTILS_ESP8266 is
  8766. selected. This allows, among other things, support for network debug
  8767. output. From Pierre-noel Bouteville.
  8768. * Applications: apps/fsutils:
  8769. - flash_eraseall: IOCTL wrapper for MDCIO_BULKERASE command. Was in
  8770. nuttx/drivers/mtd. Moved to apps/fsutils because the call directly into
  8771. the OS was incorrect.
  8772. * Applications: apps/canutils:
  8773. - canlib: Basic CAN utility library. From Sebastien Lorquet.
  8774. * Platforms: apps/system:
  8775. - flash_eraseall: Now uses the IOCTL wrapper at apps/fsutils/flash_eraseall.
  8776. * Platforms: apps/platform:
  8777. - Add platform files for Olimex STM32 E407. From Mateusz Szafoni.
  8778. * Applications: apps/examples:
  8779. - apps/examples/canard: Add canard example application. From
  8780. Matthias Renner.
  8781. - apps/examples/pty_test: PTY test program. From Alan Carvalho de
  8782. Assis.
  8783. Works-In-Progress:
  8784. * IEEE802.14.5/6LowPAN. Hooks and framework for this effort were
  8785. introduced in NuttX-7.15. Work has continued on this effort on
  8786. forks from the main repositories, albeit with many interruptions.
  8787. The completion of this wireless feature will postponed until at
  8788. least NuttX-7.18.
  8789. * i.MX6 SMP. Partially functional, but there is more that still
  8790. needs to be done.
  8791. Bugfixes. Only the most critical bugfixes are listed here (see the
  8792. ChangeLog for the complete list of bugfixes and for additional, more
  8793. detailed bugfix information):
  8794. * Core OS:
  8795. - semaphores: Need to set errno to EINVAL on errors in sem_post()
  8796. and sem_wait(). From Paul Alexander Patience.
  8797. * File System/Block Drivers/MTD Drivers:
  8798. - Several MTD FLASH drivers nullify the freed 'priv' structure and
  8799. failed to return NULL as stated in the comments. Result, will
  8800. operate on a NULL pointer later. Noted by David Sidrane.
  8801. - VFS ioctl(). Per comments from David Sidrane, file_ioctl() should
  8802. not return succeed if the ioctl method is not supported. It
  8803. probably should return ENOTTY in that case.
  8804. - SST26 Driver: Before accessing the sst26 flash, the "Global Unlock"
  8805. command must me executed, which I do in the sst26 driver. BUT re-
  8806. reading the datasheet, the WREN instruction is required to enable
  8807. the execution of this command. This was not done. I have no idea how
  8808. the driver currently works except by chance. The writes should never
  8809. happen at all, the flash is half-enabled! From Sebastien Lorquet.
  8810. - N25Qxx Driver: Alter the notion of 'blocksize' to be equivalent to
  8811. 'flash write page size' in order to align with assumptions in the
  8812. smartfs driver (at least, maybe other things do as well). Correct a
  8813. bug that was previously masked by having blocksize=eraseblocksize
  8814. which would cause buffer overflows and delicious hardfaults.
  8815. Trivial spelling changes in comments, etc. From ziggurat29.
  8816. - SmartFS: Fix a 32-byte memory leak. From Ken Pettit.
  8817. - SMART MTD layer: Fixes freesector logic error when sectorsPerBlk=256,
  8818. adds DEBUGASSERT for invalid geometry and additional memory debug
  8819. logic. Also fixes the dangling pointer on error bug. From Ken
  8820. Pettit.
  8821. * Common Drivers:
  8822. - USB CDC/ACM Device Class: cdcacm_unbind leaks write request objects.
  8823. This arises due to freeing the bulk IN endpoint before the loop
  8824. that frees the requests via cdcasm_freereq. That function checks
  8825. the parameters and skips the freeing if either is NULL. Freeing
  8826. the bulk IN endpoint will cause the first param to be NULL, thereby
  8827. bypassing the free operation. To fix, I moved the release of the
  8828. bulk IN endpoint until after to loop (much as was the case for the
  8829. OUT and read requests, which did not exhibit the problem). From
  8830. ziggurat29.
  8831. - Pipes and FIFOs: Add missing configuration for pipe ring buffer
  8832. size. From Frank Benkert.
  8833. - UART 16550: Handle when CONFIG_SERIAL_UART_ARCH_IOCTL is not
  8834. enabled. From Heath Petersen.
  8835. - Common Serial Upper Half: Fix a race condition noted by Stefan
  8836. Kolb. Between the test if the TX buffer is full and entering a
  8837. critical section, bytes may be removed from the TX buffer making
  8838. the wait unnecessary. The unnecessary wait is an inefficiency,
  8839. but not really a problem. But with USB CDC/ACM it can be a problem
  8840. because the entire TX buffer may be emptied when we lose the race.
  8841. If that happens that uart_putxmitchar() can hang waiting for data
  8842. to be removed from an empty TX buffer.
  8843. - USB MSC Device Class: Add locks when removing request from queue.
  8844. From Wolfgang Reissnegger.
  8845. - USB MSC Device Class: Fix reversed logic on waiting for SCSI thread
  8846. start. The scsi thread was waiting for the wrong condition.
  8847. However, this was masked by the fact that the code creating the
  8848. scsi thread was also holding usbmsc_scsi_lock(priv) while
  8849. initializing data, hence this lock synchronized the scsi thread
  8850. start with init completion. From Wolfgang Reissnegger.
  8851. * Graphics and Graphic Drivers:
  8852. - Correct conditional compilation in ST7565 LCD driver. From Pierre-
  8853. noel Bouteville
  8854. * Networking:
  8855. - In both IPv6 and IPv4 incoming logic: (1) Should check if the
  8856. packet size is large enough before trying to access the packet
  8857. length in the IP header. (2) In the comparison between the IP
  8858. length and the full packet length, need to subtract the size of
  8859. he link layer header before making the comparison or we will get
  8860. false positives (i.e., the packet is really too small)
  8861. - TCP Networking: While working with version 7.10 I discovered a
  8862. problem in TCP stack that could be observed on high network load.
  8863. Generally speaking, the problem is that RST flag is set in
  8864. unnecessary case, in which between loss of some TCP packet and its
  8865. proper retransmission, another packets had been successfully sent.
  8866. The scenario is as follows: NuttX did not receive ACK for some sent
  8867. packet, so it has been probably lost somewhere. But before its
  8868. retransmission starts, NuttX is correctly issuing next TCP packets,
  8869. with sequence numbers increasing properly. When the retransmission
  8870. of previously lost packet finally succeeds, tcp_input receives the
  8871. accumulated ACK value, which acknowledges also the packets sent in
  8872. the meantime (i.e. between unsuccessful sending of lost packet and
  8873. its proper retransmission). However, variable unackseq is still set
  8874. to conn->isn + conn->sent, which is truth only if no further
  8875. packets transmission occurred in the meantime. Because of incorrect
  8876. (in such specific case) unackseq value, few lines further condition
  8877. if (ackseq <= unackseq)is not met, and, as a result, we are going to
  8878. reset label. From Jakub Lagwa.
  8879. * ARMv7-M:
  8880. - ARM stack check: Fix double fault on IDLE task with stack size = 0.
  8881. From David Sidrane.
  8882. * Atmel SAMV7 Drivers:
  8883. - CAN: CAN Message Filtering fixed: (1) stdfilters didn't work because
  8884. the filter was never enabled (wrong number of bits to shift), and
  8885. (2) Filters were never used because the configuration register
  8886. cannot be written without using the initialization mode. Both bugs
  8887. are fixed by this change. Filtering has been tested with both
  8888. standard and extended identifiers and is now working properly. From
  8889. Michael Spahlinger.
  8890. * Atmel SAMA5:
  8891. * Atmel SAM3/4 Drivers:
  8892. - Fix some errors in AFEC header file. From OrbitalFox.
  8893. - DAC: DACC_WPMR_WPKEY_MASK -> DACC_WPMR_WPKEY. From Wolfgang
  8894. Reissnegge.
  8895. - Timer: Fix ops check in TCIOC_STOP. From Wolfgang Reissnegge.
  8896. - I2C: Fix reversed logic in twi_startmessage(). From Wolfgang
  8897. Reissnegger.
  8898. - SAM3/4 UDP: Fix handling of endpoint RX FIFO banks. This fixes
  8899. a race condition where the HW fills a FIFO bank while the SW is
  8900. busy, resulting in out of sequence USB packets.
  8901. * Atmel SAMV7 Drivers:
  8902. - USBHS Device: This change solves a problem which causes data loss
  8903. while sending data via USB. This problem is caused by an incorrect
  8904. handling of the endpoint state in the USB driver sam_usbdevhs. This
  8905. leads under some circumstances to situations in which an DMA
  8906. transfer is setup while a previous DMA transfer is currently active.
  8907. Amongst other things I introduced the new endpoint state
  8908. USBHS_EPSTATE_SENDING_DMA for the fix. To reproduce the problem, I
  8909. used a program which send as many data as possible via a CDC/ACM
  8910. device and verified the received data on the PC. From Stefan Kolb.
  8911. * NXP Freescale Kinetis Drivers:
  8912. - Timers: Support up to 8 channels per timer. From kfazz.
  8913. * NXP Freescale Kinetis Boards:
  8914. - Teensy 3.x clock fixes: The High Gain bit in MCG_C1 was preventing
  8915. teensy from booting except after a programming session. The second
  8916. change doesn't appear to change any functionality, but complies with
  8917. restrictions in the k20 family reference manual on FEI -> FBE clock
  8918. transiions. From kfazz.
  8919. * NXP Freescale LPC17xx Drivers:
  8920. - LPC17 Ethernet: Needs to correctly ignore PHYID2 revision number
  8921. when comparing PHY IDs.
  8922. * NXP Freescale LPC43xx Drivers:
  8923. - Fix errors in GPIO interrupt logic. From v01d (phreakuencies)
  8924. - Ethernet: Correct auto-negotiation mode in the LPC43xx Ethernet.
  8925. From Alexander Vasiljev
  8926. - Writing zero to NVIC_IRQ_ENABLE has no effect. Disable interrupts
  8927. with NVIC_IRQ_CLEAR. From Paul Alexander Patience.
  8928. - SPIFI: If CONFIG_SPIFI_SECTOR512 undefined, lpc43_bwrite doesn't do
  8929. actual write (probably copy/paste errors). Still not sure about
  8930. current state of lpc43_spifi implementation, but for me NXFFS works
  8931. with this change. From Vytautas Lukenskas.
  8932. * Qemu-i486:
  8933. - Fix qemu-i486/ostest/Make.defs test for M32. From Heath Petersen.
  8934. * SiLabs EFM32 Drivers:
  8935. - Fix EFM32 FLASH conditional compilation. From Pierre-noel
  8936. Bouteville
  8937. - Writing zero to NVIC_IRQ_ENABLE has no effect. Disable interrupts
  8938. with NVIC_IRQ_CLEAR. From Paul Alexander Patience.
  8939. * STMicro STM32:
  8940. - STM32 F1-F4: In PWM driver, just update duty if frequency is not
  8941. changed and PSM started. This removeis glitch or blinking when
  8942. only duty is frequently changed. From Pierre-noel Bouteville.
  8943. * STMicro STM32 Drivers:
  8944. - STM32 F7: Fixed STM32F7 DMA stm32_dmacapable. DMA working on SDMMC.
  8945. From David Sidrane.
  8946. - STM32 F1-F4 Timer Driver: Change calculation of per- timer pre-scaler
  8947. value. Add support for all timers
  8948. - STM32 F1-F4: Correct conditional compilation in STM32 timer capture
  8949. logic. From Pierre-noel Bouteville
  8950. - STM32 F1-F4: Fix STM32 DMA code and configuration for STM32F37X chips.
  8951. From Marten Svanfeldt.
  8952. - STM32 F1-F4: Fix compilation errors in debug mode of stm32_pwm.c.
  8953. From Konstantin Berezenko.
  8954. - STM32 F1-F4: Correct the CAN2 RX IRQ number for stm32f10xx chips.
  8955. From Konstantin Berezenko.
  8956. - STM32 F1-F4: Move backup domain reset to earlier in the
  8957. initialization sequence (stm32_rcc.c() in order to avoid disabling
  8958. LSE during RTC initialization. From Alan Carvalho de Assis.
  8959. - STM32 F1-F4: When configuring a GPIO via stm32_configgpio() the
  8960. function will first set the mode to output and then set the initial
  8961. state of the gpio later on. If you have an application with an
  8962. externaly pulled-up pin, this would lead to a glitch on the line
  8963. that may be dangerous in some applications (e.G. Reset Line for
  8964. other chips, etc). This changes sets the output state before
  8965. configuring the pin as an output. From Pascal Speck .
  8966. - STM32 F7: Apply Pascal Speck's GPIO STM32 change to STM32 L4.
  8967. - STM32 L4: Apply Pascal Speck's GPIO STM32 change to STM32 L4.
  8968. From Sebastien Lorquet.
  8969. - STM32 F7: BUGFIX: PLLs IS2 and SAI P Calculation. From David
  8970. Sidrane.
  8971. - STM32 L4: STM32 CAN fixes need to be backported to STM32L4 as well.
  8972. - STM32 F1-F4 and L4: Writing zero to NVIC_IRQ_ENABLE has no effect.
  8973. Disable interrupts with NVIC_IRQ_CLEAR. From Paul Alexander
  8974. Patience.
  8975. - STM32 F7: STMF7xxx RTC: (1) Remove proxy #defines, (2) Ensure the
  8976. LSE(ON) etal are set and remembered in a) A cold start (RTC_MAGIC
  8977. invalid) of the RTC, and b) A warm start (RTC_MAGIC valid) of the
  8978. RTC but a clock change. The change was needed because in bench
  8979. testing a merge of the latest's STM32 53ec3ca (and friends) it
  8980. became apparent that the sequence of operation is wrong in the
  8981. reset of the Backup Domain in the RCC code. PWR is required before
  8982. the Backup Domain can be futzed with. !!!This Code should be tested
  8983. on STM32 and if needed rippled to the STM32 families. From David
  8984. Sidrane.
  8985. - STM32 F1-F4: STM32 BBSRAM fixed (and formatted) flags. From David
  8986. Sidrane.
  8987. - STM32 F7: STM32F7 BBSRAM fixed (and formatted) flags. From David
  8988. Sidrane.
  8989. - STM32 L4: Fix incorrect clock setup for LPTIM1. From ziggurat29.
  8990. - STM32 F4/L4 RTC ALARM: were enabling interrupts too early in the
  8991. power-up sequence, BEFORE the interrupt system was being
  8992. initialized.
  8993. * STMicro STM32 Boards:
  8994. - STM32 board.h: Fix STM32 timer input clock definitions. From David
  8995. Sidrane.
  8996. * TI Tiva Drivers:
  8997. - Bug Fix in tiva_serial.c - UART5, UART6 and UART7 were not being
  8998. configured as TTYS0 for printing over serial console. From Shirshak
  8999. Sengupta.
  9000. * C Library/Header Files:
  9001. - include/signal.h: Change type of SIG_ERR, SIG_IGN, ... to
  9002. _sa_handler_t. The type void does not work with the IAR toolchain.
  9003. From Aleksandr Vyhovanec.
  9004. - crc16: fix error. From Paul Alexander Patience.
  9005. - strtoul() and strtoull(): Fix errno settings required by function
  9006. definition. Resolved Bitbucket Issue #1. From Sebastien Lorquet.
  9007. * Build/Configuration System:
  9008. - Build system: This change fixes a build problem that only occurs
  9009. when reconfiguring from Linux to Windows or vice-versa. It is a
  9010. problem that was present but not usually experienced until two
  9011. things happened: (1) The pre_config target was added to run before
  9012. the menconfig operation and (2) the context target was added before
  9013. the pre_config target in order to set up the correct symbolic links
  9014. (in the apps/platform directory) needed by the pre_config target.
  9015. But then now if you start with a Linux system and run 'make
  9016. menuconfig' to switch to Linux, the context target will execute
  9017. first and set up POSIX style symbolic links before doing the
  9018. menuconfig. Then after the menuconfig, the make will fail on
  9019. Windows if you are using a Windows native toolchain because that
  9020. native toolchain cannot follow the Cygwin- style symbolic links.
  9021. The fix here is to also execute the clean_context AFTER executing
  9022. menuconfig. A lot more happens now: It used to be that doing
  9023. 'make menuconfig' only did the menuconfig operation. Now it does
  9024. context, pre_config, menuconfig, clean_context. Not nearly as
  9025. snappy as it used to be.
  9026. - Need to build the drivers/ directory even it file descriptors are
  9027. not supported. There are things in the drivers/ directory that are
  9028. still needed (like SYSLOG logic).
  9029. - Remove all inclusion of header files from the apps/include
  9030. directory from NuttX core logic. There should be no dependency on
  9031. logic within NuttX on logic within apps/. This caused a lot of
  9032. reshuffling of logic: binfmt pcode support, usbmonitor is now a
  9033. kernel thread, TZ/Olson database moved to libc/zoneinfo.
  9034. * Application Build/Configuration System:
  9035. - Make sure that APPNAME is defined in all Makefiles that generate
  9036. applications. From Sebastien Lorquet.
  9037. * apps/builtins:
  9038. - apps/builtins: exec_builtin was not using the provided open flags.
  9039. As a result >> redirection was not working; it was treated the same
  9040. as >.
  9041. * apps/nshlib:
  9042. - apps/nshilib: PS Command: When Priority Inheritance is enabled, the
  9043. format of /proc/<PID>/status changes to show both the current
  9044. priority and the thread's base priority. This messes up the format
  9045. of cmd_ps. From David Alessio.
  9046. * apps/netutils:
  9047. - apps/netutils, uIP webserver: Fix a data declaration in a header
  9048. file.
  9049. * apps/canutils:
  9050. - apps/canutils/libuavcan: Fix for recent change to STM32 timer
  9051. frequency definiitions.
  9052. * apps/examples:
  9053. - apps/examples/alarm: ioctl call was clobbering file descriptor.
  9054. - apps/examples/can: Some variables were not declared in all required
  9055. cases. From Sebastien Lorquet.
  9056. - apps/examples/media: media example was intended to take either a
  9057. command line argument, or a compiled-in default value from config.
  9058. However, the default was ignored, leading to confusing error
  9059. messages. From ziggurat29.
  9060. NuttX-7.18 Release Notes
  9061. ------------------------
  9062. The 118th release of NuttX, Version 7.18, was made on October 8, 2016,
  9063. and is available for download from the Bitbucket.org website. Note
  9064. that release consists of two tarballs: nuttx-7.18.tar.gz and
  9065. apps-7.18.tar.gz. These are available from:
  9066. https://bitbucket.org/nuttx/nuttx/downloads
  9067. https://bitbucket.org/nuttx/apps/downloads
  9068. Both may be needed (see the top-level nuttx/README.txt file for build
  9069. information).
  9070. Additional new features and extended functionality:
  9071. * Core OS:
  9072. - Add standard adjtime() interface and basic timekeeping support.
  9073. Normally used with an NTP client to keep system time in
  9074. synchronization. From Max Neklyudov.
  9075. - Use the oneshot timer with optional entropy to measure CPU load if
  9076. so configured.
  9077. * File System and Block and MTD Drivers:
  9078. - Add Fujistu MB85RS256B ramtron support. From Beat Küng.
  9079. - SPI-based MTD driver for Macronix MX25L3233F or MX25L6433F. From
  9080. Aleksandr Vyhovanec.
  9081. * Graphics/Display Drivers:
  9082. - SH1106 0.96 OLED module support (SSD1306 compatible) + I2C fixes.
  9083. From v01d (phreakuencies).
  9084. * Sensor Drivers:
  9085. - Add KXTJ9 Accelerometer driver from the Motorola Moto Z MDK.
  9086. - Add MFRC522 RFID ISO14443 and Mifare transceiver driver. From Alan
  9087. Carvalho de Assis.
  9088. - Add driver for the LIS3MDL 3 axis magnetometer. From Alexander
  9089. Entinger.
  9090. - Add driver for the MLX90393 3 axis magnetometer. From Alexander
  9091. Entinger.
  9092. - Add driver for the LIS3DSH 3 axis accelerometer. From Alexander
  9093. Entinger.
  9094. - Add driver for the Bosch BMG160 3 axis gyroscope. From Alexander
  9095. Entinger.
  9096. - Add support for the Sensixs XEN1210 3D-board. This sensor is used
  9097. on NANOSATC-BR2 a Brazilian CUBESAT project. From Alan Carvalho
  9098. de Assis.
  9099. - Add a new ioctl command (set MAXPOS) for Tiva QEI. From Young.
  9100. * Other Common Device Drivers:
  9101. - I/O Expander: Remove hard-coded PCA9555 fields from ioexpander.h
  9102. definitions. Add support for an attach() method that may be used
  9103. when any subset of pin interrupts occur.
  9104. - I/O Expander Interface: Encode and extend I/O expander options to
  9105. include interrupt configuration.
  9106. - PCA9555 Driver: Replace the signalling logic with a simple callback
  9107. using the new definitions of ioexpander.h. This repartitioning of
  9108. functionality is necessary because (1) the I/O expander driver is
  9109. the lower-lower part of any driver that uses GPIOs (include the GPIO
  9110. driver itself) and should not be interacting directly with the much
  9111. higher level application layer. And (2) in order to be compatible
  9112. with the GPIO driver (and any arbitrary upper half driver), the
  9113. PCA9555 should not directly signal, but should call back into the
  9114. upper half. The upper half driver that interacts directly with the
  9115. application is the appropriate place to be generating signal.
  9116. - Add a skeleton I/O Expander driver (based on the PCA9555 driver).
  9117. - Add PCF8574 I/O Expander driver.
  9118. - GPIO driver: Add IOCTLs to get the pin type and to unregister a
  9119. signal handler.
  9120. - Add a GPIO lower-half driver that can be used to register a GPIO
  9121. character driver for accessing pins on an I/O expander.
  9122. - Add an SPI helper function that encapsulates and manages a sequence
  9123. of SPI transfers.
  9124. - Add an SPI character driver that will permit access to the SPI bus
  9125. for testing purposes.
  9126. - Add oneshot timer lower half interface definition.
  9127. - Add an upper-half, oneshot timer character driver.
  9128. - Add Audio Tone Generator for NuttX. From Alan Carvalho de Assis.
  9129. - Add USB host support for composite devices. This feature is not
  9130. well tested.
  9131. - drivers/ioexpander: Add an (untested) TCA64XX I/O Expander driver
  9132. leveraged from Project Ara.
  9133. * Simulation Platform:
  9134. - Add a simulated I/O Expander driver.
  9135. - Add simulator-based test support for apps/examples/gpio.
  9136. - Add a configuration useful for testing Mini Basic.
  9137. - Add a simulated oneshot lowerhalf driver.
  9138. * Atmel SAM3/4 Drivers:
  9139. - SAM4CM: Add option to support oneshot timer without free-running
  9140. timer. Add oneshot lower half driver.
  9141. * Atmel SAMA5 Drivers:
  9142. - SAMA5D: Add option to support oneshot timer without free-running
  9143. timer. Add oneshot lower half driver.
  9144. * Atmel SAMV7 Drivers:
  9145. - SAMV71/SAME70: Add option to support oneshot timer without
  9146. free-running timer. Add oneshot lower half driver.
  9147. - Add support for SAMV7 DACC module. From Piotr Mienkowski.
  9148. * NXP Freescale Kinetis Drivers:
  9149. - Add support for I2C and RTC. From v01d (phreakuencies).
  9150. * NXP Freescale Kinetis Boards:
  9151. - Add teensy 3.x I2C support. From v01d (phreakuencies).
  9152. * STMicro STM32:
  9153. - Add IAR-style STM32F1xx vectors. Tested on STM32F103RB and
  9154. STM32F107RC. From Aleksandr Vyhovanec.
  9155. * STMicro STM32 Drivers:
  9156. - Add timekeeping support for the STM32 tickless mode. From Max
  9157. Neklyudov.
  9158. - Add a oneshot, lower-half driver for STM32.
  9159. - STM32 L4: Add oneshot lower half driver for STM32 L4.
  9160. - STM32 L4: Add support for quadrature encoders on STM32L4. Sebastien
  9161. Lorquet.
  9162. * STMicro STM32 Boards:
  9163. - stm32f103-minimum: Add board support to MFRC522 driver. From Alan
  9164. Carvalho de Assis.
  9165. - Add oneshot board initialization to stm32f103-minimum. From Alan
  9166. Carvalho de Assis.
  9167. - stm32f103-minimum: Add board configuration to initialize Audio Tone
  9168. Generator. From Alan Carvalho de Assis.
  9169. - stm32bufferfly2: Add support for the Kamami stm32butterfly2
  9170. development board with optional ETH phy. From Michal Lyszczek.
  9171. - stm32f103-minimum: Add board config support to SPI LCD module
  9172. JLX12864G-086. From Alan Carvalho de Assis.
  9173. - stm32l476-mdk: Support basic booting and nsh on Motorola MDK. The
  9174. Motorola MDK is based off of an earlier version of NuttX.
  9175. This only provides a basic NSH shell. From Jim Wylder.
  9176. - STM32 F4 Discovery: Add support for XEN1210 3D-board. From Alan
  9177. Carvalho de Assis.
  9178. - stm32f103-minimum: Add stm32_bringup support and userled example to
  9179. STM32F103 Minimum board. From Alan Carvalho de Assis.
  9180. - Add support for qencoders on various nucleo boards. From Sebastien
  9181. Lorquet.
  9182. - olimex-stm32-e407: Add some networking configurations. From Mateusz
  9183. Szafoni.
  9184. * TI Tiva Drivers:
  9185. - Add tiva PWM lower-half driver implementation. From Young.
  9186. - Tiva QEI: Add QEI lower-half driver for Tiva series chip. From
  9187. Young.
  9188. * C Library/Header Files:
  9189. - Separate XorShift128 PRNG from /dev/urandom and make it generally
  9190. available.
  9191. - Add POSIX type sig_atomic_t. From Sebastien Lorquet.
  9192. - Add the difftime() function. The function depends on the toolchain-
  9193. dependent CONFIG_HAVE_DOUBLE so is not available on tiny platforms.
  9194. From Sebastien Lorquet.
  9195. - Add support for remove(). From Sebastien Lorquet.
  9196. - Add system() to stdlib.h. Actual implementation is in
  9197. apps/system/system.
  9198. * Build/Configuration System:
  9199. - Rename arch/sh to arch/renesas.
  9200. - Remove contactless drivers from drivers/wireless to drivers
  9201. contactless. From Sebastien Lorquet.
  9202. - Move all modem-related IOCTL commands to a common file to assure
  9203. that they will be unique.
  9204. * Tools:
  9205. - Add sethost.sh. This is a script that you can use to quickly
  9206. change the host platform from Linux to Windows/Cygwin. Might save
  9207. you a lot of headaches.
  9208. * Applications: apps/nshlib:
  9209. - Add logic to support an NSH-specific system command.
  9210. - Add printf command to NSH, e.g., controlling /dev/userleds from
  9211. command line: nsh> printf \x01 > /dev/userleds. From Alan Carvalho
  9212. de Assis.
  9213. * Platforms: apps/system:
  9214. - Port tee command from NetBSD.
  9215. - Add a generic system command. Current implementation cannot use
  9216. /bin/sh and spawns the custom NSH system command directly.
  9217. * Platforms: apps/platform:
  9218. - Add C++ support for STM32L476-MDK.
  9219. * Platforms: apps/interpreters:
  9220. - Add a port of Mini Basic, version 1.0, written by Malcom McLean and
  9221. released under the Creative Commons Attribution license.
  9222. * Applications: apps/examples:
  9223. - Add a simple test of the GPIO driver.
  9224. - Add RFID_READUID sample application. From Alan Carvalho de Assis.
  9225. - Add Oneshot timer example.
  9226. - Add a simple test of the system command.
  9227. Works-In-Progress:
  9228. * IEEE802.14.5/6LowPAN. Hooks and framework for this effort were
  9229. introduced in NuttX-7.15. Work has continued on this effort on
  9230. forks from the main repositories, albeit with many interruptions.
  9231. The completion of this wireless feature will postponed until at
  9232. least NuttX-7.19.
  9233. Bugfixes. Only the most critical bugfixes are listed here (see the
  9234. ChangeLog for the complete list of bugfixes and for additional, more
  9235. detailed bugfix information):
  9236. * Core OS:
  9237. - Explicitly initialize the group tg_exitsem with sem_init(). The
  9238. existing logic worked because the correct initialization value is
  9239. all zero, but it is better to initialize the semaphore explicitly.
  9240. - The TCB nchildren field should not be incremented when pthreads are
  9241. created.
  9242. - Move fields related to parent/child task relationship out of TCB
  9243. into group structure where they belong. Child is a group, not a
  9244. thread.
  9245. - mq_send() was not setting the errno value on certain failures to
  9246. allocate a message.
  9247. - Define 'group' even if HAVE_GROUPID is not set. From Mateusz
  9248. Szafoni.
  9249. - Vector table should have dimension NR_IRQS, not NR_IRQS+1. From
  9250. Sagitta Li.
  9251. - pthreads: When a pthread is started, there is a small bit
  9252. of logic that will run on the thread of execution of the new
  9253. pthread. In the case where the new pthread has a lower
  9254. priority than the parent thread, then this could cause both the
  9255. parent thread and the new pthread to be blocked at the priority of
  9256. the lower priority pthread (assuming that CONFIG_PRIORITY_INHERITANCE
  9257. is not selected). This change temporarily boosts the priority of the
  9258. new pthread to at least the priority of the new pthread to at least
  9259. the priority of the parent thread. When that bit of logic has
  9260. executed on the thread of execution of the new pthread, it will then
  9261. drop to the correct priority (if necessary) before calling into the
  9262. new pthread's entry point.
  9263. * File System/Block Drivers/MTD Drivers:
  9264. - FAT performance improvement. In large files, seeking to a
  9265. position from the beginning of the file can be very time consuming.
  9266. ftell does lssek(fd, 0, SET_CURR). In that case, that is wasted
  9267. time since we are going to seek to the same position. This fix
  9268. short-circuits fat_seek() in all cases where we attempt to seek to
  9269. current position. Suggested by Nate Weibley.
  9270. - MTD: Fixed cloned typos in several FLASH drivers. From Aleksandr
  9271. Vyhovanec.
  9272. - mount: Corrects a bad assertion noted by Pierre-noel Bouteville.
  9273. Also fixes a reference counting problem in an error condition:
  9274. When the mountpoint inode is found but is not an appropriate
  9275. mountpoint, the reference count on the inode was not being
  9276. decremented.
  9277. * Common Drivers:
  9278. - Various serial drivers: Fix FIONWRITE and add FIONSPACE. All
  9279. implementations of FIONWRITE were wrong. FIONWRITE should return
  9280. the number of bytes waiting in the outgoing send queue, not the free
  9281. space. Rather, FIONSPACE should return the free space in the send
  9282. queue.
  9283. - Add missing prototype for btn_lower_initialize().
  9284. - Make DAC sample structure packed. From Marc Rechté.
  9285. * Networking:
  9286. - TCP: tcp_ipvX_bind() not actually using the port selected with
  9287. port==0. Also removes duplicate call to pkt_input(). Issues noted
  9288. by Pascal Speck.
  9289. - drivers/net: NET_TUN=y => NET_MULTIBUFFER=y. From Vladimir
  9290. Komendantskiy.
  9291. - slip driver: Fix calculations using MSEC_PER_TICK. If
  9292. USEC_PER_TICK is less than 1000, then MSEC_PER_TICK will be
  9293. zero. It will be inaccurate in any case.
  9294. * Atmel SAM3/4 Drivers:
  9295. - SAM3/4 GPIO: Enable peripheral clock for GPIO port when GPIO is
  9296. configured as input. The value of a GPIO input is only sampled when
  9297. the peripheral clock for the port controller the GPIO resides in is
  9298. enabled. Therefore we need to enable the clock even when polling a
  9299. GPIO. From Wolfgang Reissnegger.
  9300. - All SAM Ethernet Drivers: Add support so that the drivers can be
  9301. built with CONFIG_NET_MULTIBUFFER=y.
  9302. - SAM3/4: Fix GPIO pull-up/down code. Enabling the pull-down resistor
  9303. while the pull-up resistor is still enabled is not possible. In this
  9304. case, the write of PIO_PPDER for the relevant I/O line is discarded.
  9305. Likewise, enabling the pull-up resistor while the pull-down resistor
  9306. is still enabled is not possible. In this case, the write of
  9307. PIO_PUER for the relevant I/O line is discarded. From Wolfgang
  9308. Reißnegger.
  9309. * Atmel SAMV7 Drivers:
  9310. - All SAM Ethernet Drivers: Add support so that the drivers can be
  9311. built with CONFIG_NET_MULTIBUFFER=y.
  9312. - SAM GPIO: Apply Wolfgang's change for SAM3/4 to SAMA5 and SAMV7.
  9313. * Atmel SAMA5:
  9314. - Add missing oneshot max_delay method.
  9315. - All SAM Ethernet Drivers: Add support so that the drivers can be
  9316. built with CONFIG_NET_MULTIBUFFER=y.
  9317. - SAM GPIO: Apply Wolfgang's change for SAM3/4 to SAMA5 and SAMV7.
  9318. * NXP Freescale LPC43xx Drivers:
  9319. - LPC43xx serial: Fix typos in LPC43 serial driver. Found by Vytautas
  9320. Lukenskas.
  9321. - LPC43xx Serial: There are some small problems in LPC43xx RS485 mode
  9322. configuration. In particular: (1) UART0,2,3 do not have DTR pins
  9323. (different from UART1), so, Kconfig needs to be adjusted. (2)
  9324. lpc43_uart.c in RS485 mode only configures DIR pin, but doesn't
  9325. enable pin output for UART0,2,3. (3) should be option to reverse DIR
  9326. control pin output polarity. (4) lpc43xx/chip/lpc43_uart.h doesn't
  9327. have USART3 definitions. NOTE: I didn't modified and didn't tested
  9328. USART1, as it has different hardware. From Vytautas Lukenskas.
  9329. From Vytautas Lukenskas.
  9330. * SiLabs EFM32 Drivers:
  9331. - EFM32 SPI drivers adopted incompatible conventions (See STM32 for
  9332. details of the issue).
  9333. * STMicro STM32 Drivers:
  9334. - STM32, STM32 L4, and EFM32 SPI drivers adopted incompatible
  9335. conventions somewhere along the line. They set the number of bits
  9336. to negative when calling SPI_SETBITS which had the magical side-
  9337. effect of setting LSB first order of bit transmission. This is not
  9338. only a hokey way to pass control information but is supported by no
  9339. other SPI drivers. This change three things: (1) It adds
  9340. HWFEAT_LSBFIRST as a new H/W feature. (2) It changes the
  9341. implementations of SPI_SETBITS in the STM32 and EFM32 drivers so
  9342. that negated bit numbers are simply errors and it adds the
  9343. SPI_HWFEATURES method that can set the LSB bit order, and
  9344. (3) It changes all calls with negative number of bits from all
  9345. drivers: The number of bits is now always positive and
  9346. SPI_HWFEATURES is called with HWFEAT_LSBFIRST to set the bit order.
  9347. - Add missing SPI2 and SPI3 support for STM32F3F3. Add STM32F37XX DMA
  9348. channel configuration. For STM32F37XX, SYSCFG_EXTICR_PORTE defined
  9349. twice. From Alan Carvalho de Assis.
  9350. - STM32: Make stm32_pwr_enablebkp thread safe. From Max Neklyudov.
  9351. - Fix bad pllmul values for STM32F1XX connectivity line. STM32F1XX
  9352. connectivity line supports only x4, x5, x6, x7, x8, x9 and x6.5
  9353. values. From Michal Lyszczek.
  9354. - STM32F3 SPI: Fix the number of bit setting for the F3. That and
  9355. data packing work differently on the STM32F3 than for other STM32
  9356. parts.
  9357. - STM32 and STM32 L4: Enabling SPI DMA loses other bits in CR2.
  9358. - STM32F3 SPI: Cannot write always 16-bit value to DR register
  9359. because of how the F3 implements data packing.
  9360. - STM32F411 and STM32F446 map i2c2_sda_4 to different alternate
  9361. function numbers. From Konstantin Berezenko.
  9362. - STM32 DMA Fix: Change stm32 adc dma callback to send channel
  9363. number instead of index. From Konstantin Berezenko.
  9364. - STM32 OTGFS device: Fix for lost first word from FIFO
  9365. 1) Do not overwrite Reserved Bits in GINTSTS (per ref manual)*
  9366. 2) Acknowledge all pending int on entry to ISR that are Only rc_w1*
  9367. 3) Do not disable RXFVL*
  9368. 4) Loop until RXFVL is cleared*
  9369. 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)
  9370. Changed marked *are just driver clean up and ensure ints are not lost. The bug fix is #5
  9371. 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
  9372. Set Line Coding DATA1: 4B | 00 c2 01 00 00 00 08 | c8 1B
  9373. Get Line Coding DATA1: 4B | .. .. .. .. 00 00 08 c8 .. 00 00 07 | 7a 72
  9374. From David Sidrane.
  9375. - STM32 L4 OTGFS device: Apply stm32 fix to stm32l4. From Sebastien
  9376. Lorquet.
  9377. - STM32 F7: Remove duplicate call to pkt_input from Ethernet driver.
  9378. Issues noted by Pascal Speck.
  9379. - STM32 L4: Add support for USART3-USART5. For STM32L4 parts, the
  9380. higher number USART ports supported varies. Add the HAVE_USARTx
  9381. definitions to the configuration to allow enabling the higher
  9382. numbered USART ports. From Jim Wylder.
  9383. - STM32 USB: Set USB address to avoid a failed assertion. From
  9384. Pierre-noel Bouteville.
  9385. - STM32 L4 and L7 USB: Pierre's assertion-avoidance change should
  9386. also be applied to STM32 F7 and L4.
  9387. - STM32, L4, and F7: Remove GPIO_ETH_RMII_TX_CLK. TX_CLK is not
  9388. present in RMII. Mateusz Szafoni.
  9389. - STM32 Ethernet: Correct typo in conditional logic. From Neil
  9390. Hancock.
  9391. - STM32 L4 USB Device: Fixed L4 USB Driver by avoiding SETUPDONE and
  9392. EPOUT_SETUP. From David Sidrane.
  9393. - STM32 SPI: stm32_modifycr2 should be available on all platforms if
  9394. DMA is enabled.
  9395. - STM32 DMA2D: fix an error in up_dma2dcreatelayer where an invalid
  9396. pointer was returned when a certain underlying function failed.
  9397. From Jens Gräf.
  9398. * TI Tiva Drivers:
  9399. - Fix two bugs of tiva pwm lower-half driver implementation. From
  9400. Young.
  9401. - Tiva Ethernet: Needs support for CONFIG_NET_MULTIBUFFER=y.
  9402. * C Library/Header Files:
  9403. - lib_dumpbuffer() now prints a large on-stack buffer first to avoid
  9404. problems when the syslog output is prefixed with time. From
  9405. Pierre-noel Bouteville.
  9406. - libc/math: This fixes the following libc/math issues: (1) asin[f l]()
  9407. use Newton's method to converge on a solution. But Newton's method
  9408. converges very slowly (> 500,000 iterations) for values of x close to
  9409. 1.0; and, in the case of asinl(), sometimes fails to converge (loops
  9410. forever). The attached patch uses an trig identity for values of
  9411. x > sqrt(2). The resultant functions converge in no more than 5
  9412. iterations, 6 for asinl(). (2) The NuttX erf[f l]() functions are
  9413. based on Chebyshev fitting to a good guess. The problem there's a
  9414. bug in the implementation that causes the functions to blow up with
  9415. x near -3.0. This patch fixes that problem. It should be noted that
  9416. this method returns the error function erf(x) with fractional error
  9417. less than 1.2E-07 and that's fine for the float version erff(), but
  9418. the same method is used for double and long double version which
  9419. will yield only slightly better precision. This patch doesn't
  9420. address the issue of lower precision for erf() and erfl(). (3) a
  9421. faster version of copysignf() for floats is included. From David S.
  9422. Alessio.
  9423. - strtod() was not returning endptr on error conditions.
  9424. - libc/math: floor(), floorf(), and floorl(): Fix logic error. Was
  9425. not correctly handling negative integral value.
  9426. - isatty() should be prototyped in unstid.h, not termios.h. From
  9427. Sebastien Lorquet.
  9428. - nxglib: Fix handling of near-horizontal lines of width 1 in
  9429. nxgl_splitline(). Missing handling for degenerate condition caused
  9430. width 1 lines such as (0, 0) - (100, 10) to have gaps in the
  9431. drawing. From Petteri Aimonen.
  9432. * Build/Configuration System:
  9433. - Top-Level Makefiles: Fix a chicken-and-egg problem. In the menuconfig
  9434. target, the context dependency was executed before kconfig-mconf. That
  9435. was necessary because the link at apps/platform/board needed to be set
  9436. up before creating the apps/Kconfig file. Otherwise, the platform
  9437. Kconfig files would not be included. But this introduces the chicken-
  9438. and-egg problem in some configurations. In particular: (1) An NX
  9439. graphics configuration is used that requires auto-generation of
  9440. source files using cpp, (2) the configuration is set for Linux, but
  9441. (3) we are running under Cygwin with (4) a Windows native toolchain.
  9442. In this case, POSIX-style symbolic links are set up but the Windows
  9443. native toolchain cannot follow them. The reason we are running
  9444. 'make menuconfig' is to change from Linux to Cygwin, but the target
  9445. fails. During the context phase, NX runs CPP to generate source files
  9446. but that fails because the Windows native toolchain cannot follow
  9447. the links. Checkmate. This was fixed by changing all of the make
  9448. menuconfig (and related) targets. They no longer depend on context
  9449. being run. Instead, they depend only on the dirlinks target. The
  9450. dirlinks target only sets up the directory links but does not try
  9451. to run all of the context setup; the compiler is never invoked; no
  9452. code is autogenerated and things work.
  9453. - CXXFLAGS: Add -fcheck-new whenever -fno-exceptions is used. From
  9454. Beat Küng.
  9455. * Tools
  9456. - tools/refresh.sh: Recent complexities added to apps/ means that
  9457. configuration needs the correct Make.defs file in place in order to
  9458. configure properly.
  9459. - tools/kconfig2html.c: Update to handle absolute paths when sourcing
  9460. Kconfig files.
  9461. - tools/mkfsdata.pl was still generating the old-style apps/include
  9462. inclusion paths.
  9463. * Application Build/Configuration System:
  9464. - Add DIRLINK and DIRUNLINK tool definitions to apps/Make.defs.
  9465. * apps/nshlib:
  9466. - Fix FIFO_SIZE vs PIPE_SIZE.
  9467. - Fix hex representation of IP address in Kconfig. Noted by Michal
  9468. Lyszczek.
  9469. - nsh_syscmds.c: missing semicolon. From Mateusz Szafoni.
  9470. - In system command, don't try to flush output streams if stdio
  9471. buffered I/O is not supported.
  9472. * apps/canutils:
  9473. - libuavcan: Under certain circumstances, DELIM is not be defined in
  9474. Makefile.
  9475. - Add definition for APPNAME in apps/canutils/canlib. From Sebastien
  9476. Lorquet.
  9477. * apps/gpsutils:
  9478. - Fix an error minmea. From Aleksandr Vyhovanec.
  9479. * apps/examples:
  9480. - apps/examples/oneshot: If the requested delay is > max_delay, then
  9481. break the delay up into several pieces.
  9482. NuttX-7.19 Release Notes
  9483. ------------------------
  9484. The 119th release of NuttX, Version 7.19, was made on December 26, 2016,
  9485. and is available for download from the Bitbucket.org website. Note
  9486. that release consists of two tarballs: nuttx-7.19.tar.gz and
  9487. apps-7.19.tar.gz. These are available from:
  9488. https://bitbucket.org/nuttx/nuttx/downloads
  9489. https://bitbucket.org/nuttx/apps/downloads
  9490. Both may be needed (see the top-level nuttx/README.txt file for build
  9491. information).
  9492. Additional new features and extended functionality:
  9493. * Core OS:
  9494. - sched/semaphore, sched/phread/, libc/semaphore, libc/pthread: Add
  9495. pthread_mutexattr_get/set_protocol and non-standard
  9496. sem_get/set_protocol. These may use to enable or disable priority
  9497. inheritance on a single semaphore.
  9498. - Spinlocks: Added capability to provide architecture-specific memory
  9499. barriers.
  9500. - SMP: Add spin_trylock(). Use this in conditions where other CPUs need
  9501. to stopped but we cannot call enter_critical_section().
  9502. - sched note: Extend OS instrumentation to include some SMP events.
  9503. Also add spinlock instrumentation; In SMP configurations, add a
  9504. filter mask to log only notes from certain CPUs.
  9505. - sched note: Permit spinlock and critical section notes in in-memory
  9506. buffer iff sched_not_get() interfaces is disabled.
  9507. - sched note: Add additional note to see if/when CPU is started in SMP
  9508. mode.
  9509. - sched note: Record ID enumeration now results on constant values; ID
  9510. values do not change with configuration. This makes writing post-processing software much easier.
  9511. - boardctl: Add new boardctl() command, BOARDIOC_NX_START, to start the
  9512. NX server as a kernel thread.
  9513. - pthreads: Add pthread_cleanup_push() and pthread_cleanup_pop().
  9514. - pthreads: Added pthread_setcanceltype() and pthread_testcancel().
  9515. - pthreads: Add support for cancellation points.
  9516. - task_delete() now obeys all cancellation point semantics.
  9517. - Add task_setcancelstate(), task_setcanceltype(), and
  9518. task_testcancel(). These are non-standard interfaces analogous to the
  9519. corresponding pthread_ interfaces that provide cancellation controls
  9520. for tasks.
  9521. * Graphics/Display Drivers:
  9522. - boardctl: Add new boardctl() command, BOARDIOC_NX_START, to start the
  9523. NX server as a kernel thread.
  9524. * Networking/Network Drivers:
  9525. - Network drivers: Add option to use low-priority work queue to all
  9526. Ethernet and MAC level drivers.
  9527. - Network Drivers: Adapt all Ethernet (and other MAC) drivers to work
  9528. as though CONFIG_NET_MULTIBUFFER were set. Remove all references to
  9529. CONFIG_NET_MULTIBUFFER.
  9530. - Eliminate CONFIG_NO_NOINTS. There is no longer any support for
  9531. interrupt level processing of the network stack. Lots of files changed.
  9532. * Other Common Device Drivers:
  9533. - Vishay VEML6070: Add Vishay VEML6070 driver. From Alan Carvalho de
  9534. Assis.
  9535. * ARMv7-A
  9536. - ARMv7-A/i.MX6: Add SCU register definitions. Add some controls to
  9537. enable SMP cache coherency in SMP mode. Makes no difference, however
  9538. -- cache still incoherent on i.MX6.
  9539. - ARMv7 GIC: SGIs are non-maskable but go through the same path as
  9540. other, maskable interrupts. Added logic to serialize SGI processing
  9541. when necessary.
  9542. * Atmel SAM3/4:
  9543. - SAM3/4: Add SMP support for the dual-core SAM4CM. From Masayuki
  9544. Ishikawa.
  9545. * Atmel SAM3/4 Drivers:
  9546. - Add support for the SAM5CMP-DB board. From Masayuki Ishikawa.
  9547. * Atmel SAM3/4 Boards:
  9548. - SAM4CMP-DB: Add support for the Atmel SAM4CMP-DB board running in an
  9549. SMP configuration. From Masayuki Ishikawa.
  9550. - SAM4CMP-DB: Add hooks to auto-mount the procfs file system on startup
  9551. in board bring-up logic.
  9552. * Atmel SAMV7 Drivers:
  9553. - SAMv7: Register the watchdog device at the configured device path
  9554. CONFIG_WATCHDOG_DEVPATH vs. hard-coded /dev/wdt. From Frank Benkert.
  9555. * Calypso
  9556. - Calyps: Remove all Calypso board configurations. Remove Calypso
  9557. architecture support and support for Calypso SERCOMM driver.
  9558. * Misoc LM32:
  9559. - Misoc LM32: Adds basic support for the Misoc procoessors and the LM32
  9560. in particular. From Ramtin Amin.
  9561. - Misoc LM32: Add signal handling logic. From Ramtin Amin.
  9562. - Misoc LM32: Add logic to flush/invalidate caches. From Ramtin Amin.
  9563. * Misoc LM32 Drivers:
  9564. - Misoc LM32 Serial: Add interrupting Misoc serial driver. From Ramtin
  9565. Amin.
  9566. - Misoc LM32 Timer: Add timer driver. From Ramtin Amin.
  9567. - Misoc LM32: Add Misoc Ethernet driver From Ramtin Amin.
  9568. * Misoc LM32 Boards:
  9569. - Misoc LM32 Qemu: Board support for testing Misoc LM32 with Qemu. From
  9570. Ramtin Amin.
  9571. - Misoc LM32 Qemu: Integrate network support into configs/misoc/hello.
  9572. From Ramtin Amin.
  9573. - Misoc LM32 Qemu: Remove configs/misoc/include/generated directory. I
  9574. suppose the intent now is that this is a symbolic link? DANGER!
  9575. This means that you cannot compile this code with first generating
  9576. these files a providing a symbolic link to this location! There is a
  9577. sample directory containing generated sources. This is really only
  9578. useful for performing test builds. You really must generate the Misoc
  9579. architecture for a real-life build. From Ramtin Amin.
  9580. * NXP Freescale i.MX6 Drivers:
  9581. - i.MX6: Add an untested SPI driver taken directly from the i.MX1 port.
  9582. * NXP Freescale Kinetis:
  9583. - Kinetis: Added missing headers. Kinetis broke out SPI to
  9584. kinetis/kinetis_spi.h. Broke out DMA to use the modern NuttX chip
  9585. inclusion - still STUBS. Add Kinetis support for ARMV7-M Common
  9586. Vector and FPU. Allow CONFIG_ARMV7M_CMNVECTOR,
  9587. CONFIG_STACK_COLORATION, CONFIG_ARCH_FPU. Fix i2c driver offset
  9588. swapped for value in kinetis_i2c_putreg. From David Sidrane.
  9589. * NXP Freescale Kinetis Drivers:
  9590. - Kinetis: Add UID Unique ID. From Neil Hancock.
  9591. * NXP Freescale Kinetis Boards:
  9592. - Freedom-K64F board: Add support for UID Unique ID. From Neil Hancock.
  9593. * NXP Freescale LPC17xx Boards:
  9594. - Olimex-LPC1766-STK: Enable procfs in NSH configuration. Automount
  9595. /proc on startup.
  9596. * NXP Freescale LPC43xx Drivers:
  9597. - LPC43xx: Add timer driver: From Alan Carvalho de Assis.
  9598. - LPC43xx GPDMA driver: The GPDMA block is basically the same as the
  9599. LPC17xx. Only the clock configuration is different and LPC43xx has
  9600. four different DMA request sources, where LPC17xx has only two. From
  9601. Alan Carvalho de Assis.
  9602. * NXP Freescale LPC43xx Boards:
  9603. - Bambino 200E: Add basic support to Micromint Bambino 200E board.
  9604. This includes contributions from Jim Wolfman. From Alan Carvalho de
  9605. Assis.
  9606. - Bambino 200E: Add support for timer driver. From Alan Carvalho de
  9607. Assis.
  9608. * RGMP:
  9609. - Remove RGMP and RGMP drivers.
  9610. * RISC-V:
  9611. - RISC-V: Add support for the RISC-V architecture and
  9612. configs/nr5m100-nexys4 board. The board support on this is pretty
  9613. thin, but it seems like maybe a good idea to get the base RISC-V stuff
  9614. in since there are people interested in it. From Ken Pettit.
  9615. * STMicro STM32 Drivers:
  9616. - STM32 F3: Implementation of the STM32 F37xx SDADC module. There are
  9617. also changes to ADC, DAC modules. SDADC has only been tested in DMA
  9618. mode and does not support external TIMER triggers. This is a work in
  9619. progress. From Marc Rechté.
  9620. - STM32 F3: Add PWM driver support for STMF37xx. The changes have been
  9621. tested successfully for TIM4 and TIM17 (different IPs). From Marc
  9622. Rechté.
  9623. - STM32 F4: Support oversampling by 8 for the STM32 F4. From David
  9624. Sidrane.
  9625. - STM32 F4: Added Timers 2-5 and control of SAI and I2S PLLs. Added
  9626. support for stmf469 SAI and I2S PLL configuration and STM446 fixes.
  9627. From David Sidrane.
  9628. - STM32 F4: Expanded OTGFS support to stm32F469 and stm32f446. Added
  9629. missing bit definitions, Used stm32F469 and stm32f446 bit
  9630. definitions, Removed unused header file. From David Sidrane.
  9631. - STM32 F4: Allow dma in 1 bit mode in STM32F4xxx. From David Sidrane.
  9632. - STM32 F7: Allow the config to override the clock edge setting. From
  9633. David Sidrane.
  9634. - STM32 L4: Support Complementary PWM outputs on STM32L4. From
  9635. Sebastien Lorquet.
  9636. - STM32 L4: Add implementation of dumpgpio for stm32l4, was required
  9637. for pwm debug. From Sebastien Lorquet.
  9638. * STMicro STM32 Boards:
  9639. - STM32F103 Minimum: Add button support. From Alan Carvalho de Assis.
  9640. - STM32F103 Minimum: Add support to PWM on STM32F103-Minimum board.
  9641. From Alan Carvalho de Assis.
  9642. - STM32F103 Minimum: Add RGB LED support on STM32F103 Minimum board.
  9643. From Alan Carvalho de Assis.
  9644. - STM32F103 Minimum: Add Vishay VEML6070 driver support to the
  9645. STM32F103-Minimum board. From Alan Carvalho de Assis.
  9646. - Nucleo-F303RE: Add STM32 F303RE hello configuration. From Marc
  9647. Rechté.
  9648. - Nucleo-L476: Support PWM testing on board Nucleo L476. From
  9649. Sebastien Lorquet.
  9650. - Nucleo L476: Add support for timers to Nucleo L476. From Sebastien
  9651. Lorquet.
  9652. - Hymini STM32v: Enable CONFIG_RTC in the hymini-stm32v/nsh2
  9653. (kitchensink) config. From Maciej Wójcik.
  9654. - Olimex STM32-p407: Add support for the Olimex STM32 P407 board.
  9655. * TI Tiva Drivers:
  9656. - Tiva PWM: Support PWM_PULSECOUNT feature for TI tiva. From Young.Mu.
  9657. * Xtensa/ESP32
  9658. - Xtensa ESP32: Basic architectural support for Xtensa processors and
  9659. the Espressif. ESP32 added.
  9660. - Xtensa ESP32: Add EXPERIMENTAL hooks to support lazy Xtensa
  9661. co-processor state restore in the future.
  9662. - Xtensa ESP32: Basic port is function in both single CPU and dual CPU
  9663. SMP configurations. There is an NSH configuration for each CPU
  9664. configuration. Outstanding issues include missing clock configuration
  9665. logic, missing partition tables to support correct configuration from
  9666. FLASH, and some serial driver pin configuration issues.
  9667. - Xtensa ESP32: Add stack checking logic.
  9668. * Xtensa/ESP32 Boards:
  9669. - ESP32 Core v2: Basic support for Espressif ESP32 Core v2 board
  9670. added. The initial release includes an NSH and an SMP test
  9671. configuration.
  9672. - ESP32 Core v2: Add configuration to support linking NuttX for
  9673. execution out of IRAM.
  9674. - ESP32 Core v2: Automatically mount /proc at start-up.
  9675. - ESP32 Core v2: Add an OS test to verify the port.
  9676. * C Library/Header Files:
  9677. - libc/locale: Add a dummy setlocale() function to avoid drawing the
  9678. function from newlib. Add clocale header file.
  9679. - include/locale.h: Modify locale.h to add localeconv() and lconv
  9680. structure. From Alan Carvalho de Assis.
  9681. - libc/locale: Allows c++ code to compile with or without
  9682. CONFIG_LIBC_LOCALE and will generate a link error if
  9683. CONFIG_LIBC_LOCALE is not defined and setlocale is referenced. With
  9684. CONFIG_LIBC_LOCALE defined setlocale will act as if MB string is not
  9685. supported and return "C" for POSIX. C and "". From David Sidrane.
  9686. - libc/wchar: Add wcslen, wmemchr, wmemcmp, wmemcpy wmemset, btowc,
  9687. mbrtowc, mbtowc, wcscmp, wcscoll, and wmemmove to NuttX. From Alan
  9688. Carvalho de Assis.
  9689. - libc/wctype: Add functions wcrtomb, wcslcpy, wcsxfrm, wctob, wctomb,
  9690. wctype, localeconv, strcoll, strxfrm, swctype, towlower, towupper and
  9691. wcsftime. Add wctype.h; Move lib_wctype.c to libc/wctype. From Alan
  9692. Carvalho de Assis.
  9693. - include/ctype.h : Add isblank() macro to ctype.h. From Alan Carvalho
  9694. de Assis.
  9695. - lic/stdlib: Add strtof() and strtold() as simply a copy of strtod
  9696. with types and limits changed.
  9697. - sscanf(): Use strtof() instead of strtod() if a short floating point
  9698. value was requested. The should help performance with MCUs with
  9699. 32-bit FPU support with some additional code size.
  9700. - sscanf(): Add scansets to the scanf function. Enabled
  9701. CONFIG_LIBC_SCANSET option. From Aleksandr Vyhovanec.
  9702. - include/inttypes.h: Add architecture-specific inttypes.h. From Paul
  9703. A. Patience.
  9704. - C Library: Allow option to enable IP address conversions even when
  9705. the IP address family is not supported.
  9706. * Build/Configuration System:
  9707. - The Smoothie project needs to compile C++ inside config/boardname/src/
  9708. to use with High Priority Interruption, then I modified the board
  9709. configs Makefile to support it. It works fine for the first time
  9710. compilation, but if we execute "touch config/boardname/src/Pin.cxx"
  9711. and execute "make" it will not detect that Pin.cxx was modified. I
  9712. think there is some other place I should modify, but I didn't find
  9713. it. From Alan Carvalho de Assis.
  9714. * Tools:
  9715. - tools/: Add tools/showsize.sh.
  9716. * NSH: apps/nshlib:
  9717. - NSH: dd command will show statistics. From Masayuki Ishikawa.
  9718. * Applications: apps/system:
  9719. - apps/system/sched_note: Extend to include additions to instumentation
  9720. for SMP.
  9721. - apps/system/sched_note: Add support for spinlock notes.
  9722. - apps/system/sched_note: Add support for new scheduler instrumentation.
  9723. * Platforms: apps/platform:
  9724. - ESP32 Core v2: Add platform support for the ESP32 core v2 board.
  9725. - Olimex STM32-p407: Add platform support for the Olimex STM32 P407.
  9726. * Graphics: apps/graphics
  9727. - graphics/traveler/tcledit and libwld: Add an X11 Tcl/Tk tool that can
  9728. be used to edit Traveler world files.
  9729. - Graphics: Remove all NX server taks. Instead, call boardctl() to the
  9730. NX server kernel thread.
  9731. * Applications: apps/examples:
  9732. - examples/buttons: Add a new buttons example that uses the button
  9733. character driver instead of the architecture buttons directly. From
  9734. Alan Carvalho de Assis.
  9735. - examples/cctype: Add an example to verify cctype functions.
  9736. - Remove RGMP example.
  9737. - examples/ostest: Extend the pthread cancellation test to exercise
  9738. pthread_cleanup_push() (and pthread_cleanup_pop() indirectly via
  9739. pthread_cancel() and pthread_exit().
  9740. - examples/ostest: enhance pthread cancellation test some.
  9741. Works-In-Progress:
  9742. * IEEE802.14.5/6LowPAN. Hooks and framework for this effort were
  9743. introduced in NuttX-7.15. Work has continued on this effort on
  9744. forks from the main repositories, albeit with many interruptions.
  9745. The completion of this wireless feature will postponed until at
  9746. least NuttX-7.20.
  9747. Bugfixes. Only the most critical bugfixes are listed here (see the
  9748. ChangeLog for the complete list of bugfixes and for additional, more
  9749. detailed bugfix information):
  9750. * Core OS:
  9751. - sched/semaphore: Within the OS, when a thread obtains a semaphore
  9752. count it must call sem_addholder() if CONFIG_PRIORITY_INHERITANCE is
  9753. enabled. If a count is available, then sem_wait() calls
  9754. sem_addholder(), otherwise it waited for the semaphore and called
  9755. sem_addholder() when it eventually received the count. This caused a
  9756. problem when the thread calling sem_wait() was very low priority.
  9757. When it received the count, there may be higher priority threads
  9758. "hogging" the CPU that prevent the lower priority task from running
  9759. and, as a result, the sem_addholder() may be delayed indefinitely.
  9760. The fix was to have sem_post() call sem_addholder() just before
  9761. restarting the thread waiting for the semaphore count. This problem
  9762. was noted by Benix Vincent who also suggested the solution.
  9763. - Many files: Make sure that priority inheritance is not enabled for
  9764. semaphores whose primary use is signaling (vs locking of resources) by
  9765. calling sem_setprotocol().
  9766. - sched/semaphore: sem_trywait() no longer modifies the errno value
  9767. UNLESS an error occurs. This allows these functions to be used
  9768. internally without clobbering the errno value. From Freddie Chopin.
  9769. - sched/clock: Correct clock initialization. The correct range for the
  9770. month is 0-11 but is entered as 1-12 in the .config file. Add ranges
  9771. to START_YEAR, MONTH, and DAY in sched/Kconfig.
  9772. - sched/clock: Correct calculation for the case of Tickless mode with a
  9773. 32-bit timer. In that case, the calculation was returning millisecond
  9774. accuracy. That is not good when the timer accuracy is < 1 msec. From
  9775. Rajan Gill.
  9776. - Work Queue: When queuing new LP work, don't signal any threads if
  9777. they are all busy. From Heesub Shin.
  9778. - Work Queue: Signal sent from work_signal() may interrupt the low
  9779. priority worker thread that is already running. For example, the
  9780. worker thread that is waiting for a semaphore could be woken up by the
  9781. signal and break any synchronization assumption as a result. It also
  9782. does not make any sense to send signal if it is already running and
  9783. busy. This change fixes it. From Heesub Shin.
  9784. - Fix DEBUGASSERT() in group_signal.c. From Masayuki Ishikawa.
  9785. - Eliminate bad boardctl() commands: Remove all references to
  9786. BOARDIOC_PWMSETUP and board_pwm_setup(). Remove all references to
  9787. BOARDIOC_ADCSETUP and board_adc_setup(). Remove
  9788. BOARDIOC_CAN_INITIALIZE. CAN initialization is now done in the board
  9789. initialization logic just like every other device driver.
  9790. - pthreads: Fix an error in pthread_mutex_destroy(). An error could
  9791. occur while destroying a mutex after a pthread has been canceled while
  9792. holding the mutex.
  9793. - task_restart: Make sure new task starts with pre-emption disabled and
  9794. not in a critical section.
  9795. - Enter/leave Critical Sections. Major redeign to
  9796. enter/leave_critical_section logic to deal with the case where
  9797. interrupts are disabled only on the local CPU. In this case, some
  9798. rather complex spinlocks must be used to maintain the critical section
  9799. across all CPUs.
  9800. - SMP Critical Sections: Fixes for the SMP case: (1) Change order for
  9801. SMP case in enter_critical_section: (1) Disable local interrupts
  9802. BEFORE taking spinlock and (2) If SMP is enabled, if any interrupt
  9803. handler calls enter_critical_section(), it should take the spinlock.
  9804. - SMP wdogs: Wdog timers use a tasking interface that to manipulate
  9805. wdogs, and a different interface in the timer interrupt handling logic
  9806. to manage wdog expirations. In the single CPU case, this is fine.
  9807. Since the tasking level code calls enter_critical_section, interrupts
  9808. are disabled and no conflicts can occur. But that may not be the case
  9809. in the SMP case. Most architectures do not permit disabling
  9810. interrupts on other CPUs so enter_critical_section must work
  9811. differently: Locks are required to protect code. this change adds
  9812. locking (via enter_critical section) to wdog expiration logic for the
  9813. the case if the SMP configuration.
  9814. - SMP vfork(): Fix a race condition in the SMP case. Existing logic
  9815. depended on the fact that the child would not run until waitpid was
  9816. called because the child had the same priority as the parent. BUT in
  9817. the SMP case that is not true... the child may run immediately on a
  9818. different CPU.
  9819. - SMP: This change adds a new internal interfaces and fixes a problem
  9820. with three APIs in the SMP configuration. The new internal interface
  9821. is sched_cpu_pause(tcb). This function will pause a CPU if the task
  9822. associated with 'tcb' is running on that CPU. This allows a different
  9823. CPU to modify that OS data structures associated with the CPU. When
  9824. the other CPU is resumed, those modifications can safely take place.
  9825. The three fixes are to handle cases in the SMP configuration where one
  9826. CPU does need to make modifications to TCB and data structures on a
  9827. task that could be running running on another CPU. Those three cases
  9828. are task_delete(), task_restart(), and execution of signal handlers.
  9829. In all three cases the solutions is basically the same: (1) Call
  9830. sched_cpu_pause(tcb) to pause the CPU on which the task is running,
  9831. (2) perform the necessary operations, then (3) call up_cpu_resume() to
  9832. restart the paused CPU.
  9833. - SMP: Add logic to avoid a deadlock condition when CPU1 is hung waiting
  9834. for g_cpu_irqlock with interrupts interrupts and CPU0 is waiting for
  9835. g_cpu_paused.
  9836. - SMP: Enforce this rule: Tasks which are normally restored when
  9837. sched_unlock() is called must remain pending (1) if we are in a
  9838. critical section, i.e., g_cpu_irqlock is locked , or (2) other CPUs
  9839. still have pre-emption disabled, i.e., g_cpu_schedlock is locked. In
  9840. those cases, the release of the pending tasks must be deferred until
  9841. those conditions are met.
  9842. * File System/Block Drivers/MTD Drivers:
  9843. - AT24XX EEPROM MTD driver: Added EEPROM timeout. Fromo Aleksandr
  9844. Vyhovanec.
  9845. - fs/procfs: Fix procfs status for SMP case.
  9846. * Graphics/Graphic Drivers:
  9847. - Fonts: Correct some default font IDs. From Pierre-Noel Bouteville.
  9848. * Common Drivers:
  9849. - usbhost/enumerate: Fix possible buffer overwrite. From Janne Rosberg.
  9850. - usbhost/composite: Fix compile; missing semicolons. From Jann Rosberg.
  9851. - syslog: Fixes required for file syslog output. From Max Kriegleder.
  9852. - SPI configuration: Fix Kconfig warning. This change moves the
  9853. ARCH_HAVE_SPI options outside the check for SPI. Those options don't
  9854. depend on SPI, and Kconfig files in arch/ enable them even if SPI
  9855. isn't enabled. Source the driver's Kconfig in drivers/Kconfig only
  9856. if support for the driver is enabled prevents us from defining these
  9857. ARCH_HAVE options in the driver's Kconfig. We should probably remove
  9858. the other checks in drivers/Kconfig and check if the drivers are
  9859. enabled only in their Kconfig. From Paul A. Patience.
  9860. - drivers/timer: Remove the timer driver TIOC_SETHANDLER IOCTL call.
  9861. This calls directly from the timer driver into application code. That
  9862. is non-standard, non-portable, and cannot be supported. Instead, add
  9863. timer driver hooks to support signal notification of timer
  9864. expiration. Signal notification logic added by Sebastien Lorquet.
  9865. - All timer lower half drivers. Port Sebastien's changes to all other
  9866. implementations of the timer lower half.
  9867. - USB MSC Device: Fix length of mode6 sense reply packet. From
  9868. Wolfgang Reißnegger.
  9869. - USB Composite Host: Fix end offset in usbhost_copyinterface(). From
  9870. Janne Rosberg.
  9871. - USB CDC/ACM Host: Add CDC_SUBCLASS_ACM and CDC_PROTO_ATM to
  9872. supported class and proto. From Janne Rosberg.
  9873. - SSD1306: Fix errors in SPI mode configuration. From Gong Darcy.
  9874. - CDC/ACM Device Class: uart_ops_s portion of cdcacm will not be
  9875. initialized with correct functions if CONFIG_SERIAL_DMA is selected.
  9876. * Networking/Network Drivers:
  9877. - drivers/net/tun.c: Fix bug in TUN interface driver. From Max Nekludov.
  9878. * ARMv7-A:
  9879. - ARMv7-A SMP: Add SMP logic to signal handling.
  9880. * ARMv7-M:
  9881. - ARMv7-M: Fix double allocation of MPU region in mmu.h.
  9882. * ARMv7-R:
  9883. - ARMv7-R: Fix compilation error. This change fixes compilation errors
  9884. on MPU support for ARMv7-R. From Heesub Shin.
  9885. - ARMv7-R: fix invalid drbar handling. In ARMv7-R, [31:5] bits of DRBAR
  9886. is physical base address and other bits are reserved and SBZ. Thus,
  9887. there is no point in passing other than the base address. From Heesub
  9888. Shin.
  9889. - ARMv7-R: Remove the redundant update on SCTLR. mpu_control() is
  9890. invoking cp15_wrsctlr() around SCTLR update redundantly. From Heesub
  9891. Shin.
  9892. - ARMv7-R: Add new Kconfig entries for D/I-cache. Unlike in ARMv7-A/M,
  9893. Kconfig entries for data and instruction caches are currently missing
  9894. in ARMv7-R. This change adds those missing Kconfig entries. Actual
  9895. implementation for those functions will be added in the subsequent
  9896. patches. From Heesub Shin.
  9897. - ARMv7-R: Add cache handling functions. This change adds functions for
  9898. enabling and disabling d/i-caches which were missing for ARMv7-R.
  9899. From Heesub Shin.
  9900. - ARMv7-R: Fix typo in mpu support. s/ARMV7M/ARMV7R/g. From Heesub Shin.
  9901. - ARMv7-R: Fix CPSR corruption after exception handling. A sporadic
  9902. hang with consequent crash was observed when booting. It seemed to be
  9903. caused by the corrupted or wrong CPSR restored on return from
  9904. exception. NuttX restores the context using code like this: msr spsr,
  9905. r1. GCC translates this to: msr spsr_fc, r1. As a result, not all
  9906. SPSR fields are updated on exception return. This should be: msr
  9907. spsr_fsxc, r1. On some evaluation boards, spsr_svc may have totally
  9908. invalid value at power-on-reset. As it is not initialized at boot, the
  9909. code above may result in the corruption of cpsr and thus unexpected
  9910. behavior. From Heesub Shin.
  9911. - ARMv7-R: Fix to restore the Thumb flag in CPSR. Thumb flag in CPSR is
  9912. not restored back when the context switch occurs while executing thumb
  9913. instruction. From Heesub Shin.
  9914. * Atmel SAM3/4 Drivers:
  9915. - SAM3/4 UDP: Add delay between setting and clearing the endpoint RESET
  9916. bit in sam_ep_resume(). We need to add a delay between setting and
  9917. clearing the endpoint reset bit in SAM_UDP_RSTEP. Without the delay
  9918. the USB controller will (may?) not reset the endpoint. If the
  9919. endpoint is not being reset, the Data Toggle (DTGLE) bit will not to
  9920. be cleared which will cause the next transaction to fail if DTGLE is
  9921. 1. If that happens the host will time-out and reset the bus. Adding
  9922. this delay may also fix the USBMSC_STALL_RACEWAR in usbmsc_scsi.c,
  9923. however this has not been verified yet. From Wolfgang Reißnegger.
  9924. - SAM3/4: Remove unused 'halted' flag from UDP driver. From Wolfgang
  9925. Reißnegger.
  9926. - SAM3/4: Remove 'stalled' flag from the UDP driver. This flag is not
  9927. necessary because the state of the endpoint can be determined using
  9928. 'epstate' instead. From Wolfgang Reißnegger.
  9929. * Atmel SAM3/4 Boards:
  9930. - SAM4S Xplained Pro: Configuration uses old, improper timer interface.
  9931. CONFIG_TIMER disabled in configuration. Remove obsolete timer
  9932. initialization logic.
  9933. * Atmel SAMV7 Drivers:
  9934. - SAMv7 USBDEVHS: A problem occurred with the SAMV7 USBDEVHS driver if
  9935. the USB cable is unplugged while a large amount of data is send over
  9936. an IN endpoint using DMA. If the USB cable is plugged in again after a
  9937. few seconds it is not possible to send data over this IN endpoint
  9938. again, all other endpoints work as expected. The problem occurs
  9939. because if the USB cable is unplugged while an DMA transfer is in
  9940. flight the transfer is canceled but the register SAM_USBHS_DEVDMACTRL
  9941. is left in an undefined state. The problem was fixed the problem by
  9942. resetting the register SAM_USBHS_DEVDMACTRL to a known state.
  9943. Additionally all pending interrupts are cleared. From Stefan Kolb.
  9944. - SAMV7 MCAN: Prevent Interrupt-Flooding of ACKE when not connected to
  9945. CAN-BUS. An Acknowledge-Error will occur every time no other CAN Node
  9946. acknowledges the message sent. This will also occur if the device is
  9947. not connected to the can-bus. The CAN-Standard declares, that the Chip
  9948. has to retry a given message as long as it is not sent successfully
  9949. (or it is not cancelled by the application). Every time the chip tries
  9950. to resend the message an Acknowledge-Error-Interrupt is generated. At
  9951. high baud rates this can lead in extremely high CPU load just for
  9952. handling the interrupts (and possibly the error handling in the
  9953. application). To prevent this Interrupt-Flooding we disable the ACKE
  9954. once it is seen as long we didn't transfer at least one message
  9955. successfully. From Frank Benkert.
  9956. - SAMV7 MCAN: Make delete_filter functions more robust. From Frank
  9957. Benkert.
  9958. * Atmel SAMA5 Drivers:
  9959. - SAMA5 PWM: Driver does not build when executing from SDRAM before
  9960. board frequencies are not constant. Rather, the bootloader configures
  9961. the clocking and we must derive the clocking from the MCK left by the
  9962. bootloader. This means lots more computations. This is untested on
  9963. initial change because I don't have a good PWM test setup right now.
  9964. * Misoc LM32:
  9965. - Misoc LM32: Corrects a bug that never occurred in qemu on simulation or
  9966. real fpga. The error was that the r1 register was being modified out
  9967. of context switching and not restoring it. From Ramtin Amin
  9968. * NXP Freescale i.MX6:
  9969. - i.MX6 interrupt handling: Additional logic needed to handle nested
  9970. interrupts when an interrupt stack is used. Nesting can occur because
  9971. SGI interrupts are non-maskable.
  9972. * NXP Freescale LPC43xx Drivers:
  9973. - LPC43xx serial: Fix a typo in ioctl TIOCSRS485 ioctl. From Vytautas
  9974. Lukenskas.
  9975. - LPC43xx serial: Restore RS485 mode on serial port open (if RS485 is
  9976. enabled via menuconfig). From Vytautas Lukenskas.
  9977. - LPC43xx SD/MMC: Correct some definitions on SMMC control register in
  9978. lpc43_sdmmc.h. From Alan Carvalho de Assis.
  9979. - LPC43xx SD card: Correct pin configuration options needed for SD card
  9980. pins. From Alan Carvalho de Assis.
  9981. * SiLabs EFM32:
  9982. - EFM32: Fix a compilation error. From Pierre-noel Bouteville.
  9983. * STMicro STM32 Drivers:
  9984. - STM32 CHxN channels are always outputs. From Sebastien Lorquet.
  9985. - STM32 DAC: Fix shift value whenever there are is a DAC2 and, hence,
  9986. up to three interfaces. From Marc Rechté.
  9987. - STM32 F1: Add TIM8 to STM32F103V pinmap. From Maciej Wójcik.
  9988. - STM32 F1: Fix for F1 RTC Clock, tested on F103. From Maciej Wójcik.
  9989. - STM32 F3: STM32F303xB and STM32F303xC chips have 4 ADCs. From Paul
  9990. A. Patience.
  9991. - STM32 F4: A new implementation of the STM32 F4 I2C bottom half. The
  9992. common I2C as this did not handled correctly in the current
  9993. implementation (see also https://github.com/PX4/NuttX/issues/54). The
  9994. changes almost exclusively affect the ISR. From Max Kriegleder.
  9995. - STM32 F4 OTGHS Host: If STM32F446 increase number of channels to
  9996. 16. From Janne Rosberg.
  9997. - STM32 F4: I think, that Size is (highest address+1 - Base address).
  9998. Base address has been removed and if address+count >= size we are
  9999. outside of the Flash. From David Sidrane.
  10000. - STM32 F4: Fix ADC compilation error when DMA isn't enabled. From Paul
  10001. A. Patience.
  10002. - STM32 F4: STM32F427 was rebooting. Over reached family. From David
  10003. Sidrane.
  10004. - STM32 F4: Added STM32F469 RAM size and deliberated STM32F446 size.
  10005. From David Sidrane.
  10006. - STM32 F4: Typo in stm32f76xxxx_pinmap.h edited online with
  10007. Bitbucket. From David Sidrane.
  10008. - STM32 F7: stm32_i2c.c Dejavu. Fixes a bug previously found in the
  10009. F4. From David Sidrane.
  10010. - STM32 F7: OTGDEV fixed typo. From David Sidrane.
  10011. - STM32 F7: Fix to SPI-Master driver. Without this the chip select
  10012. decoding feature will not work properly. From Michael Spahlinger.
  10013. - STM32 F7: STM32F7 SD/MMC driver depends on CONFIG_SDIO_DMA which is
  10014. only defined in stm32/Kconfig. Changed to CONFIG_STM32F7_SDMMC_DMA
  10015. and defined in stm32f7/Kconfig.
  10016. - STM32 F7: Fix some STM32F7 copy paste errors. From David Sidrane.
  10017. - STM32 L4: Complementary PWM outputs on STM32L4" (1) too many
  10018. parentheses when calculating max chan count and (2) channel 4 does not
  10019. have a complementary output. From Sebastien Lorquet.
  10020. - STM32 L4: Fix I2C devices RCC registers. From Sebastien Lorquet.
  10021. - STM32 L4: Enable and renaming for 32l4 UARTs 4 and 5. From Sebastien
  10022. Lorquet.
  10023. - STM32 L4: Change the way to configure quadrature encoder prescalers.
  10024. From Sebastien Lorquet.
  10025. - STM32 L4: Correct USART1/2 definitions. Use default mbed UART4
  10026. settings. From Sebastien Lorquet.
  10027. * STMicro STM32 Boards:
  10028. - STM32F103 Minimum: Fix Timers 2 to 7 clock frequencies. From Alan
  10029. Carvalho de Assis.
  10030. - Nucleo-F303RE: Remove duplicate setting from board.h. From Marc
  10031. Rechté.
  10032. - Nucleo F303RE: Various fixes to get the ADC configuration building
  10033. again after PR. Refresh all configurations.
  10034. - Nucleo L476RG: Add better selection of timer.
  10035. * TI Tiva Boards:
  10036. - DK-TM4C129x: Typo fix. From Wolfgang Reißnegger.
  10037. * Xtensa ESP32:
  10038. - ESP32 core v2: Flush the UART TX buffer in the esp32 serial shutdown
  10039. routine. The ROM bootloader does not flush the FIFO before handing
  10040. over to user code, so some of this output is not currently seen when
  10041. the UART is reconfigured in early stages of startup. From Angus
  10042. Gratton.
  10043. - Xtensa ESP32: Corrects a problem with dispatching to signal
  10044. handlers: Cannot vector directly to the signal handling function as
  10045. in other ABIs under the Xtensa Window ABI. In that case, we need to
  10046. go through a tiny hook when performs the correct window call (call4)
  10047. otherwise registers will be scrambled in the signal handler.
  10048. * Xtensa ESP32 Boards:
  10049. - ESP32 core v2: Changes the openocd config file's default flash
  10050. voltage from 1.8V to 3.3V. This is not necessary right now, but may
  10051. save some hard-to-debug moments down the track (3.3V-only flash
  10052. running at 1.8V often half-works and does weird things...). From
  10053. Angus Gratton.
  10054. * C Library/Header Files:
  10055. - libc/stdio: Fixes sscanf() %sn where strlen(data) < n. From David
  10056. Sidrane.
  10057. - libc/stdio: Include wchar.h in lib_libvsprintf.c to fix compilation
  10058. error. From Alan Carvalho de Assis.
  10059. - include/sys/time.h: timersub macro modified per recommendations of
  10060. phreakuencies.
  10061. - include/ctype.h and cxx/cctype: Implement ctype.h functions as inline
  10062. if possible. cctype can then properly select namespace.
  10063. - include/: Fix a number of header files with mismatched 'extern C {'
  10064. and '}'.
  10065. - libc/unisted: Change brings strtol() and related functions more
  10066. conformant with POSIX. Corner cases like strtol(-2147483648, NULL,
  10067. 10) now pass clang -fsanitize=integer without warnings. From Juha
  10068. Niskanen.
  10069. - libc/unistd: sleep() was returning remaining nanoseconds (kind of),
  10070. instead the remaining seconds. From Eunbong Song.
  10071. - termios.h: Fix CRTSCTS define to include input and output flow. From
  10072. Lorenz Meier.
  10073. * Build/Configuration System:
  10074. - configs/*/defconfig: The buttons example was changed to archbuttons.
  10075. As a result all of the button configurations are broken and need some
  10076. renaming in the defconfig files. Noted by Frank Berkert.
  10077. - config/*/defconfgs: More fallout from name change of
  10078. apps/examples/buttons to archbuttons.
  10079. - configs: All QE encoder files. Last change made timer hard-coded to
  10080. 3. Make configurable.
  10081. - configs: Remove all traces of the no-longer existent ARCHBUTTONS
  10082. example. Remove all button configurations that depended on the
  10083. obsoleted ARCHBUTTON example.
  10084. - minnsh Configurations: Remove minnsh configurations and support
  10085. logic: up_getc() and lowinstream. This was an interesting exercise
  10086. to see just how small you could get NuttX, but otherwise it was not
  10087. useful: (1) the NSH code violated the OS interface layer by callup
  10088. up_getc() and up_putc() directly, and (2) while waiting for character
  10089. input, NSH would call up_getc() which would hog all of the CPU. Not a
  10090. reasonable solution other than as a proof of concept.
  10091. * Application Build/Configuration System:
  10092. - Make.defs: Using wrong link script if native window tool used with
  10093. Cygwin.
  10094. * apps/platform:
  10095. - ESP32 Core v2 Platform: Fix some naming that prevented building the
  10096. C++ support.
  10097. * apps/nshlib:
  10098. - NSH Library: nsh_getdirpath(), use snprint instead of sprintf to
  10099. avoid possibility of buffer overrun. Noted by Chung Hwan Kim.
  10100. * apps/system:
  10101. - Remove std_readline(). This called up_getc() and up_putc() directly,
  10102. violating the POSIX OS interface.
  10103. * apps/netutils:
  10104. - FTPD: Fixed bug that didn't free ftpd resources on exit. From Pascal
  10105. Speck.
  10106. - NTP client: Fix missing left parenthesis. From Pierre-Noel Bouteville.
  10107. - cJSON: Import patch to fix:cJSON_PrintUnformatted() behaves unexpected
  10108. if an empty array shall be printed to text. from Jerome Lang
  10109. 2012-04-19. From Pierre-Noel Bouteville.
  10110. - esp8266 update cosmetic and many bug fix. From Pierre-Noel Bouteville.
  10111. - FTPD: Fix bug un ftpd file or socket may be not closed. From
  10112. Pierre-Noel Bouteville.
  10113. * apps/modbus:
  10114. - Modbus Master is missing many files and doesn't compile at all. More
  10115. details in
  10116. https://groups.yahoo.com/neo/groups/nuttx/conversations/topics/13734.
  10117. From Vytautas Lukenskas.
  10118. * apps/examples:
  10119. - The examples/qencoder app was trying to init the encoder by a direct
  10120. call into the board, cheating in a local header to declare the
  10121. normally unavailable function prototype. From Sebastien Lorquet.
  10122. - apps/examples/timer: Should detach signal handler before exiting.
  10123. - examples/qencode: The examples/qencoder app was trying to init the
  10124. encoder by a direct call into the board, cheating in a local header to
  10125. declare the normally unavailable function prototype. From Sebastien
  10126. Lorquet.
  10127. - apps/examples/archbuttons: Removed because it violates OS interface
  10128. principles.
  10129. - examples/adc, pwm, can: Remove all usage of BOARDIOC_ADCTEST_SETUP,
  10130. BIOARDIOC_PWMSETUP. Remove BOARDIOC_CAN_INITIALIZE. CAN
  10131. initialization is now done in the board initialization logic just like
  10132. every other device driver.
  10133. - examples/ostest: Add some delays to the pthread cancellation test.
  10134. With deferred cancellation enabled, things happen more asynchronously.
  10135. NuttX-7.20 Release Notes
  10136. ------------------------
  10137. The 120th release of NuttX, Version 7.20, was made on March 8, 2017,
  10138. and is available for download from the Bitbucket.org website. Note
  10139. that release consists of two tarballs: nuttx-7.20.tar.gz and
  10140. apps-7.20.tar.gz. These are available from:
  10141. https://bitbucket.org/nuttx/nuttx/downloads
  10142. https://bitbucket.org/nuttx/apps/downloads
  10143. Both may be needed (see the top-level nuttx/README.txt file for build
  10144. information).
  10145. Additional new features and extended functionality:
  10146. * Core OS:
  10147. - Kernel Modules: Module initializer may now return a symbol table.
  10148. - Modules: Extend the module interface so that we can access symbols
  10149. exported by the module.
  10150. - Shared Libraries: In the FLAT build mode, kernel modules may be
  10151. used to provide minimal shared library functionality.
  10152. - Modules/Shared Libraries: Add support for dependencies between
  10153. modules.
  10154. - Module Library: Add build a configuration logic for a shared module
  10155. library.
  10156. - Shared Libraries: Implement module based shared libraries for the
  10157. PROTECTED mode build.
  10158. - Interrupt handling: irq_attach() now includes an argument of type
  10159. xcpt_t that retained with the handler address. That argument is
  10160. then provided to the interrupt handler when the interrupt occurs.
  10161. The common parameter passing replaces the ad hoc parmater passing
  10162. implemented in current drivers. From Mark Schulte.
  10163. - Adapt many drivers to utilize the IRQ argument feature.
  10164. - All functions that used to return an xcpt_t old handler value, now
  10165. return an int error code. The oldhandler value is no longer useful
  10166. with the recent changes to the interrupt argument passing. Some of
  10167. the functions effected include board_button_irq(), arch_phy_irq(),
  10168. STM32 EXTI functions (Alarm, COMP, PVD), GPIO interrupt logic like
  10169. kinetis_pinirq(), stm32_gpiosetevent(), and others.
  10170. - IRQ subsystem: Add support for smaller interrupt tables as
  10171. described at
  10172. https://cwiki.apache.org/confluence/display/NUTTX/Smaller+Vector+Tables.
  10173. This is partially the work of Mark Schulte.
  10174. * File Systems/Block and MTD Drivers
  10175. - Pseudo File System: Add support for soft links in the top-level
  10176. pseudo file system.
  10177. - Soft links: Add an implementation of readlink().
  10178. - Add fstat() support. Implement fstat() method in binfs, romfs,
  10179. unionfs, tmpfs, nxffs, nfx, hostfs, procfs, and smartfs.
  10180. - fstat: Add fstat() support to FAT. From Alan Carvalho de Assis.
  10181. * Graphics/Display Drivers:
  10182. - Fonts: Add support for Tom Thumb small mono-space font. From Alan
  10183. Carvalho de Assis.
  10184. - Graphics: Separated of font cache from graphics/nxterm. Now in
  10185. libnx/nxfronts where it can be shared with other graphics
  10186. applications.
  10187. * Networking/Network Drivers:
  10188. - Ethernet drivers: Add framework for serialization in the case where
  10189. multiple low-priority work queues are used.
  10190. * Other Common Device Drivers:
  10191. - Add capabilities() method to SDIO interface. Remove
  10192. CONFIG_SDIO_WIDTH_D1_ONLY. That should not be a global propertie,
  10193. but rather a capability/limitation of single slot when there may be
  10194. multiple slots.
  10195. - Removed dmasupported() method from the SDIO interface. That is now
  10196. a bit in the capability set.
  10197. - drivers/sensors: Add driver for the ST L3GD20 3 axis gyro. From
  10198. raiden00.
  10199. * Atmel SAM3/4:
  10200. - SAM3/4: Add support for ATSAM4S4C. From Wolfgang Reißnegger.
  10201. * NXP Freescale i.MX6 Boards:
  10202. - Sabre 6quad: Enable examples/smp test in i.MX6 SMP/NSH
  10203. configurations.
  10204. * NXP Freescale Kinetis:
  10205. - Kinetis: Added support for CHIP_MK60FN1M0VLQ12 chip. From Maciej
  10206. Skrzypek.
  10207. - Kinetis: Add support for K64/K66 RTC lower half driver. From Neil
  10208. Hancock.
  10209. - Kinetis: Extensive modification of MCG support based feature
  10210. configuration. From David Sidrane.
  10211. - Kinetis: Add support for K66 family. From David Sidrane.
  10212. - Kinetis: Created a kinetis SIM versioning scheme pulled in by
  10213. Kinetis chip.h. From David Sidrane.
  10214. - Created a kinetis PMC versioning scheme pulled in by Kinetis
  10215. chip.h. From David Sidrane.
  10216. - Kinetis: Extend clock configuration logic. Refactor
  10217. implementation. From David Sidrane.
  10218. * NXP Freescale Kinetis Drivers:
  10219. - Kinetis Ethernet: Kinetis Support RMII clock source select. This
  10220. defined the RMII clock source select bits and allows the selection
  10221. to be made via Kconfig. From David Sidrane. Freedom-K66F uses
  10222. ENET_1588_CLKIN as RMII clock
  10223. - Kinetis Serial: Added configurable 1|2 stop bits.
  10224. HAVE_SERIAL_CONSOLE -> HAVE_UART_CONSOLE to be consistent with
  10225. HAVE_LPUART_CONSOLE naming. From David Sidrane.
  10226. - Kinetis LPserial: Add LPUART serial driver and Clock
  10227. configuartaion to freedom-k66f board. From David Sidrane.
  10228. - Kinetis USB device: Refactor clocking in kinetis_usbdev. From
  10229. David Sidrane.
  10230. * NXP Freescale Kinetis Boards:
  10231. - Add support for NXP Freedom-k66f development board. From David
  10232. Sidrane.
  10233. - Kinetis Freedom K66F: Add Ethernet support. From David Sidrane.
  10234. - Add twr-k64f120m config. From Marc Rechté.
  10235. * NXP Freescale LPC43xx Boards:
  10236. - Bamboo-200E: Add netnsh configuration. From Alan Carvalho de Assis.
  10237. - Add usbnsh config to Bambino 200E board. From Alan Carvalho de
  10238. Assis.
  10239. * STMicro STM32:
  10240. - STM32 F7: Allow board to configure HSE clock in bypass-mode. This
  10241. is needed to enable HSE with Nucleo-F746ZG board. From Jussi
  10242. Kivilinna.
  10243. - STM32 F7: stm32_allocateheap: allow use DTCM memory for heap.
  10244. STM32F7 has up to 128KiB of DTCM memory that is currently left
  10245. unused. This change adds DTCM to main heap if
  10246. CONFIG_STM32F7_DTCMEXCLUDE is not enabled. From Jussi Kivilinna.
  10247. - Add basic support for the STM32F334. From Mateusz Szafoni.
  10248. - STM32F33XX DAC, OPAMP, COMP, ADC, HRTIM headers. From Mateusz
  10249. Szafoni.
  10250. * STMicro STM32 Drivers:
  10251. - STM32 F7 SDMMC: Add support for single bit operation on SDMMC2.
  10252. - STM32 L4: Port STM32L4 SAI driver from MDK.
  10253. - STM32 L4: Bring power management logic from Motrola MDK into NuttX.
  10254. - STM32 L4: Bring LPTIM driver in from the Motorola MDK.
  10255. - STM32 L4 COMP: Port from Motorola MDK.
  10256. * STMicro STM32 Boards:
  10257. - STM32F429i Discovery: Add support for NxWM on STM32F429i-Disco
  10258. board. From Alan Carvalho de Assis.
  10259. - STM32F103 Minimum: Add support for nRF24 on STM32F103-Minimum
  10260. board. From Alan Carvalho de Assis.
  10261. - Olimex STM32 P407: Add a NSH protected build configuration; Enable
  10262. procfs/ in all configurations.
  10263. - Olimex STM32 P407: Add support for on-board microSD slot.
  10264. - STM32F429i Discovery: Add support for the L3GD20 driver. From
  10265. raiden00.
  10266. - STM32F103 Minimum: Add support to QEncoder on STM32F103 Minimum
  10267. board. From Alan Carvalho de Assis.
  10268. - Olimex STM32 P407: Add external SRAM support.
  10269. - Add basic support for the Nucleo F334R8 board. From Mateusz
  10270. Szafoni.
  10271. - STM32F103 Minimum: Add SDCard support over SPI on STM32F103-Minimum
  10272. board. From Alan Carvalho de Assis.
  10273. - STM32F103 Minimum: Add support to USB Device on STM32F103-Minimum
  10274. board. From Alan Carvalho de Assis.
  10275. * C Library/Header Files:
  10276. - compiler.h: packed_struct replaced by begin_packed_struct and
  10277. end_packed_struct. Now support IAR style packed structures. From
  10278. Aleksandr Vyhovanec.
  10279. - Math library: Leverage optimized ARMv8-M functions from BSD license
  10280. ARM file.
  10281. - Shared libraries: Add a non-standard dllfnc.h function to set the
  10282. symbol table.
  10283. - C Library: Add a support for setvbuf(). This is a collaborative
  10284. effort. Alan Carvalho de Assis did the initial prototype.
  10285. - C Library: Add setbuf() which is a trivial wrapper around setvbuf().
  10286. - C library: Add swab().
  10287. - C library: Add strtoimax and strtoumax.
  10288. - C library: Add ffs(), rindex(), an index(). Add strings.h. Move
  10289. strcasecmp, strncasecmp, bzero, bcmp, and bcopy to where they
  10290. belong in strings.h.h, not string.h. bzero, bcmp, and bcopy are
  10291. legacy functions; the contemporary counterparts should be used
  10292. instead.
  10293. - C library: Add fstatfs().
  10294. - Update cwchar. Add cwctype.
  10295. * Build/Configuration System:
  10296. - Add configuration support for builds with Ubuntu under Windows 10.
  10297. * Tools:
  10298. - tools/noteinfo.c: A hack tool that I use to analyze some sched_note
  10299. output. Needs a home and may be useful to others.
  10300. - tools/mkconfig.c: Add logic to keep all of the buffering options in
  10301. sync.
  10302. * NSH: apps/nshlib:
  10303. - NSH: Add support for the 'ln' command.
  10304. - NSH ls command: if node is a symobolic link, use readlink() to get
  10305. and the display the target of the symbolic link.
  10306. - NSH: Add readlink command.
  10307. * Applications: apps/examples:
  10308. - apps/examples/nxtext: Make line spacing configurable.
  10309. - apps/system/zmodem/host/nuttx/compiler.h synchronized with
  10310. nuttx/nuttx/include/nuttx/compiler.h. From Aleksandr Vyhovanec.
  10311. - apps/examples/sotest: Add a test for shared libraries.
  10312. - apps/examples/ostest: Add a test of setvbuf().
  10313. - apps/examples/stat: Add a simple test for stat(), fstat(),
  10314. statfs(), and fstatfs().
  10315. Works-In-Progress:
  10316. * IEEE802.14.5/6LowPAN. Hooks and framework for this effort were
  10317. introduced in NuttX-7.15. Work has continued on this effort on
  10318. forks from the main repositories, albeit with many interruptions.
  10319. The completion of this wireless feature will postponed until at
  10320. least NuttX-7.21.
  10321. Bugfixes. Only the most critical bugfixes are listed here (see the
  10322. ChangeLog for the complete list of bugfixes and for additional, more
  10323. detailed bugfix information):
  10324. * Core OS:
  10325. - SMP: There were certain conditions that we must avoid by preventing
  10326. the release of the pending tasks while withn a critical section.
  10327. But this logic was incomplete; there was no logic to prevent other
  10328. CPUs from adding new, running tasks while on CPU is in a critical
  10329. section. This commit corrects this. This is matching logic in
  10330. sched_addreadytorun to avoid starting new tasks within the critical
  10331. section (unless the CPU is the holder of the lock). The holder of
  10332. the IRQ lock must be permitted to do whatever it needs to do.
  10333. - SMP: Make checks for CPU lock set more robust. There are certain
  10334. conditions early in initialization on during interrupt handling
  10335. where things need to be done a little differently.
  10336. - sched_cpulocked: Avoid use of spinlock. That has been reported to
  10337. cause a deadlock (2016-12-28).
  10338. - SMP: Fix a gap where we may try to make modifications to the task
  10339. lists without being in a critical sections. That permits
  10340. concurrent access to the tasks lists and many subtle problems.
  10341. This fix just remains in the critical section throughout the
  10342. operation (and possible until the task is restore in the event of a
  10343. context switch). Makes a big difference in stability.
  10344. - SMP: Fix an error in critical section logic when performing a
  10345. context switch from an interrupt handler. The g_cpu_irqset bit was
  10346. not being set for the CPU so other CPUs did not know about the
  10347. critical section.
  10348. - SMP Signals: Fix some SMP signal delivery logic. Was not handling
  10349. some critical sections correctly and was missing logic to signal
  10350. tasks running on other CPUs.
  10351. - SMP: Fix timer related issues: Round robin and sporadic
  10352. scheduling were only being performed for tasks running on the CPU
  10353. that processes the system timer interrupt. Similarly, CPU load
  10354. measurements were only be processed for running on the CPU that
  10355. receives the sampling interrupt.
  10356. - sched_note: Fix spinlock instrumentation. From Masayuki Ishikawa.
  10357. - In all implementations of _exit(), use enter_critical_section() vs.
  10358. disabling local interrupts.
  10359. - sigtimedwait: When timer expires, up_unblock_task() is called.
  10360. This is okay in the single CPU case because interrupts are disable
  10361. in the timer interrupt handler. But it is insufficient in the SMP
  10362. case. enter_ and leave_critical_section() must be called in order
  10363. to manage spinlocks correctly.
  10364. - Fix a compile error: in sched_cpuload.c:Line136, the variables ts
  10365. and secs are not defined if CONFIG_CPULOAD_ONESHOT_ENTROPY = 0.
  10366. However, these variables are used regardless of
  10367. CONFIG_CPULOAD_ONESHOT_ENTROPY at lines~180:onwards. From Rajan Gill.
  10368. - CPU load: Correct computation of the nominal period to use when the
  10369. source is a oneshot timer.
  10370. - Cancellation points: Fix some backward logic in conditional
  10371. compilation.
  10372. - Remove an unused variable when calling sigwaitinfo() and
  10373. sigtimedwait(). From Masayuki Ishikawa.
  10374. * File System/Block and MTD Drivers:
  10375. - procfs: Correct to snprintf-related errors in fs_procfsproc.c.
  10376. Resolves issue #24.
  10377. - Add logic to VFS rename: If target of rename exists and is a
  10378. directory, then the source file should be moved 'under' the target
  10379. directory. POSIX also requires that if the target is a file, then
  10380. that old file must be deleted.
  10381. - Fix open() a block device with
  10382. CONFIG_DISABLE_PSEUDOFS_OPERATIONS=y. From Masayuki Ishikawa.
  10383. - File System: Don't build block driver proxy if PSEUDOFS_OPERATIONS
  10384. are disabled.
  10385. - sendfile(): Fix error introduced with commit
  10386. ff73be870e38959b0aaee5961dc47b4b58dc2d86. Noted by Maciej Wójcik.
  10387. * Graphics/Graphic Drivers:
  10388. - NxWM configurations. If using a 7-bit character set, then the
  10389. cursor character cannot be 137 (graphic block). Use 95
  10390. (underscore) instead.
  10391. - NX server: Correct message queue names. Should not be at /dev,
  10392. but rather relative to /var/mqueue.
  10393. * Common Drivers:
  10394. - MMCSD_SDIO: Only wait for card ejected if card detection is
  10395. supported. From Alan Carvalho de Assis.
  10396. - Typos withim mtd/ with Macronix MX25L. In
  10397. NuttX/drivers/mtd/Make.defs letters X between M and 25 are
  10398. missing. Noted by Oleg Evseev.
  10399. - USBMSC: Always set LUN readonly flag. From Wolfgang Reißnegger.
  10400. - drivers/lcd: ssd1306_configspi() must have global scope.
  10401. - MMC/SD SDIO: Some drivers need to start DMA before sending CMD24
  10402. and some AFTER. From Alan Carvalho de Assis.
  10403. - drivers/tone.c: Handle configuration with multiple PWM channels.
  10404. This resolves issue #30: Audio Tone Generator and PWM Multiple
  10405. Output Channel options.
  10406. - drivers/tone.c: 50% duty needs to be expressed a a fixed precision
  10407. number.
  10408. - drivers/spi/Kconfig: There is too much SPI in the configuration
  10409. menu; SPI Driver Support menu is empty. From Maciej Wójcik.
  10410. - option to enable Memory Card debug output was hidden with SD cards
  10411. connected through SPI. From Maciej Wójcik.
  10412. - usbhost_cdcacm: fix tx outbuffer overflow and remove now invalid
  10413. assert. From Janne Rosberg.
  10414. * Networking/Network Drivers:
  10415. - Networking: Fixed some issues that prevented IPv6 from working with
  10416. IPv4 enabled. From Pascal Speck.
  10417. - Networking: fixed a nullptr-dereference on iob_clone. From Pascal
  10418. Speck.
  10419. - Ethernet: Need two work structures (minimum) in all Ethernet
  10420. drivers so that pending poll work is not lost when an interrupt
  10421. occurs.
  10422. * ARMv7-R:
  10423. - I found an issue inside the cp15_coherent_dcache function: The
  10424. "mcr CP15_BPIALLIS(r0)" should only be used with SMP
  10425. configurationa. In non-SMP configuration this instruction could
  10426. become undefined. From Manohara HK.
  10427. * Atmel SAM3/4 Drivers:
  10428. - SAM3/4: GPIO bit numbering typo fixes. From Wolfgang Reißnegger.
  10429. * Atmel SAM3/4 Boards:
  10430. - Add missing sched_note_*() calls in sam4cm SMP functions.
  10431. * NXP/Freescale Kinetis:
  10432. - Kinetis: Fixed wrong MCG VDIV calculation on new NXP K60. From
  10433. Maciej Skrzypek.
  10434. - Kinetis: Need to set HAVE_UART_DEVICE when UART4 is selected. From
  10435. Maciej Skrzypek.
  10436. - Kinetis MCG: Wrong FRDIV set in MCG_C1. From Maciej Skrzypek.
  10437. * NXP/Freescale Kinetis Drivers:
  10438. - Kinetis Serial: Fixed compile error when UART5 is selected. From
  10439. Maciej Skrzypek.
  10440. - Kinetis SDHC - Enable clock after selected. From David Sidrane.
  10441. - Kinetis: Correct some SPI and I2C configuration issues. From
  10442. David Sidrane.
  10443. - Kinetis Ethernet: Add #define for number of loops for auto
  10444. negotiation to complete. From Marc Rechté.
  10445. - Kinetis Werial: Fixed up_rxint - did not disable the RX
  10446. interuppts. There was an OR where and AND NOT was needed. From
  10447. David Sidrane.
  10448. * NXP/Freescale LPC43xx:
  10449. - LPC43 pinset definitions: Add more 1 bit to pinset to reach
  10450. SFSCLK0-SFSCLK3. Remove PINCONFIG_DIGITAL. From Alan Carvalho de
  10451. Assis.
  10452. * NXP/Freescale LPC43xx Drivers:
  10453. - LPC43 serial: Correct conditional logic that selects /dev/ttySN.
  10454. Problem noted by Alan Carvalho de Assis.
  10455. * NXP/Freescale i.MX6:
  10456. - i.MX6: Fix clearing GPT status register. From Masayuki Ishikawa.
  10457. * STMicro STM32:
  10458. - STM32, STM32L4 Oneshot: Fix logic so that it can support multiple
  10459. oneshot timers.
  10460. - STM32 F7: Added missing ARCH_HAVE_RESET for F7. From David Sidrane.
  10461. - STM32: Add missing STM32_BKP_BASE. From David Sidrane.
  10462. - STM32 and STM32F7: Fixes the BKP reference counter issue. From
  10463. David Sidrane.
  10464. * STMicro STM32 Drivers:
  10465. - Fix for SAMv7 SPI: DLYBS value was calculated, but never written to
  10466. any registers. This led to incorrect timings on the bus. From
  10467. Michael Spahlinger.
  10468. - STM32 QEncoder: Fix QEncoder driver, based on STM32L4 driver. From
  10469. Alan Carvalho de Assis.
  10470. - STM32 QEncoder: Enable clocking to the timer on QE setup; disable
  10471. clock on QE teardown.
  10472. - STM32 Ethernet: Need two work structures so that pending poll work
  10473. is not lost when an interrupt occurs. This change has also been
  10474. ported to all all other effected Ethernet drivers.
  10475. - STM32 OTGHS host: stm32_in_transfer() fails and returns NAK if a
  10476. short transfer is received. This causes problems from class
  10477. drivers like CDC/ACM where short packets are expected. In those
  10478. protocols, any transfer may be terminated by sending short or NUL
  10479. packet. From Janne Rosberg. Adapted Janne Rosberg's patch to
  10480. STM32 OTGHS host to OTGFS host, and to similar USB host
  10481. implementations for STM32 L4 and F7.
  10482. * STMicro STM32 Boards:
  10483. - STM32F4 Discovery: Fix issues with QEncoder support. From Alan
  10484. Carvalho de Assis.
  10485. * C Library/Header Files:
  10486. - Add debug assertion in libdtoa to catch attempts to use floating
  10487. point output formats from within an interrupt handler. That will
  10488. cause assertions or crashes downstream because __dtoa will attempt
  10489. to allocate memory. From Pierre-noel Bouteville.
  10490. - libc: Fix ARMv7-A/R memcpy assembly.
  10491. - Fix return value if x is NaN. From Aleksandr Vyhovanec.
  10492. * apps/nshlib:
  10493. - NSH: Eliminate a warning when all memory inspection commands are disabled.
  10494. * apps/graphics:
  10495. - apps/graphics/traveler/tools: Fix linkage issue. The -lm should
  10496. come after -o binname. From Alan Carvalho de Assis.
  10497. * apps/netutils:
  10498. - The CONFIG_NETUTILS_HTTPD_PATH constant is used by httpd_mmap.c and
  10499. httpd_sendfile.c but It was not present in Kconfig menu. From
  10500. Maciej Wójcik.
  10501. * apps/examples:
  10502. - Configurations that enable OSTEST must not disable signals.
  10503. - apps/examples/ostest: Was ignoring
  10504. CONFIG_EXAMPLES_OSTEST_FPUTESTDISABLE.
  10505. - In apps/examples/mtdpart/mtdpart_main.c where
  10506. CONFIG_EXAMPLES_MTDPART_NPARTITIONS defining is checked should be
  10507. #ifndef instead of #ifdef. Noted by Oleg Evseev.
  10508. NuttX-7.21 Release Notes
  10509. ------------------------
  10510. The 121st release of NuttX, Version 7.21, was made on June 6, 2017,
  10511. and is available for download from the Bitbucket.org website. Note
  10512. that release consists of two tarballs: nuttx-7.21.tar.gz and
  10513. apps-7.21.tar.gz. These are available from:
  10514. https://bitbucket.org/nuttx/nuttx/downloads
  10515. https://bitbucket.org/nuttx/apps/downloads
  10516. Both may be needed (see the top-level nuttx/README.txt file for build
  10517. information).
  10518. Additional new features and extended functionality:
  10519. * Core OS:
  10520. - pthread rwlocks: Add an implementation for read/write locks
  10521. (rwlocks) into the pthread library. These locks are writer
  10522. priority, such that if any writers come in they are given priority
  10523. for writing. From Mark Schulte.
  10524. - pthread robust mutexes: Implement robust mutex support:
  10525. pthread_mutex_lock() and trylock() will return EOWNERDEAD if the
  10526. mutex is locked by a thread that no longer exists. Add
  10527. pthread_mutex_consistent() to recover from this situation. Keep
  10528. list of all mutexes held by a thread in a list in the pthread's TCB.
  10529. When pthread exits or is cancelled, mutexes held by thread are
  10530. marked inconsistent and the highest priority thread waiting for the
  10531. mutex is awakened. There is a configuration option to (a) support
  10532. only robust mutexes, (b) support only traditional unsafe mutexes,
  10533. or (c) Support both unsafe and robust mutexes via
  10534. pthread_mutexattr_get/setrobust().
  10535. - pthread cancellation points: Add logic to disable cancellation
  10536. points within the OS. This is useful when an internal OS function
  10537. that is NOT a cancellation point calls an OS function which is a
  10538. cancellation point. In that case, irrecoverable states may occur if
  10539. the cancellation is within the OS. From Juha Niskanen.
  10540. - clock: Add clock_resynchronize and use subseconds RTC. Add
  10541. clock_resynchronize for better synchronization of CLOCK_REALTIME and
  10542. CLOCK_MONOTONIC to match RTC after resume from low-power state. Add
  10543. up_rtc_getdatetime_with_subseconds under
  10544. CONFIG_ARCH_HAVE_RTC_SUBSECONDS to allow initializing (and
  10545. resynchronizing) system clock with subseconds accuracy RTC. From
  10546. Jussi Kivilinna.
  10547. - clock: Add new type ssystime_t for relative 64-bit ticks, change
  10548. ticks<->time conversion functions to use ssystime_t. From Jussi
  10549. Kivilinna.
  10550. - clock: Add testing for 32-bit overflow of 64-bit system timer. From
  10551. Jussi Kivilinna.
  10552. * File Systems/Block and MTD Drivers
  10553. - drivers/mtd/w25.c: Erase sector only if it is not in erased state.
  10554. From Jussi Kivilinna.
  10555. * Graphics/Display Drivers:
  10556. - drivers/lcd: Extend st7565 driver to include support for the
  10557. AQM_1248A. From Masayuki Ishikawa.
  10558. - drivers/lcd: Add driver for Nokia 5110 (Philips PCD8544). From Alan
  10559. Carvalho de Assis.
  10560. * Networking/Network Drivers:
  10561. - Extensive modifications to support wireless network (see below).
  10562. - TUN driver: Implement TAP (OSI layer 2) mode. Enable by setting the
  10563. IFF_TAP flag instead of the IFF_TUN flag in ifr_flags. From Thomas
  10564. Keh.
  10565. - Add user-space networking stack API (usrsock). User-space
  10566. networking stack API allows user-space daemon to provide TCP/IP
  10567. stack implementation for NuttX network. Main use for this is to
  10568. allow use and seamless integration of HW-provided TCP/IP stacks to
  10569. NuttX. For example, user-space daemon can translate /dev/usrsock
  10570. API requests to HW TCP/IP API requests while rest of the user-space
  10571. can access standard socket API, with socket descriptors that can be
  10572. used with NuttX system calls. From Jussi Kivilinna.
  10573. - net/: Network driver now retains Ethernet MAC address in a union so
  10574. that other link layer addresses may be used in a MULTILINK
  10575. environment.
  10576. * Wireless Networking/Wireless Drivers:
  10577. - BCM43362: Support for Broadcom's BCM43362 WiFi chip was contributed
  10578. by Simon Piriou as part of the port of the Particle Photon board.
  10579. Only station functionality is available at present. This work
  10580. includes not on the WiFi driver, but the support Particle Photon
  10581. board, the infrasture for IEEE 802.11 FullMAC networking including
  10582. the network device interface, WiFi configuration, AP scanning and
  10583. authentication and association with an AP.
  10584. - IEEE 802.11 networking tools and support.
  10585. - IEEE 802.15.4 MAC support. This is an effort that was started some
  10586. time back by Sebastien Lorquet (with some help from Matte Poppe).
  10587. Recently, Anthony Merlino has taken on this effort and has made
  10588. some significant progress. Using the Microchip MRF24J40 module with
  10589. the Mikroe Clicker2-STM32 board along with a PC-based IEEE 802.15.4
  10590. sniffer, Anthonly has verified correct transmission and receipt of
  10591. basic frames.
  10592. - Microchip MRF24J40: As mentioned above, this IEEE 802.15.4 radio
  10593. driver is now basically functional.
  10594. - IEEE 802.15.4 Network Driver: A driver that interfaces the NuttX
  10595. network with the IEEE 802.15.4 MAC has been developed but is still
  10596. incomplete and has not been verified.
  10597. - IEEE 802.15.4 Network Loopback Driver: A simple IEEE 802.15.4 MAC
  10598. loopback driver was developed. This driver allowed for parallel
  10599. development of the IEEE 802.15.4 MAC and 6LoWPAN.
  10600. - 6LoWPAN: The Contiki 6LoWPAN stack has been ported so that works
  10601. within the NuttX networking framework and interfaces with the new
  10602. IEEE 802.15.4 MAC via the network driver. Live testing with
  10603. IEEE 802.15.4 radios has not yet been done; all testing has used
  10604. the loopback driver. There are no known problems and the stack
  10605. is ready for additional testing.
  10606. - Add option to enable wireless debug output.
  10607. * Other Common Device Drivers:
  10608. - Add entropy pool and strong random number generator. Entropy pool
  10609. gathers environmental noise from device drivers, user-space, etc.,
  10610. and returns good random numbers, suitable for cryptographic use.
  10611. Based on entropy pool design from *BSDs and uses BLAKE2Xs algorithm
  10612. for CSPRNG output. Patch also adds /dev/urandom support for using
  10613. entropy pool RNG and new 'getrandom' system call for getting
  10614. randomness without file-descriptor usage (thus avoiding file-
  10615. descriptor exhaustion attacks). The 'getrandom' interface is similar
  10616. as 'getentropy' and 'getrandom' available on OpenBSD and Linux
  10617. respectively. From Jussi Kivilinna.
  10618. - XBox One controller: Adds USB host driver support for the XBox One
  10619. controller. Currently only the latest version (XBox One X)
  10620. controller works. The older XBox One controllers do not enumerate
  10621. correctly. From Brian Webb.
  10622. - drivers/analog: Add basic COMP driver. From Mateusz Szafoni.
  10623. - drivers/analog: Add driver for the LTC1767L ADC. From Martin
  10624. Lederhilger.
  10625. - drivers/analog: Add basic OPAMP driver. From Mateusz Szafoni.
  10626. - drivers/sensors: Add driver for ST HTS221 humidity sensor. From
  10627. Juha Niskanen.
  10628. - drivers/sensors: Add driver for ST LPS25H pressure sensor. From
  10629. Juha Niskanen.
  10630. - drivers/sensors: Add driver for ST LIS2DH accelerometer. From Timo
  10631. Voutilainen.
  10632. - drivers/usbmisc: Add driver for Fairchild FUSB301 USB type-C
  10633. controller. From Harri Luhtala.
  10634. - RTC: Add interface for check if RTC time has been set. New
  10635. interface allows checking if RTC time has been set. This allows to
  10636. application to detect if RTC has valid time (after reset) or should
  10637. application attempt to get real time by other means (for example, by
  10638. launching ntpclient or GPS). From Jussi Kivilinna.
  10639. - Buttons: Change return value of board_buttons() and the type of
  10640. btn_buttonset_t to uint32_t so that more than 8 buttons can be
  10641. supported.
  10642. - drivers/syslog: Use monotonic clock for timestamp when available.
  10643. From Jussi Kivilinna.
  10644. - SPI: Add an instance argument to the SPIDEV definitions. Thus,
  10645. instead of specifying a FLASH device, for example, as SPI_FLASH, you
  10646. would now use SPI_FLASH(0) where the "instance" argument now
  10647. distinguishes multiple FLASH devices on the same SPI bus. From
  10648. Sebastien Lorquet.
  10649. - IOBs: Move from net/iob to a better location in mm/iob where they
  10650. can be shared outside of the networking logic. Current also used
  10651. by IEEE 802.15.4 MAC and by syslog (when buffering enabled).
  10652. - syslog: Add option to buffer SYSLOG output to avoid interleaving.
  10653. Uses new shareable IOBs. Additional logic to assure that the the
  10654. write from the buffer is a single atomic write in normal debug
  10655. output.
  10656. - drivers/can: Move CAN subsystem to its own directory and put device
  10657. drivers there. From Alan Carvalho de Assis.
  10658. - drivers/can: Add Microchip MCP2515 CAN Bus controller driver. From
  10659. Alan Carvalho de Assis.
  10660. - drivers/audio: Add cs43l22 audio driver. From Taras Drozdovsky.
  10661. - drivers/input: Add Cypress MBR3108 CapSense touch button driver.
  10662. From Juha Niskanen.
  10663. * Simulation
  10664. - configs/sim/sixlowpan: Configuration for testing the 6LoWPAN with
  10665. the IEEE 802.15.4 loopback network driver.
  10666. * Infineon XMC4xxx:
  10667. - arch/arm/src/xmc4: Initial, partial support for Infineon XMC4xxx.
  10668. * Infineon XMC4xxx Boards:
  10669. - XMC4500 Relax: Add basic board support infrastructure of Infineon
  10670. XMC4500 Relax Lite v1. Basic serial, LED, and button button support
  10671. for a simple NSH configuration. There are still stome remaining
  10672. issues with serial communications.
  10673. * MicroChip PIC32MX Boards:
  10674. - pic32mx7mmb: Add support for the Pinquino toolchain.
  10675. - pic32mx7mmb: Add support for PROCFS file system.
  10676. * NXP Freescale Kinetis:
  10677. - Kinetis: Allow board to add pullups on SDHC lines. From David
  10678. Sidrane.
  10679. - Kinetis: Use optional BOARD_OSC_CR and BOARD_OSC_DIV in clock
  10680. configuration. From David Sidrane.
  10681. * NXP Freescale Kinetis Drivers:
  10682. - Kinetis: Add Timer PWM Module (TPM) to K66 chip. From David
  10683. Sidrane.
  10684. - Kinetis: Added HW flow control and termios. From David Sidrane.
  10685. - Kinetis: Add ARCH_HAVE_I2CRESET. From David Sidrane.
  10686. * NXP Freescale LPC43xx:
  10687. - Add support for LPC4337FET256. From Andreas Bihlmaier.
  10688. * STMicro STM32:
  10689. - Change STM32 tickless to use only one timer. From Konstantin
  10690. Berezenko.
  10691. - STM32 F7: Add support for LSE RTC and enable RTC subseconds. From
  10692. Jussi Kivilinna.
  10693. - STM32 L1: stm32l15xx_rcc: Add support for using MSI as system
  10694. clock. From Juha Niskanen.
  10695. - STM32 L1: stm32l15xxx_rcc: configure medium performance voltage
  10696. range and zero wait-state when allowed by SYSCLK setting. Zero
  10697. wait-state for flash can be configured when: (1) Range 1 and
  10698. SYSCLK <= 16 MHz, (2) Range 2 and SYSCLK <= 8 MHz, or (3) Range 3
  10699. and SYSCLK <= 4.2 MHz. Medium performance voltage range (1.5V)
  10700. can be configured when SYSCLK is up to 16 MHz and PLLVCO up to
  10701. 48 MHz. From Juha Niskanen.
  10702. - STM32 F0: Add basic support for STM32F0. From Alan Carvalho de
  10703. Assis.
  10704. - STM32 F0: Add basic support for STM32F07x family.
  10705. - STM32 L1: stm32l15xx_rcc: Allow board to configure HSE clock in
  10706. bypass-mode. Allows using MCO output from ST-link chip (on Nucleo
  10707. and Discovery boards) as HSE input. From Juha Niskanen.
  10708. - STM32 L1: Add support for STM32L152CC, STM32L152RC and STM32L152VC.
  10709. From Juha Niskanen.
  10710. - STM32 F0: Add support for HSI48.
  10711. - STM32 L4: Add support for the STM32L496XX family. From Juha
  10712. Niskanen.
  10713. - STM32 L4: modularize Kconfig to support different product
  10714. lines/families. This is modeled after STM32F7. Idea is to declare
  10715. each chip in Kconfig but allow for flash size override. Commit adds
  10716. many STM32L4_HAVE_XXX feature test macros. From Juha Niskanen.
  10717. - STM32 L4: Separate SYSCFG into product line specific files for
  10718. clarity. From Juha Niskanen.
  10719. - STM32 L4: Add support for many new MCUs from the STM32L4X3XX
  10720. product line. From Juha Niskanen.
  10721. - STM32 L4: Add dbgmcu header files. From Juha Niskanen.
  10722. - STM32 F410: Add support for STM32F410. STM32F410 is a version of
  10723. STM32F4 with 32 KB of RAM and 62 or 128 KB of flash. From Gwenhael
  10724. Goavec-Merou.
  10725. * STMicro STM32 Drivers:
  10726. - SDIO: Extensions to support the SDIO interface to the BCM43362 from
  10727. Simon Piriou.
  10728. - STM32 F2: Add USB OTG HS support for stm32f20xxx cores. From Simon
  10729. Piriou.
  10730. - STM32 F2, F4, and F7: Add BOARD_DISABLE_USBOTG_HSULPI flag. From
  10731. Simon Piriou.
  10732. - STM32 F33: Move DMA logic to a separate files + add ADC support.
  10733. From Mateusz Szafoni.
  10734. - STM32 F3: Add COMP support. From Mateusz Szafoni.
  10735. - STM32 F33: Support for COMP character driver. From Mateusz Szafoni.
  10736. - STM32 F4: Implement DMA support for the STM32F4 I2C. From Rajan Gill.
  10737. - STM32 F7: Add stm32 RNG support. This is copied from stm32l4.
  10738. Tested on STM32F746ZG board. From Juha Niskanen.
  10739. - STM32 L1: Add STM32L162VE to chip.h. From Juha Niskanen.
  10740. - STM32 F4: Add I2C3 SDA pin mapping for STM32F411. From no1wudi.
  10741. - STM32 L1: stm32_flash: Add EEPROM writing for STM32L15XX. From
  10742. Juha Niskanen.
  10743. - STM32 F7: Serial: Add interface to get uart_dev_t by USART number,
  10744. stm32_serial_get_uart. From Jussi Kivilinna.
  10745. - STM32 F4: Provide TIM5 definition for STM32F429. From Matias v01d.
  10746. - STM32 F0: Add an untested port of the F1 USB device to the STM32F0.
  10747. - STM32 F0: Add support for the STM32F09X family. From Juha
  10748. Niskanen.
  10749. - STM32 F0: Initial cut at I2C driver. Still a work in progress.
  10750. From Alan Carvalho de Assis.
  10751. - STM32 F33: Add OPAMP support. From Mateusz Szafoni.
  10752. - STM32 L4: stm32l4_i2c: Add I2C4 code. From Juha Niskanen.
  10753. - STM32 L4: Add GPIO_PORTI definition. From Juha Niskanen.
  10754. - STM32 F7 Serial: Allow configuring Rx DMA buffer size. From Jussi
  10755. Kivilinna.
  10756. - STM32 L4: Firewall for stm32l4x3xx. Not tested for any product
  10757. family, but now it at least compiles. L496 devices can have one bit
  10758. wider Volatile Data Segment. From Juha Niskanen.
  10759. - STM32 TIM: Add method to get timer width. Freerun timer: Use timer
  10760. width to get the correct clock rollover point.
  10761. - STM32 L4: Add internal flash write support. From Juha Niskanen.
  10762. - STM32 L4: Port stm32l4_serial_get_uart function from STM32F7. From
  10763. Juha Niskanen.
  10764. - STM32 Ethernet: Add support for KSZ8081 PHY interrupts. From
  10765. Sebastien Lorquet.
  10766. - STM32 F4: Add I2S driver. From Taras Drozdovsky.
  10767. - STM32 L4: Add IWDG peripheral. This is the same as for STM32
  10768. except that prescale and reload can be changed after watchdog has
  10769. been started, as this seems to work on L4. From Juha Niskanen.
  10770. - STM32 F7: Add SPI DMA support. From Jussi Kivilinna.
  10771. * STMicro STM32 Boards:
  10772. - Support for the Particle Photon board was contributed by Simon
  10773. Piriou. The Photon board is based on a STM32F205G MCU with and on-
  10774. board BCM43362 WiFi chip that interfaces via the STM32's SDIO
  10775. interface. Board configuration support includes, in addition,
  10776. buttons, LEDS, IWDG, USB OTG HS, and procfs support. Configurations
  10777. available for nsh, usbnsh, and wlan configurations.
  10778. - Clicker2-STM32: Support for the Mikroelektronika Clicker 2 for
  10779. STM32 was added by Anthony Merlino. This board, along with the
  10780. MRF24J40 Click board is the platform used to deveop the IEEE
  10781. 802.15.4 support. The boad configuration includes the MRF24J40
  10782. initialization logic and SPI support. Configurations exist for nsh,
  10783. knsh, usbnsh, and mrf24j40-radio.
  10784. - Nucleo_F334R8: Add ADC example. From Mateusz Szafoni.
  10785. - Nucleo-F334R8: Add COMP support. From Mateusz Szafoni.
  10786. - Nucleo-F334R8: Use new COMP driver. From Mateusz Szafoni.
  10787. - Adds USB host support to stm32f411-disco board. From Brian Webb.
  10788. - Add stm32f0discovery board support. From Alan Carvalho de Assis.
  10789. - Nucleo-F072RB: Add board configuration.
  10790. - Nucleo-F334R8: Add OPAMP support. From Mateusz Szafoni.
  10791. - Nucleo-F072RB: Add support for the I2C driver used by I2C tools.
  10792. - Nucleo-L496ZG: Add nucleo-l496zg board files. From Juha Niskanen.
  10793. - Nucleo-F091RC: Add nucleo-f091rc board files. From Juha Niskanen.
  10794. - Nucleo-L432KC: Add nucleo-l432kc board files. From Sebastien
  10795. Lorquet.
  10796. - Nucleo-L452RE: Add nucleo-l452re board files. From Juha Niskanen.
  10797. - stm32f103-miniumum: Add board support to use the Nokia 5110
  10798. LCD display driver. From Alan Carvalho de Assis.
  10799. * C Library/Header Files:
  10800. - C library: Add strerror_r().
  10801. - C Library: Add wcstoull(), swprintf(), wcstod(), wcstof(), wcstol(),
  10802. wcstold(), wcstoul(), wcstoll() functions. Add mbsnrtowcs() and
  10803. wcsnrtombs() (just returning success). Add mbtowc() and wctomb() to
  10804. C++ std namespace. From Alan Carvalho de Assis.
  10805. - C Library: Add ffsl(), ffsll(), fls(), flsl(), flsll() and use
  10806. GCC's __builtin_ctz/__builtin_clz for faster implementation of these.
  10807. From Jussi Kivilinna.
  10808. - fixedmath: Add square root and b32_t conversion operators. From
  10809. Jussi Kivilinna.
  10810. - locale.h: Add a bogus definition of locale_t.
  10811. - C library: Versions mbrlen and mbsrtowcs taken and adapted from
  10812. FreeBSD code (at https://github.com/freebsd/freebsd/). From Matias
  10813. v01d.
  10814. * Build/Configuration System:
  10815. - Include C++ library in 'make export'. From Alan Carvalho de Assis.
  10816. - configs: Remove all setenv.sh and setenv.bat files. Remove all
  10817. references to setenv.sh and setenv.bat from all config README files.
  10818. - Kconfig/deconfigs: Add CONFIG_ARCH_TOOLCHAIN_GNU to indicate that
  10819. the toolchain is based on GNU gcc/as/ld. This is in addition to the
  10820. CPU-specific versions of the same definition.
  10821. - Move prototype for up_cxxinitialize() from nuttx/include/nuttx/arch.h
  10822. to apps/include/platform/cxxinitialize.h.
  10823. * Tools:
  10824. - Add initialconfig.c so that perhaps in the future we will be able to
  10825. use this to generate a new configuration from scratch (rather than
  10826. having to derive new configurations from existing configurations).
  10827. NOTE: Not yet intregated into the build system.
  10828. * NSH: apps/nshlib:
  10829. - Added support for set [{+|-}{e|x|xe|ex}] [<name> <value>]. Set the
  10830. 'exit on error control' and/or 'print a trace' of commands when
  10831. parsing scripts in NSH. The settings are in effect from the point
  10832. of execution, until they are changed again, or in the case of the init
  10833. script, the settings are returned to the default settings when it
  10834. exits. Included child scripts will run with the parents settings and
  10835. changes made in the child script will effect the parent on return.
  10836. Use 'set -e' to enable and 'set +e' to disable (ignore) the exit
  10837. condition on commands. The default is -e. Errors cause script to
  10838. exit. Use 'set -x' to enable and 'set +x' to disable (silence)
  10839. printing a trace of the script commands as they are ececuted. The
  10840. default is +x. No printing of a trace of script commands as they are
  10841. executed. From David Sidrane.
  10842. - Print expanded variables if -x. From David Sidrane.
  10843. - ifconfig command: Extend ifconfig to support 6LoWPAN. Adapt to
  10844. some changes in configuration variable usage.
  10845. - Network initialization: If IEEE802.11 selected use wlan0 instead of
  10846. eth0 for network device name.
  10847. - Network initialization: NSH now has configuration options to select
  10848. the wireless properties. It builds the configuration structure and
  10849. passes this to wpa_driver_wext_associate() so that it will set the
  10850. network as configured.
  10851. - Network initialization: Add a new option CONFIG_NSH_NETLOCAL that
  10852. will suppress some built in operations and will support manual
  10853. configuration of a wireless network through command line tools.
  10854. * Examples/Tests: apps/examples:
  10855. - examples/xbc_text: Adds a test program for the XBox One controller
  10856. driver. From Brian Webb.
  10857. - examples/ostest: Add a test of robust mutexes.
  10858. - examples/ostest: Add tests for pthread_rwlock. Adding tests to be
  10859. used to verify the pthread_rwlock lock works. From Mark Schulte.
  10860. - examples/ostest: Additional test for rwlock and one for cancel
  10861. cleanup handlers. From Juha Niskanen.
  10862. - examples/usrsocktest: Add application for USRSOCK testing. From
  10863. Jussi Kivilinna.
  10864. - examples/nettest: Adapt for use in testing 6LoWPAN.
  10865. - examples/nettest: If doing loopback, but not using the official
  10866. loopback device, then use the server should use the configured client
  10867. IP address.
  10868. - examples/udpblaster: Several fixes to work with 6LoWPAN.
  10869. - examples/udpblaster: Add logic to bind the local UDP socket to a
  10870. well-known address.
  10871. - examples/configdata: Add stacksize and priority. From Juha Niskanen.
  10872. * Network Utilities: apps/netutils:
  10873. - netutils/netlib: Add IEEE 802.11 wireless IOCTL wrappers.
  10874. - netutils/netlib: Add a helper function to convert a string to a
  10875. 6LoWPAN node address.
  10876. - netlib and NSH: Add logic to get/set the IEEE802.15.4 PAN ID.
  10877. - netutils/dhcpc: Make the network device name a configuration
  10878. option. Was hardcoded to eth0 but may, instead, need to be wlan0.
  10879. - netutils/dhcpc: Remove hard-coded interface device. Now passed as
  10880. a parameter to dhcpc_open(). From Sebastien Lorquet.
  10881. * Wireless Utilities: apps/wireless:
  10882. - wireless/wapi: Port of Wapi wireless services. The original
  10883. depended on features not supported by NuttX: Removed logic that
  10884. depends on Linux netlink. Removed functionality that depended on
  10885. the Linux procfs: This includes only 1) listing of available
  10886. interfaces and 2) listing of all routes.
  10887. - wireless/wapi: Create command line Wapi application based on
  10888. Wapi sample code.
  10889. - wireless/wapi: wpa_driver_wext_associate() now accepts a
  10890. configuration parameter that can be used to specify the wireless
  10891. properties.
  10892. - wireless/wapi: Add basic wapi_event_stream_extract implementation.
  10893. From Simon Piriou.
  10894. - wireless/ieee802154: Add iwpan and i8sak tools. iwpan is similar
  10895. in concept to wapi. From Anthony Merlino (i8sak was originally
  10896. by Sebastien Lorquet).
  10897. - wireless/ieee802154/libmac: IEEE 802.15.4 MAC library.
  10898. - wireless/wext: Add drivers_wext from the WPA supplicant; Integrate
  10899. into NSH. From Simon Piriou.
  10900. * System Utilities (apps/system)
  10901. - apps/system/dhcpc: Add a command to renew or establish a lease on an
  10902. IPv4 address.
  10903. - apps/system/ntpc: Add a command to start or stop the NTPC daemon.
  10904. - apps/system/ramtest: Make stacksize and priority conigurable.
  10905. * Platform-Specific Support (apps/platform)
  10906. - apps/platform: Create gnu/ subdirectory that contains the one and
  10907. only GNU C++ initialization function. Remove all other C++
  10908. initialization functions.
  10909. Bugfixes. Only the most critical bugfixes are listed here (see the
  10910. ChangeLog for the complete list of bugfixes and for additional, more
  10911. detailed bugfix information):
  10912. * Core OS:
  10913. - Priority inheritance: When CONFIG_SEM_PREALLOCHOLDERS==0, there is
  10914. only a single, hard-allocated holder structure. This is problem
  10915. because in sem_wait() the holder is released, but needs to remain in
  10916. the holder container until sem_restorebaseprio() is called. The call
  10917. to sem_restorebaseprio() must be one of the last things the
  10918. sem_wait() does because it can cause the task to be suspended. If in
  10919. sem_wait(), a new task gets the semaphore count then it will fail to
  10920. allocate the holder and will not participate in priority
  10921. inheritance. This fix is to add two hard-allocated holders in the
  10922. sem_t structure: One of the old holder and one for the new holder.
  10923. - Priority inheritance: sem_holder sem_findholder missing
  10924. inintalization of pholder. sem_findholder would fail and code
  10925. optimization covered this up. From David Sidrane.
  10926. - Partial Fix priority inheritance CONFIG_SEM_PREALLOCHOLDERS=0. From
  10927. David Sidrane.
  10928. - Priority inheritance: sem_boostholderprio prevent overrun of
  10929. pend_reprios. The second case rtcb->sched_priority <=
  10930. htcb->sched_priority did not check if there is sufficient space in
  10931. the pend_reprios array. From David Sidrane.
  10932. - lp_worker: Guard from pend_reprios overflow. From David Sidrane.
  10933. - Priority inheritance: Fixes improper restoration of base_priority in
  10934. the case of CONFIG_SEM_PREALLOCHOLDERS=0. The call to
  10935. sem_restorebaseprio_task context switches in the
  10936. sem_foreachholder(sem, sem_restoreholderprioB, stcb); call prior to
  10937. releasing the holder. So the running task is left as a holder as is
  10938. the started task. Leaving both slots filled thus failing to perform
  10939. the boost/or restoration on the correct tcb. This PR fixes this by
  10940. releasing the running task slot prior to reprioritization that can
  10941. lead to the context switch. To faclitate this, the interface to
  10942. sem_restorebaseprio needed to take the tcb from the holder prior to
  10943. the holder being freed. In the failure case where sched_verifytcb
  10944. fails it added the overhead of looking up the holder. There is also
  10945. the additional thunking on the foreach to get from holer to
  10946. holder->tcb. An alternate approach could be to leve the interface
  10947. the same and allocate a holder on the stack of sem_restoreholderprioB
  10948. copy the sem's holder to it, free it as is done in this pr and
  10949. then pass that address sem_restoreholderprio as the holder. It could
  10950. then get the holder's tcb but we would keep the same sem_findholder
  10951. in sched_verifytcb. From David Sidrane.
  10952. - Priority inheritance: Fixes improper restoration of base_priority.
  10953. From David Sidrane.
  10954. - sem_holder: Indexing error. From David Sidrane.
  10955. if (sem->holder[0].htcb != NULL || sem->holder[**1**].htcb != NULL)
  10956. - realloc(): When realloc() has to fall back to calling malloc(), size
  10957. including overhead was being provided to malloc(), causing a slightly
  10958. larger allocation than needed. Noted by initialkjc@yahoo.com.
  10959. - scheduler: Fix tg_flags check with GROUP_FLAG_NOCLDWAIT. From Masayuki
  10960. Ishikawa.
  10961. - scheduler: Fix CHILD_FLAG_EXITED in include/nuttx/sched.h. From
  10962. Masayuki Ishikawa.
  10963. - binfmt/elf: Fix offset value when calling elf_read() in
  10964. elf_symname(). From Masayuki Ishikawa.
  10965. - binfmt/elf: Fix offset value when calling elf_read() in
  10966. elf_sectname(). From Masayuki Ishikawa.
  10967. - There can be a failure in IOB allocation to some asynchronous
  10968. behavior caused by the use of sem_post(). Consider this scenario:
  10969. (1) Task A holds an IOB. There are no further IOBs. The value of
  10970. semcount is zero. Task B calls iob_alloc(). Since there are not
  10971. IOBs, it calls sem_wait(). The value of semcount is now -1. (2)
  10972. Task A frees the IOB. iob_free() adds the IOB to the free list and
  10973. calls sem_post() this makes Task B ready to run and sets semcount to
  10974. zero NOT 1. There is one IOB in the free list and semcount is zero.
  10975. When Task B wakes up it would increment the sem_count back to the
  10976. correct value. (3) But an interrupt or another task runs occurs
  10977. before Task B executes. The interrupt or other tak takes the IOB off
  10978. of the free list and decrements the semcount. But since semcount is
  10979. then < 0, this causes the assertion because that is an invalid state
  10980. in the interrupt handler. So I think that the root cause is that
  10981. there the asynchrony between incrementing the semcount. This change
  10982. separates the list of IOBs: Currently there is only a free list of
  10983. IOBs. The problem, I believe, is because of asynchronies due
  10984. sem_post() post cause the semcount and the list content to become out
  10985. of sync. This change adds a new 'committed' list: When there is a
  10986. task waiting for an IOB, it will go into the committed list rather
  10987. than the free list before the semaphore is posted. On the waiting
  10988. side, when awakened from the semaphore wait, it will expect to find
  10989. its IOB in the committed list, rather than free list. In this way,
  10990. the content of the free list and the value of the semaphore count
  10991. always remain in sync.
  10992. - binfmt: Fix .dtor memory allocation. From Masayuki Ishikawa.
  10993. * File System/Block and MTD Drivers:
  10994. - SmartFS: If whence is SEEK_END, the file offset shall be set to the
  10995. size of the file plus offset. Noted by eunb.song@samsung.com.
  10996. - mtd/progmem: Fix incorrect target address calculation.
  10997. progmem_read/write() is incorrectly calculating the target address,
  10998. expecting the offset argument is given in a block number. This is
  10999. completely wrong and as a result invalid flash region is accessed.
  11000. Byte-oriented read/write interfaces of mtd device accept the target
  11001. address in a byte offset, not a block number. From Heesub Shin.
  11002. - procfs: Fix wrong member IDs are displayed when 'cat
  11003. /proc/<pid>/group/status'. From Nobutaka Toyoshima.
  11004. - procfs: Fix incorrect uptime with CONFIG_SYSTEM_TIME64. From
  11005. Masayuki Ishikawa.
  11006. - vfs/poll: round timeout up to next full tick. Calling poll() with
  11007. timeout less than half tick (thus MSEC2TICK(timeout) => 0) caused
  11008. returning error with EAGAIN. Instead of rounding timeout down, value
  11009. should be rounded up. Open Group spec for poll says:
  11010. "Implementations may place limitations on the granularity of timeout
  11011. intervals. If the requested timeout interval requires a finer
  11012. granularity than the implementation supports, the actual timeout
  11013. interval will be rounded up to the next supported value." From Jussi
  11014. Kivilinna.
  11015. - mtd/config: erase block between block read and write. From Juha
  11016. Niskanen.
  11017. - mtd: Build RAMTRON and AT45DB drivers only if selected. From Juha
  11018. Niskanen.
  11019. - mtd/config: Fix byte read interface test. From Juha Niskanen.
  11020. - mtd: Fix some unallocated and NULL pointer issues. rwb->wrflush and
  11021. rwb->wrmaxblocks in rwbuffer could get unallocated values from
  11022. ftl_initialize() in some configurations. Also fixes related assert:
  11023. up_assert: Assertion failed at file:rwbuffer.c line: 643
  11024. that can happen with the following configuration:
  11025. CONFIG_FTL_WRITEBUFFER=y
  11026. CONFIG_DRVR_WRITEBUFFER=y
  11027. # CONFIG_FS_WRITABLE is not set
  11028. These problems are caused by CONFIG variable differences between the
  11029. buffer layers. TODO: This is not a perfect solution. readahead
  11030. support has similar issues. From Juha Niskanen.
  11031. - net procfs: Fix buffer corruption and refactor netdev_statistics.c.
  11032. From Masayuki Ishikawa.
  11033. - FAT: Fix 'Missing unlock' in fs_fat32.c. From Masayuki Ishikawa.
  11034. - VFS fdopen: Add missing file stream flags clearing. Clear file
  11035. stream structure regardless of config options. Structure clearing is
  11036. needed as previous use of stream list entry might leave fs_flags
  11037. set. From Harri Luhtala.
  11038. - mtd/smart: Fix use of uninitialized variable. From Jussi Kivilinna.
  11039. - mtd/w25.c: Enable short delay after sector/chip erase. From Jussi
  11040. Kivilinna.
  11041. - mtd/config: Add some error checks for I/O errors. From Juha
  11042. Niskanen.
  11043. * Graphics/Graphic Drivers:
  11044. - net procfs: Some long lines were being generated that cause buffer-
  11045. related problems and corrupted output.
  11046. * Networking/Network Drivers:
  11047. - Fixed wrong assert on udp dgram send. From Pascal Speck.
  11048. - TCP/IPv6: Fix a compile issue when IPv6, but not IPv4 is enabled.
  11049. - net/socket/accept: Fix building with CONFIG_NET_LOCAL_STREAM. From
  11050. Jussi Kivilinna.
  11051. - Argument of network device IOCTL should be unsigned long, just as
  11052. will all other IOCTL methods.
  11053. - net/socket: Fix cloning of local and raw sockets. From Jussi
  11054. Kivilinna.
  11055. - TCP: Wait for 3-Way Handshare before accept() returns. From Simon
  11056. Piriou.
  11057. - TCP: Send RST if application 'unlistens()' before we complete the
  11058. connection sequence.
  11059. - TCP: An RST received during the 3-way handshake requires a little
  11060. more clean-up.
  11061. - IPv6: Fix net_ipv6_pref2mask(). From Masayuki Ishikawa.
  11062. - network IOCTL commands: The only place in net/netdev/netdev_ioctl.c
  11063. where the interface state should change is for SIOCSIFFLAGS. The
  11064. other ones .. SIOCSIFADDR, SIOSLIFADDR, SIODIFADDR .. should not
  11065. change the link state. From Sebastien Lorquet.
  11066. - TCP: Fix tcp_findlistner() in dual stack mode. From Masayuki
  11067. Ishikawa.
  11068. * Common Drivers:
  11069. - Fix as5048b by adding missing frequency parameter. From Andreas
  11070. Bihlmaier.
  11071. - multiple fixes in nrf24l01 driver: (1) signal POLLIN if there is
  11072. already data in the FIFO, (2) send ETIMEDOUT to userspace after 2
  11073. seconds if TX IRQ was not received, (3) handle FIFO overflow, (4)
  11074. handle invalid pipes/empty FIFO, and (5) multiple cosmetics (missing
  11075. static, duplicate define, missing \n). From Leif Jakob.
  11076. - input/mxt: Prevent overriding i2c transfer return value.
  11077. put_reg/get_reg function was overriding i2c transfer error code with
  11078. i2creset return value, that lead to OK status although actual
  11079. transfer failed. From Juha Niskanen.
  11080. - drivers/audio/wm8904: WM8904 has same problem as that fixed by Juha
  11081. Niskanen in the MaxTouch driver.
  11082. - UART 16550: Missing left parenthesis in function prototype. This is
  11083. Bitbucket Issue #41.
  11084. - USBMSC: Fix a wrong lun number issue. From Masayuki Ishikawa.
  11085. - drivers/i2c: Fix compile issues if CONFIG_DISABLE_PSEUDOFS_OPERATIONS
  11086. is enabled.
  11087. - drivers/serial: I discovered a problem in the file
  11088. drivers/serial/serial.c concerning the function uart_close. In the
  11089. case that a serial device is opened with the flag O_NONBLOCK the
  11090. function uart_close blocks until all data in the buffer is
  11091. transmitted. The function close called on an handle opened with
  11092. O_NONBLOCK should not block. The problem occurred with a CDC/ACM
  11093. device. From Stefan Kolb.
  11094. - drivers: Fix some bad NULL checks. From Juha Niskanen.
  11095. - drivers: Rename newly introduced up_i2creset to I2C_RESET. From
  11096. Juha Niskanen.
  11097. - drivers/bch: BCH character driver bch_ioctl() always returns -ENOTTY
  11098. for DIOC_GETPRIV command. It should returns OK if DIOC_GETPRIV
  11099. command succeeds. From EunBong Song.
  11100. - Replace sprintf() with snprintf() in pipe.c. From Nobutaka Toyoshima.
  11101. - drivers/bch: Fix 'Missing Unlock' in bchdev_driver.c. From Masayuki
  11102. Ishikawa.
  11103. - button_upper: Fix interrupt enabling for poll-events. From Jussi
  11104. Kivilinna.
  11105. - drivers/{sensors,usbmisc}: Fix uninitialized I2C frequency. From
  11106. Juha Niskanen.
  11107. * ARM:
  11108. - Set EABI stack alignment for all ARM architectures (remove OABI
  11109. code). From David Cabecinhas.
  11110. - Remove redundant interrupt stack coloring and OABI code. From David
  11111. Cabecinhas.
  11112. - Fix off-by-one interrupt stack allocation in 8-byte aligned
  11113. architectures. From David Cabecinhas.
  11114. * ARMv6-M:
  11115. - CONFIG_DEBUG_HARDFAULT should be available for Cortex-M0 too.
  11116. * Microchip/Atmel SAM3/4 Drivers:
  11117. - SAM3/4: Fixed configurations for TWI master. Obviously an
  11118. incomplete port from SAMA5.
  11119. * Microchip/Atmel SAMv7 Drivers:
  11120. - SAMV7: Watchdog: Fix Forbidden Window Value. According the Datasheet
  11121. the WDD Value is the lower bound of a so called Forbidden Window and
  11122. to disable this we have to set the WDD Value greater than or equal to
  11123. the WDV Value. This seems to be a bug in the datasheet. It looks
  11124. like we have to set it to a greater value than the WDV to really
  11125. disable this Thing. When triggering the Watchdog faster than the
  11126. (very slow) clock source of the Watchdog fires, this Forbidden Window
  11127. Feature resets the System if WDD equals to WDV. This Changeset
  11128. disables the Forbidden Window by setting the WDD Value to the Maximum
  11129. (0xfff) Value possible. From Frank Benkert.
  11130. - SAMV7 EMAC: Add conditional logic to account the fact that the
  11131. SAMV71 has 6 rather than 3 queues after version 1. From Ian McAfee.
  11132. * NXP/Freescale Kinetis Drivers:
  11133. - Kinetis: Fixed GPIO _PIN_OUTPUT_LOWDRIVE swapped with
  11134. _PIN_OUTPUT_OPENDRAIN. From David Sidrane.
  11135. - Ensure interrupts are back on BEFORE running code dependent on
  11136. clock_systimer. From David Sidrane.
  11137. - Kinetis k66, k64, k60, k40, k20: Pin mux configure all I2C signals as
  11138. Open Drain. The output structure of the GPIO for I2C needs to be
  11139. open drain. When left at the default, one can observe on a scope the
  11140. slave contending with the push-pull during the ACK. From David
  11141. Sidrane.
  11142. - Kinetis K66: Fixed TMP2_CH1 definition. From David Sidrane.
  11143. - Kinetis K66: Define ALT1 to match ref manual. From David Sidrane.
  11144. - Kinetis K66: GPIO and pin mux cleanup. From David Sidrane.
  11145. - Kinetis ADC: Various corrections and updates. From David Sidrane.
  11146. * NXP/Freescale LPC43xx:
  11147. - Add missing PINCONF_INBUFFER in several places of
  11148. lpc4310203050_pinconfig.h. From Andreas Bihlmaier.
  11149. - Fix logic in preprocessor checks and correct arguments to
  11150. lpc43_pin_config initialization. From Andreas Bihlmaier.
  11151. * NXP/Freescale LPC43xx Drivers:
  11152. - Fix logic error in lpc43_adc. From Andreas Bihlmaier.
  11153. - Use correct macro for irqid (fortunately both point to
  11154. LPC43_IRQ_EXTINT+18). From Andreas Bihlmaier.
  11155. - Actually write modified value to register. From Andreas Bihlmaier.
  11156. - Increase number of supported PWM channels from 4 to 6. From Andreas
  11157. Bihlmaier.
  11158. * Silicon Labs EFM32 Drivers:
  11159. - EFM32 I2C: Fix timeout calculation. From Masayuki Ishikawa.
  11160. * STMicro STM32:
  11161. - As discovered by dcabecinhas. This fix assume the 8 byte alignment
  11162. options for size stack size or this will overwrite the first word
  11163. after TOS. See
  11164. https://github.com/PX4/Firmware/issues/6613#issuecomment-285869778.
  11165. From David Sidrane.
  11166. - STM32 F7: In stm32_allocateheap.c There are 5 not 4 configurations.
  11167. From David Sidrane.
  11168. * STMicro STM32 Drivers:
  11169. - STM32, STM32 F7, STM32 L4: OTG host drivers: Do not do data toggle
  11170. if interrupt transfer is NAKed. Suggested by webbbn@gmail.com.
  11171. - Save elapsed time before handling I2C in stm32_i2c_sem_waitstop().
  11172. This change follows the same logic as in previous fix to
  11173. stm32_i2c_sem_waitdone(). It is possible that a context switch
  11174. occurs after I2C registers are read but before elapsed time is saved
  11175. in stm32_i2c_sem_waitstop(). It is then possible that the registers
  11176. were read only once with "elapsed time" equal 0. When scheduler
  11177. resumes this thread it is quite possible that now "elapsed time" will
  11178. be well above timeout threshold. In that case the function returns
  11179. and reports a timeout, even though the registers were not read
  11180. "recently". Fix this by inverting the order of operations in the loop
  11181. - save elapsed time before reading registers. This way a context
  11182. switch anywhere in the loop will not cause an erroneous "timeout"
  11183. error. From Freddie Chopin.
  11184. - STM32, STM32 F7, and STM32 L4: Clone Freddie Chopin's I2C change to
  11185. similar STM32 I2C drivers. From David Sidrane.
  11186. - STM32: OTG host implementations of stm32_in_transfer() must obey the
  11187. polling interval for the case of isochronous and interrupt endpoints.
  11188. - STM32: Fix erase sector number for microcontrolers with more than 11
  11189. sectors. Erase a sector from the second bank cause the bit 4 of SNB
  11190. being set but never unused, so trying to erase a sector from the first
  11191. bank was actually eraseing a sector from the second bank. From José
  11192. Roberto de Souza.
  11193. - STM32: Make up_progmem thread safe. Writing to a flash sector while
  11194. starting the erase of other sector have a undefined behavior so lets
  11195. add a semaphore and synchronize access to Flash registers. But for
  11196. the semaphore to work it needs to be initialized so each board needs
  11197. call stm32_flash_initialize() on initialization, so to avoid runtime
  11198. problems it is only using semaphore and making it thread safe if
  11199. initialized, after all boards starts to call stm32_flash_initialize()
  11200. we can remove the boolean and the check. From José Roberto de Souza.
  11201. - STM32: Add workaround for flash data cache corruption on
  11202. read-while-write. This is a known hardware issue on some STM32 see
  11203. the errata of your model and if you make use of both memory banks you
  11204. should enable it. From José Roberto de Souza.
  11205. - STM32 Flash fixes. From José Roberto de Souza.
  11206. - STM32 Flash: Missing unlock on F1 HSI off path. From David Sidrane.
  11207. - STM32 F4 I2C: I needed to use DS3231, I remember that in past it
  11208. worked ok, but now for stm32f4xx is used another driver (chip
  11209. specific, stm32f40xxx_i2c.c) and DS3231 driver doesn't work. After
  11210. investigating a problem I found that I2C driver (isr routine) has a
  11211. few places there it sends stop bit even if not all messages are
  11212. managed. So, e.g., removing stm32_i2c_sendstop (#1744) and adding
  11213. stm32_i2c_sendstart after data reading helps to make DS3231 working.
  11214. From Alexander Oryshchenko; verified by David Sidrane.
  11215. - STM32 F7 Serial: Serial fix for dropped data: (1) Revert the
  11216. inherited dma bug from the stm32. see
  11217. https://bitbucket.org/nuttx/nuttx/commits/df9ae3c13fc2fff2c21ebdb098c520b11f43280d
  11218. for details. And (2) Most all CR1-CR3 settings can not be configured
  11219. while UE is true. Threfore we make all operation atomic and disable
  11220. UE and restore it's originalstate on exit. From David Sidrane.
  11221. - STM32 L1: Fix IWDG and WWDG debug mode stop for STM32L15XX. From
  11222. Juha Niskanen.
  11223. - STM32 F7: Fix UART7 and UART8 IFLOWCONTROL options. From Jussi
  11224. Kivilinna.
  11225. - STM32 F7: Add warning for RXDMA + IFLOWCONTROL combination.
  11226. Combination of RXDMA + IFLOWCONTROL does not work as one might
  11227. expect. Since RXDMA uses circular DMA-buffer, DMA will always keep
  11228. reading new data from USART peripheral even if DMA buffer underruns.
  11229. Thus this combination only does following: RTS is asserted on USART
  11230. setup and deasserted on shutdown and does not perform actual RTS
  11231. flow-control. Data loss can be demonstrated by doing long up_mdelay
  11232. inside IRQ critical section and feeding data to RXDMA+IFLOWCONTROL
  11233. UART. From Jussi Kivilinna.
  11234. - STM32 F7 Serial: Do not stop processing input in SW flow-control
  11235. mode. From Jussi Kivilinna.
  11236. - STM32 L4 DMA: Correct bad channel definition. From Sebastien Lorquet.
  11237. - STM32 F7: Warn if no DMA2 configured when using ADC with DMA. Also
  11238. correct ADC channel numbers that DMA callback passes to upper half
  11239. driver. From Juha Niskanen.
  11240. - STM32 F7 ADC: Do not override ADCPRE_DIV when measuring
  11241. internal voltage. From Juha Niskanen.
  11242. - STM32 L4: Don't think these chips have DPFPU, DTCM or ITCM. From
  11243. Juha Niskanen.
  11244. - STM32 F7 Flash: macro naming errors, there is no FLASH_CONFIG_F for
  11245. F7. From Juha Niskanen.
  11246. - STM32 L4: stm32l4x6xx_pinmap: Update I2C4 and DCMI pins. From Juha
  11247. Niskanen.
  11248. - STM32 L4: stm32l4_i2c: change wrong macro to CONFIG_I2C_POLLED. From
  11249. Juha Niskanen.
  11250. - Fix STM32F7 I2C interrupt handler. From Jussi Kivilinna.
  11251. - STM32: Serial Allow configuring Rx DMA buffer size. From David
  11252. Sidrane.
  11253. - STM32 CAN: I had the problem that the transmit FIFO size (= actual
  11254. elements in FIFO) was slowly increasing over time, and was full after
  11255. a few hours. The reason was that the code hit the line
  11256. "canerr("ERROR: No available mailbox\n");" in stm32_cansend, so
  11257. can_xmit thinks it has sent the packet to the hardware, but actually
  11258. has not. Therefore the transmit interrupt never happens which would
  11259. call can_txdone, and so the size of the FIFO size does not decrease.
  11260. The reason why the code actually hit the mentioned line above, is
  11261. because stm32can_txready uses a different (incomplete) condition than
  11262. stm32can_send to determine if the mailbox can be used for sending,
  11263. and thus can_xmit forwards the packet to stm32can_send.
  11264. stm32can_txready considered mailboxes OK for sending if the mailbox
  11265. was empty, but did not consider that mailboxes may not yet be used if
  11266. the request completed bit is set - stm32can_txinterrupt has to
  11267. process these mailboxes first. Note that I have also modified
  11268. stm32can_txinterrupt - I removed the if condition, because the CAN
  11269. controller retries to send the packet until it succeeds. Also if the
  11270. condition would not evaluate to true, can_txdone would not be called
  11271. and the FIFO size would not decrease also. From Lederhilger Martin.
  11272. - STM32 Serial: Fix freezing serial port. Serial interrupt
  11273. enable/disable functions do not disable interrupts and can freeze
  11274. device when serial interrupt is received while execution is at those
  11275. functions. Trivially triggered with two or more threads write to
  11276. regular syslog stream and to emergency stream. In this case, freeze
  11277. happens because of mismatch of priv->ie (TXEIE == 0) and actually
  11278. enabled interrupts in USART registers (TXEIE == 1), which leads to
  11279. unhandled TXE interrupt and causes interrupt storm for USART. From
  11280. Jussi Kivilinna.
  11281. - STM32 I2C: Make private symbols static. From Juha Niskanen.
  11282. - STM32 L4 GPIO: Put back EXTI line source selection. From Juha
  11283. Niskanen.
  11284. - STM32 L4 RTC: Store RTC MAGIC to backup reg, not to address zero.
  11285. From Juha Niskanen.
  11286. * STMicro STM32 Boards:
  11287. - Disable serial console on stm32f103-minimum usbnsh example project
  11288. config. Devices enumerate after this change. From Bob Ryan.
  11289. - Nucleo-144: Default for choice in Kconfig was not one of the
  11290. possible choices.
  11291. - Nucleo-F4X1RE User LEDS: Issue #51 reports compilation problems with
  11292. stm32_userled.c. Reported by Gappi92.
  11293. * TI Tiva Drivers:
  11294. - Tiva I2C: Correct an error in conditional compilation.
  11295. - Tiva SSI: Resolves issue 52 'Copy-Paste error in
  11296. tiva_ssibus_initialize()' submitted by Aleksandr Kazantsev.
  11297. * C Library/Header Files:
  11298. - C Library vsnprintf(): Fix precision for string formatting. Fixes
  11299. use of format precision to truncate input string. From Jussi
  11300. Kivilinna.
  11301. - C Library vsnprintf(): If size is zero, then vsnprintf() should
  11302. return the size of the required buffer without writing anything.
  11303. From Jussi Kivilinna.
  11304. - C Library netdb: in dns_query_callback, ret != -EADDRNOTAVAIL
  11305. condition consumes error returns including EAGAIN in this case,
  11306. dns query retransmission doesn't work. From Ritajina.
  11307. - C Library netdb: Fix time info in lib_dnscache.c. From Masayuki
  11308. Ishikawa.
  11309. - C Library netdb: Fix bugs in lib_gethostbynamer.c. This fix sets
  11310. h_name in struct hostent returned by gethostbyname(). From Masayuki
  11311. Ishikawa.
  11312. - C Library Defect Workaround: replace '%6.6u' format with an
  11313. equivalent '%06u'. From Tomasz Wozniak.
  11314. * Tools
  11315. - Fix mksyscall host binary name. From Alan Carvalho de Assis.
  11316. * Applications (apps/)
  11317. - Fix some calls to task_create(): argv[0] is the first parameter, not
  11318. the name of the task.
  11319. - Bitbucket Issue 5: I found an unexpected behavior in apps/
  11320. configuration generation. Adding external symbolic link in apps/
  11321. directory and using Make.defs for Kconfig generation, Kconfig file
  11322. has a wrong path in the source argument. It contains original dir
  11323. path outside of the source tree instead path to sub-directory in
  11324. apps/. The problem is connected with make/system symbolic link path
  11325. resolution. Corrected by a patch submitted by Artur Madrzak with
  11326. Issue 5.
  11327. - apps/: Make more globals static to avoid name clashes. From Juha
  11328. Niskanen.
  11329. * NSH: apps/nshlib:
  11330. - NSH library: In nsh_argexand(), if CONFIG_NSH_ARGCAT is defined but
  11331. CONFIG_NSH_CMDPARMS defined and/or CONFIG_DISABLE_ENVIRON not
  11332. defined, then there is a situation that causes an infinite loop in
  11333. the parser. Noted by Freddie Chopin.
  11334. - NSH library: Fix building when CONFIG_NET_USRSOCK enabled with other
  11335. link-layers. From Jussi Kivilinna.
  11336. - NSH library: Fix some warnings about integer/pointer casts of
  11337. different sizes (probably only effects 64-bit simulation).
  11338. - NSH library: Fix open flags in nsh_codeccmd.c. From Masayuki
  11339. Ishikawa.
  11340. - I need to look at the registers that are at or around 0xe000ef90.
  11341. Using mw and xd, I see that nsh does not support pointers greater
  11342. than 0x7fffffff. A quick look at the source shows that the pointers
  11343. for those two commands are set with calls to strtol() rather than
  11344. strtoul(). Changing the two pointer-setting instances to strtoul()
  11345. fixes the problem, at least for my architecture/config. From Ian
  11346. McAfee.
  11347. - NSH library: Fix a resource leak in cmd_hexdump(). From Nobutaka
  11348. Toyoshima.
  11349. * Examples/Tests: apps/examples:
  11350. - apps/examples/hidkbd: Remove call to arch_usbhost_initialize().
  11351. That is violation of the OS interfacing rules and will no longer be
  11352. supported. USB host should be initialized as part of the normal
  11353. board bring-up logic as with any other devices and should not involve
  11354. illegal calls from applications into the OS.
  11355. - apps/examples/usbterm: Removed because it is not very useful and
  11356. because it can be configured to use an illegal call into the OS.
  11357. - examples/mm: Fix Makefile. Built-in was not being registered.
  11358. - examples/hidkbd: Add some missing configuration settings.
  11359. - examples/random: Avoid stack overflows. From Juha Niskanen.
  11360. - examples/nettest: Fix an error in pre-processor expression.
  11361. - examples/mtdpart: Prevent part array overflow. mtdpart examples
  11362. create partitions and allocate from 1 index not a 0 index to part[]
  11363. array. This cause buffer overflow for part array. This change fixes
  11364. this problem. From EunBong Song.
  11365. - examples/can: Fix can example app to print data when
  11366. CONFIG_EXAMPLES_CAN_READ is defined. From Alan Carvalho de Assis.
  11367. * Network Utilities: apps/netutils:
  11368. - Not a clean fix, but at least makes DHCP working with
  11369. CONFIG_NETDEV_MULTINIC. From Andreas Bihlmaier.
  11370. - Ensure netlib will not be broken when setip will not bring the
  11371. network up anymore. From Sebastien Lorquet.
  11372. * CAN Utilities: apps/canutils:
  11373. - Fix libcanard github download link to get it compiling correctly.
  11374. From Alan Carvalho de Assis.
  11375. - Fix to use the new canardInit() function. From Alan Carvalho de
  11376. Assis.
  11377. * System Utilities (apps/system)
  11378. - system/dhcpc: Add missing argument of fprintf.
  11379. * Tools (apps/tools):
  11380. - The dedicated windows tool at tools/mkkconfig.bat uses $APPSDIR,
  11381. which is not a windows shell variable, and is left uninitialized, but
  11382. in fact should be the current directory. From Sebastien Lorquet.
  11383. NuttX-7.22 Release Notes
  11384. ------------------------
  11385. The 122nd release of NuttX, Version 7.22, was made on September 9, 2017,
  11386. and is available for download from the Bitbucket.org website. Note
  11387. that release consists of two tarballs: nuttx-7.22.tar.gz and
  11388. apps-7.22.tar.gz. These are available from:
  11389. https://bitbucket.org/nuttx/nuttx/downloads
  11390. https://bitbucket.org/nuttx/apps/downloads
  11391. Both may be needed (see the top-level nuttx/README.txt file for build
  11392. information).
  11393. Additional new features and extended functionality:
  11394. * Core OS:
  11395. - pthreads: Move functions from sched/pthreads to libc/pthreads. These
  11396. functions just coordinate other OS interface calls but are not a
  11397. fundamental OS interfaces and, hence, do not belong within the OS:
  11398. pthread_yield(), pthread_once(), pthread_cond_init(),
  11399. pthread_cond_destroy(), pthread_barrier_init(),
  11400. pthread_barrier_destroy(), and pthread_barrier_wait().
  11401. - Add power-related debug output.
  11402. * File Systems/Block and MTD Drivers
  11403. - RAMTRON: Add support for splitting block writes in chunks. Some
  11404. Re-RAMs like MB85AS4MT have a write buffer size limitation. From
  11405. Boris Astardzhiev.
  11406. - MTD: Add driver for Macronix QuadSPI flash memory. From Simon Piriou.
  11407. * Graphics/Display Drivers:
  11408. - SSD1306 LCD Driver: (1) Separate lcd_dev_s setup to separate object.
  11409. g_oleddev takes 1 KiB because framebuffer and was allocated to .data
  11410. section because of lcd_dev_s function pointer setup. Move lcd_dev_s
  11411. setup out, so that g_oleddev goes to .bss and avoid wasting ROM. (2)
  11412. Fix memory corruption caused by ssd1306_getrun(). ssd1306_getrun was
  11413. writing one extra byte (with value 0) past target buffer when pixlen
  11414. is multiple of 8. When pixlen was not multiple of 8, last byte of
  11415. buffer was fully cleared, instead of modifying only the (pixlen % 8)
  11416. bits of last byte. (3) Add support for board power control.
  11417. ThingseeOne has regulator for controlling display power on/off. Patch
  11418. adds support for board based power control to SSD1306 driver. (4) Add
  11419. DD-12864WO-4A/SSD1309 support to SSD1306 driver. From Jussi Kivilinna.
  11420. * Networking/Network Drivers:
  11421. - Sockets: Support listening sockets in the getsockname() function.
  11422. From Roland Takacs.
  11423. - IP Forwarding: At the IP level, network may be configured to forward
  11424. IP packets that are not destined for the target through a different
  11425. network device, decrementing the packet TTL.
  11426. - IP forwarding: Add optional support to forward broadcast and
  11427. multicast packets. Add missing ICMP support.
  11428. - ICMPv6: Add 6LoWPAN and IP forwarding support.
  11429. - ICMPv6: Support source link-layer address option in RA. From
  11430. Masayuki Ishikawa.
  11431. - TUN Driver: Add definitions that will permit TUN-only networking.
  11432. - Socket I/F: Created a socket interface used to provide socket support.
  11433. Each address family has an interface that describes how to perform
  11434. socket operations on that address family. Currently only a couple of
  11435. methods are defined in the socket interface call table
  11436. - Remove CONFIG_NET_MULTILINK. This increases code size by a little,
  11437. but greatly reduces the complexity of the network code.
  11438. - Network procfs: Add support for routing tables at proc/net/route.
  11439. - Network procfs: Add support for network procfs statistics for the
  11440. PF_IEEE802154 address family.
  11441. - Network Driver Backlog: Remove driver based backlog support. This
  11442. affects the entire network, but is used by only one driver. The only
  11443. supported RX backlog is now via common read-ahead buffering.
  11444. * Wireless Networking/Wireless Drivers:
  11445. - IEEE 802.15.4 MAC / MRF24J60 Driver: Extensive updates for
  11446. association/beacon-enabled networks. From Anthony Merlino.
  11447. - IEEE 802.15.4 MAC / MRF24J60 Driver: Hook in setdevmode from newly
  11448. added radio attribute setting. From Anthony Merlino.
  11449. - IEEE 802.15.4 MAC: Supports get request for coordinator address. From
  11450. Anthony Merlino.
  11451. - IEEE 802.15.4 MAC: Notify radio layer of changes in devmode. From
  11452. Anthony Merlino.
  11453. - IEEE 802.15.4: Add special attribute that can be used to perform a
  11454. regdump of the radio. From Anthony Merlino.
  11455. - IEEE 802.15.4 loopback driver: Better simulation addressing: short
  11456. and extended addresses, panid, and IP address conversion.
  11457. - IEEE 802.15.4 Network Driver: Add logic to setup the network mask,
  11458. update the MAC-based IPv6 addressing when the network is brought up.
  11459. The idea is that addressing changes are supposed to occur only while
  11460. the network is down but won't take effect until the network is up
  11461. again.
  11462. - PktRadio: Add an infrastructure to support networking on generic
  11463. (non-IEEE 802.15.4) packet radios.
  11464. - PktRadio Loopback Driver: Add a PktRadio loopback network driver to
  11465. testing testing with 6LoWPAN and PktRadios on the simulator.
  11466. - Spirit Network Driver: The Spirit1 radio (SPSGRF-915) is the first
  11467. generic PktRadio Network driver. Based on STMicros STack packets
  11468. with 8-bit addressing. We need to use the STack packets in order to
  11469. provide the source address and automatic ACKing.
  11470. - Network procfs: Fix so that PktRadio address are shown correctly.
  11471. - Networking: Add support for some packet radio IOCTL commands.
  11472. - 6LoWPAN: Added handling for TCP and ICMPv6 packets.
  11473. - 6LoWPAN: Add configurable support for 6LoWPAN star topology. With
  11474. this change, the endpoints which are the 'points' of the star will
  11475. forward all traffic to the coordinator. The coordinator is assumed to
  11476. be the 'hub' of the star. This function also used IPv6 forwarding.
  11477. - 6LoWPAN: The original, Contiki-based design used only a single buffer
  11478. for reassemblying larger packets. This could be a problem issue for
  11479. hub configurations which really need the capability concurrently
  11480. reassemble multiple incoming streams concurrently. These was also a
  11481. design issue in that the reassembly buffer could be corrupted by
  11482. outgoing packets. The design was extended to support multiple
  11483. reassembly buffers, each associated with the reassembly tag and source
  11484. address. This assures that there can be be no corruption of the
  11485. reassembly once it has started.
  11486. - 6LoWPAN PktRadio: Now radio agnostic. All IEEE 802.15.4 dependencies
  11487. have been removed or isolated so that 6LoWPAN can be used with any
  11488. kind of packet radio. This involved things like: (1) generalizing
  11489. the representation of radio MAC meta-data, (2) changes to handle
  11490. variable-length radio addresses, (3) removal of all explicit IEEE
  11491. 802.15.4 types, references, and interfaces, (4) a new radio driver
  11492. interface to return 'capabilities' of the driver.
  11493. - ICMPv6: Update so that ICMPv6 can be used with 6LoWPAN.
  11494. - IPv6 Neighbor: Update table format to support IEEE 802.15.4 MAC
  11495. addresses.
  11496. - PF_IEEE802154 Address Family: Add support for the PF_IEEE802154
  11497. address family socket type. This socket is similar to the PF_PACKET,
  11498. "raw" packet address family except that: (1) it supports only
  11499. SOCK_DRAM, not SOCK_RAW, and (2) works only with IEEE 802.15.4
  11500. MAC-based radios. This address family permits simple access to IEEE
  11501. 802.15.4 IOCTLs and frame-level network transfers.
  11502. * Other Common Device Drivers:
  11503. - Dynamically configurable USB composite devices: We developed a huge
  11504. Changeset over a year ago to make USB Composite configuration
  11505. dynamical and be able to instantiate the CDC/ACM multiple times inside
  11506. this device. We use this feature to switch between one in typical USB MSC + CDC/ACM configuration and up to three CDCACMs dynamically.
  11507. I've changed the interface for some USB-Functions to receive also the
  11508. dynamic configuration. From Frank Benkert.
  11509. - Franks' change remained on a branch until all issues were resolved.
  11510. the current version in Master is complete and ready for use.
  11511. - power: battery_charger: Add ioctl for charging input current. From
  11512. Juha Niskanen.
  11513. - SMPS driver: Add generic upper-half driver for SMPS. From Mateusz
  11514. Szafoni.
  11515. - LED Driver: Add support for inverted LEDS. From Jeff.
  11516. - LED Driver: Add lightness correction for RGB LED driver. From Jeff.
  11517. - LTC4151 Driver: Add driver for LTC4151 current and voltage monitor.
  11518. From Giorgio Groß.
  11519. - Serial TERMIOS: tcdrain() implementation based on a new term ioctl.
  11520. From Sebastien Lorquet.
  11521. - Serial TERMIOS: Add support for TCFLUSH. From Sebastien Lorquet.
  11522. - syslog: Add option to use the CLOCK_MONOTONIC for time stamping. From
  11523. Jussi Kivilinna.
  11524. - HC-SR04 Driver: Add support to HC-SR04 distance sensor. From Alan
  11525. Carvalho de Assis.
  11526. - COMP Driver: Add poll support. From Pekka Ervasti.
  11527. - BQ2429X Driver: Add driver for TI BQ2429X battery charger. From Juha
  11528. Niskanen.
  11529. - ADC Driver: Add poll support. From Juha Niskanen.
  11530. - BCH Driver: Add poll support. From Jussi Kivilinna.
  11531. - RTC Driver: Extend the RTC framework with an alarm read ioctl
  11532. (RTC_RD_ALARM). Through it consumer could get configuration settings
  11533. about previously scheduled hardware alarms (active status, hours,
  11534. minutes, seconds). From Boris Astardzhiev.
  11535. * Simulation
  11536. - sim/ipforward: Add an IP forwarding configuration using TUN devices
  11537. and apps/examples/tun.
  11538. - Console: Add non blocking read to devconsole driver. From Simon
  11539. Piriou.
  11540. - Networking: Poll for TX frames to speed up driver. From Simon Piriou.
  11541. - pf_ieee802154: Add configuration for testing PF_IEEE802154 address
  11542. family sockets.
  11543. - ARM Simulator: Adds necessary functionality to build Simulator under
  11544. ARM Linux. Tested only on Raspberry3. Currently setjmp/longjmp do not
  11545. save/restore floating point registers. From Nickolay Semyonov.
  11546. * MicroChip/Atmel SAML21 Drivers:
  11547. - SAML21 I2C driver. Developed for and contributed with permissin from
  11548. Filament company. From Alan Carvalho de Assis.
  11549. - SAMD/L21 USB Driver: Add a USB driver. Developed for Filament Inc.
  11550. by Offcode, LTD. From Janne Rosberg.
  11551. * MicroChip/Atmel SAMv7 Boards:
  11552. - SAMV71-XULT: Add support for the MRF24J40 radio and create a
  11553. mrf24j40-starhub configuration.
  11554. - SAME70-Xplained: Add MRF24J40 support.
  11555. * NXP Freescale Kinetis Drivers:
  11556. - Kinetis USB Improvements: usbdev clean up ensuring proper use of HW.
  11557. Rework suspend and resume logic so they perform properly. Made attach
  11558. and detach functions optional. As they do not make sense for a bus
  11559. powered device. From David Sidrane.
  11560. - Kinetis SPI driver: From David Sidrane.
  11561. - Kinetis: I2C driver added I2C3, reference counting and reset.
  11562. Refactored the driver to support reference counting and reset added
  11563. I2C3. From David Sidrane.
  11564. - Kinetis RTC: Implementation of the alarm read function.
  11565. * NXP Freescale Kinetis Boards:
  11566. - configs/teensy-3.x USB: Define USBOTG-FS Read from FLASH access in
  11567. board config. Allow the board config to define the USBOTG-FS to have
  11568. Read access to FLASH. From David Sidrane.
  11569. - configs/teensy-3.x: Removed call to khci_usbattach. The call is not
  11570. need by the driver if CONFIG_USBDEV_BUSPOWERED=y. On a USB powered device if we are running we are attached. From David Sidrane.
  11571. - freedom-k66f: Use SPI driver. Initialize SPI1 on connector J6. No
  11572. real use, as of yet. From David Sidrane.
  11573. * NXP Freescale LPC43xx:
  11574. - LPC43xx: Modify up_allocate_(k)heap() to support PROTECTED mode. From
  11575. Alan Carvalho de Assis.
  11576. * NXP Freescale LPC4xx Boards:
  11577. - configs/Bambino: Add protected mode configuration to Bambino board.
  11578. From Alan Carvalho de Assis.
  11579. * On Semiconductor LC823450
  11580. - LC823450: Initial support for ON Semiconductor LC823450. From Masayuki
  11581. Ishikawa.
  11582. - LC823450: eMMC/SD and USB support for LC823450. From Masayuki Ishikawa.
  11583. * On Semiconductor LC823450 Boards
  11584. - LC823450-XGEVK: LC823450-XGEVK board support. From Masayuki
  11585. Ishikawa.
  11586. - LC823450-XGEVK: Add eMMC/SD and USB support. From Masayuki Ishikawa.
  11587. * STMicro STM32:
  11588. - STM32 L4: Add support for the STM32L475 family.
  11589. - STM32 L4 RCC: Enable ADC clock source. From Juha Niskanen.
  11590. - STM32: Allow clock frequencies > 168 MHz on stm32f427/429. We need
  11591. to enable the power overdrive for this case. This change allows the
  11592. required bits to be set in proper sequence. It also modifies the
  11593. local register access operations to allow more than 16-bit registers.
  11594. From Sebastien Lorquet .
  11595. - STM32 F4: Add support for STM32F433RC. From Alan Carvalho de Assis.
  11596. - STM32 F7: Add new configuration option for enabling flash ART
  11597. Accelerator and flash prefetcher. From Jussi Kivilinna.
  11598. * STMicro STM32 Drivers:
  11599. - STM32 TIM: Add the set counter function for stm32 timers. From
  11600. Sergey Ustinov.
  11601. - STM32 HRTIM: Update HRTIM definitions. Add HRTIM driver. From
  11602. Mateusz Szafoni.
  11603. - STM32 HRTIM: Add HRTIM character driver. From Mateusz Szafoni.
  11604. - STM32 HRTIM: Fix DAC triggers configuration, Add missing master timer
  11605. logic, enable DAC triggering. From Mateusz Szafoni.
  11606. - STM32 HRTIM: Add DMA configuration. From Mateusz Szafoni.
  11607. - STM32 HRTIM: Add burst mode configuration. From Mateusz Szafoni.
  11608. - STM32 RTC: Port Boris Astardzhiev's RTC change for STM32L4 to STM32.
  11609. - STM32 DAC: Add support for HRTIM triggering. Separate dma buffer
  11610. configuration for channels. From Mateusz Szafoni.
  11611. - STM32 DAC: Conditional logic for timer triggering, fix TSEL
  11612. configuration when HRTIM, DMA request remapping, Add DMA buffers
  11613. initialization logic. From Mateusz Szafoni.
  11614. - STM32 DAC: Support external triggering for DMA transfer. From Mateusz
  11615. Szafoni.
  11616. - STM32 L1 TIM: Add base address for TIM11. From Juha Niskanen.
  11617. - STM32 F4 FLASH: Enable/disable the flash write protection on any
  11618. sector. I have verified it to work on the STM32 F427. From Sebastien
  11619. Lorquet.
  11620. - STM32 F4 Clocking: To use an external oscillator module (not just a
  11621. crystal) with the STM32F4, one needs to enable the HSEBYP bit in the
  11622. RCC_CR register. This change allows an integrator to define
  11623. STM32_RCC_CR_HSEBYP in their board.h file if they want this
  11624. configuration. From Jeff.
  11625. - STM32 F4 USB: I'm working on bringing up USB full-speed support on
  11626. STM32F405. My board does not include a USB power switch, VBus
  11627. sensing, over current detection, or ID pin. This commit add a
  11628. config STM32_OTGFS_VBUS_ CONTROL which lets us selectively disable
  11629. VBus sensing and control. I also sneaked in a change to disable the
  11630. configgpio call for the ID pin, which is only used in OTG mode which
  11631. isn't supported yet. The only pins that need to be initialized should
  11632. be OTGFS_DP and OTGFS_DM. From Jeff.
  11633. - STM32 FLASH: Add CONFIG_STM32_STM32F469 support. From David Sidrane.
  11634. - STM32 COMP: Add default INM configuration and some missing COMP
  11635. 1,3,5,7 code. From Mateusz Szafoni.
  11636. - STM32 F33: Add missing SYSCFG CFGR3 definitions. From Mateusz Szafoni.
  11637. - STM32 L4 Serial: Allow configuring Rx DMA buffer size. From Juha
  11638. Niskanen.
  11639. - STM32 L4 COMP: Input minus pin extended selection. From Juha Niskanen.
  11640. - STM32 L4 COMP: Bind to upper half comp driver. From Pekka Ervasti.
  11641. - STM32 L4 DAC: Port from STM32. Add ADC register definitions. From
  11642. Juha Niskanen.
  11643. - STM32 L4 DAC: Add option for routing DAC output to ADC. Actually
  11644. write something to the DAC DMA buffer. From Juha Niskanen.
  11645. - STM32 L4 DAC: Separate DMA buffer configuration for channels. From
  11646. Juha Niskanen.
  11647. - STM32 L4 ADC: Implement peripheral. From Juha Niskanen.
  11648. - STM32 F7: Definitions for I2C4, SDMMC2. Adapted RAM start / size to
  11649. internal SRAM. From Titus von Boxberg.
  11650. - STM32 F7 I2C4: I2C4_SDA can also be on GPIO PB7. From Titus von
  11651. Boxberg.
  11652. - STM32 F7 LTDC: Option for DSI output, inconsistency: the stm32f746
  11653. does not feature a DSI interface. compilable with LTDC_INTERFACE and
  11654. LTDC_USE_DSI. From Titus von Boxberg.
  11655. - STM32 F7 Clocking: Added functions for DSI clock source selection.
  11656. From Titus von Boxberg.
  11657. - STM32 F7 Clocking: Enable APB2 DSI clock. From Titus von Boxberg.
  11658. - STM32 F7 LTDC: No board specific dithering values used; corrected
  11659. dithering init. Corrected LIPOS/LIPCR calculation. Change only
  11660. polarity bits in LTDC_GCR. From Titus von Boxberg.
  11661. - STM32 F7 Reset: Added function for reset. From Titus von Boxberg.
  11662. - STM32 F7 DMA: DMA add dcache alignment check in stm32_dmacapable. In
  11663. the case dcache write-buffed mode is used (not write-through) buffer
  11664. alignment is required for DMA transfers because a)
  11665. arch_invalidate_dcache could lose buffered writes data and b)
  11666. arch_flush_dcache could corrupt adjacent memory if the maddr and the
  11667. mend+1, the next next address are not on ARMV7M_DCACHE_LINESIZE
  11668. boundaries. From David Sidrane.
  11669. - STM32 F7 SDMMC: SDMMC remove widebus limitation on DMA. There is no
  11670. documentation for the STM32F7 that limits DMA on 1 bit vrs 4 bit
  11671. mode. From David Sidrane.
  11672. - STM32 F7 SDMMC: SDMMC add dcache alignment check in
  11673. dma{recv|send}setup. In the case where CONFIG_SDIO_PREFLIGHT is not
  11674. used.
  11675. - STM32 F7 RTC: Port Boris Astardzhiev's RTC change for STM32L4 to
  11676. STM32F7.
  11677. * STMicro STM32 Boards:
  11678. - STM32F103-Minimum: Add GPIO device driver example. From Alan
  11679. Carvalho de Assis.
  11680. - STM32F103-Minimum: Add small hello example for STM32F103-Minimum
  11681. board. From Alan Carvalho de Assis.
  11682. - STM32F103-Minimum: Add support for SmartFS on Winbond W25 SPI NOR
  11683. Flash. From Alan Carvalho de Assis.
  11684. - STM32F103-Minimum: (1) Enable CONFIG_MTD_PARTITION in Kconfig if flash
  11685. partition is enabled and (2) Update the README.txt file with info
  11686. needed to get SmartFS working. From Alan Carvalho de Assis.
  11687. - Nucleo-F334R8: Add HRTIM initialization. From Mateusz Szafoni.
  11688. - Nucleo-F334R8: UART2 is default serial port (STLINK Virtual Port).
  11689. From Mateusz Szafoni.
  11690. - Clicker2-STM32: Add a configuration that was used with the MRF24J60
  11691. for 6loWPAN testing.
  11692. - Clicker2-STM32: Allow both IEEE 802.15.4 MAC character and network
  11693. devices to be registered.
  11694. - Clicker2-STM32: Add configurations to support the endpoint and hub
  11695. roles in a star topology.
  11696. - Clicker2-STM32: Add support for per-function-call stack checking.
  11697. From Anthony Merlino.
  11698. - Clicker2-STM32: Configure EDBG SPI CS just to make that it is
  11699. disabled.
  11700. - STM32F4 Discovery: Add logic to register the button driver and the
  11701. user led driver if so configured. From Jan Pobrislo.
  11702. - STM32F4-Discovery: Add a configuration for testing libc++. From Alan
  11703. Carvalho de Assis.
  11704. - B-L475E-IOT01A: Add support for the STMicro B-L475E-IOT01A board.
  11705. From Simon Piriou.
  11706. - B-L475E-IOT01A: Add support for the SPSRGF/Spirit1 radio module. Add
  11707. a configuration for testing sprit radio.
  11708. - B-L475E-IOT01A: Add configurations to support a star topology.
  11709. - B-L475E-IOT01A: Add basic support for external Macronix QuadSPI flash
  11710. memory. From Simon Piriou.
  11711. - B-L475E-IOT01A: Enable UDP broadcast test in the spirit-starhub
  11712. configuration.
  11713. - STM32F334-DISCO: Add STM32F334-DISCO basic support. From Mateusz
  11714. Szafoni.
  11715. - STM32F746-Disco: Add ADC3 support. From Ivan Ucherdzhiev.
  11716. - STM32L476-Disco: Add a knsh configuration that may be used to test
  11717. the PROTECTED build mode.
  11718. - STM32F769I-DISCO: Initial port to STM32F769I-DISCO. From Titus von
  11719. Boxberg.
  11720. * C Library/Header Files:
  11721. - Move TUN ioctl command to include/nuttx/net/ioctl.h so that it will
  11722. always be unique.
  11723. - Math Library: Port gamma() and lgamma() from FreeBSD to NuttX. From
  11724. Alan Carvalho de Assis.
  11725. - C++: Compilation with recent C++ compiler needs an overloaded delete
  11726. operator that includes a size_t size argument. New sized delete
  11727. operators are only for C++14 and above.
  11728. * Build/Configuration System:
  11729. - Initial clang compile. From Goran Mekic.
  11730. - Add CLANG definitions in Kconfig and Toolchain.defs.
  11731. - drivers/wireless/ieee802154: Moved radios to individual
  11732. sub-directories. From Anthony Merlino.
  11733. - Makefile.unix: Add savedefconfig target. From Gwenhael Goavec-Merou.
  11734. - Add Gwenhael's change to Makefile.win and update README.txt to
  11735. described the new make target.
  11736. - All defconfig files are now in the compressed format created with
  11737. 'make savedefconfig.' The original .config file can be reconstituted
  11738. using 'make olddefconfig.'
  11739. - Build System: It is no longer necessary to have a unique Make.defs
  11740. file for each configuration. A board may share a common Make.defs
  11741. file in the scripts directory. Duplicate Make.defs files removed;
  11742. common Make.defs file moved to the scripts/ sub-directory for each
  11743. board.
  11744. - Networking: Move INET socket interface out of net/sockets to its own
  11745. directory net/inet.
  11746. * Tools:
  11747. - testbuild.sh: Added -x to fail build on errors for continuous
  11748. integration (CI). On CI we want to know ASAP of a failure. From
  11749. David Sidrane.
  11750. - Improve configure.sh behavior: (1) enable to call from top directory.
  11751. (2) enable to designate direct path for config. (3) install .gdbinit
  11752. if the target has. From Hidetaka Takano.
  11753. - Update tools/configure.c to same functionality as configure.sh. Add
  11754. an array of optional file names. Currently, .gdbinit is the only
  11755. optional file but other things like IDE-specific project files might
  11756. need to be copied as well.
  11757. - tools/configure.sh will now copy Eclipse project files if they are
  11758. present in the board directory file.
  11759. - Update configure.sh, configure.bat, configure.c: With compressed
  11760. format, part of the installation requires that we run 'make
  11761. olddefconfig' to restore the uncompressed defconfig format. Also,
  11762. while I was at it, I also added options to select host platform on
  11763. configure command line.
  11764. - tools/refresh.sh: Now runs make savedefconfig before copying the new
  11765. defconfig file in place; Also, added a new option --defaults. Since
  11766. the number of defaults that you now have to answer is so large, the
  11767. option lets you just accept the default values. So it works just like
  11768. --silent but still prompts you for the decision to save or discard the
  11769. new defconfig file.
  11770. - tools/refresh.sh: Update so that it can find the Make.defs file in
  11771. the new location.
  11772. * NSH: apps/nshlib:
  11773. - NSH Library: Add a Telnetd command. This is needed when network
  11774. initialization is deferred. In that case, telnet daemon cannot be
  11775. started until the network is finally initialized. The telnetd command
  11776. was added just for that case: So that the telnet daemon can be
  11777. started from the NSH command line after the network is configured.
  11778. - NSH Library: Misc changes needed for PktRadio support.
  11779. - NSH Library: Extend ifconfig command so that it can set variable
  11780. length packet radio address.
  11781. - NSH Library: Update addroute and delroute command. The would support either
  11782. IPv4 or IPv6, but not both. Allow expression of the netmask in IPv4 CIDR or
  11783. IPv6 slash notation. This really reduces the pain of using the commands,
  11784. especially for IPv6.
  11785. - NSH Library: Add a route command that will dump the content of routing table.
  11786. * Examples/Tests: apps/examples:
  11787. - examples/udp: Add configurable network device name; Add option to
  11788. suppress network initialization which is not needed if started by NSH
  11789. or for 6LoWPAN.
  11790. - examples/udp: Fix registration as a built-in program; Change some
  11791. naming to make room for a second target. Current one endpoint is the
  11792. target and one is the host. This will (eventually) allow two targets
  11793. to be both endpoints of the test. Change build so that both server
  11794. and client can be on a target, rather than one on the target one on
  11795. the host PC. Server IP address may not be provided on the command line.
  11796. - examples/udp: Port numbers need to be configurable to work with
  11797. 6LoWPAN. Need to bind the client socket to a port number. This was
  11798. not required before so is a apparently a change in the UDP packet
  11799. dispatch logic.
  11800. - examples/udp: Enable testing with the broadcast address.
  11801. - examples/nettest: Support target boards on both ends of the test.
  11802. Separate out network initialization so that it may be used by both a
  11803. target server and a target client. Fix client/server naming
  11804. confusion; Add command line option to select the server address on the
  11805. target. Add support for both endpoints on target boards vs. one on a
  11806. target and one on the host PC.
  11807. - examples/nettest: The send buffer size is now a configuration option.
  11808. - examples/nettest: Loopback option should be available in Kconfig for
  11809. PktRadio.
  11810. - examples/keypadtest: REMOVED and warehoused in the Obsoleted
  11811. repository. This was just a bad clone of apps/examples/hidkbd for a
  11812. keypad driver that was removed years ago. It also uses illegal
  11813. function calls into the OS. So it has no purpose: It is redundant, it
  11814. uses illegal interfaces, and is a test for non-existent code.
  11815. - examples/ipforward: Add an IP forwarding example using only TUN
  11816. devices. Test extended to test forwarding of ICMPv6 multicast messages.
  11817. - Implement powermonitor example for ltc4151 current and voltage
  11818. monitor. From Giorgio Groß.
  11819. - examples/pf_ieee802154: Add for testing PF_IEEE802154 sockets. Add
  11820. PANID to command line options; Cannot bind to address zero... There is
  11821. no counterpart to INADDR_ANY for these radios (not now at least).
  11822. - examples/dac: Add DAC example. From Juha Niskanen.
  11823. * Network Utilities: apps/netutils:
  11824. - netutils/telnetc: This a port of libtelnet to NuttX.
  11825. - netutils/telnetd and users of telnetd: Add support for IPv6.
  11826. - netutils/thttpd: Remove the netstats demo. This depends on an
  11827. illegal function call and cannot be supported. That example could be
  11828. replaced with logic that uses the procfs network entries as was done
  11829. for NSH which had the same issue. But I am too lazy to implement that.
  11830. - netutils/netlib: Add support for PktRadio IOCTL commands.
  11831. - netutils/netlib: Add a helper to decode short addresses.
  11832. * Wireless Utilities: apps/wireless:
  11833. - wireless/ieee802154/i8sak: Rewrote i8sak to be test CLI for IEEE
  11834. 802.15.4 MAC layer. From Anthony Merlino.
  11835. - wireless/ieee802154/i8sak: Updates to i8sak for
  11836. association/beacon-enabled changes to IEEE 802.15.4. From Anthony
  11837. Merlino.
  11838. - wireless/ieee802154/i8sak: Add option to make it easy to send large
  11839. frame for testing purposes. From Anthony Merlino.
  11840. - wireless/ieee802154/i8sak: Add scan command. From Anthony Merlino.
  11841. - wireless/ieee802154/i8sak: Add coordinfo command allowing you to
  11842. poll various attributes related to the coordinator. From Anthony
  11843. Merlino.
  11844. - wireless/ieee802154/i8sak: Add a option to retry on failures to the
  11845. assoc command (usually meaning tht the coordinator is not yet up).
  11846. - iwireless/ieee802154/8sak: Add reset command to reset the MAC layer.
  11847. Adds option to assoc command -t to specify how long to wait for a
  11848. response from the Coordinator. From Anthony Merlino.
  11849. - ieee802154/i8sak: Adds command to trigger regdump of radio. From
  11850. Anthony Merlino.
  11851. * System Utilities (apps/system)
  11852. - apps/system/composite: Update to apps/system/composite associated with
  11853. big changes to the composite device logic. From Frank Benkert.
  11854. - apps/system/composite: Remove CDC/ACM and MSC configuration logic.
  11855. This belongs in the OS composite initialization. Add and argument so
  11856. that you can select the USB composite configuration to be attached.
  11857. Restore USB tracing; remove unused field in a structure. Remove
  11858. configuration settings that are no longer used. Fix configuration
  11859. selecting.. was setting the port number, not the configure ID. Also
  11860. add a configuration option to select the default configuration.
  11861. - apps/system/composite: Add a configuration option to the boardctl()
  11862. calls to support multiple composite device configurations dynamically.
  11863. - apps/system/composite: Remove references to USBMSC. There still
  11864. dependencies on CDC/ACM in the serial USB trace output.
  11865. - apps/system/telnet: Add Telnet Chat daemon and client from
  11866. libtelent.
  11867. * Platform-Specific Support (apps/platform)
  11868. Bugfixes. Only the most critical bugfixes are listed here (see the
  11869. ChangeLog for the complete list of bugfixes and for additional, more
  11870. detailed bugfix information):
  11871. * Core OS:
  11872. - Fix ELF loader up_checkarch on ARM arch. From Cristian Condurache.
  11873. - pthread_mutex_unlock(): Missing check for the case where
  11874. pthread_mutex_lock() is called when the mutex is not locked. In that
  11875. case, it would increment the underlying semaphore above 1. This is
  11876. the fix for a problem noted by initialkjc@yahoo.com.
  11877. - sig_timedwait(): Pending signal structure used after it has been
  11878. releasd. From anonymous Bitbucket Issue 59.
  11879. - mm_mallinfo: do heap end debug assert check with heap semaphore held.
  11880. From Jussi Kivilinna.
  11881. - sched/: Fix return value in sched_setaffinity(). From Masayuki
  11882. Ishikawa.
  11883. - Work Queues: work_queue() must cancel existing work prior to queuing
  11884. new work, otherwise the work queue list structure can become
  11885. corrupted. Problem noted by Pascal Speck.
  11886. - waitpid(): Corrects two problems when CONFIG_SCHED_HAVE_PARENT +
  11887. CONFIG_SCHED_CHILD_STATUS are enabled: (1) Was erroring out if the
  11888. waited for task had already exited, and (2) was not freeing resources
  11889. when a wait was completed. From Boris Astardzhiev.
  11890. * File System/Block and MTD Drivers:
  11891. - VFS poll(): Fix timeout calculation. From Jim Paris.
  11892. - VFS poll(): Fix poll for regular files and block devices. Open Group
  11893. documentation says that poll (and select) support regular files and
  11894. that 'Regular files shall always poll TRUE for reading and writing'.
  11895. From Jussi Kivilinna.
  11896. - VFS epoll(): Fix epoll_wait function. From Simon Piriou.
  11897. - Smart FS: Fix wrong freeing of device structure and use-after-free
  11898. issues on error paths. From Jussi Kivilinna.
  11899. - MTD FLASH drivers: The byte write method of several drivers had a
  11900. cloned error: It was not locking the bus while performing byte write
  11901. operations.
  11902. - MTD M2PX: If we READ while a write/erase is pending, the command is
  11903. ignored and the write/erase continues. If we don't catch this situation
  11904. we will return garbage to the user because the flash will not execute
  11905. the command. So READ MUST wait for write completion, and before that,
  11906. the bus must be locked since it's a precondition to calling
  11907. waitwritecomplete(). From Sebastien Lorquet.
  11908. - MTD FLASH drivers: Clone Sebastien Lorquet's m25px change to at25,
  11909. is25xp, ramtron, and sst25xx.
  11910. - MTD W25: Add missing locking and fix SPI_SELECT usage for
  11911. w25_unprotect. From Jussi Kivilinna.
  11912. - MTD W25: Wait for BUSY flag to clear in w25_readid and
  11913. w25_unprotect. W25Q128 datasheet says that all instructions expect
  11914. 'Read Status Register' and 'Erase/Program Suspend' are ignored when
  11915. BUSY flag in status register is '1'. Therefore wait for busy flag to
  11916. clear in w25_readid() and w25_unprotect(). From Jussi Kivilinna.
  11917. - Automounter: FS_AUTOMOUNTER should depend on SCHED_LPWORK. From
  11918. Nickolay Semyonov.
  11919. * Networking/Network Drivers:
  11920. - TCP Listen: Throw error when error happens in the tcp_listen
  11921. function. From Roland Takacs.
  11922. - Network Device Management: Do not search net device when all-zeros
  11923. address is used. From Roland Takacs.
  11924. - Network Device Management: Fix a error in netdev_register(); it was
  11925. not handling device names properly when TUN is the only network device.
  11926. - Network Device Management: Fix netdev_dev_lladdrsize(). In some
  11927. configurations, it could return the wrong size for the address of a
  11928. packet radio.
  11929. - Network Device Management: Fix typo for 802.11 devices in
  11930. netdev_register(). Was being masked before because depended on
  11931. CONFIG_NET_MULTLINK.
  11932. - TUN Driver: Use critical section instead of semaphore in
  11933. tun_ifdown(). From Masayuki Ishikawa.
  11934. - TUN Driver: Do all polling on worker thread. Otherwise, the stack
  11935. gets very deep.
  11936. - TUN Driver: Currently cannot support TAP mode unless Ethenet is
  11937. enabled.
  11938. - netdb: Fixed buffer size used for sending DNS queries should depend
  11939. on the configured DNS name size. From Ritjaina.
  11940. - UDP networking: The TTL (time to live) was not being set in the IPv4
  11941. or IPv6 header unless the UDP socket was bound.
  11942. - UDP Networking: Fix a copy-paste error that could effect networking
  11943. when both IPv4 and IPv6 are enabled.
  11944. - UDP Networking: When upd_input() cannot process a packet, it returns
  11945. ERROR so that network drivers may try calling ipv4_input() later. In
  11946. this case, it must also set d_len to zero. Otherwise, all network
  11947. drivers will assume tht there is also an outgoing packet. This
  11948. results in a gratuitous ARP.
  11949. - TCP Networking: Correct some issues that prevent TCP from working
  11950. correctly when both IPv4 and IPv6 are enabled.
  11951. - TCP Networking: TCP disconnection callbacks are not retained in a
  11952. list. This will support multiple callbacks per lower-level TCP
  11953. connection structure. That is necessary for the cae where a socket is
  11954. dup'ed and shares the same lower-level connection structure. NOTE:
  11955. There still needs to be a call to tcp_start_monitor() when the socket
  11956. is dup'ed.
  11957. - TCP Networking: Start the network monitor for a socket when a TCP
  11958. socket is dup'ed.
  11959. - TCP Networking: If one of the dup'ed socket's is closed, then network
  11960. monitor resources associated with that one socket must be recovered.
  11961. Also, in the event that socket is being used on one thread, but then
  11962. closed on another, any threads waiting for events from the socket
  11963. should be informed of the closure. That latter requirement is not
  11964. implemented because current data structures do not support it.
  11965. - TCP Networking: Fix a race condition. The accept() operation is
  11966. performed with the network locked. However, the network is unlocked
  11967. BEFORE the connected state is set. Therefore, a context switch may
  11968. occur and the socket may no longer be connected when it is marked so.
  11969. Noted by Pascal Speck.
  11970. - Network routing tables: Fix a compilation error when IPv6 and
  11971. routing are enabled.
  11972. - Network procfs: Fix some spacing when both IPv6 and IPv4 are enabled.
  11973. - Network Local Sockets: Fix accept for local stream sockets. From
  11974. Jussi Kivilinna.
  11975. - Network Local Sockets: Fix server lc_waitsem overflow. From Jussi
  11976. Kivilinna.
  11977. - IPv6 Networking: Remove comparisons to the address with all ones
  11978. set. IPv6 does not support broadcast addresses and certainly not in
  11979. that form. Replace with multicast addresses beginning with 0xff02.
  11980. - ICMPv6 Networking: Fix a compilation issue with
  11981. CONFIG_NET_ICMPv6_AUTOCONF=y. From Masayuki Ishikawa.
  11982. - Networking: Fix net_lock returning ERROR when instead of real error
  11983. code on failure. From Jussi Kivilinna.
  11984. - IGMPv2 Networking: Remove special support for interrupt level
  11985. processing (there is none) and fix some timer cancellation logic. In
  11986. many files, correct comments. There is no interrupt level processing
  11987. in the networking layer.
  11988. * Wireless/Wireless Drivers:
  11989. - IEEE 802.15.4 MAC: Need counting protection on the logic that
  11990. releases the notification resources. Otherwise, notification handlers
  11991. may be operating with a stale pointer.
  11992. - IEEE 802.15.4 MAC: Improves internal timer logic to handle work
  11993. serially. Before, the MAC timer used a watchdog to schedule work with
  11994. the high priority worker queue. However, since everything in the MAC
  11995. is supposed to be serialized through the use of the high priority work
  11996. queue, but the timer uses a watchdog, there are some unintended
  11997. consequences. To simplify, we now use the delayed work feature of the
  11998. work queue. From Anthony Merlino.
  11999. - IEEE 802.15.4 Network Driver: Update RX statistics in network driver.
  12000. - IEEE 802.15.4 MRF24J40 Driver: Minor timing fix. Matches recommended
  12001. value in datasheet. Splits up driver into multiple files to make it
  12002. easier to navigate. Fixes issue with non-beacon enabled mode. From
  12003. Anthony Merlino.
  12004. - IEEE 802.15.4 MRF24J40 Driver: Fix a bug causing radio to cease
  12005. transmitting. From Anthony Merlino.
  12006. - IEEE 802.15.4 MRF24J40 Driver: Fixes issues with sleeping for beacon
  12007. enabled networking. From Anthony Merlino.
  12008. - EEE 802.15.4 MRF24J40 Driver: Fix math error for calculating sleep
  12009. count values. From Anthony Merlino.
  12010. - IEEE 802.15.4: Fix timing issues for beacon enabled coordinators and
  12011. endpoints. From Anthony Merlino.
  12012. - iIEEE 802.15.4: Fix issue with association on beacon-enabled
  12013. networking. From Anthony Merlino.
  12014. - 6LoWPAN: Correct a few addressing issues. Also reserve two bytes at
  12015. the end of the frame for the FCS.
  12016. - 6LoWPAN: Fixes needed when extended addressing is enabled; broke short
  12017. addressing. Loopback driver needs to initialize the MAC meta data;
  12018. Address decompression logic must have the MAC address to handle the
  12019. most common compression cases. Fix a src/dest address confusion and
  12020. other addressing problems.
  12021. - 6LoWPAN: Add missing IPv6 address creation to HC1 decode logic. Fix a
  12022. typo in an index that prevented use with HC1 and extended addresses.
  12023. - 6LoWPAN: TCP logic was not obeying MTU packet size limitations.
  12024. - 6LoWPAN: Major re-architecting of TCP logic to properly handle TCP
  12025. stuff like ACKs and TDP windowing which were not properly covered in
  12026. the initial design.
  12027. - 6LoWPAN: HC06, copy TCP header as though it were data. TCP packet
  12028. reassembly now seems to work OK.
  12029. - 6LoWPAN: Fix duplicate and bad memcpy in loopback driver.
  12030. - 6LoWPAN: Fix a misconception about HC06 16-bit IPv6 address
  12031. compression.
  12032. - 6LoWPAN: TCP send logic was returning a failure in one case when, in
  12033. fact, the send was successful.
  12034. * Common Drivers:
  12035. - USB MSC: Use struct instead of pointer to the struct as sizeof
  12036. argument in memset in usbmsc.c. Otherwise it leads to error: argument
  12037. to sizeof in memset call is the same pointer type struct usbmsc_lun_s
  12038. * as the destination. From Oleg Evseev.
  12039. - USB MSC: Add missing logic to define endpoints. The composite
  12040. 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.
  12041. - USB CDC/ACM. Fix several known problems resulting from merge of USB
  12042. composite device. That merge now breaks some of the non-composite USB
  12043. devices.
  12044. - Button Driver: Interrupts weren't enabled since nothing updates them
  12045. after btn_poll() marks the file descriptor structure as being polling.
  12046. From Jan Pobrislo.
  12047. - ADC Driver: Fix some data alignment issues in the ADC driver.
  12048. - I2C Drivers: Handle I2C_TRANSFER return value consistently. Some I2C
  12049. peripherals transfers return zero on success, others number of
  12050. completed transfers. Make drivers robust against this. From Juha
  12051. Niskanen.
  12052. - COMP Driver: Fix compilation errors when poll disabled. From Mateusz
  12053. Szafoni.
  12054. * Simulation:
  12055. - Simulation: Fix mkdir issue in GNU target. From Simon Piriou.
  12056. - Simulation: x86 stack needs to be aligned to 16-byte boundaries.
  12057. - Simulation: Fix building 32-bit simulation on 32-bit X86. From Jussi
  12058. Kivilinna.
  12059. * ARM:
  12060. - ARM: The older ARM7 and ARM9 configurations were determining CFLAGS
  12061. based on the GCC version 4.x.x or not. That needx to be extended for
  12062. 5.x.x and 6.x.x which also behave like 4.x.x.
  12063. * ARMv7-M:
  12064. - Fixed ARMv7-M Toolchain setting. Cortex-M4 only have Single
  12065. Precision FPU. From Hidetaka Takano.
  12066. - ARMv7-M syscall logic: Clear bit 0 in PC settings. Bit 0 is the
  12067. thumb mode indication and should not be set in the PC. This extra bit
  12068. has not caused problems in the past, but seeing it set in the PC is
  12069. unnerving.
  12070. * Espressif ESP32:
  12071. - Fix ESP32 gpio enable reg and default UART pin. Modify default UART
  12072. pin for ESP-WROOM-32. Fix gpio enable reg. From Sungki Kim.
  12073. * Microchip/Atmel SAMD21 Drivers:
  12074. - SAMD21: Fix some SPI-related issues. From Matt Thompson.
  12075. - SAMD21 SPI: I was having issues with the bus freezing up .. slaves
  12076. holding SDL low.. so I rewrote a good portion of the interrupt logic
  12077. based on the application notes from Atmel. One major improvement is
  12078. using the RXNACK flag in the STATUS register, which indicates that no
  12079. device responded to an address packet. Assuming that the chip will
  12080. always give an interrupt status, I believe it's possible to eliminate
  12081. the timer as well. From Matt Thompson.
  12082. - SAMD/L21: Need to preserve errno value across syslog() call.
  12083. - SAMD21: Changes needed to get USB working. From Matt Thompson.
  12084. * Microchip/Atmel SAMv7 Drivers:
  12085. - SAMv7 TWIHS: TWIHS driver add reference counting. From David Sidrane.
  12086. - SAMv7 CAN: We discovered a problem with the samv7 mcan driver which
  12087. results, under some circumstances, in a very high CPU load. The
  12088. problem occurs, and is easily reproducible, if the device is connected
  12089. to a CAN network with a wrongly configured CAN speed (baud rate). In
  12090. our tests we set the CAN speed of the device to 1000000 and the speed
  12091. of the other CAN nodes to 500000. The device is restarted and sends a
  12092. CANopen "bootup message" to the CAN network. This results in huge
  12093. amount of errors messages on the CAN bus, probably because of the CAN
  12094. feature for acknowledging error messages. The error messages can't be
  12095. read by the device because of the misconfigured CAN speed, instead the
  12096. CAN chip reports lots of errors, which are reported to the application
  12097. which uses the CAN driver (CONFIG_CAN_ERRORS is enabled). The CAN
  12098. errors are reported from the CAN chip via interrupts and thus the
  12099. interrupt load is very high in this scenario. To fix the problem the
  12100. driver now disables each RX error interrupt after it is occurred. The
  12101. RX error interrupts are turned back on if at least one CAN message is
  12102. received successfully. From Stefan Kolb.
  12103. - SAMv7 CAN: I discovered while working on the SAMV7 mcan driver that
  12104. the implementation of the CAN error handling is suboptimal. In the
  12105. current implementation the many errors are implemented as pending
  12106. errors. But those errors are not pending, the errors occurred and are
  12107. gone directly afterwards. This commit changes the described behavior
  12108. and simplifies the handling of CAN errors. From Stefan Kolb.
  12109. * Microchip/Atmel SAMv7 Boards:
  12110. - SAMv71-XULT: Fix MRF24J40 interrupt GPIO number.
  12111. * NXP/Freescale Kinetis:
  12112. - Kinetis MPU: Disable MPU when not in protected mode. The hardware
  12113. reset state of the the MPU precludes any bus masters other than DMA
  12114. access to memory. Unfortunately USB and SDHC have their own DMA and
  12115. will not have access to memory in the default reset state. This change
  12116. disabled the MPU if present on system startup. From David Sidrane.
  12117. - Kinetis MPU: Fixed warning for kinetis_mpudisable. Missing header
  12118. file added. From David Sidrane.
  12119. - Kinetis SIM: Ensure isolation of clock dividers for 0 value case.
  12120. This fixes a bug were a SoC does not have a clockdivN register and
  12121. passes a 0 for the init value. This prevents overflow of the 0
  12122. decremented to -1 (0xffffffff) spilling over to other clockdivN
  12123. fields. From David Sidrane.
  12124. * NXP/Freescale i.MX6 Drivers:
  12125. - i.MX6: Fix a wrong parameter passed when calling irq_attach() in
  12126. imx_serial.c. From Masayuki Ishikawa.
  12127. - Based on Masayuki's change, I review all serial driver vector
  12128. attachment. I Found one additional error and updated all relevant
  12129. drivers to current interrupt parameter passing.
  12130. * STMicro STM32:
  12131. - STM32 F410 Kconfig: Fix peripherals available on the STM32 F410.
  12132. This also adds a select for STM32_HAVE_DAC1 present on this STM32
  12133. flavor. From Gwenhael Goavec-Merou.
  12134. - STM32 L4 DMA: Correct USART3_RX bad channel definition. From Juha
  12135. Niskanen.
  12136. - STM32 L4 PWR: Correct PWR_SR2 REGLPS and REGLPF bits, add port I
  12137. registers. Also remove duplicate section from Kconfig. From Juha
  12138. Niskanen.
  12139. - STM32 F7: do not enable read-modify-write on DTCM. "AN 4667 - STM32F7
  12140. Series system architecture and performance" recommends to disable
  12141. read-modify-write on DTCM: "If the DTCM-RAM is used as data location
  12142. and the variables used are byte or/and halfword types, since there is
  12143. no ECC management in this RAM on the STM32F7 Series, it is recommended
  12144. to disable the read-modify-write of the DTCM-RAM in the DTCM interface
  12145. (in the DTCMCR register) to increase the performance." From Jussi
  12146. Kivilinna.
  12147. * STMicro STM32 Drivers:
  12148. - STM32 TIM3/4 are always 16-bits; never 32-bits. Noted by Eetu
  12149. Nevalainen..
  12150. - STM32 ADC: Invalidate dma buffer before use. Missing invalidation
  12151. caused old samples being fetched from cache. From Jussi Kivilinna.
  12152. - STM32, STM32L4, STM32F7 ADC: Fix channel 18 sample time. From Juha
  12153. Niskanen.
  12154. - STM32 DAC: Fix some configuration logic. When STM32_NDAC is greater
  12155. than 1, then second channel is always DAC1OUT2. From Mateusz Szafoni.
  12156. - STM32 DAC: Fix compilation when DMA disabled for channel. From
  12157. Mateusz Szafoni.
  12158. - STM32 F0: Fix some funny shifts in DAC header files. From Juha
  12159. Niskanen.
  12160. - STM32 F1 RTC fixes: (1) Compile issues because of missing RTC_MAGIC
  12161. #defines, (2) missing functionality based on RTC_MAGIC in RTC based on
  12162. stm32_rtcounter.c, (3) IRQ setup from up_rtc_initialize was later
  12163. reset in up_irqinitialize, (4) write access to backup registers
  12164. without enabling access to backup domain, (5) possible races in
  12165. set/cancel alarm. tested with STM32F103C8 only. device now wakes up
  12166. from forced STANDBY mode by alarm. From Leif Jakob.
  12167. - STM32/STM32 L4 PWM: While attempting to output a 70 MHz square wave
  12168. from the timer output of a STM32 clocked at 140 MHz, found that the
  12169. reload calculation was off by one. This correction does allow the
  12170. output up to 70 MHz. I am not sure this affects most users
  12171. generating slow PWM but for frequencies close to the PCLK, the
  12172. difference becomes significant. From JM.
  12173. - STM32 L4 I2C: Set I2C SDA and SCL pins to open drain mode. From Pekka
  12174. Ervasti.
  12175. - STM32 L4 I2C: I2C4 was writing to wrong RCC registers. From Juha
  12176. Niskanen.
  12177. - STM32 L4 DAC: Report transfer as completed in DMA callback. Without
  12178. this even O_NONBLOCK writes block the calling task if DAC was using
  12179. DMA. From Juha Niskanen.
  12180. - STM32 L4 COMP: comparators share RCC enable bit with SYSCFG. From
  12181. Juha Niskanen.
  12182. - STM32 L4 ADC: Correct EXTSEL macros. From Juha Niskanen.
  12183. - STM32 L4 TIM: TIM15,16,17 are always in APB2. From Juha Niskanen.
  12184. - STM32 F7 I2C: Set I2C4 SDA and SCL pins to open drain mode. From Juha
  12185. Niskanen.
  12186. - STM32 F4 RTCC: ISR register and write protection fix. From Eetu
  12187. Nevalainen.
  12188. - STM32 F7 Ethernet: Fix typo in header; Add memory sync barrier
  12189. between writing to DMA TX descriptor and restarting DMA TX. Avoid
  12190. calling work_queue on pollwork if it's already queued, just skip a
  12191. poll cycle instead. Nucleo-144: Fix RMII TXD1 signal, connected to
  12192. PB13 not to PG14. From savinz.
  12193. - STM32 F7: Added missing config option for register value debugging.
  12194. From Titus von Boxberg.
  12195. - STM32 F7: No FSMC, only FMC for STM32F7. From Titus von Boxberg.
  12196. - STM32 F7: HEAP2 depends on CONFIG_ARCH_HAVE_HEAP2, not on particular
  12197. FMC RAM type. From Titus von Boxberg.
  12198. - STM32 F7: STM32_RCC_DCKCFGR2 has nothing to do with PLLI2S; PLLI2S is
  12199. not dependent on LTDC, instead on SAICLK1/2 generated from PLLI2S.
  12200. From Titus von Boxberg.
  12201. - STM32F7: Some STM32F7 builds failed in build testing due to undefined
  12202. STM32_SRAM1_BASE. I think that is because stm32_allocateheap.c was
  12203. not including chip/stm32_memorymap.h.
  12204. - STM32 F7: dcache write-buffed mode is used (not write-through) buffer
  12205. alignment is required for DMA transfers because a)
  12206. arch_invalidate_dcache could lose buffered writes data and b)
  12207. arch_flush_dcache could corrupt adjacent memory if the buffer and the
  12208. bufflen, are not on ARMV7M_DCACHE_LINESIZE boundaries. From David
  12209. Sidrane.
  12210. * STMicro STM32 Boards:
  12211. - STM32F103-Minumum SPI: SPIDEV_WIRELESS used when this has
  12212. changed to SPIDEV_CONTACTLESS. From Nicolas Estibals.
  12213. - configs/: a few more places where SPIDEV_WIRELELSS should be
  12214. SPIDEV_CONTACTLESS.
  12215. - STM32F103-Minumum: Fix a BUG when reading from output pin. We need
  12216. a different read_ops to read from output pin. This patch fixes the
  12217. issue. From Alan Carvalho de Assis.
  12218. - STM32F103-Minumum: Use separated read_ops for GPIO interrupt pins.
  12219. From Alan Carvalho de Assis.
  12220. - STM32F103-Minumum: Fix compiler error in MCP2415 logic.
  12221. - STM32F746G-DISCO: Fix for compilation of STM32F746G-DISCO. From Ivan
  12222. Ucherdzhiev.
  12223. - STM32F746G-DISCO: Fix for stm32f746g-disco board for button support
  12224. with interrupt. This change is tested with buttons app example and it
  12225. is working with interrupts (signals). I tried the test with polling
  12226. but at this point it doesn't work. From Ivan Ucherdzhiev.
  12227. * Build System
  12228. - Fix -Werror=implicit-fallthrough on gcc7. From Julien Lecoeur.
  12229. - configs/Board.mk: Remove comment form end of line. In windows native
  12230. build, it appears to be trying to make that an extra parameter to the
  12231. AR command. From Jeff.
  12232. - configs/Board.mk: Remove quotes from CONFIG_ARCH_FAMILY. Causes
  12233. problems with Windows native build. From Jeff.
  12234. - Makefile.win would only create uboot images for ARM. MIPS support
  12235. also needed. From Lwazi Dube.
  12236. * C Library/Header Files:
  12237. - C++: Fix C++ __guard implementation for ARM. The standard C++ ABI
  12238. that most platforms follow defines __guard to be 64 bits. The existing
  12239. implementation of libxx_cxa_guard.cxx follows this. However, the
  12240. 32-bit ARM C++ ABI defines it as 32 bits instead, and changes the
  12241. meaning slightly so only the lowest bit is used. This matters because
  12242. GCC creates guard symbols without regards to what libxx_cxa_guard.cxx
  12243. says. So on ARM, gcc allocates 4 bytes, but __cxa_guard_release
  12244. writes 8 bytes, zeroing out another unlucky variable nearby. Fix it
  12245. by special-casing 32-bit ARM in libxx_cxa_guard. From Jim Paris.
  12246. - C++: In cwchar it uses CONFIG_LIBC_WCHAR to only export the wc/mb
  12247. functions. When a build does not want to use wide or multibyte char
  12248. CONFIG_LIBC_WCHAR is not set. Therefore we should to only export the
  12249. wc/mb functions when defined. Regardless of the stat of
  12250. CONFIG_LIBC_WCHAR the non mb/wc definitions such as mbstate_t,
  12251. wint_t, wctype_t need to be exported. From David Sidrane.
  12252. - C Library: Fix an error in mkstemp() the could result in an infinite
  12253. loop. From Alan Carvalho de Assis.
  12254. - C Library: (1) Fix an error in mkstemp() the could result in an
  12255. infinite loop. (2) Fix for wrong output in some cases. For Example:
  12256. (a) input: "FILEXX", output: "FILE00" and repeats same output for
  12257. further invocations of mkstemp(). But, the output has to be FILE01,
  12258. FILE02, ...., FILEZZ. (b) input: "FILEXXXXXX", output: "FILE100000",
  12259. for next invocation "FILE200000" and so on. But it's good, if the
  12260. output goes like FILE000001, FILE000002, ..., FILE000101, ... From
  12261. Lokesh B V.
  12262. - C Library: gethostbyname_r: Fix check for space in buffer.
  12263. - C Library: inet_ntop() was printing negative values for fields >127.
  12264. - Math Library: Fix wrong output in modf() API. The sign of integral
  12265. part given by the modf() should be same as sign of input. But for
  12266. inputs between 0 and 1, the sign of integral part was not same as
  12267. sign of input. From Lokesh B V.
  12268. - Math Library: Fix wrong output in ceil() API. Ex:for input x = 1.0,
  12269. the output should be 1.0, but the output was 2.0. From Lokesh B V.
  12270. * Tools
  12271. - tools/testbuild.sh: Fix missing $ before variable name.
  12272. - tools/mkdeps.c: Eliminate a warning. MAX_PATH may already be defined
  12273. in included system files. From Jeff.
  12274. * Applications: apps/
  12275. - All apps/ Makefiles: Add .PRECIOUS: apps/libapps.a to every
  12276. Makefile. Hopefully this will end awkward problems when you Control-C
  12277. out of a build and libapps.a is deleted.
  12278. - platform/Makefile: More attempts to fix for Windows native build.
  12279. Backslash as a delimiter causes problems in pattern subsitutions.
  12280. * NSH: apps/nshlib:
  12281. - NSH network initialization: Fix some ieee 802.15.4 initialization
  12282. logic. It should not set the saddr or panid; those cannot be
  12283. hard-coded but must come from the coordinator. Re-factor a function
  12284. that has gotten too big and too complex. Do not set the IP address
  12285. for 6loWPAN. The 6loWPAN stack uses IP address that derive from the
  12286. ieee 802.15.4 addressing and cannot be (safely) configured by the user.
  12287. - NSH Library: Fix copy-paste typo in nsh_usbconsole.c. From Oleg
  12288. Evseev.
  12289. - NSH Library: fix size of 6LoWPAN extended address.
  12290. - NSH Library: Fix build break in nsh_command.c with IPv4/IPv6 dual
  12291. stack. From Masayuki Ishikawa.
  12292. - NSH Library: Correct parsing of ifconfig so that you can specify the
  12293. HW address without specifying the IP address.
  12294. * Examples/Tests: apps/examples:
  12295. - examples/smart: Fix some compilation errors. Obviously this test has
  12296. not been used in a LONG time.
  12297. - examples/udp: Renaming some files to prevent name collision in
  12298. libapps.a. Fix naming of a configuration setting.
  12299. - examples/nettest: Renaming some files to prevent name collision in
  12300. libapps.a
  12301. - examples/nximage: Remove unused global variable.
  12302. - examples/nsh: Remove APPNAME, PRIORITY, and STACKSIZE settings from
  12303. Makefile to avoid showing nsh in Builtin Apps. From Masayuki Ishikawa.
  12304. * Network Utilities: apps/netutils:
  12305. - netutils/tftpc: Missing header file causes errors in some
  12306. configurations.
  12307. - netutils/tftpc: TFTPC depends on CONFIG_NET_IPv4.
  12308. - netutils/netlib: Fixes to work when only USRSOCK is enabled.
  12309. - netutils/netlib: Fix netlib_nodaddrconv() so that its return type is
  12310. the same as other address conversion functions.
  12311. - netutils/netlib: If only PF_IEEE802154 socket family is enabled, then
  12312. must use SOCK_DGRAM.
  12313. - netutils/ftpc: Fix some memory leaks. From Boris Astardzhiev.
  12314. - netutils/thttpd: Fix a malformed if condition detected by GCC 6.x.x.
  12315. - netutils/dhcpd: Prevent buffer overflow in dhcpd_addoption. offset
  12316. represents distance from start of option buffer. So this should be
  12317. changed current option pointer minus start of buffer. From EunBong
  12318. Song.
  12319. * Wireless Utilities: apps/wireless:
  12320. - wireless/ieee802154/i8sak: Need to increment the next_saddr after
  12321. each successful association.
  12322. * System Utilities (apps/system)
  12323. - correct copy-paste typo in comments in composite_main.c From Oleg
  12324. Evseev.
  12325. - system/dhcpc: The DHCPC renew command did not build correctly due to
  12326. naming problems. Noted by Masayuki Ishikawa.
  12327. - system/dhcpc: Fix warning about renew_main.o appear twice in rule.
  12328. * Tools (apps/tools):
  12329. - tools/mkkconfig.bat: Use %cd% instead of %~dp0 for usage of APPSDIR
  12330. in this batch file.
  12331. - tools/mkkconfig.bat: Remove quotes in echo. These were begin
  12332. Echo'ed and generating double quots in the output. From Jeff.
  12333. - Windows build fixes: tools/mkkconfig.bat - switch APPSDIR path to
  12334. use forward slashes for kconfig-frontends. interpreters/ficl -
  12335. Reorder some targets that causes GNUwin32 make to behave badly. From
  12336. Jeff.
  12337. NuttX-7.23 Release Notes
  12338. ------------------------
  12339. The 123rd release of NuttX, Version 7.23, was made on December 4, 2017,
  12340. and is available for download from the Bitbucket.org website. Note
  12341. that release consists of two tarballs: nuttx-7.23.tar.gz and
  12342. apps-7.23.tar.gz. These are available from:
  12343. https://bitbucket.org/nuttx/nuttx/downloads
  12344. https://bitbucket.org/nuttx/apps/downloads
  12345. Both may be needed (see the top-level nuttx/README.txt file for build
  12346. information).
  12347. Additional new features and extended functionality:
  12348. * Core OS:
  12349. - sem_open() should return SEM_FAILED on any failures. This is change
  12350. in the POSIX specification since the original sem_open() was written
  12351. so many years ago.
  12352. - exec(): The non-standard interface exec() is now enshrined as a
  12353. official NuttX API. I really dislike doing this but I think that
  12354. this is probably the only want to load programs in the protected
  12355. mode. It is currently used by some example code under apps/ that
  12356. generate their own symbol tables for linking. Other file execution
  12357. APIs relay on a symbol table provided by the OS. In the protected
  12358. mode, the OS cannot provide any meaning symbol table for execution
  12359. of code in the user-space blob so that is they exec() is really
  12360. needed in that build case. And, finally, the interface is
  12361. completely useless and will not be supported in the KERNEL build
  12362. mode where the contrary is true: An application process cannot
  12363. provide any meaning symbolic information for use in linking a
  12364. different process.
  12365. - OS Internal Functions: Rename many OS internal functions so it is
  12366. clear that they are not part of the application interface. All
  12367. internal functions with the sem_* prefix became nxsem_*, sig* become
  12368. nxsig_*, mq_* become nxmq_*, etc.
  12369. - Cancellation Points: Add new cancellation point interface,
  12370. check_cancellation_point().
  12371. - Signals: Add logic to wake up a thread that is waiting on a signal
  12372. if it is canceled.
  12373. - sigtimedwait(): Add logic to suppress the wait if there is a
  12374. pending cancellation.
  12375. - clock_nanosleep(): Implement clock_nanosleep(). nanosleep() is now
  12376. reduced to a libc wrapper around clock_nanosleep().
  12377. - task_delete(): Do not permit user applications to delete kernel
  12378. threads.
  12379. - kthread_create(): Rename kernel_thread() to kthread_create() for
  12380. better naming consistency with task_create() and kthread_delete().
  12381. - boardctl(): Remove the BOARDIOC_GRAPHICS_SETUP command.
  12382. - TCB: Move POSIX thread specific data from pthread TCB to common TCB
  12383. structure. This change allows using pthread_getspecific and
  12384. pthread_setspecific from main thread. Patch also enables using
  12385. pthread data with config option CONFIG_DISABLE_PTHREAD=y. From Jussi
  12386. Kivilinna.
  12387. - mm: Remove the CONFIG_GRAN_SINGLE configuration option. It adds no
  12388. technical benefit (other than some minor reduction in the number of
  12389. interface arguments) but adds a lot of code complexity. Better
  12390. without it.
  12391. - mm: Add a function to get information about the state of the
  12392. granule allocator. This is the moral equivalent of mallinfo().
  12393. * File Systems/Block and MTD Drivers
  12394. - MT25Q Serial FLASH: Add support for Micron MT25Q series MT25Q128.
  12395. From Sebastien Lorquet.
  12396. - MX35LFxGE4AB: Add an MTD driver for Macronix MX35LFxGE4AB serial
  12397. NAND flash. From Ekaterina Kovylova.
  12398. - FileMTD: Add block device MTD interface. Block MTD interface
  12399. allows using block device directly as MTD instead of having to use
  12400. file-system in between. NOTE that this provides the opposite
  12401. capability of FTL which will let you use an MTD interface directly
  12402. as a block device. From Jussi Kivilinna.
  12403. - BCH: The character driver to block device access now supports an
  12404. IOCTL to get the geometry of the underlying block device.
  12405. - mkfatfs: Remove mkfatfs from the OS. This is a user-space
  12406. application and belongs in apps, not in the OS.
  12407. - procfs: Implements procfs /proc/fs/blocks and /proc/fs/usage files,
  12408. replacing the NSH df command. Also implements procfs /proc/fs/mount
  12409. file, replacing the NSH mount command when there are no arguments.
  12410. - procfs: Add /proc/meminfo. This is an alternative way to get the
  12411. information that was previoulsy available in apps/system/free.
  12412. apps/system/free was removed because it made illegal calls into the
  12413. OS violating the portable interface. This new procfs entry provides
  12414. the same information with no such violation. it also provides
  12415. information about the kernel heap (formerly /proc/kmm), about the
  12416. use of program memory(formerly /proc/progmem). And also information
  12417. for the page table usage in the KERNEL build.
  12418. - UserFS: Adds the UserFS client and of the UserFS feature in
  12419. general. Initially used Unix domain local sockets instead of
  12420. message queues. Easier to transfer big data in local sockets than
  12421. message queues. However, that lead to certain inescapable deadlock
  12422. conditions So the IPC was converted to UDP LocalHost loopback
  12423. sockets. The problem with the local sockets is that they do require
  12424. operations on the top level pseudo-file system inode tree. That
  12425. tree must be locked during certain traversals such as enumerate
  12426. mountpoints or enumerating directory entries. This conversion is
  12427. unfortunate in the sense that Unix local domain sockets are
  12428. relatively lightweight. LocalHost UDP sockets are much heavier
  12429. weight since they rely on the full UDP stack.
  12430. * Graphics/Display Drivers:
  12431. - Framebuffer character driver: Add framebuffer character device driver.
  12432. - LCD Framebuffer: Add support for a generic front-end that will
  12433. convert any LCD driver into a framebuffer driver.
  12434. - Framebuffer character driver: Include support for LCD drivers that
  12435. use a simulated framebuffer and must receive explicit notification
  12436. when there is an update to a region in the framebuffer.
  12437. - LCD: Make LCD driver configuration independently selected from NX
  12438. graphics configuration. This makes things awkward and loses some
  12439. error checking but is a necessary step in order to make LCD drivers
  12440. usable when the NX graphics system is disabled.
  12441. * Networking/Network Drivers:
  12442. - Networking: Add implementation of logic for SIOCGIFCONF and
  12443. SIOCGLIFCOF IOCTL commands.
  12444. - Network IOCTLs: Add support for the SIOCGIFBRDADDR ioctl() command.
  12445. - Routing Tables: Permit IPv4 and IPv6 routing tables to be of
  12446. different sizes.
  12447. - Routing Tables: Adds support for read-only routing tables. Prior
  12448. to this change, routing tables were only support in RAM and had to
  12449. be initialized with explicit logic to add the necessary routes to
  12450. the routing table. With this change, routes may be defined in the
  12451. pre-initialized, read-only routing table provided by the
  12452. board-specific logic.
  12453. This would be particularly useful, for example, in the case where
  12454. there is only a single network adaptor and you want all output
  12455. packets to go to the single adaptor in all cases. So for that
  12456. behavior you could add a read-only routing table to the
  12457. board-specific long that contains a single entry, the default route:
  12458. 0.0.0.0/0.
  12459. - Routing Tables. Added support for routing tables in files in a file
  12460. system. This might be useful for customized, per-unit routing
  12461. tables. There are two issues with it however:
  12462. 1. Reading from file system on a per packet basis could be slow. I
  12463. think it probably should have a small, in-memory cache of most
  12464. frequently used routes for good problem.
  12465. 2. Currently the delroute logic is disabled due to a problem with
  12466. the design. NuttX does not currently support truncate().
  12467. Therefore, it is not possible to delete entries from the routing
  12468. table file. In this current implementation, that leaves the last
  12469. entry intact at the end of the file. An alternative design
  12470. might include a tag on each record to indicate if the record is
  12471. valid or not. That would work but would add complexity to the
  12472. other routing table functions.
  12473. - Routing Tables: Add support for an in-memory routing table cache in
  12474. order to improve performance when the routing table is retained in a
  12475. file. The cache holds the most recently used routing table entries
  12476. and so can eliminate some file access. Flush the in-memory cache
  12477. when any entry is deleted from the routing table. When a router
  12478. matching an IP address is found, add the routing table entry to the
  12479. cache.
  12480. - Routing Tables: Add logic to mark a route as most-recently-used in
  12481. the route cache.
  12482. - ICMP: This change adds support for semi-standard IPPROTO_ICMP
  12483. AF_INET datagram sockets. This replaces the old ad hoc, nonstandard
  12484. way of implementing ping with a more standard, socket interface.
  12485. - ICMPV6: This commit adds support for semi-standard IPPROTO_ICMP6
  12486. sockets. This is a replacement for the non-standard ICMPv6 ping
  12487. support that violated the portable POSIX OS interface.
  12488. - ICMPv6: Add option to manually specify router prefix in router
  12489. advertisement message. From Sakari Kapanen.
  12490. - Local Sockets: This commit modifies the Unix domain local socket
  12491. design. Local sockets are built on top of pipes. The Local socket
  12492. implementation maintained file descriptors to interrupt with the
  12493. pipes. File descriptors have the bad property that they are valid
  12494. only while running on the thread within the task that created the
  12495. local socket.
  12496. As a policy, all internal OS implementations must use "detached"
  12497. files which are valid in any context and do not depend on the
  12498. validity of a file descriptor at any point in time. This commit
  12499. converts the usage of file descriptors to detached files throughout
  12500. the local socket implementation.
  12501. * Wireless Networking/Wireless Drivers:
  12502. - IEEE-802154: Adds support for receiving MAC events via IOCTL through
  12503. socket interface. From Anthony Merlino.
  12504. - IEEE-802154: Simplifies notify() and rxframe() calls to a single
  12505. notify() call. dataind's and all other "notifs" are now "primitives"
  12506. which aligns with standard terminology From Anthony Merlino.
  12507. - MAC802154: Add support for getting promiscuous mode state From
  12508. Anthony Merlino.
  12509. - MAC802154 Character Driver: When in promiscuous mode, the char
  12510. driver sends the entire frame, including the MAC header. This
  12511. change adds an offset field indicating the header-payload boundary.
  12512. It is set to 0 when not in promiscuous mode as the header is not
  12513. passed to the application
  12514. - 6LoWPAN: Remove CONFIG_NET_6LOWPAN_FRAMELEN. In this case where
  12515. multiple radios are supported, this may not be a constant. 6LoWPAN
  12516. now always queries the driver to get the maximum frame length.
  12517. - 6LoWPAN: Support sending to a router that is on-link and may be
  12518. able to forward the packet for us if the destination is not
  12519. reachable directly. From Anthony Merlino.
  12520. - XBee: Adds XBee S2C (802.15.4 firmware) support. XBee driver
  12521. emulates mac802154 interface. From Anthony Merlino.
  12522. * Other Common Device Drivers:
  12523. - PowerLED: Add upper-half driver for high power LED driver (powerled)
  12524. From Mateusz Szafoni.
  12525. - RTC Driver: Add periodic alarms to upper and lower halves. From
  12526. Juha Niskanen.
  12527. - Pipes: Fix writing large buffers not triggering POLLIN for reader
  12528. poll. From Jussi Kivilinna.
  12529. - USB CDC/ACM Device: Add support for RX flow control to the CDC/ACM
  12530. driver.
  12531. - USB CDC/ACM Device: Add support for flow control TERMIOs in CDC/ACM
  12532. driver.
  12533. - USB RNDIS Device: Add RNDIS-over-USB driver. From Sakari Kapanen
  12534. with added Hi-Speed support from Masayuki Ishikawa.
  12535. - Loop Driver: Don't use file descriptors... Use the internal file
  12536. system interfaces so that the loop device can be shared across
  12537. threads.
  12538. - APA102 LED controller: Add driver for APA102 LED controller. These
  12539. LEDs are used on LED Strips and are controlled over SPI.
  12540. - INA219. Add INA219 Driver. The INA219 is a combined voltage and
  12541. current sensor that can measure up to 26 volts and a current that
  12542. depends on an external shunt resistor. Connection happens via
  12543. i2c/smbus and the chip features a power supply rail that is
  12544. independent from the measured voltage, so it can measure low
  12545. voltages. Right now it measures bus voltage and current, and does
  12546. not use the internal calibrated current reading, nor the available
  12547. power measurement. From Sebastien Lorquet.
  12548. - PCA9555: The IRQ subsystem now supports passing a void * parameter
  12549. to IRQ handlers. Use that method to support multiple PCA9555
  12550. devices, by passing a pointer to the device to the board defined IRQ
  12551. handler. Now the CONFIG_ for multiple PCA devices just allocates
  12552. device structures dynamically instead of statically when not enabled.
  12553. The same interrupt handler is entered with the device structure
  12554. parameter in all situations, multiple or single PCA. One should
  12555. still be careful if multiple PCA devices share the same IRQ. From
  12556. Sebastien Lorquet.
  12557. - APDS-9960: Add driver for the APDS-9960 gesture sensor. From Alan
  12558. Carvalho de Assis.
  12559. - MAX7219: Add support to MAX7219 LED Matrix as LCD interface. From
  12560. Alan Carvalho de Assis.
  12561. - WM8774: Add WM8774 audio DAC support. From Masayuki Ishikawa.
  12562. - Nunchuck: Add Nintendo Wii Nunchuck driver. From Alan Carvalho de
  12563. Assis.
  12564. * Simulation
  12565. - Simulation: Add a configuration for non-graphical testing of the
  12566. framebuffer character driver using apps/example/fb.
  12567. - Simulation: Add a configuration for testing the UserFS using
  12568. apps/examples/userfs.
  12569. * Broadcom BCM2708:
  12570. - BCM2708: Add enough infrastructrue (more stubs) to get a clean
  12571. compilation of the Pi Zero configuration (with many undefined things
  12572. at link time). This includes several register definition header
  12573. files (some from Alan Carvalho de Assis), basic interrupt handling
  12574. logic, boot-up files, GPIO support, tickless timer, build and
  12575. configuration logic
  12576. * Broadcom BCM2708 Boards:
  12577. - Raspberry Pi Zero. Basic board support at configs/pizero. Untested
  12578. in this release and still some remaining issues.
  12579. * Infineon XMC4xxx Boards:
  12580. - XMC4500-Relax: Add config for UART3 on RXD P0.0 and TXD P0.1 pins.
  12581. From Alan Carvalho de Assis.
  12582. * NXP Freescale LPC17xx Boards:
  12583. - Open1788: Add initialization of Framebuffer driver. Add
  12584. configuration for testing the framebuffer driver.
  12585. * NXP Freescale LPC43xx Drivers:
  12586. - LPC43xx: Add LPC43xx CAN driver. From Alexander Vasiljev.
  12587. * NXP Freescale LPC43xx Boards:
  12588. - MCB1700: Add support for Keil MCB1700 board. From Alan Carvalho de
  12589. Assis.
  12590. - Open1788: Add support for the discrete joystick driver.
  12591. - Open1788: Add a configuration for testing pdcurses with discrete
  12592. joystick.
  12593. * On Semiconductor LC823450
  12594. - LC823450: Add ADC driver and watchdog drivers. From Masayuki
  12595. Ishikawa.
  12596. - LC823450: Add IPL2 support. From Masayuki Ishikawa.
  12597. - LC823450: Add I2S support. From Masayuki Ishikawa.
  12598. - LC823450: Add auto LED for CPU activity. From Masayuki Ishikawa.
  12599. * On Semiconductor LC823450 Boards
  12600. - LC823450-XGEVK: Enable ADC and watchdog driver. From Masayuki
  12601. Ishikawa.
  12602. - LC823450-XGEVK: Add IPL2 support. From Masayuki Ishikawa.
  12603. - LC823450-XGEVK: Add WM8774 support. From Masayuki Ishikawa.
  12604. - LC823450-XGEVK: Add auto LED support. From Masayuki Ishikawa.
  12605. - LC823450-XGEVK: Enable CONFIG_SMP for audio. From Masayuki Ishikawa.
  12606. - LC823450-XGEVK: Add rndis configuration. From Masayuki Ishikawa.
  12607. * STMicro STM32:
  12608. - ARM Kconfig: Add support for classic ARM11 architecture selections.
  12609. - STM32 Tickless: Removes the restriction to 16-bit counts when a
  12610. 32-bit timer is used for tickless operation on the stm32. As it
  12611. was, the restriction is very limiting, especially if one wants high
  12612. granularity and large achievable intervals and has the hardware
  12613. (namely the 32bit timers) available. From Rajan Gill.
  12614. - STM32 L4 Kconfig: Add some L486 and L496 chips. From Juha Niskanen
  12615. - STM32 F7: Adds architecture support for the STM32 F72x and F73x
  12616. families. From Bob Feretich.
  12617. - STM32 F7: Allow changing voltage output scaling setting and
  12618. prevents enabling over-drive mode for low frequencies (STM32 F74xx,
  12619. 75xx, 76xx, 77xx). From Jussi Kivilinna. Changes replicated for
  12620. the 72xx and 73xx families.
  12621. * STMicro STM32 Drivers:
  12622. - STM32 ADC: Added support for ADC's IO_ENABLE_TEMPER_VOLT_CH ioctl
  12623. on STM32F10XX and STM32F20XX. From Dmitriy Linikov.
  12624. - STM32 Wakeup: Add logic for enabling wakeup pins. From Oleg Evseev.
  12625. - STM32 PWR: Adds stm32_pwr_getsbf and stm32_pwr_getwuf functions
  12626. that return the standby flag and the wakeup flag PWR power
  12627. control/status register. From Oleg Evseev.
  12628. - STM32 HRTIM: Sdd support for capture, chopper, deadtime and dump
  12629. registers. From Mateusz Szafoni.
  12630. - STM32 RTC: Canceling an alarm marks it as inactive. From Juha
  12631. Niskanen
  12632. - STM32 Serial: Add interface to get uart_dev_t by USART number,
  12633. stm32_serial_get_uart(). From Juha Niskanen.
  12634. - STM32 F33xx ADC: Initial ADC support for the STM32F33XX. From
  12635. Mateusz Szafoni.
  12636. - STM32 F33xx ADC: Add ADC DMA support to STM32F33 configuration. From
  12637. Mateusz Szafoni.
  12638. - STM32 L4 ADC: Port analog watchdog ioctl commands from the Motorola
  12639. MDK. From Juha Niskanen
  12640. - STM32 L4 ADC: Add option for routing ADC data to DFSDM, fix DFSDM
  12641. DMA. From Juha Niskanen
  12642. - STM32 L4 ADC: Add PM hooks from Motorola MDK
  12643. - STM32 L4 FLASH: Add function for modifying device option bytes,
  12644. From Juha Niskanen.
  12645. - STM32 L4 DFSDM: Add peripheral support for digital filters for
  12646. sigma-delta ADCs. Initial version. Timer trigger support is not
  12647. completed and there is some issue with DMA. From Juha Niskanen.
  12648. - STM32 L4 I2C: Port then STM32 F7 I2C driver to STM32 L4. STM32L4 I2C
  12649. driver is in work-in-progress state (plentiful of TODOs and
  12650. #warnings) and lags many features found in more up-to-date STM32 I2C
  12651. drivers. The peripheral on STM32F7 and STM32L4 are identical except
  12652. for L4's 'wakeup from stop mode' flag and STM32F7's I2C driver is in
  12653. more 'ready to use' state. The I2C clock configuration is kept the
  12654. same as before (I2CCLK = PCLK1 80 MHz) instead of switching to
  12655. STM32F7 arch default that is I2CCLK=HSI. Further work would be to
  12656. add configuration option for choosing I2C clock source instead of
  12657. current hard-coded default. From Jussi Kivilinna.
  12658. - STM32 L4 RTC: Add up_rtc_getdatetime_with_subseconds
  12659. - STM32 L4 RTC: Change maximum alarm time from 24h to one month. From
  12660. Juha Niskanen.
  12661. - STM32 L4 RTC: Add support for periodic interrupts with
  12662. (experimental) CONFIG_RTC_PERIODIC. From Juha Niskanen.
  12663. - STM32 L4 SDMMC: Add support for an SDMMC driver. From Miha Vrhovnik.
  12664. - STM32 L4 Serial: Suspend serial for Stop mode. From Juha Niskanen.
  12665. - STM32 L4 Serial/PM: STM32L4 serial PM interface improvements:
  12666. Check rx/tx buffers for pending data in pmprepare. Remove adhoc PM
  12667. interfaces and move serial suspend functionality behind CONFIG_PM.
  12668. From Jussi Kivilinna.
  12669. * STMicro STM32 Boards:
  12670. - STM32F103-Minimum: Add board support for APA102 driver. From Alan
  12671. Carvalho de Assis.
  12672. - STM32F103-Minimum: Add ADC support on stm32f103-minimum board.
  12673. From Alan Carvalho de Assis.
  12674. - STM32F103-Minimum: Add support for LM75 in the stm32f103-minimum
  12675. board. From Alan Carvalho de Assis.
  12676. - STM32F103-Minimum: Add an ADPS-9960 example configuration. From
  12677. Alan Carvalho de Assis.
  12678. - STM32F103-Minimum: Add board support for MAX7219 LED Matrix
  12679. controller. From Alan Carvalho de Assis.
  12680. - STM32F103-Minimum: Add USB MSC device initialization to
  12681. stm32f103-minimum. From Alan Carvalho de Assis.
  12682. - STM32F103-Minimum: Add framebuffer driver initialization for
  12683. stm32f103-minimum board. From Alan Carvalho de Assis.
  12684. - STM32F103-Minimum: Add Nunchuck board support for
  12685. stm32f103-minimum board. From Alan Carvalho de Assis.
  12686. - STM32F4 Discovery: Add support for JLX12864G display on STM32F4
  12687. Discovery board. From Alan Carvalho de Assis.
  12688. - Viewtool-STM32F107: Add support to auto-mount the procfs file system.
  12689. - Photon: Support SPI1 and SPI3. From Anthony Merlino.
  12690. - STM32F334-DISCO: Add lower half driver for high power LED
  12691. (powerled). From Mateusz Szafoni.
  12692. - STM32F334-DISCO: Add flash mode support for powerled driver. From
  12693. Mateusz Szafoni.
  12694. - STM32F334-DISCO: Add powerled example configuration. From Mateusz
  12695. Szafoni.
  12696. - STM32F334-DISCO: Add lower-half driver for SMPS (buck-boost onboard
  12697. converter). From Mateusz Szafoni
  12698. - Nucleo-F334R8: Add logic for zero latency high priority interrupts
  12699. example. From Mateusz Szafoni.
  12700. - Nucleo-F334R8: Add highpri example configuration. From Mateusz
  12701. Szafoni.
  12702. - STM32 F4 Discovery: Added support for the LIS3DSH accelerometer on
  12703. the STM32F4 Discovery rev. C boards. From Florian Olbrich.
  12704. - STM32 F4 Discovery: ROMFS for STM32F4 Discovery board. From Tomasz
  12705. Wozniak.
  12706. - STM32 F4 Discovery: Add a USB MSC configuration. From Alan Carvalho
  12707. de Assis.
  12708. - STM32 F4 Discovery: RNDIS support on STM32F4Discovery + DM-STF4BB.
  12709. NOTE: MAC address for the host side starts 0xaa. This assignment
  12710. scheme should be fixed later. From Masayuki Ishikawa.
  12711. - STM32 F4 Discovery: Add STM32F4 Discovery board support for
  12712. Nunchuck joystick. From Alan Carvalho de Assis.
  12713. - STM3240G-EVAL: Add a configuration for testing the Framebuffer
  12714. character driver using the LCD framebuffer front.
  12715. - STM3240G-EVAL: Mount procfs if enabled.
  12716. - STM3240G-EVAL: Add support for pdcurses and the pdcurses demo
  12717. programs in the 'fb' configuration.
  12718. - Clicker2-STM32: Adds SD card, automount, and syslog file
  12719. support and fixes a few minor issues. From Anthony Merlino.
  12720. - Clicker2-STM32: Adds support for USB RNDIS device. From Anthony
  12721. Merlino.
  12722. - Olimex STM32-H407: Add serial support on the on-board UEXT
  12723. connector. Add USART6 for UEXT connector. Add nsh_uext
  12724. configuration and README update. From Jan Pobříslo.
  12725. - Nucleo-F410RB: Add support for the nucleo-F410RB board. From
  12726. Gwenhael Goavec-Merou.
  12727. - STM32F429i-DISCO: Add framebuffer driver initialization. Add a
  12728. framebuffer (fb) configuration.
  12729. - STM32F429i-DISCO: Add logic to auto-mount procfs. Enable procfs in
  12730. all configurations that use NSH.
  12731. - STM32F429i-DISCO: Enable support for the STMPE811 touchscreen
  12732. controller. Enable touchscreen and also the touchscreen testa at
  12733. apps/examples/touchscreen in the fb configuration.
  12734. - STM32F429i-DISCO: Convert NxWM configuration to use LTDC
  12735. framebuffer driver instead of SPI serial. Also reduce number of
  12736. layers from 4 to 1 in fb configuration. Only one layer is used.
  12737. - STM32L476-MDK: Add support for the on-board LEDs.
  12738. - Nucleo-L496ZG: Add DFSDM initialization. From Juha Niskanen
  12739. - Nucleo-L496ZG: Add support for SDMMC driver. From Miha Vrhovnik.
  12740. - Nucleo-L496ZG: Enable I2C4 bus with i2ctool in NSH configuration.
  12741. From Jussi Kivilinna.
  12742. - Nucleo-L496ZG: Make HSE on Nucleo-L496ZG default to enable USB.
  12743. From Miha Vrhovnik.
  12744. - Nucleo-F746ZG: Use the serial console over /dev/ttyACM0 by default.
  12745. The Nucleo-F746ZG doesn't come with Arduio RS-232 shield, then it is
  12746. better to use the serial over the /dev/ttyACM0 that is created
  12747. automatically when the board is plugged in the computer. From Alan
  12748. Carvalho de Assis.
  12749. - Nucleo-144: Adds support for the Nucleo-144 boards with
  12750. STM32F722ZE. From Bob Feretich.
  12751. * ZiLOG Z80
  12752. - z80/include: compiler.h, limits.h, types.h: Update SDCC/z80 files
  12753. to include support for long long, inline, __FILE__, and __func__.
  12754. * C Library/Header Files:
  12755. - include/: Add stdnoreturn.h. Holds definitions for the C11
  12756. noreturn keyword. Applies to C too.
  12757. - include/netinet/tcp.h: Add trivial standard tcp.h header file.
  12758. - libc: Add support for readv() and writev().
  12759. - libc: Adds tcflow().
  12760. - libc: Add support for sigwait().
  12761. - libnx: Changes to allow the font subsystem to be built without
  12762. enabling the entire graphics system (CONFIG_NX). Adds
  12763. CONFIG_NXFONTS and CONFIG_NXGLIB. Needed to duplicate some Kconfig
  12764. setting for NXFONTs if it can be configured and built independently
  12765. of NX.
  12766. * Tools:
  12767. - tools/configure.sh: Add special support so that you can start with a
  12768. windows native configuration and install on a different host (and
  12769. vice versa).
  12770. - tools/configure.c: Duplicate new functionaity added to configure.sh.
  12771. - tools/configure.sh: This commit adds a -m option for macOS. For
  12772. anyone not aware, Apple renamed OSX to macOS recently; thus the 'm'
  12773. instead of 'o'. This does not change the other uses of *_OSX to
  12774. macOS. From jeditekunum.
  12775. - tools/configure.c: Update functionality to match last change to
  12776. tools/configure.sh.
  12777. * NSH: apps/nshlib:
  12778. - apps/nshlib: mount command no long uses the non-standard OS
  12779. interface foreach_mountpoint(). Now simply cats /proc/fs/mount
  12780. when there are no arguments to the mount command.
  12781. - apps/nshlib: df command no long uses the non-standard OS interface
  12782. foreach_mountpoint(). Now simply cats /proc/fs/blocks or
  12783. /proc/fs/usage.
  12784. - apps/nshlib: The free commands no longer used mallinfo() to get
  12785. the state of the use heap. Two reasons: That is not useful
  12786. information in the kernel build. And (2) there are other memory
  12787. resources of interest in other configurations such as the Kernel
  12788. heap in PROTECTED and KERNEL builds, and the prog mem uses when
  12789. FLASH is used to hold modifiable data. The free command has been
  12790. extended to just dump the content of procfs entries and to include
  12791. all of these other memory resources of the procfs entries are
  12792. available.
  12793. * Examples/Tests: apps/examples:
  12794. - apps/examples/fb: Add a simple test for the framebuffer character
  12795. driver..
  12796. - apps/examples/ostest: sem_open() now returns SEM_FAILED in the
  12797. event of a failure.
  12798. - examples/ostest: Extend cancellation test to make sure that
  12799. cancelable threads waiting on a message queue or on a signal can be
  12800. canceled.
  12801. - Added a simple reader example for the LIS3DSH acceleration sensor
  12802. on STM32F4Discovery. From Florian Olbrich.
  12803. - apps/examples/apa102: Add a Rainbow example for APA102 LED Strip.
  12804. From Alan Carvalho de Assis.
  12805. - apps/examples/flowc: Add a simple test of serial hardware flow
  12806. control.
  12807. - Add powerled driver example. From Mateusz Szafoni.
  12808. - apps/examples/ina219: A simple infinite loop that polls the INA219
  12809. sensor and displays the measurements. From Sebastien Lorquet.
  12810. - apps/examples/alarm: Add options for reading alarm value and
  12811. canceling it. From Juha Niskanen.
  12812. - Add -n samples to lm75 app and replace Centigrade with Celsius.
  12813. From Alan Carvalho de Assis.
  12814. - apps/examples/adps9960: Add ADPS-9960 example. From Alan Carvalho
  12815. de Assis.
  12816. - apps/examples/obd2: Add OBD2 example application. From Alan
  12817. Carvalho de Assis.
  12818. - apps/examples/userfs: Add a test case for verifying UserFS.
  12819. - apps/examples/smps: Add SMPS driver example. From Mateusz Szafoni.
  12820. - apps/examples/pdcurses: Bring in pdcurses demos and make them
  12821. conform to the NuttX coding style.
  12822. - apps/examples/pdcurses: Add a very simple example that just shows
  12823. the entire character set (7-bit only). It adapts to the size of
  12824. the framebuffer and, hence, can be used with very tiny displays.
  12825. In fact it looks really dumb on big displays.
  12826. - apps/examples/nunchuck: Add Nunchuck example application. From
  12827. Alan Carvalho de Assis.
  12828. * File System Utilities: apps/fsutils:
  12829. - apps/fsutils/mkfatfs: Move mkfatfs from the OS to here.
  12830. * Network Utilities: apps/netutils:
  12831. - apps/netutils/netlib: Add netlib_ipv6adaptor() and
  12832. netlib_ipv4adaptor().
  12833. - apps/netutils/netlib: Add helpers for reading the routing table:
  12834. netlib_read_ipv4route() and netlib_read_ipv6route().
  12835. - apps/netutils/netlib: Add new utilities netlib_ipv[4|6]router()
  12836. that can be used to determine the IP address of a router that would
  12837. be used some some destination IP address that is not locally
  12838. accessible.
  12839. - apps/netutils/ftpc: Adds support for IPv6 and fixes various
  12840. transfer issues. From Anthony Merlino.
  12841. * CANUtilities: apps/canutils:
  12842. - apps/canutils/libobd2: Add libobd2 for NuttX. From Alan Carvalho
  12843. de Assis.
  12844. * Graphics: apps/graphics:
  12845. - graphics/traveler: Convert to use the framebuffer driver.
  12846. - apps/graphics/pdcurs34: This commit brings the public domain
  12847. pdcurses library into NuttX. NuttX graphics support based on the
  12848. framebuffer character drivers has been integrated. Input is
  12849. currently limited to a discrete joystick driver.
  12850. * Wireless Utilities: apps/wireless:
  12851. - apps/wireless/ieee802154/i8sak: Adds socket interface support. You
  12852. can now use both socket or char driver to control the MAC layer.
  12853. From Anthony Merlino.
  12854. - apps/wireless/ieee802154/i8sak: Adds sniffer port option and a few
  12855. other get/set parameters. From Anthony Merlino.
  12856. - apps/wireless/ieee802154/i8sak: Changes 'notif' to 'primitive'
  12857. corresponding to the changes in the Kernel. From Anthony Merlino.
  12858. - apps/wireless/ieee802154/i8sak: Channel setting is now saved
  12859. locally, so when performing a startpan or assoc, the channel
  12860. previously set is still used, even though the MAC layer gets reset.
  12861. From Anthony Merlino.
  12862. - apps/wireless/ieee802154/i8sak: Adds ability to get/set rxonidle
  12863. setting for MAC layer. From Anthony Merlino.
  12864. - apps/wireless/ieee802154/i8shark: Adds i8shark, a sniffer "adapter"
  12865. that captures all 802.15.4 traffic, packages it into a Wireshark ZEP
  12866. packet, and sends it to a host running Wireshark From Anthony
  12867. Merlino.
  12868. * System Utilities (apps/system)
  12869. - apps/system/ping and ping6: This commit removes the ping and ping6
  12870. commands from NSH and replaces then with the apps/system/ping and
  12871. apps/system/ping6 built-in commands. The NSH ping[6] commands had
  12872. to be removed because they violated the portable POSIX OS interface.
  12873. The apps/system/png and ping6 command uses the sem-standard
  12874. IPPROTO_ICMP and IPPROTO_ICMP6 socket interfaces.
  12875. * Platform-Specific Support (apps/platform)
  12876. Bugfixes. Only the most critical bugfixes are listed here (see the
  12877. ChangeLog for the complete list of bugfixes and for additional, more
  12878. detailed bugfix information):
  12879. * Core OS:
  12880. - Task Environment Creation: Fix an error in the duplication of the
  12881. child tasks environment in the special case where the parent's
  12882. environment was created, but then all of the variables were unset.
  12883. In that case, there is still an allocation in place but the size of
  12884. the allocation is zero. This case was not being handled correctly
  12885. when a child task attempts to create its environment and inherit the
  12886. zero-size partent environment. Noted by Anthony Merlino.
  12887. - timer_create(): Fix watchdog resource leak if cannot allocate a new
  12888. timer. From Bruno Herrera.
  12889. - OS Internal Functions: Internal OS functions should not return error
  12890. information via the user errno variable: This includes functions
  12891. like file_seek(), file_read(), file_write(), etc. The complete list
  12892. is too long to duplicate here (please refer to the ChangeLog for
  12893. details).
  12894. - OS Internal Functions: Not only should internal OS functions not
  12895. modify the errno variable, they should never introduce cancellation
  12896. points: psock_connect(), psock_listen(), psock_getsockopt(), etc.
  12897. The list is too long to duplicate here (please refer to the
  12898. ChangeLog for details).
  12899. - OS Internal Functions: Create OS internal versions of many
  12900. applications functions that were used by the OS. The new versions
  12901. differ from the application interfaces in that (1) they do not
  12902. return error information via the errno variable, and (2) they never
  12903. create cancellation points. This includes new internal interfaces
  12904. like nxsem_init() that is like sem_init(), etc. There are too many
  12905. to list here (see the ChangeLog for details).
  12906. - Task Exit: task_exithook.c fails to link if signals are disabled
  12907. because was unconditionally trying to send the SIGCHLD signal to the
  12908. parent in certain configurations. Noted by Jeongchan Kim.
  12909. - memalign(): Fix heap corruption caused by using unaligned chunk
  12910. size. Unaligned nodes generated by memalign later cause heap
  12911. corruptions when nodes are shrink further (for example, 24 bytes ->
  12912. 8 bytes, when alignment is 16 bytes). From Jussi Kivilinna.
  12913. - SMP: In sched/sched/sched_cpuselect.c, in order to find the cpu
  12914. with the lowest priority thread, we have to remember the already
  12915. found lowest priority. Noted by Anonymous in Issue #75.
  12916. - spinlocks: Disable local interrupts in spin_setbit() and
  12917. spin_clrbit() in order to avoid a deadlock condition. From Masayuki
  12918. Ishikawa.
  12919. - atexit()/on_exit(): Clear atexit()/on_exit() function pointer
  12920. before calling it. On most archs, up_assert() calls exit() so
  12921. without this change, if atexit() function triggers an assertion we
  12922. are in endless loop. From Juha Niskanen.
  12923. * File System/Block and MTD Drivers:
  12924. - tmpfs: Fixed directory unlocking in tmpfs_opendir. From Dmitriy
  12925. Linikov.
  12926. - fcntl(): fcntl() did not return success fail for F_SETFL. Reported
  12927. by Jussi Kivilinna.
  12928. - tcdrain(): tcdrain() was recently added to the NuttX C library.
  12929. But there is a problem. The specification of tcdrain() requires
  12930. that it be a cancellation point. In order to do this, tcdrain was
  12931. moved from the C library into the OS and the addition cancellation
  12932. point hooks were added. In non-FLAT builds, access via system calls
  12933. is also now supported.
  12934. - FS FAT: Fix hard-fault when listing contents of FAT root. From
  12935. Jussi Kivilinna.
  12936. - procfs: Correct a problem that was causing an apparent directory to
  12937. be reported as a file instead of a directory by opendir. This
  12938. happened after adding these three new procfs entries: fs/block,
  12939. fs/mount, and fs/usage. Of course, there is no directory fs in this
  12940. case, only three files that have fs/ in their relative pathnames.
  12941. The logic was detecting that fs was the name of the enty to report,
  12942. but it was then declaring that fs was a file (because fs/block is of
  12943. type file). This was fixed by adding a check for matching lengths.
  12944. i.e., if strlen(fs) != strlen(fs/block), then report fs as a
  12945. directory instead of a file.
  12946. - procfs: Fix uptime being clse to maximum 32-bit value in certain
  12947. config. From Juha Niskanen.
  12948. * Binary Loader:
  12949. - binfmt/: Don't schedule starthook if there are no constructors.
  12950. * Graphics/Display Drivers:
  12951. - LCD: ILI9341 initialize method not permitted to set errno.
  12952. * Networking/Network Drivers:
  12953. - Networking: net/netdev/netdev_ifconfig.c: Was not returning all of
  12954. the address info.
  12955. - Networking: In some cases, packets are still not sent behind the
  12956. router. I found that NuttX sends the ARP requests not to the router
  12957. but to the target. Mistake in file net/route/netdev_router.c. From
  12958. Aleksandr Kazantsev.
  12959. - SIOCGIFCONF and SIOCGLIFCONF IOCTL commands should only report on
  12960. network adatpors in the UP state.
  12961. - recvfrom(): Fix double leave_cancellation_point on error path.
  12962. From Jussi Kivilinna.
  12963. - send(): Verify that sock descriptor is valid. Fixes assertion when
  12964. using send on closed socket. From Jussi Kivilinna.
  12965. - sendto(): Remove assert check for null psock and buf input
  12966. pointers. Removes check as 'psock == NULL' altogether because that
  12967. checked for later in psock_send and psock_sendto. Change null check
  12968. for 'buf' so that it is handled same as in recvfrom.c (return
  12969. -EINVAL instead of assert). From Jussi Kivilinna.
  12970. - sockgetname() files need to include udp/udp.h and tcp/tcp.h or
  12971. otherwise NET_UDP_HAVE_STACK and NET_TCP_HAVE_STACK are undefined
  12972. and the logic is never compiled. Noted by Anthony Merlino.
  12973. - dup()/dup2(): There was a reference counting problem in the TCP
  12974. logic of net_clone(). net_clone() which is the common logic
  12975. underlying dup() and dup2() for sockets. When net_clone() calls
  12976. net_start_monitor() and net_start_monitor() returns a failure
  12977. (because the underlying TCP connection) then net_clone() must back
  12978. out the reference count on the structure. Problem noted by Pascal
  12979. Speck and this implementation of the solution is based on his
  12980. suggestion.
  12981. - close(): There was a possible recursion that could eventually
  12982. overflow the stack. The error occurred when closing the socket with
  12983. inet_close() while a socket callback was still queued. When the
  12984. socket callback was executed by devif_conn_event(), this resulted in
  12985. a call to psock_send_eventhandler() with TCP_CLOSE flag set which
  12986. then called tcp_lost_connection(). tcp_shutdown_monitor() then
  12987. called tcp_callback() again, which again called
  12988. psock_send_eventhandler(), and so on.... Noted by Pascal Speck.
  12989. Solution is also similar to a solution proposed by Pascal Speck.
  12990. - inet: Add check for protocol before handing out TCP and UDP sockets.
  12991. - IP Forwarding: Fixes typo that caused build error when IP
  12992. forwarding was enabled with CONFIG_NET_ICMPv6_NEIGHBOR enabled as
  12993. well. From Anthony Merlino.
  12994. - IP Forwarding: Do not add link layer header size to d_len inside
  12995. devif_forward(). From Anthony Merlino.
  12996. - TCP Networking: When CONFIG_NET_TCP_WRITE_BUFF=y there is a
  12997. situation where a NULL pointer may be dereferenced. In this
  12998. configuration, the TCP connection's 'semi-permanent' callback,
  12999. s_sndcb was nullified in tcp_close_disconnect. However, other logic
  13000. in tcp_lost_connection() attempt to use that callback reference
  13001. after it was nullifed. Fixed in tcp_lost_connectino() by adding a
  13002. NULL pointer change before the access. This was reported by Dmitriy
  13003. Linikov in Bitbucket Issue 72.
  13004. - UDP Broadcast: Fix some issues with regard to UDP broadcast
  13005. handling. This is Bitbucket Issue #77.
  13006. - ICMP: Fix an error in the poll logic. It was assumed that the
  13007. input parameter pvconn was valid. It was not. Instead, the poll
  13008. logic must work like the sendto() and recvfrom() logic: It must
  13009. keep a copy of the conn structure in the private data.
  13010. - ICMPv6: Fixes several errors preventing icmpv6_radvertise.c from
  13011. being compiled. Fixes conversions to network byte order (namely
  13012. vlifetime, plifetime, mtu). IPv6 source address is set to
  13013. link-local IP address instead of the address in the netdev
  13014. structure. This is in compliance to RFC 4861. RA didn't work on
  13015. Linux before this change. Finally, router prefix and prefix length
  13016. are derived from the IPv6 address and netmask in the netdev
  13017. structure. This seems to make more sense than using a predefined,
  13018. separate prefix from the config. From Sakari Kapanen.
  13019. - ICMPV6: icmpv6_input() needs to set d_len to 0 after consuming echo
  13020. reply, otherwise, garbage will get sent out. From Anthony Merlino.
  13021. - ICMPV6: Fix an error in the poll logic. It was assumed that the
  13022. input parameter pvconn was valid. It was not. Instead, the poll
  13023. logic must work like the sendto() and recvfrom() logic: It must
  13024. keep a copy of the conn structure in the private data.
  13025. - IGMPv2 Send: Fix incoming IGMP checksum calculation. From Louis
  13026. Mayencourt.
  13027. - ARP: Fix IGMP Ethernet address computation. From Louis Mayencourt.
  13028. * Wireless/Wireless Drivers:
  13029. - CC1101: CC1101 driver not permitted to set errno.
  13030. - 6LoWPAN: Correct an error in uncompressing multicast address.
  13031. - 6LoWPAN: Correct a bug in handling uncompressed frames (IPv6
  13032. dispatch). Adds a separate local variable, protosize, to keep track
  13033. of the size of thep protocol header.
  13034. - 6LoWPAN: Fix an endian-ness problem in 6LoWPAN address
  13035. decompression. From Anthony Merlino.
  13036. - 6LoWPAN: The logic that extracts interface identifier from the IP
  13037. address needs to be generalized to handle cases where the address is
  13038. not a link local address. From Anthony Merlino.
  13039. * Common Drivers:
  13040. - Serial: 16550 UART driver IOCTL method must not set errno; it must
  13041. return a negated errno value.
  13042. - LIS3DSH: Added the argument parameter (FAR void *arg) to the
  13043. interrupt handler provided by the LIS3DSH driver to fit the
  13044. definition for ISRs in xcpt_t. Changed the check for working queue
  13045. availability in lis3dsh interrupt handler to use work_available()
  13046. and not crash in case of an overrun. From Florian Olbrich.
  13047. - LIS2DH: Fixes for self-test. From Jussi Kivilinna.
  13048. - LIS2DH: Fix use of obsolete dbg macro. From Jussi Kivilinna.
  13049. - LIS331DL: LIS331DL driver not permitted to set errno.
  13050. - HTS221: Power-on sensor for loading calibration data. From Jussi
  13051. Kivilinna.
  13052. - MCP2515: Fix the MCP2515 Bit Rate Prescale calculation. Fix BRP
  13053. for SET_BITTIMING ioctl as well. From Alan Carvalho de Assis.
  13054. - STMPE811: Fix GPIO operation of STMPE811 driver.
  13055. 1. STMPE811_GPIO_DIR was defined for register name and later was
  13056. redefined to be the pin direction mask for `stmpe811_gpioconfig`.
  13057. I decided to change register name to be STMPE811_GPIO_DIR_REG, and
  13058. keep pin direction mask STMPE811_GPIO_DIR, so that any external
  13059. code that already use this driver will be unchanged.
  13060. 2. The STMPE811 register GPIO_DIR uses bit value 1 for output and 0
  13061. for input, but `stmpe811_gpioconfig` set the opposite.
  13062. 3. The call to `stmpe811_gpiowrite` from inside of
  13063. `stmpe811_gpioconfig` leaded to deadlock.
  13064. From Dmitriy Linikov.
  13065. - BQ2429X: Add BATIO_OPRTN_SYSON for enabling BATFET after SYSOFF.
  13066. From Jussi Kivilinna.
  13067. * Simulation:
  13068. - Simulation: Serial and console drivers are not permitted to set
  13069. the errno.
  13070. * ARMv7-M:
  13071. - ARM Stack Check: Fix assert panic when both TLS and interrupt stack
  13072. are enable. From Jussi Kivilinna.
  13073. * Infineon XMC4xxx Drivers:
  13074. - XMC4 USIC: Kconfig was not selecting XMC4_USIC for USIC1. From Alan
  13075. Carvalho de Assis.
  13076. - XMC4 UART: Fix XMC4xxx USIC UART sginal to be high level when in idle.
  13077. From Alan Carvalho de Assis.
  13078. - XMC4 UART:xmc4_uart_configure() expects the channel# not uartbase as
  13079. an input parameter. From Alan Carvalho de Assis.
  13080. - XMC4 UART: Enable RX/TX status. From Alan Carvalho de Assis.
  13081. - XMC4 UART: The Alternative Receive Interrupt was not being
  13082. configured.
  13083. * Infineon XMC4xxx Boards:
  13084. - XMC4500-Relax: Setup max. freq. 120MHz and setup pull-up to UART
  13085. RXD pin. From Alan Carvalho de Assis.
  13086. * Microchip/Atmel SAMv7 Drivers:
  13087. - SAMv7: DAC and ADC drivers are not permitted to set the errno.
  13088. - SAMv7: Correct an error in RX DMA setup. From Manish Kumar Sharma.
  13089. - SAMv7 USB: It is necessary to disable pre-emption and interrupts
  13090. around a loop that copies TX data into the hardware in order to
  13091. avoid a TX data underrun condition. From Anthony Merlino.
  13092. * NXP/Freescale LPC31xx Drivers:
  13093. - LPC31xx: Serial and console drivers are not permitted to set
  13094. the errno.
  13095. * NXP/Freescale LPC43xx:
  13096. - lpc43xx: lpc43_adc.c was being selected by the build system when
  13097. DAC was selected.
  13098. * NXP/Freescale LPC43xx Drivers:
  13099. - LPC43xx Ethernet: Fix some backward logic setting full-duplex and
  13100. 100mbps when autoconfiguration is disabled. Noted by Anonymous in
  13101. Issue #76.
  13102. - lpc43xx: UART_RX pins should be configured with input buffers
  13103. enabled. Otherwise it cannot be read. From Alexander Vasiljev.
  13104. * STMicro STM32:
  13105. - STM32 F2: Fixed build for STM32F20XX platforms when
  13106. CONFIG_STM32_DMACAPABLE is enabled. From Dmitriy Linikov.
  13107. - STM32 F4: Remove ltdc.h and dma2d.h. Those header files in that
  13108. location permitted inclusion into application space logic and,
  13109. hence, facilitated and encouraged calling into the OS and violating
  13110. the portable POSIX OS interface. The definitions in those header
  13111. files were move the appropriate location in the counterpart,
  13112. architecture specific files at arch/arm/src/stm32/dma2d.h and ltdc.h.
  13113. - STM32 L4: Build stm32l4_idle.c only if CONFIG_ARCH_IDLE_CUSTOM is
  13114. not enabled. From Jussi Kivilinna.
  13115. - STM32 F7: Remove ltdc.h and dma2d.h. Those header files in that
  13116. location permitted inclusion into application space logic and,
  13117. hence, facilitated and encouraged calling into the OS and violating
  13118. the portable POSIX OS interface. The definitions in those header
  13119. files were move the appropriate location in the counterpart,
  13120. architecture specific files at arch/arm/src/stm32f7/dma2d.h and
  13121. ltdc.h.
  13122. * STMicro STM32 Drivers:
  13123. - STM32: DAC and ADC drivers are not permitted to set the errno.
  13124. - STM32 ADC: Clear pending interrupts. From Mateusz Szafoni.
  13125. - STM32 CAN: Lower part of STM32 CAN driver
  13126. arch/arm/src/stm32/stm32_can.c uses all three hw tx mailboxes and
  13127. clears TXFP bit in the CAN_MCR register (it means transmission order
  13128. is defined by identifier and mailbox number).
  13129. This creates situation when order frames are put in upper part of
  13130. CAN driver (via can_write) and order frames are sent on bus can be
  13131. different (and I experience this in wild). Since CAN driver API
  13132. pretends to be "file like" I expect data to be read from fd the same
  13133. order it is written. So I consider described behaviour to be a bug.
  13134. Fixed by settin the TXFP bit in the CAN_MCR register (FIFO
  13135. transmit order). From comments by Alexey T, in Bitbucket Issue 73.
  13136. - STM32 HRTIM: Fix pclk calculation. From Mateusz Szafoni.
  13137. - STM32 HRTIM: Fix burst mode prescaler update. From Mateusz Szafoni.
  13138. - STM32 (alt) I2C: Ensure proper error handling. Injecting data
  13139. errors would cause the driver to continually reenter the isr with
  13140. BERR an RxNE. This fix allows the error to be cleared and
  13141. propagated to the waiting task. From David Sidrane.
  13142. - STM32: LTDC and DMA2D drivers are not permitted to set the errno.
  13143. - STM32 RTC: Workaround for potential subseconds race condition. In
  13144. all recent STM32 chips reading either RTC_SSR or RTC_TR is supposed
  13145. to lock the values in the higher-order calendar shadow registers
  13146. until RTC_DR is read. However many old chips have in their errata
  13147. this silicon bug (at least F401xB/C, F42xx, F43xx, L15xxE, L15xVD
  13148. and likely others): "When reading the calendar registers with
  13149. BYPSHAD=0, the RTC_TR and RTC_DR registers may not be locked after
  13150. reading the RTC_SSR register. This happens if the read operation is
  13151. initiated one APB clock period before the shadow registers are
  13152. updated. This can result in a non-consistency of the three
  13153. registers. Similarly, RTC_DR register can be updated after reading
  13154. the RTC_TR register instead of being locked."
  13155. - STM32 Serial: Do not stop processing input in SW flow-control
  13156. mode. From Juha Niskanen.
  13157. - STM32F33xxx ADC: Add some publicly visible interfaces and some
  13158. code to support injected channels. From Mateusz Szafoni.
  13159. - STM32F33xxx DMA: Add public interface to handle with DMA
  13160. interrupts. From Mateusz Szafoni.
  13161. - STM32F33xxx RCC: Fix CAN clock enable. From Mateusz Szafoni.
  13162. - stm32 F4 I2C: Ensure proper interrupt handling. Injecting data
  13163. errors that causes a STOP to be perceived by the driver, will
  13164. continually re-enter the isr with SB not set and BTF and RxNE set.
  13165. This changes allows the interrupts to be cleared and propagates a
  13166. I2C_SR1_TIMEOUT to the waiting task. From David Sidrane.
  13167. - STM32 L4 Serial: Do not stop processing input in SW flow-control
  13168. mode. From Juha Niskanen.
  13169. - STM32 F7: LTDC and DMA2D drivers are not permitted to set the errno.
  13170. - STM32 L4: DAC and ADC drivers are not permitted to set the errno.
  13171. - STM32 L4 DAC: Do not configure output pin if it is not used. From
  13172. Juha Niskanen.
  13173. - STM32 L4 RTC, PM: Small fixes to subseconds handling, ADC
  13174. power-management hooks
  13175. - STM32 F4 RTC: Fix reading alarm value that is more than 24h in
  13176. future. From Juha Niskanen
  13177. - STM32 L4 RTC: Fix reading alarm value that is more than 24h in
  13178. future. From Juha Niskanen
  13179. - STM32 L4 TIM: Fix compilation of timers with complementary outputs
  13180. when not PWM_MULTICHAN. From Juha Niskanen.
  13181. - STM32 L4 RCC: Restore backup-registers after backup-domain reset.
  13182. From Jussi Kivilinna.
  13183. - STM32 L4 RTC: Correct RTC_SSR and RTC_TR read ordering. In all
  13184. recent STM32 chips reading either RTC_SSR or RTC_TR is supposed to
  13185. lock the values in the higher-order calendar shadow registers until
  13186. RTC_DR is read. Change the register read ordering to match this and
  13187. don't keep a workaround for a hypothetical race condition (not in
  13188. any L4 errata, lets for once assume ST's silicon works as it is
  13189. documented...)
  13190. - STM32 L4 RTC: Init mode was never exited because nested locking in
  13191. rtc_synchwait() disabled backup domain access. From Juha Niskanen.
  13192. - STM32 L4 RTC: Use backup register magic value instead of INITS
  13193. bit. The INITS (bit 4) of RTC_ISR register cannot be used to
  13194. reliably detect backup domain reset. This is because we can operate
  13195. our device without ever initializing the year field in the RTC
  13196. calendar if our application does not care about correct date being
  13197. set. Hardware also clears the bit when RTC date is set back to year
  13198. 2000. From Juha Niskanen.
  13199. - STM32 L4 RTC: Put back the SSR race condition workaround. ST has
  13200. confirmed that the issue has not been fixed, and that it applies to
  13201. STM32 L4 too (was not in errata sheets due to documentation bug) See
  13202. discussion: https://community.st.com/thread/43710-issue-with-rtc-maximum-time-resolution .
  13203. From Juha Niskanen.
  13204. - STM32 F7 BBSRAM: Avoid assert in stm32_bbsram_savepanic. If panic
  13205. happens before stm32_bbsram is initialized, stm32_bbsram_savepanic
  13206. caused additional assert panic. Function has null pointer check, so
  13207. drop DEBUGASSERT. From Jussi Kivilinna.
  13208. - STM32 F7 I2C: fix I2C_M_NORESTART handling. From Jussi Kivilinna.
  13209. - STM32 F7 I2C: Restore bus frequency after I2C reset. Copy
  13210. frequency restoration fix from STM32L4 I2C driver to STM32F7 I2C
  13211. driver. From Jussi Kivilinna.
  13212. - STM32 F7 RTC: Fix reading alarm value that is more than 24h in
  13213. future. From Juha Niskanen
  13214. * STMicro STM32 Boards:
  13215. - STM32F334-DISCO: Add missing ram_vectors configuration in linker
  13216. script. From Mateusz Szafoni.
  13217. - Nucleo-F334R8: Add missing ram_vectors configuration in linker
  13218. script. From Mateusz Szafoni.
  13219. - Nucleo-F334R8: Add Missing ADC trigger configuration to the highpri
  13220. configuration. From Mateusz Szafoni.
  13221. - STM3240G-EVAL: The timer frequencies (BOARD_TIMx_FREQUENCY) are
  13222. incorrectly defined in board.h. Since the APB prescalers are set to
  13223. divide by 4 and 2 respectively, the frequencies should be "2xAPBx"
  13224. as said in the comment. The correct frequencies are already defined
  13225. but as STM32_APBx_TIMx_CLKIN. From Mattias Edlund.
  13226. - STM32F429i-DISCO: The ltdc configuration has been deleted because
  13227. it violated the portable POSIX OS interface. It used
  13228. apps/examples/ltdc and include ltdc.h and dma2d.h which were also
  13229. removed for the same reason.
  13230. * ZiLOG Z80
  13231. - configs/z80sim and xtrs: Serial driver lower halves ioctl methods
  13232. should return a negated errno value, not set the errno variable.
  13233. - z80 Make.defs: Fixes dependency generation with newest SDCC
  13234. compiler.
  13235. - configs/z80sim: Fix a naming problem. Also, don't try to build the
  13236. serial driver if CONFIG_NFILE_DESCRIPTOR=0.
  13237. - Z80: Makefile fix for use with current SDCC.
  13238. * Build System
  13239. - configs/: All defconfig files that include
  13240. CONFIG_NET_ICMPv6_SOCKET=y need to select CONFIG_SYSTEM_PING6=y and
  13241. deselect CONFIG_DISABLE_POLL.
  13242. - configs/: All NX configuration... Because of recent changes to
  13243. libnx/nxfonts, Supported bit per pixel must be separated specified
  13244. for NXFONTs too and need to match the select BPP for NX.
  13245. - Build system: Fix CONFIG_BUILD_KERNEL logic directories that have
  13246. ubin and kbin subdirectories. Conditional logic was fine for
  13247. CONFIG_BUILD_FLAT and CONFIG_BUILD_PROTECTED but generated useless
  13248. dependencies if CONFIG_BUILD_KERNEL.
  13249. * C Library/Header Files:
  13250. - libc/stdio: Build the lib_noflush() and lib_snoflush() stubs even
  13251. if CONFIG_FILE_DESCRIPTORS=0. They may still be needed.
  13252. - libc and libnx: When the libraries are built into two libraries, a
  13253. user space library and a OS space library (as in the PROTECTED and
  13254. KERNEL build). Then the user space library must not use the OS
  13255. internal interfaces; similarly, the OS must avoid using the
  13256. userspace interfaces so that it does not muck the errno value or
  13257. create spurious cancellation points.
  13258. - libc/match: Use of exp() vs expf() in logf() caused function to be
  13259. slow. From Alan Carvalho de Assis.
  13260. - libnx: Fixes a memory leak that is caused because the client message
  13261. queue is not unlinked after the client disconnects from the NX
  13262. server. From Masayuki Ishikawa.
  13263. - sscanf(): Fix sscanf() character conversion (%c): do not add '\0' at
  13264. the end as for strings, cause, for example, parsing one character
  13265. will fill two bytes: character itself and zero one '\0' after it, so
  13266. will overflow one byte variable argument and corrupt memory for
  13267. variables allocated after it. From Oleg Evseev.
  13268. * Tools
  13269. - tools/: configure.sh and configure.c should redirect stdout to
  13270. /dev/null but should not suppress stderr output.
  13271. * NSH: apps/nshlib:
  13272. - apps/nshlib/: Avoid truncating the strcmp result in the parser
  13273. into a unsigned char variable. nshlib/nsh_netcmds.c: Check for
  13274. valid hostip before using it. From Bruno Herrera.
  13275. - apps/nshlib/: Fix resource leak in 'dd' commenad when 'if=' or
  13276. 'of=' params are repeated in the command line. For example:
  13277. dd if=/dev/null if=/dev/zero of=/dev/null or
  13278. dd if=/dev/zero of=/dev/zero of=/dev/null. From Bruno Herrera.
  13279. - apps/nshlib: This commit eliminates the ping and ping6 commands
  13280. from NSH and replaces them with 'built-in' commands at
  13281. apps/system/ping and ping6. The original NSH version of ping[6]
  13282. commands violated the portable POSIX interface and, hence, had to
  13283. be removed. The new system/ping and ping6 built-in commands uses
  13284. the new IPPROTO_ICMP AF_INET and IPPROTO_ICMP6 AF_INET6 datagram
  13285. sockets to implement ping.
  13286. - apps/nshlib: Fix parsing of empty strings when CONFIG_NSH_CMDPARMS
  13287. is not defined. Problem noted by Juha Niskanen.
  13288. * Examples/Tests: apps/examples:
  13289. - All configurations that use NXIMAGE or NXHELLO must select
  13290. NX_MULTIUSER. All configurations that use examples/nxterm must
  13291. enable CONFIG_LIB_BOARDCTL.
  13292. - All configurations that use NXLINES must select NX_MULTIUSER. All
  13293. configurations that use the NX server need to have larger POSIX
  13294. messages.
  13295. - apps/examples/adc: Fix g_adcstate.count initialization. From
  13296. Masayuki Ishikawa.
  13297. - apps/examples/elf: Remove low-level interfaces and replace with
  13298. call to exec().
  13299. - apps/examples/nxflat: Remove low-level interfaces and replace with
  13300. call to exec().
  13301. - examples/ostest: Works around a bug in printf() when cancellation
  13302. points are enabled. printf() is a cancellation point because it
  13303. calls write(). This is correct according to OpenGroup.org.
  13304. However, printf holds the stdio library semaphore when it is
  13305. canceled and this leaves the semaphore in a bad state. No fix for
  13306. the printf bug yet.
  13307. - apps/examples/nx: The NX example no longer supports single user
  13308. mode.
  13309. - apps/examples/nxtext: The nxtext example no longer supports single
  13310. user mode.
  13311. - apps/examples/nxhello now supports only multiuser mode.
  13312. - apps/examples/nximage now supports only multiuser mode.
  13313. - examples/nxlines: Now supports only multiuser mode.
  13314. * Network Utilities: apps/netutils:
  13315. - apps/netutils/ftpc: Fix some crazy comparisons to determine is a
  13316. file is an absolute path. Noted by Anthony Merlino.
  13317. * System Utilities (apps/system)
  13318. - apps/system/i2ctool: Fixed i2ctool write operation in `no restart`
  13319. mode (flag `-n`). It seems that I2C driver has changed a bit since
  13320. i2ctool was written, so now i2ctool sends repeated start even if
  13321. `no restart` flag (-n) was passed to it. From Dmitriy Linikov.
  13322. NuttX-7.24 Release Notes
  13323. ------------------------
  13324. The 124th release of NuttX, Version 7.24, was made on March 2, 2018,
  13325. and is available for download from the Bitbucket.org website. Note
  13326. that release consists of two tarballs: nuttx-7.24.tar.gz and
  13327. apps-7.24.tar.gz. These are available from:
  13328. https://bitbucket.org/nuttx/nuttx/downloads
  13329. https://bitbucket.org/nuttx/apps/downloads
  13330. Both may be needed (see the top-level nuttx/README.txt file for build
  13331. information).
  13332. Additional new features and extended functionality:
  13333. * Core OS:
  13334. - SMP: Introduce spin_lock_irqsave() and spin_unlock_irqrestore().
  13335. These APIs are simplified version of enter_critical_section()
  13336. and leave_critical_section() to protect data (e.g. registers) in
  13337. SMP mode. By using these APIs inside drivers, performance will
  13338. be improved. From Masayuki Ishikawa.
  13339. - System Timer: Replace critical section APIs with spinlock APIs.
  13340. (64bit only). If SMP=n or SMP=y && SPINLOCK_IRQ=n, this works
  13341. in the same way as before. If SMP=y && SPINLOCK_IRQ=y, performance
  13342. will be improved. From Masayuki Ishikawa.
  13343. - POSIX Timers: Replace critical section APIs with spin lock APIs in
  13344. clock_gettime.c. This change will improve performance for SMP
  13345. systems but nothing changes for non-SMP systems. In SMP mode,
  13346. the running TCB is not always at the g_readytorun.head. From
  13347. Masayuki Ishikawa.
  13348. - SMP: Introduce spin_lock_wo_note() and spin_unlock_wo_note(). These
  13349. APIs are used in sched_note.c to protect instrumentation data. The
  13350. difference between these APIs to existing spin_lock() and
  13351. spin_unlock() is that they do not perform instrumentation to avoid
  13352. recursive call when SCHED_INSTRUMENTATION_SPINLOCKS=y. From
  13353. Masayuki Ishikawa.
  13354. - Interrupts: Add a configuration option to show interrupt
  13355. information via a procfs file.
  13356. * File Systems/Block and MTD Drivers
  13357. - VFS: Add support for truncate() and ftruncate().
  13358. - FAT, SmartFS, UserFS, UnionFS, TmpFS, NFS: Add truncate() support.
  13359. - FAT. Effectively handles the situation when a new file position is
  13360. within the current sector. Accelerates the work of the FS with a
  13361. multitude of operations to write small pieces of data within the
  13362. current sector. From Aleksandr Vyhovanec.
  13363. * Graphics/Display Drivers:
  13364. - HiletGo OLED: Add configuration support for HiletGo SSD1306 OLED.
  13365. - lcd/ft80x: This commit adds an FTDI/BridgeTek FT80x GUI driver. It
  13366. is untested (I don't even have hardware yet) and, hence, it is
  13367. marked as EXPERIMENTAL).
  13368. * Networking/Network Drivers:
  13369. - 6LoWPAN: Adds configuration options for specifying preloaded
  13370. address contexts for compression From Anthony Merlino.
  13371. - TCP: Introduce tcp receive window control based on I/O buffer.
  13372. NOTE: The algorithm is still experimental but useful for http
  13373. streaming. From Masayuki Ishikawa.
  13374. - UDP: Add an implementation of UDP write buffering.
  13375. - Routing Tables: Adding ftruncate() support eliminates an issue
  13376. in file-based routing table management system.
  13377. - Telnet: Add support for Telnet character mode From Masayuki
  13378. Ishikawa.
  13379. * Other Common Device Drivers:
  13380. - drivers/input/ft5x06.c: Add a driver for the FT5x06 capacitive,
  13381. multi-touch, touchscreen controller.
  13382. - drivers/input/ft5x06: Add a polled mode of operation for the FT5x06
  13383. in attempt to work around the fact that the LPCXpresso-LPC54628
  13384. chose a non-interrupt pin for the FT5x06 interrupt. Driver is still
  13385. not yet functional.
  13386. - drivers/power/bq2429x.c: Add trickle charging mode From Juha
  13387. Niskanen.
  13388. - drivers/sensors: Add support to MAX44009 ambient light sensor.
  13389. From Juha Niskanen.
  13390. - drivers/sensors: Added support for LIS3DH accelerometer sensor.
  13391. From Matt Thompson.
  13392. - drivers/eeprom: EEPROM driver for AT24xx compatible EEPROMs.
  13393. From Sebastien Lorquet.
  13394. * Simulation
  13395. - sim: Add support for a RAM MTD driver and initialization for use
  13396. with SmartFS.
  13397. - sim: Add support for testing NXFFS.
  13398. * ARM:
  13399. - ARMv7-A, ARMv7-R, ARMv7-M: Add atomic read-add-write and
  13400. read-subtract-write functions.
  13401. * Infineon XMC4xxx:
  13402. - XMC4xxx: Refactor PLL setup, refactored PLL/CLK config, easier,
  13403. checks for correctness, call go_os_start if STACK_COLORIZED, smarter
  13404. config of EXTCLK output freq. From David Alessio.
  13405. * Infineon XMC4xxx Boards:
  13406. - Add FPU to xmc4 ostest. Remove +x from makefiles, preserve
  13407. .gdbinit across make clean, add FPU support to ostest on xmc4,
  13408. add FPU test to ostest on xmc4 From David Alessio.
  13409. * Microchip/Atmel SAMD/L Drivers:
  13410. - SAMD: SAMD External Interrupt Controller (EIC) support From Matt
  13411. Thompson.
  13412. - SAMD/L: Added Analog Comparator basic initialization From Matt
  13413. Thompson.
  13414. - SAMD/L: Added FDPLL clock support. Fixed sequence of OSC32K
  13415. calibration setup. From Matt Thompson.
  13416. - SAMD/L: Added loading factory USB calibration data from NVRAM.
  13417. From Matt Thompson.
  13418. - SAMD/L: Added experimental DMA support to SPI driver. spi_exchange()
  13419. uses a pair of DMA channels for TX and RX. From Matt Thompson.
  13420. * Microchip/Atmel SAM3/4 Boards:
  13421. - Flip&Click SAM3X: Add board support for the Mikroe Flip&Click
  13422. SAM3X.
  13423. - Flip&Click SAM3X: Adds basic board support for the HiletGo OLED.
  13424. * Microchip PIC32MZ
  13425. - PIC32MZEF: Add architectural support for the PIC32MZEF family.
  13426. * Microchip PIC32MZ Boards
  13427. - Flip&Click PIC32MZ: Adds board support for the Mikroe Flip&Click
  13428. PIC32MZ board.
  13429. - Flip&Click PIC32MZ: Add board support for HiletGo OLED.
  13430. - Flip&Click PIC32MZ: Add an nxlines configuration for use in
  13431. testing the custom HiletGo Click board.
  13432. * NXP Freescale LPC43xx Drivers:
  13433. - LPC43xx: Adapt LPC176x RTC driver for the LPC43xx. From Gintaras
  13434. Drukteinis.
  13435. - LPC43xx: Add Windowed Watchdog Timer (WWDT) driver. Tested on
  13436. LPC4357 but should be compatible for all LPC43xx MCUs.
  13437. From Gintaras Drukteinis.
  13438. - Leverage the LPC54xx SD/MMC back to the LPC43xx (where it came from
  13439. originally).
  13440. * NXP Freescale LPC43xx Boards:
  13441. - Bambino-200e: Add LPC43 SDMMC board support to Bambino-200E. From
  13442. Alan Carvalho de Assis.
  13443. * NXP Freescale LPC54xx:
  13444. - LPC546xx: Added basic architectural support for the LPC546xx
  13445. family.
  13446. * NXP Freescale LPC54xx Drivers:
  13447. - LPC546xx: Basic NSH configuration includes support for UARTs,
  13448. SysTick timer, GPIOs, LEDs, and buttons
  13449. - LPC546xx: Additional drivers include EMC, I2C, Ethernet
  13450. - LPC546xx: Implement GPIO interrupt support.
  13451. - LPC546xx: And unverified SPI driver is included.
  13452. - LPC546xx: Ported LPC1788 LCD driver to use the LPC54xx pin.
  13453. - LPC546xx: Bring in LPC43xx SD/MMC driver from
  13454. https://github.com/Smoothieware/smoothie-nuttx/tree/master/nuttx/arch/arm/src/lpc43xx
  13455. and adapt for use with the LPC43xx
  13456. - LPC546xx: Add DMA driver ported from the LPC43xx GPDMA driver.
  13457. - LPC546xx: Bring in WWDT driver from LPC43.
  13458. - LPC546xx: Add an RTC driver and a RTC character driver lower half.
  13459. - LPC546xx: Add support for a random number generator.
  13460. - LPC546xx: Add an Ethernet driver.
  13461. * NXP Freescale LP54xx Boards:
  13462. - LCXpresso-LPC54628: Added support for the LPCXpresso-LPC54628
  13463. board. The initial bring-up used a basic NSH port.
  13464. - LCXpresso-LPC54628: On-board SDRAM is also supported
  13465. - LCXpresso-LPC54628: Add support for I2C2 and for the I2C tool to
  13466. the NSH configuration.
  13467. - LCXpresso-LPC54628: Add support for the USER button. Enable the
  13468. apps/examples/button test in the NSH configuration.
  13469. - LCXpresso-LPC54628: Add the fb configuration for testing the LCD.
  13470. - LCXpresso-LPC54628: Add support for the the FT5x06 touchscreen
  13471. controller. Enable the driver as well as the apps/examples
  13472. touchscreen test.
  13473. - LCXpresso-LPC54628: Add an NxWM configuration.
  13474. - LCXpresso-LPC54628: Add logic to bring up SDMMC.
  13475. - LCXpresso-LPC54628: Add logic to register the RTC character driver
  13476. if it is enabled. Enable the RTC and RTC character driver in the
  13477. NSH configuration.
  13478. - LCXpresso-LPC54628: Add a netnsh configuration that was be used to
  13479. test the Ethernet driver.
  13480. - LCXpresso-LPC54628: Add LittlevGL graphics demo configuration.
  13481. * On Semiconductor LC823450
  13482. - LC823450 SMP improvements: (1) Apply irq_spin APIs to
  13483. modifyregXX, (2) Do not use modifyreg32() to enable Mutex, (3)
  13484. Modify IRQ control for i2s. Apply irq_spin APIs to
  13485. dma/syscontrol/usbdev. From Masayuki Ishikawa.
  13486. - LC823450: LC823450 http streaming improvements: (1) Use spinlock
  13487. APIs in lc823450_gpio.c. (3) Fix a potential race condition in
  13488. up_enable_irq(), (3) Use spinlock APIs instead of critical section
  13489. APIs, (4) Enable HRT_TIMER in lc823450_timerisr.c. (5) Use spinlock
  13490. APIs instead of critical section APIs. (6) Fix race conditions in
  13491. dma/usbdev. From Masayuki Ishikawa.
  13492. - LC823450: Introduce DVFS. This version only supports manual mode
  13493. and Vdd1 is fixed to 1.2V. From Masayuki Ishikawa.
  13494. * On Semiconductor LC823450 Drivers
  13495. - LC823450: Refactor timer driver. Add MTM timer APIs for DVFS.
  13496. Introduce up_rtc_gettime() for CONFIG_RTC_HIRES. Introduce idle
  13497. time calculation in DVFS. Also, DVFS autonomous mode based on CPU
  13498. idle time is supported. NOTE: voltage control is still disabled.
  13499. From Masayuki Ishikawa.
  13500. * On Semiconductor LC823450 Boards
  13501. - LC823450-XGEVK: I2S interrupt will be handled on CPU0 with this
  13502. change. Assign CPU1 to lpwork. This change will improve load
  13503. balancing for networking with RNDIS. From Masayuki Ishikawa.
  13504. - LC823450-XGEVK: Enable SPINLOCK_IRQ and NXPLAYER in rndis. From
  13505. Masayuki Ishikawa.
  13506. - LC823450-XGEVK: LC823450 http streaming improvements: (1) In SMP
  13507. mode, H/W interrupts should be handled on CPU0 to avoid deadlocks.
  13508. (2) Call up_enable_irq() to assign CPU0 for IRQ handling. (3)
  13509. Enable HRT_TIMER, LC823450_MTM0_TICK, SPINLOCK_IRQ, (4) Enable
  13510. NET_TCP_RWND_CONTROL, NXPLAYER_HTTP_STREAMING_SUPPORT (rndis only)
  13511. From Masayuki Ishikawa.
  13512. - LC823450-XGEVK: Enable DVFS in lc823450_bringup.c. Enable DVFS
  13513. in audio and rndis. Add Telnet character mode to rndis. From
  13514. Masayuki Ishikawa.
  13515. - LC823450-XGEVK: Explicitly assign I2S IRQ handling to CPU0. From
  13516. Masayuki Ishikawa.
  13517. - LC823450-XGEVK: Enable RTC_HIRES instead of RTC_DATETIME (audio/
  13518. rndis). Disable TCP_WRITE_BUFFERS and change SCHED_LPWORKPRIORITY
  13519. (rndis). Update SMP and DVFS related part. From Masayuki Ishikawa.
  13520. * STMicro STM32:
  13521. - STM32 F7: Add support for the STM32F72x/73x family. From Bob
  13522. Feretich.
  13523. * STMicro STM32 Drivers:
  13524. - STM32 HRTIM: Add interface to change outputs SET/RST configuration.
  13525. From Mateusz Szafoni.
  13526. - STM32 HRTIM: Add interface to get timer clock frequency,
  13527. calculation, add compare/capture registers significant bits
  13528. checking. From Mateusz Szafoni.
  13529. - STM32 HRTIM: Add interface to set timer frequency, fix slave timers
  13530. reset configuration, change POWER_INFO to TIMER_INFO From Mateusz
  13531. Szafoni.
  13532. - STM32 HRTIM: Add repetition support and fix enum overflow From
  13533. Mateusz Szafoni.
  13534. - STM32 HRTIM: Add HRTIM push-pull mode configuration. From
  13535. raiden00pl.
  13536. - STM32 FLASH: Add progmem support for STM32L15XX From Juha Niskanen.
  13537. * STMicro STM32 Boards:
  13538. - configs/photon: Adds BOARD_TIMn_FREQUENCY macros From Anthony
  13539. Merlino.
  13540. - configs/indium-f7: Adds support for the RAF Research Indium-F7
  13541. board. From Bob Feretich.
  13542. - Rename the configs/stm32f0discovery board directory to
  13543. configs/stm32f051-discovery. There are others stm32f0discovery
  13544. boards with different MCUs and different peripherals on the board.
  13545. From Alan Carvalho de Assis.
  13546. - configs/stm32f072b-discovery: Adds support for stm32f072b-disco
  13547. board. This is the board. I added the LEDs of this board and tested
  13548. the compilation. From Alan Carvalho de Assis.
  13549. - configs/stm32f103-minimum: Add AT24 EEPROM support on STM32F103-
  13550. Minimum board From Alan Carvalho de Assis.
  13551. - configs/stm32f103-minimum: Add support to BMP180 on BluePill
  13552. (stm32f103-minimum) board. From Alan Carvalho de Assis.
  13553. - configs/stm32f334-disco: Add buck converter and boost converter
  13554. logic. From Mateusz Szafoni.
  13555. - configs/stm32f103-minimum: Add zerocross support to STM32F103-
  13556. Minimum board From Alan Carvalho de Assis.
  13557. - configs/stm32f103-minimum: Add OLED SSD1306 support to
  13558. STM332F103-Minimum From Alan Carvalho de Assis.
  13559. - configs/stm32f103-minimum: Add board support to MAX6675 Thermocouple
  13560. sensor From Alan Carvalho de Assis.
  13561. - configs/stm32f746g-disco: Add stm32f746g-disco Ethernet configuration.
  13562. Add USART1 support (connected to the USB virtual serial port) From
  13563. Louis Mayencourt.
  13564. - configs/viewtool-stm32f107: Add support for FT80X initialization.
  13565. Add ft80x configuration that will eventually be used for testing the
  13566. ft80x if I ever receive hardware.
  13567. * Tools:
  13568. - tools/logparser: Add a tool which will help me to convert git logs
  13569. to ChangeLog format.
  13570. * NSH: apps/nshlib:
  13571. - apps/nshlib: Add support for a truncate command. This will be used
  13572. to test the new ftruncate file system support.
  13573. - apps/nshlib: Add support for Telnet character mode. From Masayuki
  13574. Ishikawa.
  13575. - apps/nshlib: Add support for '-n' option to the echo command. From
  13576. Masayuki Ishikawa.
  13577. - apps/nshlib: Add irqinfo command.
  13578. * Examples/Tests: apps/examples:
  13579. - apps/examples/userfs: Add truncate() support for userfs.
  13580. - apps/examples/lvgldemo: Add lvgldemo example for LittlevGL.
  13581. - apps/examples/veml6070: Add VEML6070 Application Example. From
  13582. Alan Carvalho de Assis.
  13583. - apps/examples/bmp180: Add BMP180 application example. From Alan
  13584. Carvalho de Assis.
  13585. - apps/examples/ft80x: Add a test of the FT80x based on FTDI
  13586. SampleApp. Includes tests of GPU primitives and graphics co-
  13587. processor commands.
  13588. * Network Utilities: apps/netutils:
  13589. - apps/netutils/netlib: Add default route in netlib_set_dripv4addr().
  13590. From Masayuki Ishikawa.
  13591. * Graphics: apps/graphics:
  13592. - apps/graphics/littlevgl: Add littlevgl library. From Alan Carvalho
  13593. de Assis.
  13594. - apps/graphics/ft80x: Add the FTDU FT80x GUI support library.
  13595. Consists of some display list helpers, audio helpers, touch helpers,
  13596. RAM access, register access etc.
  13597. * System Utilities (apps/system)
  13598. - apps/system/nxplayer: Add support for HTTP streaming in nxplayer.
  13599. From Masayuki Ishikawa.
  13600. - apps/system/setlogmask: Adds 'setlogmask' application that allows
  13601. you to set the syslog priority via a simple command. From Anthony
  13602. Merlino.
  13603. - apps/system/usbmsc: Added Kconfig options to configure write
  13604. protection for each LUN. From Fabio D'Urso.
  13605. - system/stackmonitor: Re-design the stack monitor so that it does not
  13606. make forbidden calls directly into the OS, breaking the portable POSIX
  13607. OS interface. It now properly uses the PROCFS file system to glean
  13608. information about stack usage.
  13609. Bugfixes. Only the most critical bugfixes are listed here (see the
  13610. ChangeLog for the complete list of bugfixes and for additional, more
  13611. detailed bugfix information):
  13612. * Core OS:
  13613. - System Timer: Change the way that the 64-bit time is sampled.
  13614. Previously, we disabled interrupts before sampling the 64-bit
  13615. timer since the uint64_t access is not atomic on most CPUs. However,
  13616. disabling (local) interrupts does not work in the SMP case. In that
  13617. case, the timer interrupt may be running on only one of the CPUs;
  13618. disabling interrupts on a different CPU will provide no protection
  13619. from timer rollover. To work around this, logic was added that
  13620. samples 64-bit timer is sampled twice and if 32-bit rollover was
  13621. detected between samples, then loops until there is no rollover.
  13622. - POSIX Timers: In SMP mode, running TCB is not always at the head of
  13623. the g_readytorun list. This change removes DEBUGASSERT() to avoid
  13624. this condition. From Masayuki Ishikawa.
  13625. - Spinlocks: Add memory barrier operations in spin_unlock(). In ARM
  13626. document regarding memory barriers, SP_DMB() must be issued before
  13627. changing a spinlock state to SP_UNLOCKED. However, we found that
  13628. SP_DSB() is also needed to ensure that spin_unlock() works
  13629. correctly for network streaming aging test. From Masayuki Ishikawa.
  13630. - Sporadic Scheduler: Fix compiler error in Sporadic Scheduler when
  13631. priority inheritance is enabled. Noted by eunb.song@samsung.com
  13632. - Priority Inheritance: Fix some priority inheritance related issues
  13633. noted during review of logic. Also add some REVISIT comments for some issues noted in the design.
  13634. - boardctl: Remove the BOARDIOC_TSCTEST_TEARDOWN and
  13635. BOARDIOC_TSCTEST_SETUP boardctl() commands. Remove all
  13636. implementations of board_tsc_teardown(). Each board now initializes
  13637. the touchscreen controller as a normal part of its board bring-up.
  13638. board_tsc_setup() is gone; the touchscreen controller is now treated
  13639. like any other on-board device.
  13640. - configs: CONFIG_MAX_TASKS must be a power of 2.
  13641. - SMP: Introduce a new global IRQ clearing logic and tasklist
  13642. protection. The previous implementation of clearing global IRQ in
  13643. sched_addreadytorun() and sched_removereadytorun() was done too
  13644. early. As a result, nxsem_post() would have a chance to enter the
  13645. critical section even nxsem_wait() is still not in blocked state.
  13646. This patch moves clearing global IRQ controls from
  13647. sched_addreadytorun() and sched_removereadytorun() to
  13648. sched_resumescheduler() to ensure that nxsem_post() can enter the
  13649. critical section correctly. For this change,
  13650. sched_resumescheduler.c is always necessary for SMP configuration.
  13651. In addition, by this change, task_exit() had to be modified so that
  13652. it calls sched_resumescheduler() because it calls
  13653. sched_removescheduler() inside the function, otherwise it will cause
  13654. a deadlock. However, I encountered another DEBUGASSERT() in
  13655. sched_cpu_select() during HTTP streaming aging test on LC823450-XGEVK.
  13656. Actually sched_cpu_select() accesses the g_assignedtasks which might
  13657. be changed by another CPU. Similarly, other tasklists might be
  13658. modified simultaneously if both CPUs are executing scheduling logic.
  13659. To avoid this, I introduced tasklist protection APIs. With these
  13660. changes, SMP kernel stability has been much improved. From Masayuki
  13661. Ishikawa.
  13662. - SMP: Fix this_task() to be an atomic operation. In the previous
  13663. implementation, this_task() was defined in sched.h by using just a
  13664. macro current_task(this_cpu()). However, I found that this is not
  13665. atomic and actually sometimes switching CPU happened in executing
  13666. the macro when we tested audio steaming plus executing commands via
  13667. Telnet. This change resolves this issue by implementing atomic
  13668. this_task()in sched_thistask.c which is newly introduced. From
  13669. Masayuki Ishikawa.
  13670. - SMP: Implements a global scheduler lock capability as part of SMP
  13671. support. This allows the scheduler to be locked with no knowledge
  13672. or access to the TCB of the currently running task. This is
  13673. necessary because accessing the TCB of the currently running task
  13674. is, itself, a non-atomic operation. This global scheduler lock
  13675. capability was add just to support that atomic access to the TCB.
  13676. - SMP: Extend the last global lock change to work with the
  13677. LC823450-XGEVK which does not support the atomic fetch add but
  13678. does support disabling interprocessor interrupts. Disabling
  13679. interprocessor interrupts will also guarantee that the TCB address
  13680. calculation is atomic.
  13681. - SMP: Fix a infinite recursion problems that a recent changes
  13682. introduced into the i.MX6 SMP implementation. This is not seen
  13683. with the LC823450 because you can disable inter-processor interrupts
  13684. in that architecture; but you cannot in the ARMv7-A/GIC architecture.
  13685. - SMP: Remove SMP related logic in sig_dispatch.c. This change
  13686. prevents from a deadlock in up_schedulesigaction.c where inter-CPU
  13687. signal handling is actually implemented. arch/arm/src/armv7-m: Fix
  13688. signal handling for SMP. In previous implementation, signal handling
  13689. for SMP was incorrect. Thus, for example, if an inter-CPU signal
  13690. happened an incorrect tcb was signaled and caused ASSERT(). This
  13691. change fixes the issues and works for both inter-CPU signal handling
  13692. and signal handling on the same CPU. From Masayuki Ishikawa.
  13693. - Tasking: Add nxtask_create(). Kthread_create() and nxtask_create()
  13694. are internal OS functions and should not modify the errno variable.
  13695. Convert legitimate uses of task_create() to nxtask_create().
  13696. Review handling of returned values from all uses of kthread_create()
  13697. (as well as nxtask_create()).
  13698. - Tasking: Threads started by board bring-up logic should be kernel
  13699. threads, not user tasks.
  13700. - Tasking: Threads started by drivers should be kernel threads, not
  13701. user tasks.
  13702. - Semaphore Usage: Added ECANCELED condition to DEBUGASSERT's
  13703. checking sem_wait result From Dmitriy Linikov.
  13704. - errno: Add new internal OS function nxsched_setaffinity() that is
  13705. identical to sched_isetaffinity() except that it does not modify the
  13706. errno value. All usage of sched_setaffinity() within the OS is
  13707. replaced with nxsched_setaffinity().
  13708. - errno: Internal functions sched_reprioritize() and
  13709. sched_setpriority() no longer modify the errno value. Also renamed
  13710. to nxsched_reprioritize() and sched_setpriority().
  13711. - errno: Add new internal OS function nxsched_getscheduler() that is
  13712. identical to sched_getscheduler() except that it does not modify the
  13713. errno value. All usage of sched_getscheduler() within the OS is
  13714. replaced with nxsched_getscheduler().
  13715. - errno: Add new internal OS function nxsched_setparam() that is
  13716. identical to sched_setparam() except that it does not modify the
  13717. errno value. All usage of sched_setparam() within the OS is
  13718. replaced with nxsched_setparam().
  13719. - errno: Add new internal OS function nxsched_getparam() that is
  13720. identical to sched_getparam() except that it does not modify the
  13721. errno value (actually, the previous value erroneously neglected to
  13722. set the errno value to begin with, but this fixes both issues). All
  13723. usage of sched_getparam() within the OS is replaced with
  13724. nxsched_getparam().
  13725. - errno: wd_start() is an internal OS function and should not set the
  13726. errno value. Reviewed and updated every call to wd_start() to
  13727. verify if return value is used and if so if the errno value is
  13728. accessed.
  13729. - errno: Fix several inappropriate accesses to get_errno() that were
  13730. missed in previous changes (some going back to nuttx-7.23). Add new
  13731. nxsched_setscheduler() and nxsched_getaffinity() which are
  13732. equivalent to their counterparts without the nx on front. These
  13733. versions do not modify the errno value. Changed all calls within
  13734. the OS to use these newer versions of the functions.
  13735. - errno: binfmt/, configs/, graphics/, libc/, mm/, net/, sched/: OS
  13736. references to the errno variable should always use the set_errno(),
  13737. get_errno() macros.
  13738. - drivers/, fs/ and libc/: OS references to the errno variable should
  13739. always use the set_errno(), get_errno() macros.
  13740. * File System/Block and MTD Drivers:
  13741. - FAT: CONFIG_FAT_MAXFNAME may not exceed NAME_MAX (CONFIG_NAME_MAX)
  13742. - NFS: Correctly infer file type. The file type is in struct
  13743. nfs_statinfo_s's ns_type field, not in the ns_mode field. From
  13744. Michael Jung.
  13745. - NFS: Fix buffer corruption. In case multiple read requests to the
  13746. NFS server are required to fill up the user provided buffer,
  13747. nfs_read() might write behind the end of said buffer. This is fixed
  13748. with this change. From Michael Jung.
  13749. - VFS: reopen() should return NULL when oflags is less than 0, not
  13750. equal to 0. Because negative value is returned on failure of
  13751. lib_mode2offlags() which converts the mode string into file open
  13752. mode flag.
  13753. - ProcFS: Fix an error in a common function that manages read data.
  13754. - drivers/mmcsd: Respect SDIO_CAPS_DMABEFOREWRITE on CMD25. From
  13755. Evgeniy Bobkov.
  13756. - AT24xx: Correct page size for AT24C02 part. From Alexander
  13757. Oryshchenko.
  13758. - mtd_config.c: Add still more error handling (to detect bad
  13759. underlying flash implementations). Remove MTD_ERASE that was
  13760. erasing data block instead of erase block. This is a partial
  13761. revert of 4f18b4. Reported-by: Pascal Speck <iktek01@yahoo.com>
  13762. * Graphics/Display Drivers:
  13763. - drivers/lcd: Fix the default I2C address of SSD1306 OLED display
  13764. (7- vs 8-bit addressing) From Alan Carvalho de Assis.
  13765. - drivers/lcd: lcd_framebuffer.c does not need to include board-
  13766. specific board.h.
  13767. - include/lcd: Eliminate a warning from an SSD1306 header file by
  13768. adding a forward reference to struct i2c_master_s. From Sebastien
  13769. Lorquet.
  13770. * Networking/Network Drivers:
  13771. - ARP: Fix an error introduced when ICMP and ICMP6 socket support was
  13772. added in NuttX-7.3. A gratuitous ARP (or solicitation) was being
  13773. sent after receive of the ECHO replay (advertisement).
  13774. - ARP: Fix IGMP multicast address computation on NuttX network stack.
  13775. This change fixes the IGMP address computation to allow multicast
  13776. UDP messages. The destination address was created with the incorrect
  13777. bytes of the given IPv4 address. From Louis Mayencourt.
  13778. - ioctl: The existence of the network driver ioctl() method should
  13779. depend on CONFIG_NETDEV_IOCTL rather than CONFIG_NETDEV_PHY_IOCTL.
  13780. The former enables the method, the later enables a subset of
  13781. possible driver IOCTLs.
  13782. - TCP: Write buffering logic should not wait for a free buffer if
  13783. the socket was opened non-blocking.
  13784. - TCP: Fixed bad return value handling in psock_tcp_send(). send()
  13785. expects psock_tcp_send() to return a negated errno value, not -1
  13786. with the errno set (GN: I added same change for tcp_send_buffered.c
  13787. which has the same issue as tcp_send_unbuffered.c) From Pelle
  13788. Windestam.
  13789. - TCP: Fixes hardfault when network goes done and network monitoring
  13790. is in place. From Gianpaolo Ferroni Ariani.
  13791. - TCP: tcp_send_[un]buffered.c: Check routing table in
  13792. psock_send_addrchck(). Previously only ARP table was considered
  13793. when determining if the data will actually be sent. From Juho
  13794. Grundstrom.
  13795. - TCP: Generalize Juho Grundstrom's IPv4 change for IPv6 as well.
  13796. - UDP: Remove some conditional logic that was true if there is only a
  13797. single network device, but not true in the multi-device context.
  13798. - UDP: In sendto(), return EHOSTUNREACH if the network is down.
  13799. * Common Drivers:
  13800. - drivers/pipes: In poll logic, fix off-by-one error in calculation
  13801. of bytes in the buffer. Buffer calculation in pipe poll setup is
  13802. off-by-one when read index is larger than write index. This causes
  13803. poll() not getting POLLIN when buffer has one byte as calculation
  13804. gives zero bytes in buffer. From Jussi Kivilinna.
  13805. - drivers/audio: Improve stability of the WM8776 driver in SMP mode.
  13806. Apply irq_spin APIs to improve performance. Repeat to process a
  13807. message to avoid deadlock. From Masayuki Ishikawa.
  13808. - drivers/ioexpander: Fixed build of PCF8574 driver when its
  13809. interrupts aren't enabled by config. From Dmitriy Linikov.
  13810. - drivers/syslog: Fixes LOG_UPTO macro to include specified log level.
  13811. From Anthony Merlino.
  13812. - drivers/sensors: Fix HTS221 sensor reset with BOOT bit From Jussi
  13813. Kivilinna.
  13814. - drivers/loop: If we want to open read-only in losetup.c, flags
  13815. should be O_RDONLY not O_RDWR. From Fabio D'Urso.
  13816. - drivers/timers/ds3231.c: Correct some debug statements. From
  13817. Alexander Oryshchenko.
  13818. - drivers/sensors/lis2dh: Use realtime clock if monotonic is not
  13819. available From Juha Niskanen.
  13820. - drivers/i2c and drivers/spi: Fix compile error if
  13821. CONFIG_DISABLE_PSEUDOFS_OPERATIONS, fix bad NULL checks From Juha
  13822. Niskanen.
  13823. * ARMv7-A:
  13824. - Data Cache: Fix cp15_invalidate_dcache. In cases where more than
  13825. one dcache line was to be invalidated, a missing branch label
  13826. would result in a false branch target into cp15_flush_idcache. Also
  13827. the .size macro was fixed for both cp15_invalidate_dcache. From
  13828. Michael Jung.
  13829. - SMP: Port the signal-related SMP change by Masayuki Ishikawa to the
  13830. ARMv7-A family.
  13831. * Extensa:
  13832. - SMP: Port the signal-related SMP change by Masayuki Ishikawa to the
  13833. Xtensa family.
  13834. * Infineon XMC4xxx Drivers:
  13835. - XMC4xxx: Only setup USB clock when USB PLL is enabled From Alan
  13836. Carvalho de Assis.
  13837. - XMC4xxx: Fix USIC_BRG_SCLKCFG definition From Alan Carvalho
  13838. de Assis.
  13839. * Microchip PIC32MZ
  13840. - MIPS32: In up_idle, the kludge that was conditionally enabled if
  13841. the work queue was enable appears to be needed even when he work
  13842. queue is not enabled on the PIC32MZ.
  13843. - PIC32MZ: Fix some typos in debug instrumentation in pic32mz-gpio.c;
  13844. fix some typos related to UART5 configuration in pic32mz-serial.c.
  13845. * Microchip/Atmel SAMD/L:
  13846. - SPI: In sam_spibus_initialize(), the pinmux configuration was
  13847. smashing the previous CTRLA register configuration. There are
  13848. also some typos in samd_spi.h From Matt Thompson.
  13849. - SPI: Fixes g_spi2ops and g_spi2dev using incorrect values From Matt
  13850. Thompson.
  13851. - SPI: SPI must be disabled before changing the mode bits in CTRLA
  13852. register From Matt Thompson.
  13853. - DMA: Fix DMA controller support. From Matt Thompson.
  13854. * NXP/Freescale LPC17xx Drivers:
  13855. - LPC17xx: Disable LPC17 FDR when not used. If a boot loader set the
  13856. fractional divider (FDR) the baud rate in nuttx will be wrong
  13857. (multiplied by this fraction). So if it is not used, it should be
  13858. disabled. From Harald Gutsche.
  13859. * NXP/Freescale Kinetis Drivers:
  13860. - Kinetis: Correct some Ethernet PHY register bit tests for the
  13861. KSZ8081 PHY. From Stewart.
  13862. * On Semiconductor LC823450
  13863. - arch/arm/src/LC823450: Add SP_DMB() into lc823450_testset.c.
  13864. In LC823450, ldrex and strex are not supported. So we implemented
  13865. up_testset() with H/W Mutex. However, there was a bug in memory
  13866. access order. This change ensures correct memory access order in
  13867. up_testset() for LC823450. From Masatoshi Tateishi.
  13868. * STMicro STM32 Drivers:
  13869. - STM32 F3 RCC: A flash wait state configuration. Flash latency must
  13870. be fixed according to sysclk frequency. If this operation is not
  13871. done or done after PLL configuration, the STM32 fail to continue
  13872. boot operation if the frequency if greater than 24MHz according to
  13873. the board variable STM32_SYSCLK_FREQUENCY. Tested on stm32f334-disco
  13874. board. From Gwenhael Goavec-Merou.
  13875. - STM32 RTC: Make STM32 usable with an external RTC.
  13876. - STM32 SPI: Removed unnecessary (and incorrect) speed limitation.
  13877. From Alexander Oryshchenko.
  13878. - STM32 SPI: I have a SPI bus with both Mode 0 and Mode 3 devices
  13879. on it. After performing SPI I/O to a Mode 0 device, switching to a
  13880. Mode 3 device locked up the SPI interface. Only zeroes would be
  13881. read. I traced the reason for the lock-up to arm/arm/src/stm32f7/stm32_spi.c function spi_setmode(). Changing
  13882. the mode causes a spurious SPI clock transmission that confuses the
  13883. stm32f7 SPI input hardware. This problem is solved by (1) changing
  13884. the SPI mode with SPI (and perhaps DMA) disabled, and (2) flushing
  13885. the receive FIFO if the mode change results in garbage in the FIFO.
  13886. From Bob Feretich.
  13887. - STM32 and STM32 F7: Remove confusing, redundant, and misleading
  13888. definitions of STM32_BKP_BASE from the F2, F3, and F4 memory
  13889. maps. Unlike the F1, these parts do not have a separate BKP address
  13890. region. The BKP registers are with the RTCC address regions.
  13891. stm32_bkp.h should only be used for STM32 F1. stm32_rtcc.h should be
  13892. used to access BKP registers on F2, F3, and F4.
  13893. - STM32 and STM32 F7: Architecture-specific code is not permitted to
  13894. modify the errno variable.
  13895. - STM32 F4 I2C: Correct some recent changes to STM32F4 I2C that broke
  13896. poll mode of operation. From Alexander Oryshchenko.
  13897. - STM32 F4 I2C: Corrections to STM32 F4 I2C to restore functionality.
  13898. From Alexander Oryshchenko.
  13899. - STM32 F4 I2C: Corrections to STM32 F4 I2C to fix the NORESTART
  13900. flag. From Alexander Oryshchenko.
  13901. - STM32 F7: Fixes a bug in multi-block SD-card operations on the
  13902. STM32F7 platform. DBLOCKSIZE must be the size of SD-card block, not
  13903. the total amount of transferred bytes. From Evgeniy Bobkov.
  13904. - STM32 F7: Fix undefined variable when using USART1 for other
  13905. purposes than UART (e.g. SPI). From Frank Benkert.
  13906. - STM32 F7: Backport RTC alarm setting changes from STM32L4. Most
  13907. notably this fixes RTC getting stuck issue when both alarms were
  13908. used. Root cause was writing RTC ISR register contents to RTC CR
  13909. register. From Juha Niskanen.
  13910. - STM32 L4 Flash: Change flash programming to use page buffer for
  13911. unaligned writes. From Juha Niskanen.
  13912. * STMicro STM32 Boards:
  13913. - Nucleo-L432KC: Fix some bogus logic noted by Fanda.
  13914. - configs/nucleo-* and configs/stm32l476vg-disco: Fix more
  13915. stm32_userleds.c bogus logic From Juha Niskanen.
  13916. - Nucleo-L432KC: Fixed nucleo-l432kc broken build when
  13917. CONFIG_USERLED_LOWER defined From Fanda.
  13918. - Nucleo-L432KC: Issue #85: /dev/userleds is not working for
  13919. Nucleo-L432KC fixed From Fanda Vacek.
  13920. - STM32F429I-Disco: Separate SPI4 from MTD init. I was trying to
  13921. attach a non-MTD peripheral to an STM32F429I Discovery Board's SPI4
  13922. port and was hitting compilation problems, since CONFIG_MTD and
  13923. thus 'struct mtd_geometry_s' was not defined. This patch separates
  13924. SPI4 initialization logic from MTD initialization logic. From
  13925. Michael Jung.
  13926. - STM32F103-Minimum: Remove CONFIG_NX_LCDDRIVER dependence from
  13927. stm32_ssd1306.c From Alan Carvalho de Assis.
  13928. * C Library/Header Files:
  13929. - libc/stdio: In dtoa(), up_interrupt_context() is used in a debug
  13930. assertion. up_interrupt_context() is not available in the user-mode
  13931. phase of the PROTECTED or KERNEL build configurations. In those
  13932. configurations, enabling libc floating point support and debug
  13933. assertions will result in an undefined reference to
  13934. up_interrupt_context().
  13935. - libc/netdb: Fixed parsing of DNS response packets having compressed
  13936. names ending with pointer. There were troubles parsing response
  13937. packets which have compression of QNAME/NAME field when only
  13938. trailing part of the name (not the whole name) is replaced with
  13939. pointer to another part of the packet. This commit fixes parsing of
  13940. such packets. Also I added checks to keep parsing only in bounds of
  13941. the read part of DNS response packet. From Dmitriy Linikov.
  13942. * Tools
  13943. - tools/*.c: Add #define _GNU_SOURCE to all C files that call
  13944. asprintf() to eliminate a warning.
  13945. - tools/cvsparser.c: Add a check to avoid access past the end
  13946. of a fixed size array
  13947. * NSH: apps/nshlib:
  13948. - apps/nshlib: Fix compile error when CONFIG_NSH_DISABLESCRIPT is not
  13949. defined. The field np_flags does not exist if scripting is disabled.
  13950. * Examples/Tests: apps/examples:
  13951. - apps/examples/touchscreen: Eliminate BOARDIOC_TSCTEST_SETUP.
  13952. * Network Utilities: apps/netutils:
  13953. - apps/netutils/ftpc: Fix some corner-cases that could cause FTP to
  13954. access past the end of valid data.
  13955. * Wireless Utilities: apps/wireless:
  13956. - apps/wireless/ieee802154/i8shark: Fixes special XBee compensation
  13957. by purposely chopping off the FCS. From Anthony Merlino.
  13958. NuttX-7.25 Release Notes
  13959. ------------------------
  13960. The 125th release of NuttX, Version 7.25, was made on June 3, 2018,
  13961. and is available for download from the Bitbucket.org website. Note
  13962. that release consists of two tarballs: nuttx-7.25.tar.gz and
  13963. apps-7.25.tar.gz. These are available from:
  13964. https://bitbucket.org/nuttx/nuttx/downloads
  13965. https://bitbucket.org/nuttx/apps/downloads
  13966. Both may be needed (see the top-level nuttx/README.txt file for build
  13967. information).
  13968. Additional new features and extended functionality:
  13969. * File Systems/Block and MTD Drivers
  13970. - fs/cromfs: Added CROMFS file system. CROMFS is a compressed, in-
  13971. memory, read-only file system based on LZF.
  13972. - fs/vfs: Added support for checking if a descriptor is a socket in
  13973. fstat(). From Pelle Windestam.
  13974. * Graphics/Display Drivers:
  13975. - drivers/lcd: Remove support for the Nokia6100 LCD. That LCD uses a
  13976. 9-bit SPI interface (the 9th bit being the command/data bit that is
  13977. normally a discrete). That communication was never successfully
  13978. integrated. I now believe that it would would require some special
  13979. support from the low-level, MCU SPI driver to manage that 9th bit.
  13980. The deleted code is still available in the Obsoleted repository.
  13981. * Networking/Network Drivers:
  13982. - net/tcp: Added support for TCP Keepalive, add SO_KEEPALIVE socket
  13983. option. Added socket options needed to manage TCP-keepalive and TCP
  13984. state machine logic to detect if that the remote peer is alive.
  13985. - net/tcp: In tcp_input(), add the logic to detect, decode, and
  13986. respond to TCP Keep-Alive packets.
  13987. - net/tcp: Extended support for sending to non-blocking tcp sockets.
  13988. From Pelle Windestam.
  13989. - net/bluetooth: Added support for AF_BLUETOOTH sockets.
  13990. - drivers/net: Added TAP (network bridge) mode to tun.c. In the
  13991. previous implementation, TAP mode did not handle a packet correctly.
  13992. Also, the driver did not set the link layer type and could not
  13993. assign the interface name. This change fixes such issues and supports
  13994. TAP mode correctly. From Masayuki Ishikawa.
  13995. * Wireless/Wireless Drivers:
  13996. - wireless/ieee802154: Added basic MAC support for RX-ENABLE.request
  13997. primitive From Anthony Merlino.
  13998. - wireless/ieee802154: Added MAC ackreq flag to TX descriptor for use by
  13999. radio driver. The radio layer is responsible for a full "transaction".
  14000. Because of differences in radio capabilities, the radio must be
  14001. responsible for the handling of acks and retransmissions. This commit
  14002. simply passes the ackreq meta-data flag along to the radio. Also
  14003. Fixes bug where primitive was freed when it shouldn't have been,
  14004. causing double free call. From Anthony Merlino.
  14005. - wireless/bluetooth: Bring in the Bluetooth stack from the Intel/
  14006. Zephyr arduino101_firmware_source-v1.tar package.
  14007. - drivers/bluetooth: Added re-architected version of the Bluetooth
  14008. UART driver from the Intel/Zephyr arduino101_firmware_source-v1.tar
  14009. package.
  14010. - include/nuttx/wireless: Added a setbaud() method to the HCI UART
  14011. lower half interface that can be used to change the default BAUD
  14012. selection.
  14013. - wireless/bluetooth and include/nutt/net: Added support for Bluetooth
  14014. IOCTL commands.
  14015. - drivers/wireless/bluetooth: Added a NULL device to support some very
  14016. low level testing on the Simulator.
  14017. - drivers/wireless/cc3000: Eliminate support for the CC3000 wireless
  14018. part because it doesn't use the USRSOCKET. From Alan Carvalho de
  14019. Assis.
  14020. - drivers/wireless/ieee80211: Added BCM43428 support. From hhuysqt.
  14021. * Other Common Device Drivers:
  14022. - drivers/1wire: Added 1-wire subsystem and ds28e17 driver From Juha
  14023. Niskanen.
  14024. - drivers/1wire: Added PM hooks and unlink support to sht21 sensor
  14025. (allowing hot-swappable I2C bus from 1-wire converter). Unlike most
  14026. other unlink implementations in NuttX drivers, this one does not
  14027. allow any I2C operations after unlink, making it possible to
  14028. deallocate the I2C bus. From Juha Niskanen.
  14029. - drivers/i2c: Added support for the pca9540bdp i2cmultiplexer. From
  14030. Giorgio Groß.
  14031. - drivers/power: Added pm_unregister From Juha Niskanen.
  14032. - drivers/power: Added generic upper-half motor driver From Mateusz
  14033. Szafoni.
  14034. - drivers/rgbled: Added support for multichannel PWM (multiple PWM
  14035. channels on a single timer) From Anthony Merlino.
  14036. - drivers/sensors: Added support for Sensirion SHT2x humidity sensor.
  14037. From Juha Niskanen.
  14038. - drivers/sensors: Added LSM330 SPI and ADXL372 drivers along with the
  14039. - drivers/sensors: Added support for INA3221 power sensor. This has a
  14040. 3 channel bus/shunt voltage pairs. From Anthony Merlino.
  14041. cluster driver infrastructure. From Bob Feratich.
  14042. - drivers/sensors: Added multiple MAX31855 sensors feature support.
  14043. From Tiago Almeida.
  14044. - drivers/wireless/cc1101.c: Driver improvements from from lihaichen.
  14045. - progmem interface: Discern r/w and erase page sizes. Introduce new
  14046. up_progmem_erasesize architecture API to be able to communicate the
  14047. read/write page size independently from erase page size. Implement
  14048. up_progmem_erasesize for all architectures that already support
  14049. progmem, assuming that for those architectures the sizes of both
  14050. read/write and erase pages are identical. From Michael Jung.
  14051. * Simulation
  14052. - configs/sim: Added a configuration that will support some limited
  14053. testing of the Bluetooth stack.
  14054. * ARM:
  14055. - ARM: All ARM architectures now support CONFIG_ARCH_IDLE_CUSTOM.
  14056. * MIPS:
  14057. - MIPS: All MIPS architectures now support CONFIG_ARCH_IDLE_CUSTOM.
  14058. * Infineon XMC4xxx Drivers:
  14059. - XMC4: Added SPI support for Infineon XMC45xx microcontroller. From
  14060. Alan Carvalho de Assis.
  14061. * Infineon XMC4xxx Boards:
  14062. - XMC4500-Relax: Added board support for SPI. From Alan Carvalho de
  14063. Assis.
  14064. * Nordic NRF52:
  14065. - NRF52: Initial support for the NRF52 including UART, Timer, and
  14066. GPIO support. From Janne Rosberg.
  14067. * Nordic NRF52 Drivers:
  14068. - NRF52: Added watchdog timer drivers. Includes significant
  14069. updates from Levin Li.
  14070. - NRF52: Added nRF52 Flash PROGMEM support From Alan Carvalho de
  14071. Assis.
  14072. * Nordic NRF52 Boards:
  14073. - configs/nrf52-pca10040: Added support for the NRF52-PCA10040 board
  14074. including LEDs and buttons From Janne Rosberg.
  14075. - configs/nrf52-pca10040: Added support for starting the watchdog
  14076. timer on the nRF52. From Alan Carvalho de Assis.
  14077. - configs/nrf52-pca10040: Added a configuration for testing the
  14078. watchdog timer. From Alan Carvalho de Assis.
  14079. * NXP Freescale i.MX RT:
  14080. - i.MX RT: Brings in basic support for the i.MX RT 1050 'crossover'
  14081. SoC. Includes timer and UART support. This port was the joint
  14082. effort of Janne Rosberg, Ivan Ucherdzhiev, and myself. I give
  14083. credit to Ivan for the kill because he is the one to held on to
  14084. the end. From Ivan Ucherdzhiev.
  14085. * NXP Freescale i.MX RT Drivers:
  14086. - i.MX RT: Added power management hooks.
  14087. - i.MX RT: Added eDMA support (unverified).
  14088. - i.MX RT: Added Ethernet driver. From Jake Choy.
  14089. - i.MX RT: Added cache operations to permit the Ethernet driver to
  14090. work with the D-Cache enabled, at least in write-through mode.
  14091. Added support for PHY interrupts and PHY IOCTLs.
  14092. * NX FreescaleP i.MX RT Boards:
  14093. - IMXRT1050-EVK: Added support for booting from the on board HYPER
  14094. Flash. From Ivan Ucherdzhiev.
  14095. - IMXRT1050-EVK: Added logic to support the board's user LED. From
  14096. Jake Choy.
  14097. - IMXRT1050-EVK: Added procfs auto-mount support in imxrt_bringup.c.
  14098. From Ivan Ucherdzhiev.
  14099. - IMXRT1050-EVK: Added LIBCXX test configuration.
  14100. - IMXRT1050-EVK: Added support for the imxrt1050-evk button. From
  14101. Jake Choy.
  14102. - MXRT1050-EVK: Added support for on-board NOR FLASH boot. From
  14103. Ivan Ucherdzhiev.
  14104. - IMXRT1050-EVK: Disable LED support because pins conflict with PHY.
  14105. Enable device statistics. Enable NSH ifup and ifdown commands.
  14106. Added an NSH configuration for testing Ethernet.
  14107. * NXP Freescale Kinetis:
  14108. - K28F: Added architecture support for the Kinetis K28F.
  14109. * NXP Freescale Kinetis Drivers:
  14110. - SDHC: Make Kinetis SDHC pullups work the same as the STM32 SDIO
  14111. pullups.
  14112. * NXP Freescale Kinetis Boards:
  14113. - Freedom-K28F. Added support for the Kinetis Freedom-K28F board.
  14114. * NXP LPC17xx:
  14115. - LPC17xx: Added support for ARMv7-M run time stack checking on NXP
  14116. LPC17xx MCUs based on CONFIG_ARMV7M_STACKCHECK. Basically copied
  14117. from STM32. From Michael Jung.
  14118. * NXP LPC17xx Drivers:
  14119. - LPC17xx: Added a configurable option to allow using a part of
  14120. LPC17xx's internal flash memory as a Memory Technology Device via
  14121. NuttX' mtd_progmem infrastructure. Tested with LPC1769. From
  14122. Michael Jung.
  14123. * NXP LPC17xx Boards:
  14124. - Olimex-LPC1766STK: Remove support for the Nokia6100 LCD. That
  14125. LCD uses a 9-bit SPI interface (the 9th bit being the command/data
  14126. bit that is normally a discrete). That communication was never
  14127. successfully integrated.
  14128. * NXP LPC43xx Boards:
  14129. - configs/bambino-200e: Added support for multiple MAX31855 sensors
  14130. to the bambino-200e. From Tiago Almeida.
  14131. * OpenRISC
  14132. - arch/or1k/src. Added basic architectural support for the OpenRISK
  14133. mor1kx architecture. The initial commit was verified on a Qemu
  14134. simulation but is otherwise untested. From Matt Thompson.
  14135. * OpenRISC Board
  14136. - configs/or1k. OpenRISK mor1kx Qemu simulation. From Matt Thompson.
  14137. * STMicro STM32:
  14138. - STM32: Added support for the STM32F401xB and STM32F401xC families.
  14139. * STMicro STM32 Drivers:
  14140. - STM32 HRTIM: Added HRTIM software capture trigger, added software
  14141. reset trigger, added outputs polarization configuration From
  14142. raiden00pl.
  14143. - STM32 ADC: Added ADC injected channels configuration. From Mateusz
  14144. Szafoni.
  14145. - STM32 HCIUART: Added a Bluetooth HCI UART lower half driver for the
  14146. STM32.
  14147. - STM32 HCIUART: Implement the setbaud() method for the STM32 HCI
  14148. UART interface.
  14149. - STM32 SDIO: Added support for SDIO card to SDIO driver. From
  14150. hhuysqt.
  14151. - STM32 SDIO: Added internal pull-up option for SDIO pins. From Alan
  14152. Carvalho de Assis.
  14153. - STM32 F2/F4 ADC: Added Vbat measurement to ADC driver for
  14154. STM32F20xx and STM32F4xxx. As with the MCU temperature and VREFINT
  14155. measurement, this change requires user to enable the corresponding
  14156. channel first. For Vbat channel the ioctl cmd is
  14157. IO_ENABLE_DISABLE_VBAT_CH, and its arg should be a pointer to bool
  14158. which must be true to enable and false to disable the Vbat channel.
  14159. Moreover, since Vbat input contains a built-in voltage divider, it
  14160. is highly suggested to disable Vbat input channel after measurement
  14161. is done in order to prevent battery drain through the divider. From
  14162. Dmitriy Linikov.
  14163. - STM32, STM32L4 1WIRE: Added one bit read and write to 1-wire
  14164. interface. This is needed for devices that require single bit
  14165. timeslot generation and for 1-Wire search algorithm triplets. From
  14166. Juha Niskanen.
  14167. - STM32 F3 SPI: Enable DMA for SPI on stm32f30xxx MCUs. From Michal
  14168. Lyszczek.
  14169. - STM32 L4 1WIRE: Ported 1wire driver from STM32. From Juha
  14170. Niskanen.
  14171. - STM32 L4 I2C/SPI/1WIRE: Added PM hooks to I2C, SPI and 1-wire From
  14172. Juha Niskanen.
  14173. - STM32 F7 RTC: Added CONFIG_RTC_PERIODIC support. Also makes the RTC
  14174. lowerhalf more like in STM32L4. From Juha Niskanen.
  14175. - STM32 F7 ADC/I2C/SPI: Added PM hooks to ADC, I2C and SPI. From
  14176. Juha Niskanen.
  14177. * STMicro STM32 Boards:
  14178. - Indium-F7: Removed support for the Indium-F7 board. This was done
  14179. for two reasons: (1) The board support was just clone of the
  14180. Nucleo-144 board support with naming changes. There has been no
  14181. support and no further development for the board support. (2) There
  14182. does not seem to be any available Indium-F7 board available to the
  14183. public anywhere on the Internet. There is not even a reference to
  14184. the board on the rafresearch.com web stie.
  14185. - Nucleo-L452RE: Added buttons example From Juha Niskanen.
  14186. - Nucleo-L476RG: Added support to Nokia LCD PCD8544 on nucleo-l476rg.
  14187. From Alan Carvalho de Assis.
  14188. - Nucleo-L476RG: Added nxdemo configuration to nucleo-l476rg using
  14189. PCD8544. From Alan Carvalho de Assis.
  14190. - Olimex-STM32-P407: Added a zmodem test configuration.
  14191. - Olimex-STM32-P407: Added the module configuration.
  14192. - Photon: Added RGB led support From Anthony Merlino.
  14193. - STM32F103-Minimum: Added support for DFU bootloader From Simon
  14194. Piriou.
  14195. - Spark: Removes Spark board configuration. Still available in the
  14196. Obsoleted repository. If there is no CC3000 support, then there is
  14197. no purpose in supporting the Spark either.
  14198. - STM32F334-Disco: Added buck/boost converter example configuration.
  14199. From Mateusz Szafoni.
  14200. - STM32F4 Discovery: Added support for multiple MAX31855 sensors to the
  14201. STM32F4 Discovery From Tiago Almeida.
  14202. - STM32F4 Discovery: Added support in bring-up logic to initialize the
  14203. HCI UART and register the HCI UART network device.
  14204. - STM32F4 Discovery: Added MAX7219 support to STM32F4Discovery board.
  14205. From Alan Carvalho de Assis.
  14206. - STM32F4 Discovery: Added board configuration for CS43L22 audio
  14207. example. From Alan Carvalho de Assis.
  14208. - STM32F4 Discovery: Added a module configuration for testing the
  14209. kernel module example with the STM32F4Discovery board. From Alan
  14210. Carvalho de Assis.
  14211. - STM32F429I-DISCO: Added a LittlevGL configuration for stm32f429i-
  14212. disco. From seyyah.
  14213. - STM32F746G-DISCO. Added clang support to stm32f746g-disco board.
  14214. From Goran Mekic.
  14215. - STM32L1 Discovery: Added support for the STM32L152RCT6 version of
  14216. the board.
  14217. * TI TMS570:
  14218. - TMS570: Added support for the TMS570LS3137ZWT. From Ivan Ucherdzhiev.
  14219. * TI TMS570 Boards:
  14220. - configs/tms570ls31x-usb-kit: Added support for the TI Hercules
  14221. TMS570LS31x USB Kit From Ivan Ucherdzhiev.
  14222. * TI Tiva:
  14223. - CC3200: Remove all support for the CC3200. This was a port that was
  14224. started but never completed. What good is partial CC3200 support
  14225. with no wireless support?.
  14226. * TI Tiva Drivers:
  14227. - EEPROM: Implements an EEPROM driver in compliance with MTD driver
  14228. as provided by NUTTX for TM4C1294. The EEPROM driver currently
  14229. supports only two functionalities - read bytes(multiple of 4) and
  14230. write bytes (multiple of 4). From Shirshak Sengupta.
  14231. - FLASH: Implemented Flash CONFIG_MTD_BYTE_WRITE for TM4c1294.
  14232. Implemented the tiva_write function which will write an arbitrary
  14233. number of bytes to flash (in multiple of 4). From Shirshak Sengupta.
  14234. - Serial: Added TERMIOS IOCTL support to the Tiva serial driver.
  14235. From Dmitry Sharihin.
  14236. * TI Tiva Boards:
  14237. - CC3200-Launchpad: Remove all support for the CC3200-Launchpad.
  14238. This was a port that was started but never completed. What good is
  14239. partial CC3200-Launchpad board support with no wireless support?.
  14240. * Libraries/Header Files:
  14241. - libs/: Moved all of the libraries under a common directory called
  14242. libs/ (libc, libnx, and libxx). This almost certainly break libcxx
  14243. for now.
  14244. - libs/libc/time: Added an implementation of clock().
  14245. - libs/libc/lzf: Added a modified version of Marc Alexander Lehmann's
  14246. LIBLZF3.6 library From Boris Astardzhiev.
  14247. - libs/libc/unistd: Initial, minimal implementation of sysconf().
  14248. Only sufficient to support the functionality of less standard
  14249. getdtabilesize(). From Michael Jung.
  14250. - libs/libdsp: Added DSP support library. From Mateusz Szafoni.
  14251. - include/sys: Added resource.h.
  14252. - include/nuttx/video: Add overlay support to framebuffer interface
  14253. definition. From Marco Krahl.
  14254. * Tools:
  14255. - tools/gencromfs.c: Added tools/gencromfs.c, a tool that can be used
  14256. to generate CROMFS file system images.
  14257. - tools/mkromfsimg.sh: Include an option in mkromfsimg.sh to ignore
  14258. FAT/RAMDISK. This permits you to build tiny systems with ROMFS but
  14259. with the rather large FAT FS support. From Alan Carvalho de Assis.
  14260. - tools/nxstyle.c: Added check for blank lines before and after single
  14261. line comments. From Bob Feretich.
  14262. - tools/sethost.sh: Added support for macOS.
  14263. - tools/uncrustify.cfg: An initial cut at an uncrustify C formatting
  14264. script from Gregory Nutt. Updated, corrected, and verified. From
  14265. Bob Feretich.
  14266. * Build System:
  14267. - Makefile: Added support for nconfig frontend for 'make nconfig'.
  14268. From Michal Lyszczek.
  14269. - configs/: Added definition of strip to many Make.defs files.
  14270. - staging/: Remove fixed lib/ subdirectory and its content. Replace
  14271. with new directory called staging/ that is created dynamically when
  14272. building and removed when 'make clean' is done. This both improves
  14273. the naming and eliminates a garbage directory from the repository.
  14274. - tools/: Move all build-related files (except the top-level Makefile)
  14275. into the tools/ sub-directory. This really cleans up the top-level
  14276. directory.
  14277. * NSH: apps/nshlib:
  14278. - apps/nshlib: Added the mkfatfs -r option which can be used to
  14279. specify the number of entries in the FAT12/FAT16 root directory.
  14280. From Boris Astardzhiev.
  14281. * Examples/Tests: apps/examples:
  14282. - apps/examples/adxl372_test and lxm330spi_test: Added ADXL372 and
  14283. LSM330 tests. From Bob Feretich.
  14284. - apps/examples/cc3000: Removed the CC3000 example. From Alan
  14285. Carvalho de Assis.
  14286. - apps/examples/cromfs: Added an example of how to build a CROMFS
  14287. file system image.
  14288. - apps/examples/elf: Extend the ELF program module demo so that you
  14289. can use compressed ELF programs with CROMFS.
  14290. - apps/examples/elf: Use strip command to make ELF binaries MUCH
  14291. smaller. Added an option to strip debug symbols even if the debug
  14292. symbols are enabled in the base code.
  14293. - apps/examples/max31855: Added an example to read multiple max31855
  14294. sensors. From Tiago Almeida.
  14295. - apps/examples/netloop: Update network loopback example so that it
  14296. can be used to test TCP KeepAlive.
  14297. - apps/examples/nxdemo: Added nxdemo application From Alan Carvalho
  14298. de Assis.
  14299. - apps/examples/powerled: Added arch initialization.
  14300. - apps/examples/uavcan: Removed because apps/canutils/libuavcan is no
  14301. longer available.
  14302. * System Utilities: apps/system
  14303. - apps/system/lzf: Added the test case from Marc Alexander Lehmann's
  14304. LIBLZF3.6 librrary From Boris Astardzhiev.
  14305. - apps/system/embedlog: Support for embedlog data loggin package from
  14306. https://embedlog.kurwinet.pl/ From Michal Lyszczek.
  14307. - apps/system/zmodem: Added an option to enable hardware flow control
  14308. via termios. Allow stack size and priority to be configured.
  14309. - apps/system/zmodem: Call tcflush() before closing the serial port.
  14310. This is necessary because that close operation may hang if hardware
  14311. flow control is enabled. Consider this scenario: After the host
  14312. sz runs on the host, it exits and leaves CTS high. The target rz
  14313. completes, and tries to close the serial port. But if there is
  14314. buffered Tx data, then the close will hang when it tries to drain
  14315. the buffered Tx data since there is no where it can go. tcflush()
  14316. discards the buffered data and permits the close to continue.
  14317. There is additional logic in nuttx/drivers/serial needed to work
  14318. with this.
  14319. * CAN Utilities: apps/canutils:
  14320. - apps/canutils/libuavcan. Removed! libuavcan has not built for a
  14321. year or so. The basic problem is that as NuttX advances, the old
  14322. frozen version of libuavcan has become absolute because it violates
  14323. the portable POSIX OS interface. No one is maintaining the port so
  14324. there is no alternative but to remove it.
  14325. * Network Utilities: apps/netutils:
  14326. - apps/netutils/tftpc: Modified the TFTP client functions to use a
  14327. data read/write callback instead of a file. This allows TFTP to
  14328. write to arbitrary destination (in my case, a MTD device - for
  14329. firmware update). Two new functions are introduced for this, named
  14330. tftpget_cb and tftpput_cb. They are just made of most of the
  14331. existing code. The previously existing tftpget/tftpput functions
  14332. are now wrappers on the new ones, with callbacks that read/write
  14333. from files, so my modifications are backwards compatible with
  14334. existing applications, eg the associated nsh commands don't need to
  14335. be changed. From Sebastien Lorquet.
  14336. * Wireless Utilities: apps/wireless:
  14337. - apps/wireless/bluetooth/btsak: Added a Bluetooth debug tool.
  14338. Bugfixes. Only the most critical bugfixes are listed here (see the
  14339. ChangeLog for the complete list of bugfixes and for additional, more
  14340. detailed bugfix information):
  14341. * Core OS:
  14342. - sched/sched: Fix a deadlock in SMP mode. Two months ago, I
  14343. introduced sched_tasklist_lock() and sched_tasklist_unlock() to
  14344. protect tasklists in SMP mode. This change works well for HTTP
  14345. audio streaming aging test with lc823450-xgevk. However, I found a
  14346. deadlock in the scheduler when I tried similar aging tests with DVFS
  14347. autonomous mode where CPU clock speed changed based on cpu load. In
  14348. this case, call sequences were as follows. To avoid this deadlock,
  14349. I added sched_tasklist_unlock() when calling up_cpu_pause() and
  14350. sched_addreadytorun(). Also, added sched_tasklist_lock() after the
  14351. call. Also added critical sections to lib_filesem.c, mm_sem.c, and
  14352. net_lock.c for SMP for SMP. From Masayuki Ishikawa.
  14353. - sched/sched: Change ordering of round-robin time slice check
  14354. (sched_process_scheduler()) and processing of wdog timers
  14355. (wd_timer()). wd_timer()'s callback function can change current
  14356. running task and, hence, must be done after the time slice check.
  14357. The time slice check will decrement the currently running task's
  14358. time slice allotment. If such a context switch occurs, then the
  14359. newly started task will lost one could of that allotment before it
  14360. even has a chance to run. From EunBong Song.
  14361. * File System/Block and MTD Drivers:
  14362. - fs/fat: In fs_stat(), when stat'ing the root directory, avoid
  14363. calculating the address of the root directory entry. The
  14364. calculation is bogus (but not harmful) because the root directory
  14365. does not have a directory entry. Noted by Boris Astardzhiev.
  14366. - fs/fat: Avoid calculating the bogus directory entry address for
  14367. the FAT root directory (since it has no directory entry). This
  14368. change should have no effect, other than making the logic clearer.
  14369. From Boris Astardzhiev.
  14370. - fs/mount: Fix wrong size reported by df -h. Reason is that size
  14371. in bytes is calculated always on uint32_t types and cards bigger
  14372. than 4GB will overflow uint32_t type. Solution is to use uint64_t
  14373. where possible. From Michal Lyszczek.
  14374. - fs/smartfs: Fix a hardfault in SmartFS. Problem occurred when
  14375. opening a file with O_CREAT (only) when the file arelready exists
  14376. but has a size of zero. From Michal Lyszczek.
  14377. - fs/vfs: Fix negative errno set in fs_open.c From Michal Lyszczek.
  14378. - drivers/mtd: Fixed a W25 driver w25_cacheflush sector bug. From
  14379. lihaichen.
  14380. - drivers/mtd: mtdconfig_register() returned OK instead of -ENOMEM on
  14381. failed allocation. From Michal Lyszczek.
  14382. * Graphics/Display Drivers:
  14383. - drivers/lcd/ft80x: ACTIVE host command appears to be formatted
  14384. differently than other host commands; Fix ROM CHIPID. Appears to
  14385. be big-ending, BCD. Fix some compile issues when debug features
  14386. are enabled.
  14387. - drivers/lcd/ft80x: Fix a typo that caused the driver to fail to
  14388. recognize the ft801 chip version. From Gregory Nutt.
  14389. - Review all board implementations of board_lcd_initialize(). The
  14390. NuttX convention is that all internal functions that return errors
  14391. as an 'int' must return a negated errno value on failure and a non-
  14392. negative value on success. Most were right but eight of them had
  14393. cloned logic that returns 1 on success and zero on failure. both
  14394. of which are interpreted as success by the caller since they are
  14395. non-negative.
  14396. * Networking/Network Drivers:
  14397. - net/tcp: Fixed problem with send() return value when using
  14398. nonblocking I/O over buffered tcp socket From Dmitriy Linikov.
  14399. - net/sixlowpan: Fix a nasty, byte-ordering/endian-ness problem.
  14400. The root cause has been found and corrected. And a half dozen
  14401. or so bandaid fixes were reverted.
  14402. - net/sixlowpan: Preserve big-endian (network order) when
  14403. uncompressing address. From Anthony Merlino.
  14404. - net/sixlowpan: TCP send should have PSH and ACK flags set when
  14405. sending. This matches the standard network (Ethernet) TCP send
  14406. logic. From Anthony Merlino.
  14407. - net/udp: Fix several issues using connected UDP sockets: sendto()
  14408. should not accept an address. Normally send() should be used with
  14409. connect UDP sockets instead. recvfrom() is no longer necessary.
  14410. recvfrom() and poll() should not reset to accept any addresses but
  14411. should, instead, only accept inputs and events from the connected
  14412. remote peer. On of these issues was noted by ???
  14413. <liguiding@pinecone.net>. Changes were made as summarized here:
  14414. http://www.masterraghu.com/subjects/np/introduction/unix_network_programming_v1.3/ch08lev1sec11.html
  14415. From Gregory Nutt.
  14416. - net/udp: Resolve race condition in connection-less UDP sockets with
  14417. read-ahead buffering. In connection-mode UDP sockets, a remote
  14418. address is retained in the UDP connection structure. This
  14419. determines both there send() will send the packets and which packets
  14420. recv() will be accepted. This same mechanism is used for
  14421. connection-less UDP sendto: A temporary remote address is written
  14422. into the connection structure to support the sendto() operation.
  14423. That address persists until the next recvfrom() when it is reset to
  14424. accept any address. When UDP read-ahead buffering is enabled,
  14425. however, that means that the old, invalid remote address can be left
  14426. in the connection structure for some time. This can cause read-
  14427. ahead buffer to fail, dropping UDP packets. Shortening the time
  14428. between when he remote address is reset (i.e., immediately after the
  14429. sendto() completes) is not a solution, that does not eliminate the
  14430. race condition; in only makes it smaller. With this change, a flag
  14431. was added to the connection structure to indicate if the UDP socket
  14432. is in connection mode or if it is connection-less. This change
  14433. effects only UDP receive operations: The remote address in the UDP
  14434. connection is always ignored if the UDP socket is not in connection-
  14435. mode. No for connection-mode sockets, that remote address behaves as
  14436. before. But for connection-less sockets, it is only used by sendto().
  14437. * Wireless/Wireless Drivers:
  14438. - drivers/wiresless/ieee80211: Correct some initialization problems
  14439. with BCM43362 chip. From hhuysqt.
  14440. - drivers/ieee802154/xbee: Added a timeout to send logic to handle
  14441. case where XBee module fails to respond to a Transmit request with
  14442. a Transmit Status From Anthony Merlino.
  14443. * Common Drivers:
  14444. - Per OpenGroup.org, syslog -- and, hence, nonstandard vsyslog, and
  14445. debug wrappers -- does not return a value. Rename _vsyslog to
  14446. nx_vsyslog. Use internal nx_vsyslog in the few cases where a
  14447. return value is required.
  14448. - drivers/leds: Fixes RGB LED issues caused by uninitialized memory
  14449. with CONFIG_RGBLED_MULTICHAN. The uninitialized pwm_info_s struct
  14450. caused a rogue channel to be started causing errors in the pwm
  14451. driver From Anthony Merlino.
  14452. - drivers/sensors/lis2dh: Clear INT1 at SNIOC_WRITE_INT1THRESHOLD
  14453. ioctl. From Jussi Kivilinna.
  14454. - drivers/sensors/sht21: Changed I2C_TRANSFER return value so that
  14455. it return on zero on success, not the count of bytes transferred.
  14456. From Juha Niskanen.
  14457. - drivers/serial: Per Matias Edlund: I recently used the tcflush
  14458. function and found that it failed with ENOTTY. The reason is that
  14459. the TCFLSH case in the function uart_ioctl in the file
  14460. drivers/serial/serial.c does not update the ret value." On
  14461. success, the TCFLSH IOCTL logic needs to explicitly set the return
  14462. value (ret) to zero.
  14463. - drivers/serial: Added a timeout to uart_tcdrain(). Even if
  14464. tcflush() is used to discard buffered data, the close() can still
  14465. hang if (a) hardware flow control is enabled, (b) CTS == 1, and
  14466. (c) there is data stuck in the hardware Tx FIFO. tcflush() does
  14467. not currently clear the MCU serial drivers' hardware Tx FIFOs.
  14468. This is a workaround for that.
  14469. - drivers/sensors: Fix APDS9960 work queue BUG found by Kyle Lei.
  14470. From Alan Carvalho de Assis.
  14471. * Simulator:
  14472. - arch/sim: Various fixes necessary to build the simulator under
  14473. MSYS2.
  14474. * ARMv7-R:
  14475. - ARMv7-R: Corrected several ARMv7-R issues. From Ivan Ucherdzhiev.
  14476. * Infineon XMC4xxx Boards:
  14477. - XMC4500-Relax: Call xmc4_spidev_initialize() in xmc4_boot.c. From
  14478. Alan Carvalho de Assis.
  14479. * NXP/Freescale LPC17xx Drivers:
  14480. - LPC17xx USB: Fix USB device endpoint allocation bookkeeping. From
  14481. Michael Jung.
  14482. - LPC17xx USB: Freeing endpoints should be set the same allocations
  14483. as when endpoint was allocated.
  14484. - LPC17xx USB: Fix loss of RX initiatives. USB bulk endpoints are
  14485. double buffered on LPC17xx MCUs. This means that up to two packets
  14486. might be received on an OUT endpoint that can not be handled
  14487. immediately if the receive request queue is empty. Thus,
  14488. rxpending must be a counter not a boolean flag. From Michael Jung.
  14489. * NXP/Freescale Kinetis Drivers:
  14490. - Kinetis USG: USB device fixes: Use correct CONFIG OTG control,
  14491. Fix interrupt storm when cable is disconnected. The DM, DP state
  14492. were incorrect because the pulldowns were not enabled. Also the
  14493. pending asynchronous resume interrupt needed to be re-armed after
  14494. the suspend is in effect. This is now done in the isr. From David
  14495. Sidrane.
  14496. - Kinetis Serial: In kinetis_lowputc.c, fix esBRFA calculation
  14497. effecting baudrate. Previous BRFA was not cleared and or-ed into
  14498. new BRFA, hence, buadrate was wrong. Where Baud Rate Fractional
  14499. Divisor (BRFD) UART baud rate = clock / (16 * (SBR + BRFD)). From
  14500. David Sidrane.
  14501. - Kinetis Serial: In kinetis_lowputc.c, fixed parity settings.
  14502. Kinetis UART must be placed in 9 bit mode (M=1) with when 8 bit data
  14503. with parity is required. If left in 8 bit mode (M=0) with parity
  14504. then D7 of the TX/RX register becomes parity bit. Hence what is
  14505. called 9-bit or 8-bit Mode Select is a misnomer. 8 bit mode when
  14506. parity is enabled is really 7 bit with parity. From David Sidrane.
  14507. * NXP/Freescale Kinetis Boards:
  14508. - configs/teensy-3.x: Remove CONFIG_USBDEV_DUALSPEED from the usbnsh
  14509. configuration. Hardware supports only FS.
  14510. * NXP i.MX6 Drivers:
  14511. - i.MX6: Bring in a few i.MX6 fixes that were committed to similar
  14512. files for the i.MX RT.
  14513. * STMicro STM32:
  14514. - STM32 F3: Problem: stm32f30xx hangs waiting for LSE to initialize.
  14515. Reason for hang is that operation of setting LSE_ON does not take
  14516. effect because there is no clock on PWR peripheral. This is
  14517. initialized later in the code From Michal Lyszczek.
  14518. * STMicro STM32 Drivers:
  14519. - STM32 and STM32 L4 1WIRE: In 1wire driver, do not write useless
  14520. WRITEBIT zero return value to const buffer From Juha Niskanen.
  14521. - STM32 HRTIM: Fixed capture_get function,. From raiden00pl.
  14522. - STM32 F3 ADC: Fixed bug in RCC reset logic that resets ADC1
  14523. configuration when both ADC1 and ADC2 are in use From Mateusz
  14524. Szafoni.
  14525. - STM32 Ethernet: In case of PHY failure, usually because of the
  14526. lack of 25/50 MHz REFCLK input, the Ethernet block would lock up
  14527. in a while loop waiting for readiness, which will never happened.
  14528. This prevented the board from starting at all in the case of a PHY
  14529. failure. This commit adds a retry loop to avoid bricking the board
  14530. if the Ethernet block is unable to start. From Sebastien Lorquet.
  14531. - STM32 F7 SDMMC: Added support for the second SDMMC device. The
  14532. second SDMMC device was already supported but the clock was never
  14533. enabled. This fixes that. From William Douglas.
  14534. - STM32 Serial: Fix UART glitch when lowputc is enabled. From
  14535. Simon Piriou.
  14536. - STM32 USB: Skip recipient check for descriptor related
  14537. requests From Simon Piriou.
  14538. * TI Tiva Drivers:
  14539. - Tiva ADC: Fix compilation errors on Tiva ADC code when ADC is
  14540. enable. From Vinicius Maciel.
  14541. - Tiva Serial: Allow building of Tiva platform with no serial
  14542. console. From Dmitry Sharihin.
  14543. * C Library/Header Files:
  14544. - lib/libc/netdb: Fixed boundary conditions in dns_recv_response().
  14545. Fixed typos in include/nuttx/net/dns.h. From Masayuki Ishikawa.
  14546. - libs/libc/modlib: Fixed backward test for an error in
  14547. modlib_verify.c.
  14548. * Build System:
  14549. - Makefiles: Eliminate the spurious errors reported by 'make
  14550. savedefconfig'.
  14551. - Makefile(s): There is a sort command in the 'make savedefconfig'
  14552. file. I found that sort behaves differently on different platforms
  14553. based on the environment variable LC_ALL. Now, Makefile.unix will
  14554. force LC_ALL=C just for the sort command so that we can all generate
  14555. equivalent defconfig files.
  14556. - Makefile(s): The clean_context target needs to invoke a
  14557. corresponding clean_context target in the apps/Makefile in order to
  14558. remove linkages. From Gregory Nutt.
  14559. - LibTargets.mk, tools/Config.mk: Drop executable bit on installed
  14560. libraries. The rules to install libraries under lib/ were modified
  14561. to use mode 0644 instead of the default 0755. From Andrey Zabolotnyi.
  14562. * Examples/Tests: apps/examples:
  14563. - apps/examples/ft80x: Fix some size calculations. Added option to
  14564. disable primitive tests. just too boring to have to watch over and
  14565. over again. Fix a typo in backlight fade logic; Fix error in
  14566. formatted display light debug dump output.
  14567. - apps/examples/ft80x: Text is handled by the coprocessor and, hence,
  14568. must use RAM_CMD, not RAM_DL.
  14569. - apps/examples/ft80x: Fix some errors in co-processor demos. Correct
  14570. an error in the spinner demo.
  14571. - apps/examples/nsh and posix_spawn: Must not call exec_setsymtab()
  14572. directly. That is a non-POSIX internal OS interface.
  14573. - apps/examples/ostest: Do not call AIO test without
  14574. CONFIG_EXAMPLES_OSTEST_AIO From Juha Niskanen.
  14575. - apps/examples/smps: Fix typos in Kconfig. All power, voltage,
  14576. current values were strings with no default. I assume they should
  14577. be 'int' with what default?.
  14578. - apps/examples/smps: Fixes in some printf and in Kconfig From
  14579. Mateusz Szafoni.
  14580. - apps/system/zmodem: Fix Makefile.host. It was broken when zmodem.h
  14581. was moved to apps/include/system. Fix an incompatibility with the way
  14582. that CRCs are calculated.
  14583. * System Utilities: apps/system:
  14584. - apps/system: Applications should use the standard clock() interface,
  14585. not the internal NuttX clock_systimer() interface.
  14586. - apps/system/stackmonitor: Fix comparison between pointer and zero
  14587. character constant. From Juha Niskanen.
  14588. * Network Utilities: apps/netutils:
  14589. - apps/netutils/netlib: Various fixes needed to get a clean netlib
  14590. build with Bluetooth only.
  14591. * Wireless Utilities: apps/wireless:
  14592. - apps/wireless: Applications should use the standard clock()
  14593. interface, not the internal NuttX clock_systimer() interface.
  14594. NuttX-7.26 Release Notes
  14595. ------------------------
  14596. The 126th release of NuttX, Version 7.26, was made on September 8, 2018,
  14597. and is available for download from the Bitbucket.org website. Note
  14598. that release consists of two tarballs: nuttx-7.26.tar.gz and
  14599. apps-7.26.tar.gz. These are available from:
  14600. https://bitbucket.org/nuttx/nuttx/downloads
  14601. https://bitbucket.org/nuttx/apps/downloads
  14602. Both may be needed (see the top-level nuttx/README.txt file for build
  14603. information).
  14604. Additional new features and extended functionality:
  14605. * Core OS:
  14606. - General: Eliminate use of the non-standard type systime_t and
  14607. replace it the equivalent, standard type clock_t From Gregory Nutt.
  14608. - General: Replace non critical PANIC with DEBUGPANIC to save the
  14609. code space From Xiang Xiao.
  14610. - General: Replace all ASSERT with DEBUGASSERT to save the code
  14611. space From Xiang Xiao.
  14612. - Initialization: Add option to mount block device for
  14613. INIT_FILEPATH case. From anchao.
  14614. - clock(): clock_systimer() is no longer a system interface. It has
  14615. been replaced with the equivalent, standard interface clock().
  14616. Moved the implementation of clock() from the C library into the OS
  14617. core. This is necessary because it calls the (now) internal OS
  14618. function clock_systimer(). clock() is now accessed only via a
  14619. system call in certain configurations. From Gregory Nutt.
  14620. - clock Utilities: Move clock_timespec_[add|subtract] to
  14621. include/nuttx/clock.h From Xiang Xiao.
  14622. - Binary Loader: Add binfmt_initialize(). All binary formats are
  14623. now registered centrally vs. in board-specific logic. This
  14624. simplifies the usage of the binfmt subsystem. From Xiang Xiao.
  14625. - Binary Loader: Reference default symtab name to binfmt From anchao.
  14626. - mm: Add mm_heapmember function and reimplement kmm_heapmember base
  14627. on mm_heapmember since this function is very useful if multiple
  14628. heaps exist. From Xiang Xiao.
  14629. - mm: Add {kumm/kmm}_calloc API. Add calloc API for manage user
  14630. memory and kernel memory in Flat Build/Kernel Build without kernel
  14631. heap. From zhuyanlin.
  14632. - pthreads: Add support static pthread stack. Add standard
  14633. pthread_attr_setstack() and pthread_attr_getstack(). In all cases
  14634. where the stack is released, add check to see which allocator must
  14635. be used to free the stack: The user or the kernel allocator. From
  14636. xuanlin.
  14637. - Semaphores: Apply the semaphore wait function
  14638. nxsem_wait_uninterruptible(). This function is a wrapped version
  14639. of nxsem_wait() that is uninterruptible and convenient for use.
  14640. From liuhaiyang.
  14641. - Signals: Add default signal action to SIGKILL. From ligd.
  14642. - Signals: Update the signal default action logic to support
  14643. sigaction(). signaction() must be able to handle and input action
  14644. of SIG_DFL to setup the default signal action; it mast also return
  14645. SIG_DFL it is replacing the default action. From Gregory Nutt.
  14646. - Signals: Default Signal Actions. Change some types to
  14647. superficially simplify. Add configuration options to enabled
  14648. default signal behaviors on a per-signal basis. I don't think
  14649. users are prepared for SIGALRM to terminate the task (which is the
  14650. correct default behavior if you don't change it). Extend the
  14651. implementation of default signals so that it is totally table
  14652. driven and extensible by simply mondifying the content of const
  14653. tables. From Gregory Nutt.
  14654. - Signals: Add support for SIGINT in addition to SIGKILL.
  14655. - Signals: Add logic and an interface to determine if a signal can
  14656. be caught or ignored. sigaction now correctly returns EINVAL on
  14657. any attempt to catch or ignore such signals (only SIGKILL for now
  14658. and only if CONFIG_SIG_DEFAULT=y). From Gregory Nutt.
  14659. - Signals: Add support for default signal actions for SIGSTOP,
  14660. SIGSTP, and SIGCONT. Add procfs support to show stopped tasks.
  14661. From Gregory Nutt.
  14662. - Signals: Add nxsig_action() to solve a chicken and egg problem:
  14663. We needed to use sigaction to set default actions, but sigaction()
  14664. would refuse to set actions if the default actions could not be
  14665. caught or ignored. From Gregory Nutt.
  14666. - Signals: Add configuration option to selectively enabled/disable
  14667. default signal actions for SIGSTOP/SIGSTP/SIGCONT and SIGKILL/SIGINT.
  14668. - Signals: If a task/thread was already blocked when
  14669. SIGSTOP/SIGSTP was received, it will restart in the running state.
  14670. It will appear that to the task/thread that the blocked condition
  14671. was interrupt by a signal and returns the EINTR error. From
  14672. Gregory Nutt.
  14673. - Signals: Update signal default STOP action. If waitpid was
  14674. called with the WUNTRACED then wake up waitpid(). From Gregory
  14675. Nutt.
  14676. - IRQs: Monitor the IRQ execution time. This is very useful for
  14677. measuring the interrupt latency. From Xiang Xiao.
  14678. - IRQ Dispatch: Add support interrupt chains in NuttX. IRQ chain is
  14679. very useful in these cases: (1) Multiple hardware connect to the
  14680. same request line(e.g. PCI), (2) Need multiple driver to support
  14681. one hardware block (like Linux MFD) From zhuguangqing.
  14682. - Work Queue: Modify high priority work queue to support multiple
  14683. threads. From ligd.
  14684. - System Calls: Add support for getpeername() and get_sockname()
  14685. system calls. From Gregory Nutt.
  14686. - System Calls: svcall/sycall logic needs to get the ucontext
  14687. argument from R4 instead of stack since all syscall parameters pass
  14688. from registers in syscall.h From Xiang Xiao.
  14689. - CPU Load Measurement: Support the CPU load measurement using
  14690. timer_lowerhalf_s interface From Xiang Xiao.
  14691. - Assertions: Change CONFIG_BOARD_RESET_ON_CRASH to
  14692. CONFIG_BOARD_RESET_ON_ASSERT, arch/: Implement call to
  14693. board_reset() if in all implementations of up_assert() when
  14694. CONFIG_BOARD_RESET_ON_ASSERT=y. From Xiang Xiao.
  14695. - boardctl(): Add support for board_app_finalinitialize() From ligd.
  14696. - Architecture Interface: Add prototype for an architecture-specific
  14697. up_trigger_irq function. From dongjianli.
  14698. - Architecture Interface: Add the garbage collection hook so each
  14699. architecture can do custom memory cleanup if necessary. From Xiang
  14700. Xiao.
  14701. - Architecture Interface: Add architecture-specific prototypes for
  14702. conversions between physical and virtual address. From ligd.
  14703. * File Systems/Block and MTD Drivers
  14704. - ProcFS: Add support for a procfs entry that will permit examining
  14705. the environment of any task. From Gregory Nutt.
  14706. - ProcFS: Add support for proc/self/, a convenient way for getting
  14707. information about the currently running task. From Gregory Nutt.
  14708. - HostFS: Add support for open() append mode From anchao.
  14709. - HostFS: Add ftruncate support. From Xiang Xiao.
  14710. - HostFS: Remove ARCH_SIM dependence since other architectures
  14711. (e.g., arm semihosting) could support hostfs too From Xiang Xiao.
  14712. - HostFS: Support remote directory names without a trailing '/'
  14713. From ligd.
  14714. - HostFS: Add re-try when hostfs mount() fails From ligd.
  14715. - NFS: Update NFS client mount to VER3 From zhangyuan7.
  14716. - Partitions: Add PTABLE parser fs/partion: Add a partition parser
  14717. framework fs/driver/fs_blockpartition.c: Add
  14718. register_blockpartition for block partition From Xiang Xiao.
  14719. - MTD: Add gd25 driver From wangyanjiong.
  14720. - MTD: In MTD partitions, copy the partition name to internal
  14721. buffer so that the caller can free the name argument From Xiang
  14722. Xiao.
  14723. - MTD: Support initialization of an FTL block device with a custom
  14724. name From Xiang Xiao.
  14725. - MTD: FTL: Reduce size of stack buffer from 64 to a maximum size
  14726. as determined from NAME_MAX. From Gregory Nutt.
  14727. - VFS poll(): Send poll() notification when the Tx buffer is flushed
  14728. From ligd.
  14729. - VFS fstat(): Add file_fstat() function for internal OS use. From
  14730. ligd.
  14731. - VFS fcntl(): Add file_fcntl, psock_fcntl, and psock_dupsd for use
  14732. within the kernel. From Xiang Xiao.
  14733. - VFS dup2(): Addpsock_dupsd for use within the kernel. From Xiang
  14734. Xiao.
  14735. - VFS poll(): Add poll use in kernel space. From dongjianli.
  14736. - VFS select(): Make select be more consistent with Linux man page:
  14737. 'The timeout ... Some code calls select() with all three sets
  14738. empty, nfds zero, and a non-NULL timeout as a fairly portable way
  14739. to sleep with subsecond precision.' From anchao.
  14740. * Networking/Network Drivers:
  14741. - Sockets: Add getpeername() support From ligd.
  14742. - sockopt(): Move psock check from [get|set]sockopt to
  14743. psock_[get|set]sockopt From Xiang Xiao.
  14744. - getsockname(): Add psock_getsockname function From Xiang Xiao.
  14745. - Netlink Sockets: This brings in a fragmentary, experimental
  14746. implementation of NETLINK sockets. There is not too much to that
  14747. socket support on this initial commit, just the netlink socket
  14748. framework. However, I decided to bring it into master because
  14749. there is a enough that I would not want to lose what is in place.
  14750. And since it is dependent on CONFIG_EXPERIMENTAL, its presence on
  14751. master should be innocuous. From Gregory Nutt.
  14752. - Interface Indexes: Add driver interface index support. Add
  14753. implementation of if_nametoindex() and if indextoname(). Raw
  14754. AF_PACKET sockets now depend on CONFIG_NETDEV_IFINDEX. Add syscall
  14755. support for if_nametoindex() and if_indextoname(). Includes an
  14756. algorithm to prevent an interface index from being reused until all
  14757. network interfaces have by assigned once. The prevents removable
  14758. devices from being removed, unregistered and re-installed,
  14759. re-registered and keeping the same interface index. From Gregory
  14760. Nutt.
  14761. - Driver Interface: Add devif_loopback() to check the loopback
  14762. case where a packet is being sent to itself. Modify the net driver
  14763. to call this function in this case. This function will simply
  14764. re-inject the packet back into the network and the network driver
  14765. will not put anything on the wire. From Xiang Xiao.
  14766. - Network Devices: Remove all references to CONFIG_NET_USER_DEVFMT.
  14767. That feature is now unconditionally enabled. This was done because
  14768. (1) the feature does not require very much additional memory, and
  14769. (2) it causes confusion in the configuration due to the additional
  14770. complexity. Any network drivers that fail to zero the device
  14771. structure interface name field (d_ifname) because calling
  14772. netdev_register() will, however, get a nasty surprise. From
  14773. Gregory Nutt.
  14774. - Network Devices: Add support for Microchip LAN91C111 driver From
  14775. Xiang Xiao.
  14776. - Network Devices: netdev_findby_ipv[4|6]addr return
  14777. netdev_default() as last resort but don't return loopback device
  14778. if another network device is in the UP state. From Xiang Xiao.
  14779. - Network Device IOCTLs: Add si_ioctl callback and net_ioctl_arglen
  14780. so usrsock could forward the ioctl to the remote end/ From
  14781. dongjianli.
  14782. - IPv6: Rename g_ipv6_allzeroaddress with the more meaning
  14783. g_ipv6_unspecaddr since the all-zero address is the IPv6
  14784. unspecified address (sometime IN6_ADDR_ANY). Replace more inline
  14785. tests for IPv6 multicast with common net_is_addr_mcast() macro.
  14786. From Gregory Nutt.
  14787. - ARP: arp_find() now checks if the target IP belongs to one of the
  14788. local network devices. From Xiang Xiao.
  14789. - ARP: Make the function arp_find() thread-safe. It now returns a
  14790. copy of the MAC address from the ARP table entry, rather than a
  14791. potentially unstable reference to the ARP table entry. From
  14792. Gregory Nutt.
  14793. - TCP: Re-work of TCP receive window size algorithm. The new logic
  14794. is based only on the ability to buffer TCP read-ahead data. From
  14795. Gregory Nutt.
  14796. - UDP: Add support for the UDP_BINDTODEVICE protocol socket option
  14797. From Sebastien Lorquet.
  14798. - Slip: Uncomment the prompt of NET_SLIP_PKTSIZE in Kconfig file.
  14799. From Xiang Xiao.
  14800. - USRSOCK: Combine some the duplicated logic. From Xiang Xiao.
  14801. - USRSOCK: Optimize option dependence From Xiang Xiao.
  14802. - USRSOCK: Add the listen/accept/getpeername/ioctl support From
  14803. dongjianli.
  14804. * Other Common Device Drivers:
  14805. - Analog DAC: Add driver for digital to analog converter DAC7571.
  14806. Nucleo-L422KC: Add support for a connect DAC7571 converter. From
  14807. Daniel Pereira Carvalho.
  14808. - Audio Interface: Change member samp of apb to pointer so driver
  14809. can customize sample buffer allocation From ZhongAn.
  14810. - Audio Interface: Add ioctl cmd 'AUDIOIOC_SETBUFFERINFO' so user
  14811. space could config the buffer From ZhongAn.
  14812. - Audio Interface: Add hardware format support From anchao.
  14813. - I2S Interface: Add i2s_rxchannels and i2s_txchannels methods to
  14814. the I2S lower half interface. From ZhongAn.
  14815. - Audio: Move the I2S character driver to a dedicated folder. From
  14816. Xiang Xiao.
  14817. - Audio: Add audio_i2s device driver. From ZhongAn.
  14818. - Audio: Add the composite audio driver From Xiang Xiao.
  14819. - Crypto: Move dev_urandom.c into new crypto folder. From Xiang
  14820. Xiao.
  14821. - GPIO driver: Add gpio_pin_unregister function to GPIO driver
  14822. driver/ioexpander: Add pinset struct to GPIO driver for interrupt
  14823. pins larger than 64. Initialize pintype/inttype when registering
  14824. ioexpander device. Add SETPINTYPE ioctl command to the GPIO
  14825. driver. From zhuyanlin.
  14826. - I2C Interface: Add a definition to distinguish a new START of
  14827. messages from a repeated start. No lower-half I2C drivers actually
  14828. implement this new flag bit, however. In I2C write/read logic use
  14829. new repeated START definition where appropriate. Rename
  14830. I2C_M_NORESTART to I2C_M_NOSTART since it may be used in other
  14831. contexts than a repeated start. Add comments to clarify setup for
  14832. repeated start. From Gregory Nutt.
  14833. - I2C: Add the standard speed macros. From dongjiuzhu.
  14834. - Leds: Add support to MAX7219 to control 7-segment displays. From
  14835. Alan Carvalho de Assis.
  14836. - Power: PM: Add pm_stay and pm_relax function so special apps(e.g.
  14837. mediaplayer) could disable suspend during playback much like linux
  14838. kernel counterpart From Xiang Xiao.
  14839. - Power: PM: Add pm_querystate function From zhuguangqing.
  14840. - Power: PM: Don't update the power state in work thread: (1)
  14841. Simplify the code logic and remove the work queue dependence, (2)
  14842. Power calculation is too simple to delay into the work queue From
  14843. Xiang Xiao.
  14844. - Power: PM: Decrease the power state in the reverse order. Since
  14845. the child driver need power off before parent driver. From
  14846. zhuguangqing.
  14847. - Power: PM: Make power manager service available as soon as
  14848. possible: (1) Initialize g_pmglobals at the definition, (2) skip
  14849. hold the lock if OS isn't ready From Xiang Xiao.
  14850. - Power: PM: Add PM_RESTORE to notify driver that device exit WFI
  14851. so the driver could restore state. For example, WDT may stop
  14852. counting before enter low power state and restore the counting
  14853. again in PM_RESTORE notification From zhuguangqing.
  14854. - Power: PM: Add timer to decrease PM level automatically. From
  14855. ligd.
  14856. - PTYs: Add support so that a PTY can poll for both IN/OUT event
  14857. simultaneously. From ligd.
  14858. - PWM: Move pwm.c into pwm folder From Xiang Xiao.
  14859. - RTC Interface: Extend struct rtc_time by adding. From Xiang
  14860. Xiao. tm_nsec if RTC supports hiresolution time. From Xiang Xiao.
  14861. - Sensors: Add support for Telair T6713 carbon dioxide sensor. From
  14862. Juha Niskanen.
  14863. - Sensors: Add support for LSM303AGR and LSM6DSL sensors From
  14864. DisruptiveNL.
  14865. - Sensors: Add driver for DHTxx sensor. From Ouss4.
  14866. - syslog: Enable a partial, crippled version of syslog_flush();
  14867. Call syslog_flush() from assertion handling logic of all
  14868. architectures. From Gregory Nutt.
  14869. - syslog: Channel configuration. Decouple SYSLOG_SERIAL_CONSOLE and
  14870. ARCH_LOWPUTC. Since some hardware can output log to the special
  14871. debug channel not serial. From anchao.
  14872. - syslog: Support pre-pending a prefix string to log output if
  14873. enabled. This very useful to identify which CPU send out the log
  14874. in AMP SoC. From anchao.
  14875. - Serial: Add Ctrl-C/Ctrl-X support. From ligd.
  14876. - Serial: Support UART direct write for non console device From
  14877. xuanlin.
  14878. - Serial: It is no longer necessary to restrict Ctrl-C handling to
  14879. the FLAT build sched/signal: Add a new configuration option to
  14880. select signal default actions, separate handling of signal default
  14881. actions from both task startup logic and from the serial TTY
  14882. Ctrl-C logic. Add a signal set in the group structure to keep
  14883. track of what signals have been set to the default action. In
  14884. dispatching signals in PROTECTED or KERNEL mode, use this signal
  14885. set to determine if the default signal handler is attached and
  14886. dispatch the signal in kernel mode for the default actions. From
  14887. Gregory Nutt.
  14888. - Serial: Integrate new Ctrl-C logic with the ISIG flag in the
  14889. termios c_lflag. From Gregory Nutt.
  14890. - Serial: Use SIGINT instead of SIGKILL when control-C is pressed.
  14891. From Gregory Nutt.
  14892. - Serial: Add support for Ctrl-Z. This works just like the
  14893. recently added Ctrl-C support except that SIGSTP is sent when the
  14894. Ctrl-Z characters is encountered vs. SIGINT. From Gregory Nutt.
  14895. - 16550 UART: Add a configuration, analogous to the STM32
  14896. configuration option, to suppress the NuttX standard re-ordering
  14897. for /dev/ttySN for special case of the 16550 UART.
  14898. - 16550 UART: Add CONFIG_SERIAL_UART_ARCH_MMIO option so the a
  14899. memory mapped device doesn't need to provide uart_getreg() and
  14900. uart_putreg() implementations.
  14901. - 16550 UART: Add stub implementations of DMA-related methods in the
  14902. 16550 UART v-table. From ligd.
  14903. - 16550 UART: Add serial termios handling From anchao.
  14904. - 16550 UART: Support 16550 auto hardware flow control
  14905. drivers/serial/uart_16550.c: Add configuration option
  14906. CONFIG_16550_SUPRESS_INITIAL_CONFIG. This is identical to the
  14907. standard configuration in arch/Kconfig
  14908. CONFIG_SUPPRESS_UART_CONFIG, but with scope of only the 16550
  14909. driver. From Xiang Xiao.
  14910. - syslog: Make timestamp output same as linux kernel. It's very
  14911. useful if NuttX syslog retarget to Linux syslog. From Xiang Xiao.
  14912. - Timers: Add maxtimeout method to the struct timer_ops_s interface
  14913. From Xiang Xiao.
  14914. - Timers: Add a new method to the struct oneshot_operations_s
  14915. interface to get the current time from a oneshot timer driver (if
  14916. it is available from the lower half) From Xiang Xiao.
  14917. - Timers: Implement timer arch API on top of timer driver. From
  14918. Xiang Xiao.
  14919. - Timers: Implement alarm arch API on top of oneshot driver
  14920. interface. From Xiang Xiao.
  14921. - Timers: Implement RTC arch API on top of RTC driver interface.
  14922. From Xiang Xiao.
  14923. - CDC/ECM: Adds USB device support for CDC/ECM From Michael Jung.
  14924. - USB Host: Add support for the Maxim M3421E USB host driver. Not
  14925. yet fully tested. From Gregory Nutt.
  14926. * General Architecture-Specific:
  14927. - All architectures: Make sure the up_irq_enable() is available on
  14928. all architectures. From Gregory Nutt.
  14929. * Simulation
  14930. - Simulator Configurations: Add dsptest configuration. From Mateusz
  14931. Szafoni.
  14932. - Simulator: In network driver (1) Remove up_comparemac() check for
  14933. matching MAC address. Let's trust that the tap device just return
  14934. the packet which belong to us like other real network device
  14935. hardware. (2) Add network device statistics support. From Xiang Xiao.
  14936. * ARM:
  14937. - ARM (all): Add CONFIG_DEBUG_MEMFAULT to Kconfig. From Masayuki
  14938. Ishikawa.
  14939. - ARM: (1) Add semihost support for syslog, (2) Add semihost support
  14940. for HostFS From Gregory Nutt.
  14941. * ARMv6-M:
  14942. - ARMv6-M: Introduce CONFIG_DEBUG_HARDFAULT_INFO to up_hardfault.c
  14943. From Masayuki Ishikawa.
  14944. * ARMv7-M:
  14945. - ARMv7-M: Removes support for the dedicated vector handling from the
  14946. many older architectures. Only common vectors are now supported.
  14947. From Gregory Nutt.
  14948. - ARMv7-M: Introduce CONFIG_DEBUG_HARDFAULT_INFO to up_hardfault.c
  14949. From Masayuki Ishikawa.
  14950. - ARMv7-M: Implement SYSTICK timer driver From Xiang Xiao.
  14951. - Simulator: Add loadable demo for arch sim. From anchao.
  14952. - ARMv7-M: Add logic to trigger ARMv7-M interrupts and exceptions.
  14953. From Gregory Nutt (from sample logic by Xiang Xiao).
  14954. - ARMv7-M: Add NVIC definitions needed by up_trigger_irq(). From
  14955. Gregory Nutt.
  14956. * ARMv7-R:
  14957. - ARMv7-R: Add general interrupt controller. This is based on
  14958. ARMv7-A gic controller code. From EunBong Song.
  14959. - ARMv7-R: Add invalidate dcache in arm_head.S. From EunBong Song.
  14960. * Infineon XMC4xxx Drivers:
  14961. - XMC4 GPIO: Add a specific bit encoding to GPIO driver for
  14962. opendrain GPIO pin. From Alan Carvalho de Assis.
  14963. * Infineon XMC4xxx Boards:
  14964. - XMC4500-Relax: Add support to MAX6675 on XMC4500-Relax board.
  14965. From Alan Carvalho de Assis.
  14966. * Microchip PIC32MX Boards;
  14967. - PIC32MX: Update some PIC32MX configurations so that either the
  14968. MPLAB or Penguino toolchains may be used. From Gregory Nutt.
  14969. * Microchip/Atmel SAMD2x/L2x:
  14970. - SAMD2x/L2x: Rename all usage of samdl/SAMDL to samd2l2/SAMD2L2 to
  14971. make room in the name space for samd5e5/SAMD5E5 From Gregory Nutt.
  14972. * Microchip/Atmel SAMD5x/E5x:
  14973. - SAMD5x/E5: Add a port to the SAMD5x/E5x MCU family. From Gregory
  14974. Nutt.
  14975. * Microchip/Atmel SAMD5x/E5x Drivers:
  14976. - SAMD5x/E5x SPI/I2C: Bring in untested SPI and I2C drivers from
  14977. SAMD2L2. From Gregory Nutt.
  14978. - SAMD5x/E5x DMA: Leverage the SAMD2L2 DMA controller. From Gregory
  14979. Nutt.
  14980. - SAMD5x/E5x USB: Bring the SAMDL2 USB driver into the SAMD5E5
  14981. port. From Gregory Nutt.
  14982. * Microchip/Atmel SAMD5x/E5x Boards:
  14983. - Metro M4: Add support for the Adafruit Metro M4 board. From
  14984. Gregory Nutt.
  14985. - Metro M4: Add an option to build the Metro M4 image to run out of
  14986. SRAM. This ought to be a safer and quicker way to do the initial
  14987. bring-up (having bricked the first Metro M4 due to a bad FLASH
  14988. image). From Gregory Nutt.
  14989. - Metro M4: Add a configuration option to use OSCULP32K instead of
  14990. XOSC32K. From Gregory Nutt.
  14991. - Metro M4: After some final fixes related to the SERCOM console,
  14992. the basic NSH configuration appears fully functional. From
  14993. Gregory Nutt.
  14994. - Metro M4: Verify the CMCC and enable it by default in the NSH
  14995. configuration. From Gregory Nutt.
  14996. * Microchip/Atmel SAMv7 Drivers:
  14997. - SAMv7 CAN: Add ability for CAN BUS_OFF autorecovery according
  14998. ISO11898-1:2015. With this change we added an ioctl for triggering
  14999. the autorecovery sequence for BUS_OFF to the CAN-driver and the
  15000. SAMV7 low-level driver. According the datasheet: If the device
  15001. goes Bus_Off, it will set MCAN_CCCR.INIT of its own accord,
  15002. stopping all bus activities. Once MCAN_CCCR.INIT has been cleared
  15003. by the processor (application), the device will then wait for 129
  15004. occurrences of Bus Idle (129 * 11 consecutive recessive bits)
  15005. before resuming normal operation. At the end of the Bus_Off
  15006. recovery sequence, the Error Management Counters will be reset.
  15007. During the waiting time after the resetting of MCAN_CCCR.INIT, each
  15008. time a sequence of 11 recessive bits has been monitored, a Bit0
  15009. Error code is written to MCAN_PSR.LEC, enabling the processor to
  15010. readily check up whether the CAN bus is stuck at dominant or
  15011. continuously disturbed and to monitor the Bus_Off recovery
  15012. sequence. MCAN_ECR.REC is used to count these sequences. From
  15013. Frank Benkert.
  15014. * NXP Freescale i.MX RT Drivers:
  15015. - i.MXRT RTC: Add support for the i.MXRT RTC. This is code complete
  15016. (with limited features and options) but untested. The HPRTC is
  15017. functional. However, if the LPSRTC is enabled, then there is a
  15018. hang during LPSRTC initialization. It appears that there is some
  15019. problem in providing clocking and initializing the LPSRTC domain.
  15020. From Gregory Nutt.
  15021. - i.MXRT SNVS: Add trivial SNVS from Rev 1. of the Reference Manual.
  15022. From Gregory Nutt.
  15023. - i.MXRT LSPI: IMXRT1050 LPSPI register and bit definitions added.
  15024. From Ivan Ucherdzhiev.
  15025. - i.MXRT Serial: IMXRT1050 LPUART TERMIOS support added. From Ivan
  15026. Ucherdzhiev.
  15027. * NXP Freescale i.MX RT Boards:
  15028. - IMXRT1050-EVK: Add knsh configuration. PROTECTED mode NSH build.
  15029. From Gregory Nutt.
  15030. * NXP Freescale Kinetis:
  15031. - Kinetis: Add DMA support. From David Sidrane.
  15032. * NXP Freescale Kinetis Drivers:
  15033. - Kinetis: Use circular DMA as an option to augment the RX FIFOs in
  15034. the Serial driver. From David Sidrane.
  15035. * NXP LPC54xx:
  15036. - LPC54xx: The LPC54608 can only run at a maximum frequency of
  15037. 180Mhz. This configuration requires uses the clk_in, external
  15038. crystal clock, to drive the PLL. When that input was selected, the
  15039. board bootup failed waiting for the PLL to lock. After referring
  15040. the driver from NXP, we should turn on power sources for the ext
  15041. clock if system pll input select clk_in. NOTE that the LPC54628
  15042. did not require this step... perhaps because the system oscillator
  15043. power was already enabled. From kxjiang.
  15044. - LC823450: Add support for mpu and userspace LC823450-XGEVK: Add
  15045. kostest PROTECTED build LC823450-XGEVK: Add knsh PROTECTED build
  15046. From Masayuki Ishikawa.
  15047. * NXP LPC54xx Boards:
  15048. - Lpcxpresso-LPC54628: Update lvgl board config to use the new
  15049. version From Alan Carvalho de Assis.
  15050. * On Semi LPC23450 Drivers:
  15051. - LC823450 Bluetooth: Add lc823450 Bluetooth support. From Masayuki
  15052. Ishikawa.
  15053. - LC823450 I2S: Add tx start threshold to lc823450_i2s.c In
  15054. addition, lc823450_i2s_send() now accepts byte-aligned stream.
  15055. From Masayuki Ishikawa.
  15056. - LC823450 SPI: Add SPI flash driver for lc823450. NOTE: Only bus
  15057. accelerator mode is supported. From Masayuki Ishikawa.
  15058. - LC823450: Change C-Buffer under-level control. The under-level
  15059. setting was changed from 1KB to 55KB. In previous implementation,
  15060. the setting can be changed by the tx threshold but it is fixed at
  15061. startup. Also, check write size and adjust alignment if needed.
  15062. From Masayuki Ishikawa.
  15063. * On Semi LPC23450 Boards:
  15064. - LC823450-XGEVK: Add loopback test for digital MIC on lc823450 via
  15065. i2schar driver. From Masayuki Ishikawa.
  15066. - LC823450-XGEVK: Add lc832450 elf test. From Masayuki Ishikawa.
  15067. - LC823450-XGEVK: Add posix_spawn configuration From Masayuki
  15068. Ishikawa.
  15069. * STMicro STM32:
  15070. - STM32 L4: Add initial support to STM32L4+ chips From Juha Niskanen.
  15071. - STM32 H7: A partial port to the STMicro STM32H7 by Simon Laube was
  15072. brought in from the PX4 repositories. Numerous changes were
  15073. make(by Mateusz Szafone). The basic STM32 H7 NSH configuration is
  15074. now functional, thanks to Mateusz Szafoni.
  15075. * STMicro STM32 Drivers:
  15076. - STM32 F0, F1-F4, F7, L4, H7: Added Single Wire Kconfig variable.
  15077. From David Sidrane.
  15078. - STM32 DAC: Set OUTEN bit for DAC1CH2 and DAC2CH1 power/motor.
  15079. Direction parameter is now int8 + add overload fault. From Mateusz
  15080. Szafoni.
  15081. - STM32 F1-F4 ADC: Allow multiple channels without DMA on
  15082. STM32L15XX. From Juha Niskanen.
  15083. - STM32 F1: Add FLASH register definitions for F1 parts that have
  15084. dual banked FLASH. From Dmitriy Linikov.
  15085. - STM32 F2: Added progmem interface support for STM32 F2 From
  15086. Dmitriy Linikov.
  15087. - STM32 F4: Ports STM32 LTDC and STM32 DMA2D to use the
  15088. framebuffer interface From Marco Krahl.
  15089. - STM32 F7: This change ports Marco Krahl's STM32F4 framebuffer
  15090. overlays for the LTDC and DMA2D into the STM32F7. That driver was
  15091. same as the STM32 F4 driver. From Gregory Nutt.
  15092. - STM32 F7: Port input capture from stm32. From Juha Niskanen.
  15093. - STM32 F7 FLASH: Ported the STM32 F2/F4 driver to the STM32 F7
  15094. platform. From Evgeniy Bobkov.
  15095. - STM32 F7 SDMMC: Add SDIO card support to SDMMC driver. From
  15096. Ramtin Amin.
  15097. - STM32 F7 Serial: Previous logic would invalidate the data cache as
  15098. each byte was read from the DMA buffer. This change adds logic to
  15099. invalidate the data cache less frequently by monitoring the state
  15100. of the Rx DMA buffer cache coherency and invalidating only regions
  15101. as necessary. From Evgeniy Bobkov.
  15102. - STM32 F7: Add up_stackcheck.c From Daniel Agar.
  15103. - STM32 F7: Port the low-level PM functions to STM32 F7. From Juha
  15104. Niskanen.
  15105. - STM32 L4: STM32L4 has fetchadd and testset From Juha Niskanen.
  15106. - STM32 L4: Added custom pin mapping for STM32L4X2XX processors.
  15107. From Daniel P. Carvalho.
  15108. - STM32 L4 FLASH: stm32l4xrxx: allow board to override flash wait
  15109. states From Juha Niskanen.
  15110. - STM32 L4: Some updates to analog peripherals ADC, COMP and DFSDM
  15111. for STM32L4XR From Juha Niskanen.
  15112. - STM32 L4: Add getstatus and getperiod() method to the timer
  15113. driver (includes coding standard changes made prior to commit)
  15114. From Goden Freemans.
  15115. - STM32 H7: Remove old references to RXDMA. Add configuration
  15116. - STM32 H7: Remove old references to RXDMA. Add configuration
  15117. option to select the Rx FIFO threshold level. From Gregory Nutt.
  15118. * STMicro STM32 Boards:
  15119. - STM32F103 Minimum: Add blackpill LED support From Russ Webber.
  15120. - Viewtool-STM32F107: Add a TCP performance test using
  15121. apps/examples/tcpblaster. From Gregory Nutt.
  15122. - Viewtool-STM32F107: Add support for the MAX3421E to the
  15123. Viewtool-STM32F107 board support From Gregory Nutt.
  15124. - STM32F334-DISCO: Use a PID controller from libdsp in the BuckBoost
  15125. driver. From Mateusz Szafoni.
  15126. - STM32F4-Discovery: Remove STM32F4BB dependence from RNDIS; add
  15127. RAMDISK support. From Alan Carvalho de Assis.
  15128. - STM32F4-Discovery Add board support for MAX7219 as numeric display
  15129. controller. From Alan Carvalho de Assis.
  15130. - Olimex-STM32-P407: Add kernel ELF (kelf) configuration. From
  15131. Gregory Nutt.
  15132. - Olimex-STM32-P407: Add a kmodule configuration that can be used
  15133. for testing installation of kernel modules in the protected build.
  15134. From Gregory Nutt.
  15135. - Olimex-STM32-P407: Add logic to support initialization of the
  15136. kernel module symbol table installed in the pass1/ directory during
  15137. the application phase of the build. The kmodule configuration
  15138. appears to be fully functional. From Gregory Nutt.
  15139. - Olimex-STM32-P407: Add board support for the DHTxx sensor. From
  15140. Ouss4.
  15141. - STM32F476G-DISCO: Add support for STM32F746G-disco board LCD.
  15142. From Marcin Wyrwas.
  15143. - STM32F476G-DISCO: Add a configuration to build working nxdemo
  15144. application From Fanda.
  15145. - STM32F476G-DISCO: Add support for STM32F746G-disco board SDRAM
  15146. Changed fb config to use SDRAM. From Marcin Wyrwas.
  15147. - STM32F476G-DISCO: Add touchscreen support and a LittlevGL demo for
  15148. STM32F746G-DISCO From Marcin Wyrwas.
  15149. - Nucleo-L476RG: Add support for an external SPI-driven SD card on
  15150. the Nucleo-L476RG. From Gregory Nutt.
  15151. - Nucleo-L476RG: Add support for LSM303AGR and LSM6DSL sensors From
  15152. DisruptiveNL.
  15153. - Nucleo-H743ZI: Use Nucleo Virtual console as default console in
  15154. the NSH configuration From Mateusz Szafoni.
  15155. - STM32L4R9-DISCO: Add stm32l4r9ai-disco support. From Juha Niskanen.
  15156. - B-L475E-IOT01A: Add timer driver support. From Goden Freemans.
  15157. * Libraries/Header Files:
  15158. - libc endian: Add support for endian.h. From Gregory Nutt.
  15159. - libc net: Add inet_aton() From Juha Niskanen.
  15160. - libc netdb: Add getaddrinfo() and friends. From Juha Niskanen.
  15161. - libc termios: Add lib_cfmakeraw.c From Masayuki Ishikawa.
  15162. - libc stdlib: Add implementation of random() and srandom(). From
  15163. Gregory Nutt.
  15164. - libc unistd: Add a crippled version of daemon(). From Gregory Nutt.
  15165. - libdsp: All floats with f-sufix libdsp: (1) add precision option
  15166. for library, (2) add debug option for library and assertions in
  15167. functions, (3) add current samples correction for SVM3, (4) add
  15168. some motor control specific functions, (5) add basic speed
  15169. observer, (6) fix phase shift in SMO observe, (7) add more logic to
  15170. FOC. From Mateusz Szafoni.
  15171. - include/nuttx/compiler.h, include/poll.h: Add logic to determine
  15172. if the compiler supports anonymous structures and unions. From
  15173. Gregory Nutt.
  15174. - include/nuttx/mutex.h: Add inline wrapper functions to more
  15175. clearly support semaphores when used as mutexs. From QianWenfa.
  15176. - include/nuttx/nuttx.h: Added nuttx.h header file which is
  15177. analogous to the linux.h header file. Currently, it contains on
  15178. the definition of the container_of() macro. From zhuyanlin.
  15179. - include/queue.h: Add dq_tail marco From zhuguangqing.
  15180. - include/stdio.h: Add prototypes for popen() and pclose(). Actual
  15181. implementation is in apps/system/popen() From Gregory Nutt.
  15182. - include/sys/param.h: Add a dummy sys/param.h header file. This is
  15183. not a standard file but is used by other systems and having the
  15184. dummy file may minimize some porting efforts. From Gregory Nutt.
  15185. * Tools:
  15186. - nuttx/tools/kconfig2html.c: Due to new usage, tool needs to be
  15187. able to handle configuration files with names other than Kconfig.
  15188. From Gregory Nutt.
  15189. - nuttx/tools/kconfig2html.c: Update tool to handle tristate types.
  15190. From Gregory Nutt.
  15191. - nuttx/tools/Config.mk: Add function CATFILE definition. Currently
  15192. only used in apps/builtin/Makefile. From Gregory Nutt.
  15193. - nuttx/tools/Config.mk: Add the recursive wildcard function,
  15194. RWILDCARD, to Config.mk. From Gregory Nutt.
  15195. - nuttx/tools/testbuild.sh: Add an option to specify the location of
  15196. nuttx directory. From Gregory Nutt.
  15197. - nuttx/tools/refresh.sh: Add a --prompt option that will let you
  15198. use --silent but will prompt before overwriting the original
  15199. defconfig. From Gregory Nutt.
  15200. - nuttx/tools/link.sh. Update link.sh per suggestions by Mark so
  15201. that it can be used with MSYS vs copydir.sh. From Gregory Nutt.
  15202. - nuttx/tools/mkexport.sh: Save the System.map file and User.map
  15203. file (if it exists) in the export package so that it can be used to
  15204. extract addresses. From Gregory Nutt.
  15205. - nuttx/tools/mkexport.sh: Save the name of the STRIP tool too. From
  15206. Gregory Nutt.
  15207. - nuttx/tools/nxstyle.c: Add capability to detect multiple blank
  15208. lines. Single spacing required by the coding standard. Also coding
  15209. standard fixes to server .c files for problems found during testing
  15210. nxstyle. From Gregory Nutt.
  15211. - apps/tools: Add +x to mksymtab.sh. From Masayuki Ishikawa.
  15212. - apps/tools/define.sh and define.bat: Move a copy of define.bat
  15213. and sh from nuttx/tools to apps/tools so that they will be
  15214. available for the import build. From Gregory Nutt.
  15215. * Build System:
  15216. - Apps/ Build System. The apps/ build system has undergone a major
  15217. renovation to better support building applications as ELF modules.
  15218. Module selections have changed from 'bool' to 'tristate' types.
  15219. This means that building an ELF now is as simple setting the value
  15220. to 'm'. This effort required many changes, too many to summarize
  15221. here. The solution was contributed by Masayuki Ishikawa, Anchao
  15222. An, and Xiang Xiao (and myself to a lesser extent).
  15223. - NuttX/ Build System: This change extends support for the two-pass
  15224. build. Its primary purpose is to incorporate source logic
  15225. generated by applications into the kernel phase of the build.
  15226. In the two pass build, the application logic is built during the
  15227. first phase, pass 1. In that phase, the application may generate
  15228. and install source files in the pass1/directory. The operating
  15229. system is built during phase 2 of the build. At that time, those
  15230. source files in the pass1/ directory will be built and incorporated
  15231. into the kernel address space.
  15232. The primary purpose of the pass1/ directory is to such
  15233. application-generated kernel symbol tables. For an example of the
  15234. use of this feature, look at
  15235. apps/examples/module/drivers/Makefile. Kernel symbol tables are
  15236. needed to support kernel modules. Of course, addition
  15237. board-specific logic in, say, configs/<board>/src would have to be
  15238. included to make use of the application-installed symbol tables.
  15239. From Gregory Nutt.
  15240. - Remove CONFIG_ARCH_CALIBRATION. It is awkward to use and no longer
  15241. necessary now that we have apps/examples/calib_udelay. From
  15242. Gregory Nutt.
  15243. - Build System: With recent changes to apps/ all configurations that
  15244. build applications as modules must now also select
  15245. CONFIG_APPS_LOADABLE. From anchao.
  15246. - Build System: Add dynamic application loadable support. From
  15247. anchao.
  15248. - Build System: Add configuration CONFIG_ARCH_GNU_NO_WEAKFUNCTIONS
  15249. to suppress use of weak functions. Some gnu derived toolchains do
  15250. not support weak symbols. From Xiang Xiao.
  15251. - Kconfig: Move 'option modules' from NSH_FILE_APPS to
  15252. BUILD_LOADABLE From anchao.
  15253. - apps/ Build System: Introduce a build system for loadable apps
  15254. for nsh. Add 'option modules' to NSH_FILE_APPS so that a user can
  15255. change an application configuration to tristate (y/n/m)
  15256. - apps/import: Add Makefile.symtab which can be used to compile the
  15257. dynamically created symbol table C file. Also adds
  15258. tools/mksymtab.sh. From Gregory Nutt.
  15259. * NSH: apps/nshlib:
  15260. - apps/nshlib: Add parsing support for back-slash quoted
  15261. characters. Currently only implemented properly if
  15262. CONFIG_NSH_ARGCAT is also selected. This commit is in response to
  15263. Bitbucket Issue 11 opened by Maciej Wójcik From Gregory Nutt.
  15264. - apps/nshlib: Add inverted logic support in the form of 'if !
  15265. <cmd>' From Beat Küng.
  15266. - apps/nshlib: Expand reboot and poweroff commands to include a
  15267. second, optional mode argument From ligd.
  15268. - apps/nshlib: Add a force flag (-f) to mksmartfs command. SmartFS
  15269. will be formatted only if (1) the FLASH does not already hold a
  15270. SmartFS, or (2) the force flag is set. From Xiang Xiao.
  15271. - apps/nshlib: NSH prompt string is now configurable. nsh> is
  15272. still the default. From Xiang Xiao.
  15273. - apps/nshlib: Add control-C support for terminating built-in and
  15274. exec'ed file tasks. From ligd.
  15275. - apps/nshlib: Call BOARDIOC_FINALINIT after start-up script (or
  15276. immediately after BOARIOC_INIT is there is no start-up script).
  15277. From ligd.
  15278. - apps/nshlib: When using waitpid() to wait for a built-in
  15279. application or a file application to exit. Add the WUNTRACED
  15280. options to so the the waitpid() call will also be awakened if the
  15281. waited-for task is stopped as well. From Gregory Nutt.
  15282. * NSH Builtins: apps/builtin:
  15283. - apps/builtin/Makefile. This commit changes apps/builtin to search
  15284. the registry recursively. By supporting directories, external
  15285. projects can install the hooks into the registry and easily clean
  15286. them up and reinstall if something needs to be updated. Based on
  15287. an idea from Anthony Merlino. From Gregory Nutt.
  15288. * Examples/Tests: apps/examples:
  15289. - apps/examples/calib_udelay: Add tool for calibrating
  15290. CONFIG_BOARD_LOOPSPERMSEC From Juha Niskanen.
  15291. - apps/examples/dhtxx: Example for the DHTxx sensor. From Ouss4.
  15292. - apps/examples/dsptest: Add unit test for NuttX DSP library From
  15293. Mateusz Szafoni.
  15294. - apps/examples/elf: CROMFS and ROMFS configuration currently only
  15295. usable in FLAT build. Add configuration to use ELF objects on
  15296. external media like SD card or USB drive instead. From Gregory
  15297. Nutt.
  15298. - apps/examples/elf: If the test ELF files are on media in
  15299. removable media such as SD or USB FLASH, the wait until the media
  15300. has been installed and initialized before starting the test. From
  15301. Gregory Nutt.
  15302. - apps/examples/fb: Adds example to test framebuffer overlay From
  15303. Marco Krahl.
  15304. - apps/examples/gps: Add GPS example using MINMEA lib From Alan
  15305. Carvalho de Assis.
  15306. - apps/examples/i2sloop: Add i2sloop application. This application
  15307. can be used to test I2S loopback like: ' nsh> i2sloop &'. From
  15308. Masayuki Ishikawa.
  15309. - apps/examples/lvgldemo: Update LVGL to version 5.1.1 From Alan
  15310. Carvalho de Assis.
  15311. - apps/examples/module: Add support for CROMFS and for stripping
  15312. symbols from ELF module binaries. From Gregory Nutt.
  15313. - apps/examples/module: Add support for automounting removable media.
  15314. This involves a wait for the block driver to become available
  15315. before performing the mount. From Gregory Nutt.
  15316. - apps/examples/module: When built in the PROTECTED or KERNEL
  15317. modes, the symbol table is not built by the application. That is
  15318. because the build will fail since the kernel module depends on
  15319. internal OS symbols thar are not available to the application
  15320. build. With this change the examples does not attempt to build
  15321. the kernel symbol table in these modes. Instead it just copies
  15322. the kernel module symbol table into the nuttx/pass1 directory
  15323. where it can be build directly into the OS during pass2 of the
  15324. build. From Gregory Nutt.
  15325. - apps/examples/ostest: Add a small test for SIGSTOP, SIGCONT, and
  15326. SIGKILL actions. From Gregory Nutt.
  15327. - apps/examples/popen: Add a test of popen/pclose. From Gregory
  15328. Nutt.
  15329. - apps/examples/powerled: Add arch initialization. From Mateusz
  15330. Szafoni.
  15331. - apps/examples/tcpblaster: Add TCP performance measurement test.
  15332. From Gregory Nutt.
  15333. * System Utilities: apps/system
  15334. - apps/system/cle: Usage improvements including command line
  15335. history (taken from readline) and support for addition control
  15336. characters. From mst.
  15337. - apps/system/i2c: Adapt to rename I2C_M_RESTART->i2C_M_START.
  15338. I2C_M_NOSTOP should be in flags of first message in every
  15339. write-read and write-write message sequence. From Gregory Nutt.
  15340. - apps/system/i2c: Allow registers besides 0x00 in the dev command.
  15341. From Jakob Haufe.
  15342. - apps/system/nsh: Add logic to automatically register an
  15343. application symbol table as part of NSH initialization. From
  15344. Masayuki Ishikawa.
  15345. - apps/system/nsh: The symbol table name and size variable names
  15346. can now be configured. From Gregory Nutt.
  15347. - apps/system/nsh: Move apps/examples/nsh to apps/system/nsh. It
  15348. has become so entrenched that it is hardly an example these days.
  15349. May as well formalized it as a system task. From Gregory Nutt.
  15350. - apps/system/nxplayer: Refactor nxplayer.c. Apply
  15351. netlib_parsehttpurl() and
  15352. remove unnecessary usleep(). From Masayuki Ishikawa.
  15353. - apps/system/nxplayer: Release buffer before session and release
  15354. semaphore in nxplayer_setvolume system/nxplayer/nxplayer.c:
  15355. Remove & for apb->samp reference. It is already a pointer. From Xiang Xiao.
  15356. - system/nxplayer/nxplayer.c: Add playraw command From ZhongAn.
  15357. - apps/system/nxrecorder: Add nxrecorder application From ZhongAn.
  15358. - apps/system/popen: Add an implementation of the standard popen()
  15359. and pclose() OS interfaces. These are implemented as applications
  15360. vs. part of the OS because they depend on NSH. Untested on
  15361. initial commit. From Gregory Nutt.
  15362. - apps/system/system and popen: Adapt so that these can be used in
  15363. the KERNEL build mode. In this case, simply replace task_spawn()
  15364. with posix_spawn(). This depends on the existence of some
  15365. environment where /bin/sh exists and can be used to execute one
  15366. NSH command. For the case of system(), this change was more
  15367. complete because it previously used task_create(). Now it uses
  15368. either task_spawn() or posix_spawn(), depending upon the
  15369. configuration. From Gregory Nutt.
  15370. - apps/system/taskset: Add taskset command for SMP systems. This
  15371. command can be used to retrieve or set a process's CPU affinity.
  15372. For example,
  15373. nsh> taskset -p 4
  15374. pid 4's current affinity mask: 2
  15375. nsh> taskset -p 3 4
  15376. pid 4's current affinity mask: 3
  15377. nsh> taskset -p 1 busyloop &
  15378. From Masayuki Ishikawa.
  15379. - apps/system/zmodem: Support -p <path> for rz to change the folder
  15380. for the received file. Switch debug output from printf to
  15381. syslog. Send the next packet for ZME_ACK in ZMS_SENDING to avoid
  15382. rz on the host side stuck make send work reliable even without
  15383. hardware flow control. From Xiang Xiao.
  15384. * Network Utilities: apps/netutils:
  15385. - apps/netutils/dhcpc: Activates BINDTODEVICE if available. From
  15386. Sebastien Lorquet.
  15387. * Wireless Utilities: apps/wireless:
  15388. - apps/wireless/i8sak: i8sak daemon now gets shutdown if not in use.
  15389. Previously, once the i8sak daemon was started, by running any
  15390. command, it would stay running. This means that if you want to use
  15391. i8sak to setup your network, but then want exclusive access to the
  15392. char device, or network device, you have to manually shutdown the
  15393. i8sak daemon. Now the daemon stays active as long as required to
  15394. finish any commands, or stays open if a new command keeps it on,
  15395. but when all work is finished, it shuts down. From Anthony Merlino.
  15396. * Filesystem Utilities: apps/fsutils:
  15397. - mkfatfs: Clean up some name BS_ and MBR_ refer to the same record
  15398. and should use the same naming (MBR_). From Gregory Nutt.
  15399. - mkfatfs: Add definitions for the FAT boot record (FBR). From
  15400. Gregory Nutt.
  15401. - mksmartfs: Add a check to see if the SmartFS is already
  15402. formatted. From Xiang Xiao.
  15403. * Graphic Utilities: apps/graphics:
  15404. - graphics/littlevg/: Update LVGL to version 5.1.1 From Alan
  15405. Carvalho de Assis.
  15406. * Test Utilities: apps/testing:
  15407. - testing/unity: Add Unity - unit testing library from
  15408. ThrowTheSwitch.org. From Mateusz Szafoni.
  15409. Bugfixes. Only the most critical bugfixes are listed here (see the
  15410. ChangeLog for the complete list of bugfixes and for additional, more
  15411. detailed bugfix information):
  15412. * Core OS:
  15413. - Signals: Signal handlers maybe run with interrupts enabled or
  15414. disabled, depending on how the task the received the signal was
  15415. blocked. (i.e.: If sem_wait() is called, then we disable
  15416. interrupts, then block the currently running task). This could be
  15417. dangerous, because user code would be running with interrupts
  15418. disabled.
  15419. This change forces interrupts to be enabled in up_sigdeliver()
  15420. before executing the signal handler calling up_irq_enable()
  15421. explicitly. This is safe because, when we return to normal
  15422. execution, interrupts will be restored to their previous state when
  15423. the signal handler returns. From Gregory Nutt (Based on a
  15424. recommendation by Mark Shulte).
  15425. - Signals: Lock the scheduler while while killing the children so
  15426. that we do not lose priority and let the task group continue to
  15427. run in an indeterminate state. From Gregory Nutt.
  15428. - Groups: Fix a deadlock when loading an ELF From Masayuki Ishikawa.
  15429. - Groups: In some circumstances, group_killchildren() could have
  15430. called pthread_cancel() to kill a task. Also, the behavior would
  15431. not be as expected if a pthread had cancellation disabled. From Gregory Nutt.
  15432. - Posix Message Queues: mq_notify() fix - only part of struct copied
  15433. to internal structure. As source address the address of the struct
  15434. member sigev_value was used, and it is not located the start of the
  15435. struct. This leads to invalid data being copied to internal
  15436. structure. Both source and destination should be of type struct
  15437. sigevent* . From Simon Liedl.
  15438. - vfork(): vfork operation needs to allocate and copy the task
  15439. argument too. Also correction of the address correction cannot
  15440. depend on the stack pointer since it is not available in all
  15441. architectures. Rather calculate the offset from the stack
  15442. allocation pointer From Xiang Xiao.
  15443. - IRQ Dispatch: Ensure vector never points to NULL since interrupt
  15444. may happen before irq_initialize() From Xiang Xiao.
  15445. - Work Queue: workqueues don't need set global data to zero since
  15446. .bss is cleared automatically. Removing this unnecessary
  15447. initialization also avoids the loss the work items queued before
  15448. initialization. From ligd.
  15449. - Work Queue: Remove work queue polling delay to simplify the code
  15450. logic and save the power. From xuanlin.
  15451. - syslog: Fix syslog crash on 64bit simulation. From anchao.
  15452. - Pipes: Write to a pipe when there are no readers from the pipe
  15453. should return -EPIPE. From ligd.
  15454. - System Calls: Fix 6th parameter type of posix_spawnp in
  15455. syscall.csv From Masayuki Ishikawa.
  15456. - System Calls: Remove unused SYS_nnetsocket from syscall.h. Because
  15457. SYS_nnetsocket is not implemented so far, it should be removed so
  15458. that SYS_prctl can work correctly. From Masayuki Ishikawa.
  15459. - Binary Loader: Refactor binfmt_exec.c. This change also fixes an
  15460. argv issue for CONFIG_SCHED_ONEXIT=n or CONFIG_SCHED_HAVE_PARENT=n
  15461. From Masayuki Ishikawa.
  15462. - Binary Loader: Re-architect the way that loadable ELF or NXFLAT
  15463. modules are unloaded. Memory resources must be recovered when the
  15464. task loaded into memory exits. The original implementation used
  15465. the death-of-child SIGCHLD signal to perform the unload. There are
  15466. several problems with this: It is overly complex, it requires that
  15467. the parent task stay resident while the loaded task runs, and it
  15468. has fatal logic flaws in the protected and kernel model builds
  15469. because the user signal handler attempts to run in the kernel
  15470. address space. This corrects the issue using a mindlessly simply
  15471. BINFMT callback when the task exits. From Gregory Nutt.
  15472. - ELF Binary Loader: Set priority level to default if parent has no
  15473. priority. From anchao.
  15474. * File System/Block and MTD Drivers:
  15475. - Auto-mounter: Ignore return values from work_cancel(). From
  15476. Gregory Nutt.
  15477. - SmartFS: Fixed filesystem corruption when writing to small file
  15478. after open(... O_APPEND). From Dmitriy Linikov.
  15479. - SmartFS stat(): A previous change added support for checking if a
  15480. descriptor is a socket in fstat().' but it changed sys/stat.h in
  15481. way that breaks smartfs file-type stat flags. CROMFS is similarly
  15482. broken, as tools/gencromfs.c was not updated to match the
  15483. sys/stat.h changes. This commit fixes both issues. It probably is
  15484. not a good idea to use NuttX sys/stat.h bit-field values directly
  15485. in stored structure of filesystem. From Jussi Kivilinna.
  15486. - HostFS: Update duplicated definitions in HOSTFS that must match
  15487. NuttX values. From ligd.
  15488. - HostFS: Ensure f_type is equal to HOSTFS_MAGIC. From Xiang Xiao.
  15489. - ROMFS: Make romfs_devread32 more portable From anchao.
  15490. - TmpFS: Correct logic in tmpfs_ioctl() that extracts the priv state
  15491. structure from the file system structures. It was not getting the
  15492. right value and causing mmap() to fail. Noted by Jesse. From
  15493. Gregory Nutt.
  15494. - ProcFS network statistics: Was not handling the output correct for
  15495. the case of an IEEE 802.11 device. From Gregory Nutt.
  15496. - ProcFS IRQs: Fix occasional computation error when fracpart >=
  15497. 1000 From Xiang Xiao.
  15498. * Networking/Network Drivers:
  15499. - TAP/TUN: Fixed custom tun devname formatting. From Dmitriy Linikov.
  15500. - Network Drivers: This change attempts remove some long standard
  15501. confusion in naming and some actual problems that result from the
  15502. naming confusion. The basic problem is the standard MTU does not
  15503. include the size of the Ethernet header. For clarity, I changed
  15504. the naming of most things called MTU to PKTSIZE. For example,
  15505. CONFIG_NET_ETH_MTU is now CONFIG_NET_ETH_PKTSIZE. This makes the
  15506. user interface a little hostile. People think of an MTU of 1500
  15507. bytes, but the corresponding packet is really 1514 bytes (including
  15508. the 14 byte Ethernet header). A more friendly solution would
  15509. configure the MTU (as before), but then derive the packet buffer
  15510. size by adding the MAC header length. Instead, we define the
  15511. packet buffer size then derive the MTU.
  15512. The MTU is not common currency in networking. On the wire, the
  15513. only real issue is the MSS which is derived from MTU by subtracting
  15514. the IP header and TCP header sizes (for the case of TCP). Now it
  15515. is derived for the PKTSIZE by subtracting the IP header, the TCP
  15516. header, and the MAC header sizes. So we should be all good and
  15517. without the recurring 14 byte error in MTU's and MSS's. From
  15518. Gregory Nutt.
  15519. - netdev: Fix.. Too many calls to net_unlock() From Gregory Nutt.
  15520. - IPv6: There are many different checks for IPv6 multicast
  15521. addresses. Most of the checks are different. RFC 3513 clearly
  15522. specifies how to detect an IPv6 multicast address: they should
  15523. begin with 0xffxx. I did not change some of the checks in
  15524. ipv6_input.c, however. In that file, the comments indicate that
  15525. the code should only pick of certain multicast address that begin
  15526. with 0xff02. From Gregory Nutt.
  15527. - ARP: Fix some backward logic in an if condition. From Gregory
  15528. Nutt.
  15529. - TCP Re-assembly: Rename CONFIG_TCP_REASSEMBLY to
  15530. CONFIG_IPv4_REASSEMBLY. Add some fixes to get a clean compile with
  15531. CONFIG_IPv4_REASSEMBLY enabled. There are several problems with
  15532. the current implementation: It is untested (and depends on
  15533. CONFIG_EXPERMIMENTAL). It uses some Ethernet specific definitions
  15534. (and depends on CONFIG_NET_ETHERNET). There is only a single
  15535. reassembly buffer. The last two issues prevent use of this feature
  15536. in any context where IPv4 packets may be reassembled for multiple
  15537. network devices concurrently). From Gregory Nutt.
  15538. - TCP: Set the default TCP MSS to the value required by RFC 879 and
  15539. never change it under any circumstance unless the remote host
  15540. requests a larger MSS via an option the TCP header. From Gregory
  15541. Nutt.
  15542. - TCP: Fix a deadlock condition that can occur when (1) all network
  15543. logic runs on a single work queue, (1) TCP write buffering is
  15544. enabled, and (2) we run out of IOBs. In this case, the TCP write
  15545. buffering logic was blocking on iob_alloc() with the network
  15546. locked. Since the network was locked, the device driver polls that
  15547. would provide take the write buffer data and release the IOBs could
  15548. not execute. This fixes the problem by unlocking the network lock
  15549. while waiting for the IOBs. From Gregory Nutt.
  15550. - TCP: Remove g_netstats.tcp.syndrop++ from tcp_data_event() From
  15551. Masayuki Ishikawa.
  15552. - TCP Monitor: Fix net unlock issue when tcp close. This bug could
  15553. leave the net locked. From zhangyuan7.
  15554. - UDP: When sending a broadcast (or multicast) packet do not attempt
  15555. to look up the device by the destination IP address. Rather, use
  15556. the locally bound address for these cases to select the correct
  15557. network device. From Gregory Nutt.
  15558. - UDP: Restore some legacy behavior that was lost with the
  15559. implementation of CONFIG_NET_UDP_BINDTODEVICE: If no device has a
  15560. local address when the broadcast packet is sent and the UDP socket
  15561. is not bound to a device, there select some arbitrary device. This
  15562. is certainly lunacy in the case where there are multiple network
  15563. devices registered because the wrong device will probably be
  15564. returned. It works find, however, for the legacy case where only a
  15565. single network device is registered. From Gregory Nutt.
  15566. - UDP: Fix for network byte-order issue when checking if an address
  15567. is a multicast address. From Jake Choy.
  15568. - USRSOCK: Correct of semaphore usage issues. From Gregory Nutt.
  15569. - USRSOCK: Fix re-definitions of struct iovec. From ligd.
  15570. - ICMP/ICMPv6 Connection: Change the type of id in
  15571. icmpv[6]_findconn to uint16_t From Xiang Xiao.
  15572. - ICMP/ICMPv6: Fix failure to poll ICMP socket issue. From
  15573. dongjianli.
  15574. * Wireless/Wireless Drivers:
  15575. - XBee: Fixes issue with timeouts. Timeouts were in ticks but
  15576. should have been in ms. This caused false triggers of timeout
  15577. causing redundant packets, etc. From Anthony Merlino.
  15578. - BCM43xx: Add missing logic to the BCM43xx IEEE 802.11 driver to
  15579. poll for more Tx data after the last transfer completes. From
  15580. Gregory Nutt.
  15581. - BCM43xx: Bring in some fixes from the 'Haywire' branch. From
  15582. Ramtin Amin.
  15583. * Common Drivers:
  15584. - Audio: Fix compile error in i2schar.c (CONFIG_DEBUG_ASSERTIONS=y)
  15585. From Masayuki Ishikawa.
  15586. - Audio I2S: Fix bad NULL pointer check From Juha Niskanen.
  15587. - Input: Fixed FT5x06 driver to correctly close (previously it
  15588. unregistered interrupt handler during close). From Marcin Wyrwas.
  15589. - MMC/SD: Fix an error that was causing SDIO multiple block
  15590. transfers from achieving full performance. From Bob Feretich.
  15591. - Sensors: Increases SPI frequency in MAX6675 from 400Khz to 4MHz.
  15592. From Alan Carvalho de Assis.
  15593. - Sensors: Remove comment references to touchscreens from ADXL345
  15594. driver. From Russ Webber.
  15595. - Serial: Don't overwrite nwritten unconditionally on UART write
  15596. failure. From Xiang Xiao.
  15597. - Serial DMA: Move head/tail pointer reset to uart_recvchars_dma
  15598. since dma may be still transferring in the background. From Xiang
  15599. Xiao.
  15600. - Serial DMA: In DMA mode, the use of uart_disablexinit() is
  15601. insufficient to protect a critical section.
  15602. enter/leave_critical_section() must be used in those cases if
  15603. CONFIG_SERIAL_DMA=y From Xiang Xiao.
  15604. - Serial DMA: Fix typo error in uart_recvchars_dma() From Xiang Xiao.
  15605. - 16550 UART: u16550_txempty() should check UART_LSR_TEMT to avoid
  15606. some data left in the transmit FIFO From Xiang Xiao.
  15607. * ARMv7-A:
  15608. - ARMv7-A (and i.MX6): Add support for per-CPU IRQ and FIQ interrupt
  15609. stacks (bugfix). Add support so that up_assert will print the
  15610. correct interrupt stack on an assertion (FIQ stack is still not
  15611. printed). From Gregory Nutt.
  15612. * ARMv7-R:
  15613. - ARMv7-R: Fix some wrong configuration of program status
  15614. register. PSR_E_BIT bit should be set for big endian system.
  15615. PSR_A_BIT bis is set automatically as arm cortex-r4 reference
  15616. manual 3.7.4. So we don't need to set this bit. From EunBong Song.
  15617. - ARMv7-R: Fix some wrong MPU register definition. Change
  15618. MPU_RBAR_ADDR_MASK and MPU_RACR_TEX_SHIFT mask as arm cortex-r4
  15619. reference manual. Region Base Address Register 0-4 bits are
  15620. reserved. MPU Region Access control register type 3-5 bits. From
  15621. EunBong Song.
  15622. * ARMv7-M:
  15623. - ARMv7-M, Cortex F7: Add a configuration to enable workaround for
  15624. r0p1 Errata 837070: Increasing priority using write to BASEPRI does
  15625. not take effect immediately. This update is required to be
  15626. serialized to the instruction stream meaning that after this update
  15627. completes, it takes effect immediately and no exceptions of lower
  15628. priority than the new boosted priority can preempt execution.
  15629. Because of this erratum, the priority boosting does not take place
  15630. immediately, allowing the instruction after the MSR to be
  15631. interrupted by an exception of lower priority than the new boosted
  15632. priority. This effect is only limited to the next instruction.
  15633. Subsequent instructions are guaranteed to see the new boosted
  15634. priority. This was raised in Bitbucket issue 113 from Vadzim
  15635. Dambrouski. From Gregory Nutt.
  15636. - ARMv7-M: MPU: mpu_log2regionceil needs take into account the
  15637. offset too From Xiang Xiao.
  15638. - ARMv7-M MPU: The prototype of mpu_log2regionfloor() changed; an
  15639. additional parameter was added. However, none of the calls to
  15640. mpu_log2regionfloor() were updated to pass the new, additional
  15641. parameter. From Gregory Nutt.
  15642. * Infineon XMC4xxx Drivers:
  15643. - XMC4 SPI: XMC4 SPI was working only for the first transfer From
  15644. Alan Carvalho de Assis.
  15645. * Microchip/Atmel SAMv7 Drivers:
  15646. - SAMv7 MCAN: Correct an error in the BUS_OFF reporting. In case of
  15647. BUS_OFF the old implementation was leading to a package storm. Now
  15648. it reports the error condition BUS_OFF only once. From Frank
  15649. Benkert.
  15650. * NXP/Freescale LPC43xx Drivers:
  15651. - LPC43xx CAN: Fix lpc43 CAN configuration. Configuration settings
  15652. were used and documented in README.txt files, but never in any
  15653. Kconfig file. From Gregory Nutt.
  15654. - LPC43xx: Make WWDT usable again. LPC43xx WWDT driver was not
  15655. updated when irq_dispatch grew an argument parameter. Also fixes
  15656. two typos and a naming inconsistency (WWDT vs. WWDG). From Jakob
  15657. Haufe.
  15658. * NXP/Freescale Kinetis Drivers:
  15659. - kinetis: USB0 fix interrupt storm on error. The ERROR bit of
  15660. USBx_ISTAT needed to be cleared once an error occurs. From David
  15661. Sidrane.
  15662. - Kinetis: SDHC fix SDIO driver so that DMA works. There were 2
  15663. problems. The first was that the interrupt did test DINT and raise
  15664. a completion events. But since DINT is just an indication of DMA
  15665. completion, TC is a valid way to determine that the transfer is
  15666. complete. The second problem is that Software Reset For DAT Line
  15667. SDHC_SYSCTL[RSTD] clears the bits 24-0 in SDHC_PROTO this looses
  15668. the wide bus setting DTW From David Sidrane.
  15669. - Kinetis: (1) PIT add Lifetime and Chaining, (2) flexcan fix
  15670. duplicate line and ordering, (3) kinetis_lowput.c LPUART data
  15671. format with parity fix. The 9-bit data mode is typically used with
  15672. parity to allow eight bits of data plus the parity, (4) lowputc
  15673. LPUART_BAUD_INIT has to be defined. Build fails with test case
  15674. enable LPUART0 and make UART1 console. If HAVE_LPUART_DEVICE is
  15675. defined then LPUART_BAUD_INIT has to be defined even if the LPUART
  15676. is not the console From David Sidrane.
  15677. - Kinetis: I2C ensure timeout on bus error. The code had a dead
  15678. wait on I2C_S_BUSY. Noise on the bus would cause the driver to
  15679. hang. Add timeout on invalid states of I2C_S_BUSY to allow the
  15680. upper layers do deal with restart or abort. From David Sidrane.
  15681. * NXP i.MXRT Drivers:
  15682. - i.MXRT Ethernet: I finally got the Ethernet CRC32 to work properly
  15683. after the FAE pointed me in the right direction: (1) Added CRC32
  15684. functions for multicast address filtering, (2) Do not reset PHY
  15685. settings when doing an ifup, (2) Use chip's unique id as the device
  15686. MAC, and (4) Enable discard enet frames with errors at PHY layer.
  15687. From Jake Choy.
  15688. * On Semi LC823450 Boards:
  15689. - LC823450-XGEVK: Fix parallel build on lc823450-xgevk. This change
  15690. fixes an archive file (*.a) corruption by locking $(TOPDIR).
  15691. Please note that locking the current directory is insufficient
  15692. because some archive files such as libapps.a are specified with
  15693. absolute path. From Masayuki Ishikawa.
  15694. - LC823450-XGEVK: Change IOB related params for rndis. Since TCP
  15695. flow control scheme was changed, HTTP audio streaming has not been
  15696. working. These IOB params are not optimized but HTTP audio
  15697. streaming now works. From Masayuki Ishikawa.
  15698. * STMicro STM32:
  15699. - STM32 F7: Fix compile error caused by intentional use of fall
  15700. through From Daniel Agar.
  15701. * STMicro STM32 Drivers:
  15702. - STM32 F1-F4: Port Bob Feritich's change to STM32 F2 and F4 which
  15703. appear to have identical SD support and I/O compensation
  15704. requirements.
  15705. - STM32 F1-F4, STM32 F7, and STM32 L4: The STM32 RTC driver was
  15706. being selected by the global CONFIG_RTC option. That is in
  15707. correct. For example, if you want to disabled the STM32 RTC and
  15708. use an external RTC you cannot because the external RTC also
  15709. depends on the global CONFIG_RTC. The solution is to add a new
  15710. CONFIG_STM32xx_RTC configuration option the permits to you select
  15711. or deselect the STM32 RTC but still be able to select the external
  15712. RTC. From Gregory Nutt.
  15713. - STM32 F3 I2C: Fix compile error with I2C reset. From Juha
  15714. Niskanen.
  15715. - STM32 F7 Serial: Fix ioctl TIOCSSINGLEWIRE The TRM notes that UE
  15716. must be disabled in order to write HDSEL in USART_CR3. This was not
  15717. being done, so calls to TIOCSSINGLEWIRE were silently failing.
  15718. This change checks the state of UE in USART_CR1, clears the UE bit
  15719. before writing HDSEL, then re-enables it if necessary. From Kurt
  15720. Kiefer.
  15721. - STM32 F7 DMA: DMA macros did not account for the increase from 8
  15722. to 16 DMA channels. From Gregory Nutt.
  15723. - STM32 F7 I2C: I2C reset Configure I2C pins as GPIO output. Pins
  15724. were reset to inputs in the deinit(). This resets them to outputs.
  15725. From David Sidrane.
  15726. - STM32 F7: All of the SDMMC pins were set to 50 MHz, but not the
  15727. clock. This sets the clock to 50 MHz also. This combined with
  15728. turning on I/O compensation makes intermittent failures go away.
  15729. From Bob Feritich.
  15730. - STM32 F7: Port Bob Feritich's change to SDMMC2 and to all other
  15731. STM32 F7 architectures. Also add a configuration option to
  15732. automatically enable I/O compensation. From Gregory Nutt.
  15733. - STM32 F7 SDMMC: Fix data timeout errors with multi-block
  15734. transfers. From Bob Feretich.
  15735. - STM32 L4: Corrects some mistakes in pin definitions for the
  15736. STM32 L4 family. According to datasheet of STM32L496xx, STM32L475xx
  15737. and STM32L443XX the AF2 of PE14 is TIM1_BKIN2 not TIM2_BKIN. From
  15738. Daniel Pereira Carvalho.
  15739. - STM32 L4: Avoid using redundant CONFIG_STM32L4_STM32L4X2. This is
  15740. almost always same as CONFIG_STM32L4_STM32L4X3. Avoid duplication
  15741. to reduce macro clutter. This patch limits
  15742. CONFIG_STM32L4_STM32L4X2 usage to dependency tracking and pinmap.
  15743. Also enable ADC for CONFIG_STM32L4_STM32L4X5 (untested, but same
  15744. RM). From Juha Niskanen.
  15745. - STM32 H7 Serial: don't include stm32_dma.h From raiden00pl.
  15746. * STMicro STM32 Boards:
  15747. - STM32F4-Discovery: Fix pca9635pw LED driver compilation on
  15748. STM32F4-Discovery. From Alan Carvalho de Assis.
  15749. - STM32F4-Discovery: Krassimir Cheshmedzhiev claims that sys/types.h
  15750. needs to be included in the RGB LED file to avoid undeclared 'OK'
  15751. From Gregory Nutt.
  15752. - STM32F4-Discovery: Missing EXTERN(_vectors) in linker script.
  15753. From Gregory Nutt.
  15754. - Nucleo-L422KC: Fix RAM size; STM31L4x2xx has only 64Kb of RAM.
  15755. Remove references to I2C and SDIO: There is no I2C2 or SDIO on the
  15756. STM32F4x2xx. From Daniel P. Carvalho.
  15757. - Nucleo-L422KC: Fix stm32_userleds. After change LD2 to LD3 in
  15758. board.h stm32_userleds.c was broken. From Daniel P. Carvalho.
  15759. - Nucleo-L422KC: Fix TIMx clock configuration. Also removes
  15760. definitions related to timers not available in the STM32L432KC.
  15761. From Daniel Pereira Carvalho.
  15762. - Nucleo-L452RE: Fix TIMx clock configuration. This is cloned from
  15763. similar change to the Nucleo-L422KC. Also fixes DAC build
  15764. failure. From Juha Niskanen.
  15765. - B-L475E-IOT01A: Fix copy paste errors in names:
  15766. stm32_bringup->stm32l4_bringup. Noted by Freemans Goden. From
  15767. Gregory Nutt.
  15768. - STM32VL-Discovery: Changed the status LED to be the green one as
  15769. mentioned in the README file. Removed the global array for buttons
  15770. and replace it with the only button. Improve defconfig for the nsh
  15771. configuration. From Ouss4.
  15772. * C Library/Header Files:
  15773. - libc audio: Call nxsem_destroy in apb_free. From Xiang Xiao.
  15774. - libc netdb: The 'port' argument to the static alloc_ai() function
  15775. is always in network byte order. However, that static function was
  15776. still calling HTONS() on the port, incorrectly converting it back
  15777. to host byte order. From Gregory Nutt.
  15778. - libc netdb: Fix a link error in lib_gethostbynamer.c with protected
  15779. build. NOTE: g_lo_ipv4addr also exists in
  15780. net/loopback/lo_globals.c which can be linked with kernel build
  15781. only. From Masayuki Ishikawa.
  15782. - libc unistd : Fix backward conditional logic in Kconfig. From
  15783. Gregory Nutt.
  15784. - include/nuttx/compiler.h: Fix warning: __cplusplus is not defined.
  15785. Some gcc derived compiler do not define __cplusplus From Xiang
  15786. Xiao.
  15787. - include/nuttx/fs/binfs.h: Fix warning: Type defaults to 'int' in
  15788. declaration of 'mountpt_operations' From Xiang Xiao.
  15789. - include/nuttx/net/ethernet.h: Remove CONFIG_NET_ETHERNET guard
  15790. From Xiang Xiao.
  15791. - include/nuttx/semaphore.h: don't include nuttx/fs/fs.h. (1) Avoid
  15792. nested loops if CONFIG_SIG_EVTHREAD enabled, (2) semaphore.h
  15793. doesn't depends on fs.h. From Gregory Nutt.
  15794. - include/crc64.h: Fix warning: integer constant is too large for
  15795. its type From Xiang Xiao.
  15796. - include/limits.h and include/sys/types.h: Fix warning about
  15797. 'SIZE_MAX' redefined. include/nuttx/usb/audio.h: Fix warnings due
  15798. to '-' used whete '_' intended. From Xiang Xiao.
  15799. - include/spawn.h: Fix posix_spawnattr_destroy warning: 'the
  15800. address of attr will always evaluate as true' From Xiang Xiao.
  15801. - include/sys/types: Move wint_t and wctype_t from wchar.h to
  15802. types.h. This change is compatible as before since wchar.h
  15803. include types.h indirectly. This fixes a compilation error with
  15804. newlib's math.h: 'unknown type name wint_t' From Xiang Xiao.
  15805. - apps/include/netutils/netlib.h: Eliminate a warning about
  15806. AF_UNSPEC and AF_INET not defined. From Gregory Nutt.
  15807. * Build System:
  15808. - Build System: Fix parallel build in making context. This change
  15809. avoids running $(MKSYSCALL) and .context in parallel and ensures
  15810. that tools/mksyscall is built before it is actually used. From
  15811. Masayuki Ishikawa.
  15812. - Kconfig files: Fix several errors noted by Alex Denisov in
  15813. Bitbucket issue 115. From Gregory Nutt.
  15814. - apps Build System: Fix an error when building apps/ without
  15815. nuttx/, using only the NuttX export package and assuming that the
  15816. nuttx/ directory in not even present. In this case, the problem
  15817. fixed where the apps/Make.defs file was selecting tools from the
  15818. /tools directory which does not exist because TOPDIR=apps/import.
  15819. Instead, for this build case, I have not thought of any option but
  15820. to duplicate scripts as necessary in the apps/tools directory.
  15821. Also added a top-level target to compile the symbol table. Misc
  15822. fixes: quoting in scripts, some errors in script syntax. From
  15823. Gregory Nutt.
  15824. - apps/Application.mk: If a loadable module is generated the we
  15825. need to add logic to remove the loadable module in the 'make
  15826. clean' logic. From Gregory Nutt.
  15827. * Tools:
  15828. - nuttx/tools/Makefile.unix: Was not cleaning up export directory
  15829. if it was left from a failed export. From Gregory Nutt.
  15830. - apps/tools: Fix an error in mksymtab.sh From Masayuki Ishikawa.
  15831. * NSH Library: apps/nshlib:
  15832. - apps/nshlib: Fix 'while' and 'until' loop condition The loop
  15833. condition logic was inverted: 'while true; do echo "test"; done'
  15834. would exit immediately, while using 'until' would stay in the
  15835. loop. This is the opposite of how it is supposed to work. The
  15836. reason is that 'state' was set wrong because 'whilematch' is a
  15837. bool. From Beat Küng.
  15838. - apps/nshlib: I was able to cause an assertion with some typos in
  15839. testing the 'fi' command. Not an important thing, but this will
  15840. protect against the assertion. From Gregory Nutt.
  15841. - apps/nshlib: Increase the default configuration for the maximum
  15842. number of command line arguments to 7 (CONFIG_NSH_MAXARGUMENTS).
  15843. This is needed for 'mount' with the -o option. From Xiang Xiao.
  15844. - apps/nshlib: Do not dereference NULL 'pstate' in nsh_console.c.
  15845. From Juha Niskanen.
  15846. * Examples/Tests: apps/examples:
  15847. - apps/examples: Remove illegal calls into OS to initialize BINFMT
  15848. support. This must be moved to the board initialization logic
  15849. within the OS. From anchao.
  15850. - apps/examples/nettest: Fix typo: NET_LOOPBACK ->
  15851. CONFIG_NET_LOOPBACK nettest: Fix compilation error. Should enable
  15852. NET_SETSOCKOPT for preventing compilation error. From EunBong Song.
  15853. - apps/examples/ostest: Signal handling tests should use the same
  15854. configurable stack size as used in other tests, not
  15855. PTHREAD_STACK_DEFAULT. From Gregory Nutt.
  15856. - apps/examples/ostest: Attempt to make the nested signal test
  15857. compatible with the suspend/resume test. Some signals cannot be
  15858. caught when the suspend/resume configuration is in place. From
  15859. Gregory Nutt.
  15860. - apps/examples/smps: Fixes in some printf and in Kconfig. From
  15861. Mateusz Szafoni.
  15862. * System Utilities: apps/system:
  15863. - apps/system/cu: (1) Protect from possible re-definition of signal
  15864. values, (2) Fix CU ctrl-C hand when remote core hang. From ligd.
  15865. - apps/system/i2c: Fix a backward comparison in i2c_main.c. Noted
  15866. by Jakob Haufe. From Gregory Nutt.
  15867. - apps/system/nsh: Fix compile errors with
  15868. CONFIG_EXAMPLES_NSH_SYMTAB=y. From Masayuki Ishikawa.
  15869. - apps/system/ping and ping6: Send ID and seqno in network byte
  15870. order. From Xiang Xiao.
  15871. - apps/system/ping and ping6: Change dependency in ping and ping6
  15872. Kconfig. These may be implemented in users sockets and, hence,
  15873. may need to be available even if ICMP and ICMPv6 sockets are not
  15874. support. From Xiang Xiao.
  15875. - apps/system/system: Add 'const' to make function prototype
  15876. compatible with OpenGroup.org requirement From Xiang Xiao.
  15877. - apps/system/zmodem: Fix error "sz_main.o: No such file or
  15878. directory" From Xiang Xiao.
  15879. * Network Utilities: apps/netutils:
  15880. - apps/netutils/ftpc: Fix handling of url-encoded strings From
  15881. Dmitriy Linikov.
  15882. - apps/netutils/ping: Remove unsupported ping. netutils/ping is not
  15883. supported anymore. It's better to remove this folder for
  15884. preventing confusing. ping is supported by system/ping. From
  15885. EunBong Song.
  15886. * Wireless Utilities: apps/wireless:
  15887. - apps/wireless/wapi: Remove dependency on CONFIG_EXPERIMENTAL from
  15888. Kconfig From Gregory Nutt.
  15889. * GPS Utilities: apps/gpsutils:
  15890. - apps/gpsutils/minmea: Include wchar.h in minmea.c file to fix
  15891. wint_t error From Alan Carvalho de Assis.
  15892. * Interpreters: apps/interpreters:
  15893. - Remove apps/interpreters/micropthon. There are several reasons
  15894. for this. (1) the current version 1.3.8 is very old and no one is
  15895. supporting it. (2) the port only includes the core micropython
  15896. logic and none of the Python libraries. As such it is useless in
  15897. any real application. (3) There have recently been compile
  15898. failures reported. It looks like this is due to changes in newlib
  15899. based toolchains that now bring in incompatible newlib header
  15900. files. See issue 104 at
  15901. https://bitbucket.org/nuttx/nuttx/issues/104/build-micropython-138-error.
  15902. With no one dedicated to the support of micropython, it can no
  15903. longer be carried in the NuttX apps/ repository. From Gregory Nutt.
  15904. NuttX-7.27 Release Notes
  15905. ------------------------
  15906. The 127th release of NuttX, Version 7.27, was made on November 14, 2018,
  15907. and is available for download from the Bitbucket.org website. Note
  15908. that release consists of two tarballs: nuttx-7.27.tar.gz and
  15909. apps-7.27.tar.gz. These are available from:
  15910. https://bitbucket.org/nuttx/nuttx/downloads
  15911. https://bitbucket.org/nuttx/apps/downloads
  15912. Both may be needed (see the top-level nuttx/README.txt file for build
  15913. information).
  15914. Additional new features and extended functionality:
  15915. * Core OS:
  15916. - Assertions: Add 'BOARD_ASSERT_RESET_VALUE' in config/Kconfig and
  15917. replace reboot status '0' to 'CONFIG_BOARD_ASSERT_RESET_VALUE'. From
  15918. Gregory Nutt.
  15919. - Assertions: up_registerdump capture the general register if not yet
  15920. saved and up_saveusercontext is implemented, the register dump is very
  15921. useful to find the cause of failure. From Xiang Xiao.
  15922. - Assertions: up_stackdump() dump the full stack if stack overflow the
  15923. stack info is very useful to find the backtrace From Xiang Xiao.
  15924. - binfmt/ and libs/libc: Make exepath_*() more common: Move
  15925. exepath_*() related code to libc/misc, rename exepath_ to envpath_,
  15926. and rename BINFMT_EXEPATH to LIB_ENVPATH. From nchao.
  15927. - CLOCK: Support CLOCK_MONOTONIC in clock_getres.c. From Xiang Xiao.
  15928. - Clock Timekeeping: Use clock_basetime() to initialize
  15929. g_clock_wall_time to get the best initial RTC value and initialize
  15930. g_clock_last_counter too since the hardware may not start counting
  15931. from zero. From Xiang Xiao.
  15932. - exit(): Add SCHED_EXIT_KILL_CHILDREN option to kill all child threads
  15933. when the main thread of a task exits. From nchao.
  15934. - IOBs: Add an IOB notifier that will notify any registered threads
  15935. that want to known when an IOB has been freed. This is basically just
  15936. a wrapper around the generic notifier. Includes a divider that can be
  15937. used to reduce the rate of IOB notifications. From Gregory Nutt.
  15938. - Memory Manager: In mm_free(), add DEBUGASSERT()'s to catch memory
  15939. corruption early. From Petteri Aimonen.
  15940. - Memory Manager: Add debug option CONFG_MM_FILL_ALLOCATIONS to fill
  15941. all mallocs() with recognizable value. From Petteri Aimonen.
  15942. - sched/signal and syscall/: Add support for pselect() and ppoll()
  15943. functions From dongjianli.
  15944. - Task Groups: group_foreachchild() now iterates in reverse order since
  15945. the callback (e.g. group_killchildren) may remove the tcb from list.
  15946. From zhangyuan7.
  15947. - WDOG Timer: Improve accuracy of wd_gettime() in tickless mode From
  15948. ligd.
  15949. - Work Queues: Add a generic notification facility that runs on a work
  15950. queue. The notification facility can notify a group of subscribers to
  15951. an event via callbacks. This API is for use within the OS only. From
  15952. Gregory Nutt.
  15953. * File Systems/Block and MTD Drivers
  15954. - FAT: Add CONFIG_FAT_LFN_ALIAS_HASH to speed up creating long
  15955. filenames. Long filenames on FAT file systems have associated 8.3
  15956. character alias short filenames. The traditional form of these is
  15957. FILENA~1.EXT with a running count of the number of similar names.
  15958. However creating this unique count can take several seconds if there
  15959. are many similarly named files in the directory. Enabling
  15960. FAT_LFN_ALIAS_HASH uses an alternative format of FI0123~1.TXT where
  15961. the four digits are a hash of the original filename. This method is
  15962. similar to what is used by Windows 2000 and later. From Petteri
  15963. Aimonen.
  15964. - FAT: Add CONFIG_FAT_LFN_ALIAS_TRAILCHARS alternative format for 8.3
  15965. filenames. Traditional format for long filename 8.3 aliases takes
  15966. first 6 characters of long filename. If this option is set to N > 0,
  15967. NuttX will instead take first 6-N and last N characters to form the
  15968. short name. This is useful for filenames like "datafile12.txt" where
  15969. the first characters would always remain the same. From Petteri
  15970. Aimonen.
  15971. - FAT: if block driver wait seems to be a long one, give time for other
  15972. threads to run. From Petteri Aimonen.
  15973. - file_open(): Add file_open() implementation with some fully-function,
  15974. interim, placeholder logic. Change occurrences of open() followed by
  15975. file_detach() in the OS to file_open(). From Gregory Nutt.
  15976. - MX25LF25635F: Add support to Macronix MX25LF25635F serial NOR flash
  15977. From David Sidrane.
  15978. - nx_open(): Add nx_open() which is the same as open() except that it
  15979. does not create a cancellation point nor does it modify the errno
  15980. variable. Change most other, non-controversial calls to open() to
  15981. nx_open(). From Gregory Nutt.
  15982. - file_ioctl(): Replace calls to ioctl() in the OS to file_ioctl().
  15983. From Gregory Nutt.
  15984. - mount: Add mount() support for file systems that require MTD drivers
  15985. (vs. block drivers). From Gregory Nutt.
  15986. - mount: Add support for mounting a file system with either a block or
  15987. an MTD driver. From Xiang Xiao.
  15988. - MTD FTL: Support BIOC_FLUSH ioctl From Xiang Xiao.
  15989. - MTD FTL: Make READAHEAD and WRITEBUFFER work independently of each
  15990. other. There have cases we use writebuffer but not readbuffer, so the
  15991. write buffer must be flushed before read. Let rwb driver do it. From
  15992. zhuyanlin.
  15993. - MTD FTL: Allocate eblock only when it's really needed From Xiang Xiao.
  15994. - MTD FTL: Add support support unlink operation to avoid the memory
  15995. leak. From Xiang Xiao.
  15996. - MTD Partition: Add register_mtdpartition() for MTD partition From
  15997. Xiang Xiao.
  15998. - MTD Partition: Remove the hard code partition name length From Xiang
  15999. Xiao.
  16000. - MTD Proxy: Make MTD device accessible via a character driver proxy
  16001. like block devices From Xiang Xiao.
  16002. - ProcFS: Change output of the ProcFS 'env' file so that it looks more
  16003. like output from the 'env' command. From Gregory Nutt.
  16004. - ProcFS: Add support to provide MLD statistics at /proc/net/mld. From
  16005. Gregory Nutt.
  16006. - ProcFS: Remove MTD ProcFS and mtd_procfsoperations() since we can now
  16007. get the same information from inode From Xiang Xiao.
  16008. - ProcFS: Add /proc/version support to get version info From iuhaitao.
  16009. - ProcFS: Add support for named MTD drivers in the pseudo file system.
  16010. This will, eventually, allow us to mount file systems that need MTD
  16011. drivers without having to fake an intervening block driver.
  16012. - R/W Buffer: Don't queue work to flush write buffer if
  16013. CONFIG_DRVR_WRDELAY == 0 From Xiang Xiao.
  16014. - R/W Buffer: Improve the rwb_read/write overlap performance From
  16015. zhuyanlin.
  16016. - SIM HOSTFS: Support S_IFSOCK, DT_LNK, O_DIRECT and O_SYNC From Xiang
  16017. Xiao.
  16018. - SPIFFS: Brings in a NuttX port of version 0.3.7 of Peter Anderson's
  16019. SPIFFS flash file system into NuttX. From Gregory Nutt.
  16020. * Networking/Network Drivers:
  16021. - Network Configuration Add new configuration CONFIG_NET_MCASTGROUP.
  16022. This option is selected automatically if either CONFIG_NET_IGMP or
  16023. CONFIG_NET_MLD are selected. Most conditional logic based on
  16024. CONFIG_NET_IGMP replaced with conditioning on CONFIG_NET_MCASTGROUP.
  16025. From Gregory Nutt.
  16026. - Network Device: Add notification logic for the case where the network
  16027. goes down. From Gregory Nutt.
  16028. - Network Device: Rename netdev_dev_lladdrsize() to netdev_lladdrsize()
  16029. and move the prototype to include/nuttx/nex/netdev.h, giving is global
  16030. scope within the OS. From Xiang Xiao.
  16031. - ARP: Redesign ARP table aging to simplify the net initialization
  16032. From Xiang Xiao.
  16033. - ARP: Check ifname match before sending packet. From Xiang Xiao.
  16034. - ARP and ICMPv6: Double the delay time on each iteration for ARP/ICMP
  16035. to fight work jitter better. From Xiang Xiao.
  16036. - ICMP/ICMPv6: Add NET_ICMP[v6]_NO_STACK for usrsock case From Xiang
  16037. Xiao.
  16038. - ICMPv6: Encapsulate the link scope address generation into
  16039. icmpv6_linkipaddr() From Xiang Xiao.
  16040. - ICMPv6: Remove the coupling between ICMPv6 and Ethernet by moving all
  16041. Ethernet stuff to neighbor_ethernet_out.c and make the mac address as
  16042. first field. From Xiang Xiao.
  16043. - ICMPv6 MLD: Implement Multicast Listener Discovery (MLD) protocol based
  16044. on RFC 2710 and RFC 3810. From Gregory Nutt.
  16045. - ICMPv6 MLD: Implement MLDv1 compatibility mode. From Gregory Nutt.
  16046. - ICMPv6 MLD: Implement 'Other Querier Present Timer'. This timer is
  16047. used to revert to Querier mode if there is no other querier on the
  16048. network. From Gregory Nutt.
  16049. - IGMP: Backport some MLD design improvements/fixes. From Gregory Nutt.
  16050. - IPv4 setsockopt(): Add implementation for all IPv4 socket options that
  16051. have implemented IOCTL command counterparts. From Gregory Nutt.
  16052. - IPv4/6 Socket Options: Add framework to support IPv4 and IPv6
  16053. protocol socket options (i.e., SOL_IP and SOL_IP6). Handling of these
  16054. socket options was a necessary step on the way to ICMPv6 MLD support.
  16055. From Gregory Nutt.
  16056. - ICMPv6 Autoconfiguration: Don't take the network device down when
  16057. reconfiguring only the IP address from within ICMPv6 logic.
  16058. Recommended by Xiang Xiao in order to avoid the long delays of
  16059. bringing some networks back up. Normally it is required that the
  16060. network be in the "down" state when re-configuring the network
  16061. interface. This is thought not to be a necessary here because: (1)
  16062. The ICMPv6 logic here runs with the network locked so there can be no
  16063. outgoing packets with bad source IP addresses from any asynchronous
  16064. network activity using the device being reconfigured. And (2) incoming
  16065. packets depend only upon the MAC filtering. Network drivers do not
  16066. use the IP address; they filter incoming packets using only the MAC
  16067. address which is not being changed here. From Gregory Nutt.
  16068. - IPv6 Input: Add logic to skip over the variable number of IPv6
  16069. extension headers that may be present between the IPv6 header and the
  16070. transport layer header. The extension headers are simply ignored.
  16071. This is necessary because with MLD, certain incoming messages may
  16072. have, at a minimum, a Router Alert Hop-by-hop extension header.
  16073. Additional changes to ICMPv6, TCP, and UDP input to handle the offset
  16074. protocol headers. From Gregory Nutt.
  16075. - IPv6 Neighbor: Simplify the neighbor table aging process From Xiang
  16076. Xiao.
  16077. - IPv6 Neighbor: Simplify neighbor_dumpentry() implementation From
  16078. Xiang Xiao.
  16079. - IPv6 Neighbor: neighbor_lookup() checks if the target IP belongs to
  16080. one of the local network devices. From Xiang Xiao.
  16081. - IPv6 Neighbor: Support neighbor_out() for multiple link layer at the
  16082. same time From Xiang Xiao.
  16083. - IPv6 setsockopt(): Implement the IPV6_JOIN_GROUP and IPV6_LEAVE_GROUP
  16084. socket options. From Gregory Nutt.
  16085. - TCP: Extend the TCP notification logic logic so that it will report
  16086. loss of connection events. From Gregory Nutt.
  16087. - SLIP: Add IPv6 support and fix minor issue From Xiang Xiao.
  16088. - TCP: Add TCP poll() logic to receive notifications when IOBs are
  16089. freed. From Gregory Nutt.
  16090. - TCP: In TCP backlog, add SOMAXCONN definition and implementation per
  16091. OpenGroup.org. From zhangyuan7.
  16092. - TCP/UDP: Extend send()/sendto() logic it also requires that at least
  16093. one IOB is also available to be able to send. From Gregory Nutt.
  16094. - TCP/UDP: Add notification logic when TCP or UDP read-ahead data is
  16095. buffered. From Gregory Nutt.
  16096. - TUN: Call ipv[4|6]_input dynamically by checking packet header and
  16097. remove the code duplication From Xiang Xiao.
  16098. * Wireless/Wireless Drivers:
  16099. - Broadcom IEEE 802.11: Add capability for Broadcom chips to get
  16100. firmware and CLM data from a mounted file system vs. in-memory data
  16101. structures. From Ramtin Amin.
  16102. - XBee IEEE 802.15.4: Add support for setting/getting tx power. From
  16103. Anthony Merlino.
  16104. * Other Common Device Drivers:
  16105. - GPIO: Support multiple registrations of GPIO signal events. From
  16106. Xiang Xiao.
  16107. - INA226: Add INA226 device driver. From Daniel P. Carvalho.
  16108. - MAX7219: Support all digits presented in the MAX7219 datasheet. From
  16109. Alan Carvalho de Assis.
  16110. - MLX90614: Add support for the Infrared Thermometer MLX90614 From
  16111. Alan Carvalho de Assis.
  16112. - RTC Driver: up_rtc_set_lowerhalf call clock_synchronize() for
  16113. external RTC. From Xiang Xiao.
  16114. - SYSLOG: Uncomment the g_syslog_channel->sc_flush call in
  16115. syslog_flush(). From Xiang Xiao.
  16116. - SYSLOG: syslog_initialize initialize dev/syslog too and call syslog
  16117. to add the prefix and timestamp. From Xiang Xiao.
  16118. - USB Composite and DFU drivers: Add support for Microsoft OS
  16119. descriptors. These Microsoft-only descriptors help in loading the
  16120. correct driver on Windows. They are especially helpful to give libusb
  16121. access to a custom device without having to manually configure/install
  16122. WinUSB driver. With this change DFU interface works automatically on
  16123. Windows 10 with dfu-util 0.9 and libusb 1.0.22. On Windows 7 it still
  16124. appears to need driver installation. From Petteri Aimonen.
  16125. - USB DFU Device: Add DFU Runtime driver for activating boot-loader
  16126. through USB command. From Petteri Aimonen.
  16127. - USB RNDIS Device: Account for CONFIG_NET_GUARDSIZE in allocation of
  16128. packet buffer allocation: Make USB device parameters configurable.
  16129. From Sakari Kapanen.
  16130. - USB RNDIS Composite Device: Fix strid comparison. Add support for
  16131. composite configuration. From Petteri Aimonen.
  16132. * Microchip PIC32MX Boards;
  16133. - PCBLOGIC-PIC32MX: Remove support for the PCB Logic PIC32MX board. I do
  16134. not find any references to PCB Logic on the web and I do not believe
  16135. that this breakout board is available any longer. From Gregory Nutt.
  16136. * NXP Freescale i.MX RT:
  16137. - i.MXRT: Added support for the i.MXRT 106x family. From David Sidrane.
  16138. * NXP Freescale i.MX RT Drivers:
  16139. - i.MXRT: Add LPI2C driver. From Ivan Ucherdzhiev.
  16140. - i.MXRT LPSPI: Add full support for the LPSPI in poll mode; includes a
  16141. minor fix for LPI2C.
  16142. - i.MXRT USDHC: Initial commit of the i.MXRT SDHC driver working in PIO
  16143. mode. From Dave Marples.
  16144. - i.MXRT USDHC: Complete the interrupt driven USDHC1 functionality for
  16145. the IMXRT EVKB. Improve SD card handling in the DMA case. From Dave
  16146. Marples.
  16147. * NXP Freescale i.MX RT Boards:
  16148. - IMXRT1060-EVK: Add support for the IMXRT1060-EVK. From David Sidrane.
  16149. * NXP LPC17xx Boards:
  16150. - Olimex-LPC1766STK: Add support to initialize a USB HID keyboard. Add
  16151. a configuration for testing the HID keyboard. From Gregory Nutt.
  16152. * On Semi LPC23450 Drivers:
  16153. - LC823450: MPU support for FLAT build From Masayuki Ishikawa.
  16154. * STMicro STM32:
  16155. - STM32: Add support for STM32F303xD/E. From Mateusz Szafoni.
  16156. - STM32 L4: Add initial support for STM32L412 and STM32L422 chips From
  16157. Juha Niskanen.
  16158. * STMicro STM32 Drivers:
  16159. - STM32 ADC: Major refactor: Use STM32 ADC IP core version and ADC
  16160. available functions instead of chip family names in conditional
  16161. compilation. Replace family specific ADC headers with STM32 ADC IP
  16162. core version headers. Configurable sample time supported for all
  16163. chips, not just L1. Enable/disable interrupts supported for all
  16164. chips, not just L1. Add ADC resolution configuration. From Mateusz
  16165. Szafoni.
  16166. - STM32 PWM: Improvements in STM32 PWM low level driver: Support
  16167. complementary outputs, dead-time configuration, output polarity and
  16168. IDLE state configuration. From Mateusz Szafoni.
  16169. - STM32 PWM: Break and lock configuration and some cosmetics From
  16170. Mateusz Szafoni.
  16171. - STM32 SPI. Enable separate DMA per SPI configuration From Daniel Agar.
  16172. - STM32 F7 FLASH: Allow programming OTP blocks through progmem
  16173. interface From Jussi Kivilinna.
  16174. - STM32 H7 I2C: Add I2C support for STM32H7. From raiden00pl.
  16175. - STM32 H7 RCC: Update RCC definitions, add SPI clock configuration and
  16176. some fixes in RCC. From raiden00pl.
  16177. - STM32 H7 SPI: Add basic SPI support for H7. Enable SYSCFG clock in
  16178. RCC. From Mateusz Szafoni.
  16179. * STMicro STM32 Boards:
  16180. - Nucleo-F302R8: Add support for Nucleo-F302R8 board From raiden00pl.
  16181. - Nucleo-F302R8: Add PWM support. From Mateusz Szafoni.
  16182. - Nucleo-F303ZE: Add basic support for nucleo-f303ze. From Mateusz
  16183. Szafoni.
  16184. - Nucleo-F303ZE: Support for ADC and ADC example. From Mateusz Szafoni.
  16185. - Nucleo-L432KC: Added support for AT45DB Serial Flash From Daniel P.
  16186. Carvalho.
  16187. - Nucleo-L432KC: Add support for the INA226. From Daniel P. Carvalho.
  16188. - Nucleo-H743ZI: Add NRF24L01 support. From Mateusz Szafoni.
  16189. - Olimex-STM32-P407: Add a HID keyboard configuration. From Gregory
  16190. Nutt.
  16191. - STM32F4-Discovery: Add MLX90614 support for the STM32F4-Discovery
  16192. board From Alan Carvalho de Assis.
  16193. - STM32F429I-DISCO: Add PWM support. From Mateusz Szafoni.
  16194. - STM32F429I-DISCO: Support for ADC and ADC example. From Mateusz
  16195. Szafoni.
  16196. * MIPS32:
  16197. - MIPS32 Toolchain.defs: Add toolchain flags for the pinguino toolchain
  16198. under Linux. From Ouss4.
  16199. * RISC-V:
  16200. - RISC-V GAP: This commit brings in support for the GAP8 architecture.
  16201. The GAP8 is a 1+8-core DSP-like RISC-V MCU. Also included is support
  16202. for the Gapuino GAP8 evaluation board. From hhuysqt.
  16203. * Other Tools:
  16204. - tools/tesbuild.sh: No longer installs and builds the NxWidgets
  16205. libraries. They are now a port of apps/. From Gregory Nutt.
  16206. * Libraries/Header Files:
  16207. - include/net and include/sys: Align the constant values with values in
  16208. the Linux kernel which makes targeting the usrsock server to Linux
  16209. kernel easier. From Xiang Xiao.
  16210. - include/netdb.h Add NO_ADDRESS definition From zhangyuan7.
  16211. - include/netinet/in.h: Adds definitions for IPPROTO_IPV6 socket
  16212. options to netinet/in.h. Adds missing fields to sockaddr_in6. Adds
  16213. struct ipv6-mreq. These changes all follow the opengroup standard for
  16214. netinet/in.h From Anthony Merlino.
  16215. - include/netinet/in.h: Add IPv4 SOL_IP socket options for symmetry
  16216. with IPv6 definitions added in a previous commit. Remove some
  16217. duplicate types from sys/sockio.h. From Gregory Nutt.
  16218. - include/netinet/in.h: Add other definitions required by
  16219. OpenGroup.org. From Gregory Nutt.
  16220. - include/netinet/in.h: Add Linux IP_PKTINFO and IPV6_PKTINFO
  16221. definitions.
  16222. - include/nuttx/net/ipv6ext.h: Create header file with all of the
  16223. definitions of IPv6 extension headers that I could find. From Gregory
  16224. Nutt.
  16225. - include/nuttx/net/mld.h: Add MLD header file based on RFC2710 and
  16226. RFC3810. From Gregory Nutt.
  16227. - include/sys/socket.h: With increased size of struct sockaddr_in6, the
  16228. size of struct sockaddr_storage in include/sys/socket.h must also be
  16229. increase so that it can contain the new, larger sockaddr_in6. From
  16230. Gregory Nutt.
  16231. - libs/libc/misc: Add implementation of CRC8-CCITT. From Alan Carvalho
  16232. de Assis.
  16233. - libs/libc/modlib: Add per-module library symbol table support. From
  16234. nchao.
  16235. - libs/libc/net: Add basic implementation for recvmsg() and sendmsg()
  16236. per OpenGroup.org specification. From ligd.
  16237. - libs/libc/netdb: A few improvements to getaddrinfo: (1) Use the
  16238. protocol and socktype hints in returned address, (2) Ignore AI_PASSIVE
  16239. argument if hostname is not NULL From Anthony Merlino.
  16240. - libs/libc/netdb: Make DNS receive timeout configurable. From ligd.
  16241. - libs/libc/stdio: Eliminate recursive in conversion functions of
  16242. lib_vsprintf(). From Xiang Xiao.
  16243. - libs/libc/string: Add some new functions defined in POSIX.1-2017:
  16244. stpncpy(), strsignal(), psignal(), psiginfo(). From Gregory Nutt.
  16245. - libs/libc/string: Add memrchr() function From Xiang Xiao.
  16246. - libs/libc/string: Make strerror() return the string "Success" for
  16247. error = 0. From Petteri Aimonen.
  16248. * Build System:
  16249. - Makefile.unix/win: Remove deletion of Eclipse project files from make
  16250. distclean target. From Gregory Nutt.
  16251. - apps/Application.mk: Fix some build issues. (1) Unable to found
  16252. target 'context' when CONFIG_NSH_BUILTIN_APPS disabled. (2) Unable to
  16253. generate multiple programs. From Chao An.
  16254. - apps/Directory.mk: Fix distclean targets. Makefiles were not
  16255. removing generated Kconfig files. There was then no way to remove
  16256. this Kconfig files without manually deleting them one at a time. From
  16257. Gregory Nutt.
  16258. * NSH: apps/nshlib:
  16259. - apps/nshlib/, apps/examples/: Update to show newer file system
  16260. object types returned by stat(). From Gregory Nutt.
  16261. - apps/nshlib: Add support for the 'env' command. From Gregory
  16262. Nutt.
  16263. - apps/nshlib: Add support for NSH local variables if
  16264. CONFIG_NSH_VARS are set. These are like environment variables but
  16265. are local to NSH. The importance of this is that these variables
  16266. are *not* inherited when NSH creates a new task. The new command
  16267. 'export' was added. In this case, the NSH variable will be promoted
  16268. to an environment variable and will then be inherited by any tasks
  16269. executed by NSH. From Gregory Nutt.
  16270. - apps/nshlib: If CONFIG_NSH_VARS=y, the NSH 'set' command with no
  16271. argument will list all of the local NSH variables. From Gregory
  16272. Nutt.
  16273. * Examples/Tests: apps/examples:
  16274. - apps/examples/gpio: Align with GPIO driver update From wangyanjiong.
  16275. - apps/examples/ina226: Added INA226 example From Daniel P. Carvalho.
  16276. - apps/examples/mld: Add a test of MLD. Provides a mechanism for some
  16277. low-level bring-up of MLD. From Gregory Nutt.
  16278. - apps/examples/mlx90614: Add mlx90614 test example From Alan Carvalho
  16279. de Assis.
  16280. - apps/examples/mlx90614/: Include support to change device address on
  16281. mlx90614 From Alan Carvalho de Assis.
  16282. - apps/examples/fstest: Adapt the existing fstest example for SPIFFS:
  16283. For SPIFFS, add garbage collection and file system integrity IOCTL
  16284. calls. Call statfs() and show state of file system on each loop. Add
  16285. logic to dump logic content of SPIFFS. Ignore EINTR errors while
  16286. reading or writing. Add configuration option to customize stack
  16287. size. Detect when the media is full and stop writing files. Report
  16288. total file size. From Gregory Nutt.
  16289. - apps/examples/tcpblaster: Add an option to use poll() to pace input
  16290. or output. From Gregory Nutt.
  16291. - apps/examples/tcpblaster: Select CONFIG_LIBC_FLOATINGPOINT
  16292. automatically. Units in output are wrong: Not Kbps bus Kb/Sec. From
  16293. Gregory Nutt.
  16294. - apps/examples/udpblaster: Add option to use poll() on output (only).
  16295. From Gregory Nutt.
  16296. * System Utilities: apps/system
  16297. - apps/system/ping and apps/system/ping6: Set optind to zero in the
  16298. error case/. Move all ping preparation work into icmp_ping. Support
  16299. -W <timeout> and -s <size> option. Decouple the output from ping
  16300. logic. From Xiang Xiao.
  16301. - apps/system/ping and pings and apps/netutils/ping: Extract icmp ping
  16302. and icmpv6 ping6 logic from system/ to C-callable library in
  16303. netutils/. From ligd.
  16304. - apps/system/progmem: Remove this utility. It makes illegal direct
  16305. calls into the OS. From Gregory Nutt.
  16306. * Network Utilities: apps/netutils:
  16307. - apps/netutils/netlib and apps/examples/igmp: Adapt to use the
  16308. corrected, semi-standard version of struct ip_msfilter. From Gregory
  16309. Nutt.
  16310. - apps/netutils/chat and apps/examples/chat: 'constify' chat variables
  16311. and parameters From Xiang Xiao.
  16312. * Wireless Utilities: apps/wireless:
  16313. - apps/wireless/ieee802154/i8sak: Properly shuts down event thread.
  16314. From Anthony Merlino.
  16315. - apps/wireless/ieee802154/i8sak: Fixes i8sak name. Accidentally renamed
  16316. to i8ask in recent changes From Anthony Merlino.
  16317. - apps/wireless/ieee802154/i8sak: Adds support for getting/setting
  16318. transmit power. From Anthony Merlino.
  16319. * Graphic Utilities: apps/graphics:
  16320. - apps/graphics/NxWidgets: Move the NxWidgets repository into the apps/
  16321. repository. Remove old apps/NxWidgets directory. Move NxWidgets
  16322. files into apps/graphics/NxWidgets. Integrate configuration/build
  16323. system. Fix file paths in file headers. Remove some duplicate
  16324. tools. Add new NxWidgets Unit Test configuration and build logic.
  16325. From Gregory Nutt.
  16326. - apps/graphics/NxWidgets: Add CNxString string + operator and
  16327. ::format() function. Add CNumericEdit option to include unit name
  16328. after the value. Make CNxWidget useWidgetStyle() public. From
  16329. Petteri Aimonen.
  16330. - apps/graphics/NxWidgets: Add CLabelGrid control for displaying text
  16331. in grid format. From Petteri Aimonen.
  16332. Bugfixes. Only the most critical bugfixes are listed here (see the
  16333. ChangeLog for the complete list of bugfixes and for additional, more
  16334. detailed bugfix information):
  16335. * Core OS:
  16336. - Clock: Remove g_monotonic_basetime and g_clock_monotonic_time since
  16337. we don't need ensure monotonic time start from zero as state here:
  16338. http://pubs.opengroup.org/onlinepubs/009696899/functions/clock_getres.html
  16339. From Xiang Xiao.
  16340. - Clock: Don't call up_timer_gettime in clock_gettime() and
  16341. clock_systimer() to ensure the return value from them consistent with
  16342. clock_systimespec From Xiang Xiao.
  16343. - Clock Initialization: clock_inittime() needs to be done with
  16344. CONFIG_SCHED_TICKLESS and clock_initialize should skip
  16345. clock_inittime() for external RTC case since the RTC isn't ready yet.
  16346. From Xiang Xiao.
  16347. - IOBs: Work around some issues with the IOB throttle semaphore. It
  16348. has some odd behaviors that can cause assertions in sem_post(). Also,
  16349. it seems to get outside of its range occasionally. Need to REVISIT
  16350. this. From Gregory Nutt.
  16351. - IOBs: iob_navail() was returning the number of free IOB chain queue
  16352. entries, not the number of free IOBs. Completely misnamed. From
  16353. Gregory Nutt.
  16354. - PM: Use the start time of state btime to calculate thrcnt; remove the
  16355. loop whose count may be very big after the long idle From ligd.
  16356. - PM Uninitialization: Fix pm_domain_s.stime un-initialize caused time
  16357. error. From ligd.
  16358. - sched_kfree() and sched_ufree(): This patch prevent heap corruption
  16359. in a corner case where memory is freed while switching contexts. This
  16360. change forces all de-allocations via sched_kfree() and sched_ufree()
  16361. to be delayed. Eliminating the immediate de-allocation prevents the
  16362. problem with the the re-entrant semaphore because the deallocation
  16363. always occurs on the worker thread, never on the suspended task. From
  16364. EunBong Song.
  16365. - sigsuspend(): sigsuspend() shouldn't eat the pending signal but
  16366. dispatch all instead From Xiang Xiao.
  16367. - task_restart(): Was restarting tasks with all signals set in the
  16368. sigprocmask set. Should have restarted with the sigprocmask cleared.
  16369. Noted by Jeongchan Kim From Gregory Nutt.
  16370. - unsetenv(): Fix and error in unsetenv() when un-setting the last of
  16371. the environment variables. From Gregory Nutt.
  16372. - waitpid(): Remove a bad error check. From Gregory Nutt.
  16373. * File System/Block and MTD Drivers:
  16374. - FAT: Fix file data corruption in fat_truncate(). From Petteri Aimonen.
  16375. - Partitions: Try MTDIOC_GEOMETRY IOCTL before bops's geometry.
  16376. From Xiang Xiao.
  16377. - MTD Progmem: Change up_progmem_npages() to up_progmem_neraseblocks().
  16378. page is a unit for read/write operation. eraseblock is a unit for
  16379. erase operation. up_progmem_npages() is a little bit confusing
  16380. because it returns number of erase blocks in flash memory. This patch
  16381. changes up_progmem_npages to up_progmem_neraseblocks.
  16382. up_progmem_eraseblock erase a block. so it's better to return the
  16383. erase block size than page size. From EunBong Song.
  16384. - R/W Buffer: Fix a lock issue From Xiang Xiao.
  16385. - SmartFS: Current sector should have a space for next entry size. If
  16386. not, we should move to next sector. From EunBong Song.
  16387. * Networking/Network Drivers:
  16388. - 6LoWPAN: Fixes bug in uncompress_addr handling of odd postfix. This
  16389. affected multicast compress/uncompress since it's the only logic that
  16390. used an odd postfix. The odd byte needs to be handled first, not
  16391. last. From Anthony Merlino.
  16392. - ARP and ICMPv6: Don't call d_txavail directly since it may point to
  16393. NULL From Xiang Xiao.
  16394. - ICMPv6: icmpv6_neighbor() shouldn't use the out of scope
  16395. variable(dripaddr) From Xiang Xiao.
  16396. - IPv6 input: Fixes logic in ipv6_input to handle more than ff02::/16
  16397. multicast addresses. Don't forward mcast packets if scope is not
  16398. appropriate From Anthony Merlino.
  16399. - IPv6 Input: Fix a logic error when the received IPv6 srcaddr is a
  16400. multicast address. Exiting logic only supported UDP multicast. But
  16401. MLD and certain other ICMPv6 packets also require acceptance of
  16402. multicast packets. From Gregory Nutt.
  16403. - TCP: In TCP recv window calculations, in order to receive data we
  16404. must not only have IOBs available, but we must also have at least one
  16405. IOB chain qentry available. Otherwise, we will advertise that we an
  16406. buffer a lot of data when, in fact, we cannot. This is an
  16407. experimental fix to a performance problem noted by Masayuki Ishikawa.
  16408. From Gregory Nutt.
  16409. - TCP: Fix compiler error and warning when CONFIG_NET_SENDFILE=y From
  16410. Xiang Xiao.
  16411. - TCP Input: Fix recovery when ackseq > unackseq. The comment near
  16412. this line says "reset the number of outstanding, unacknowledged
  16413. bytes". However, the code actually resets the whole TCP connection.
  16414. It was changed to the current form in commit f034d84ea1f with no
  16415. explanation of the intent. Recover the line to what it was before that
  16416. commit. From Sakari Kapanen.
  16417. - TCP Write Buffering: Fix buffer release handling on failed buffer
  16418. allocation. Attempt to release write buffer on failed TCP write I/O
  16419. buffer alloc and tryalloc failed to wrb->wb_iob assertion. From Harri
  16420. Luhtala
  16421. - TCP/UDP: In the POLLOUT poll logic, request an immediate Tx poll from
  16422. the network device bound to the socket. From Gregory Nutt.
  16423. - UDP: On a failure to find the destination device, fallback to
  16424. netdev_default device if the device is not found, rather than
  16425. arbitrary using the device at the head of the list of devices. From
  16426. Xiang Xiao.
  16427. - USRSOCK: Revert previous commit to re-allow combination of usrsock
  16428. and NuttX TCP/IP stack. For example, in case device has Ethernet and
  16429. mobile connectivity and NuttX TCP/IP stack is used when configured to
  16430. use Ethernet connection and usrsock when configured to use modem
  16431. (modem TCP/IP stack through usrsock). From Jussi Kivilinna.
  16432. - USRSOCK accept(): Mark newconn ready before issue accept request to
  16433. avoid the case that the request is discarded due to the socket being
  16434. in the invalid state From Xiang Xiao.
  16435. * Wireless/Wireless Drivers:
  16436. - Broadcom 802.11 Driver: There were two functions that have a address
  16437. issue. In bcmf_read_sbreg() and bcmf_write_sbreg():
  16438. SBSDIO_SB_OFT_ADDR_MASK should be used before map address space.
  16439. Noted by Shao Li in Bitbucket issue #126. From Gregory Nutt.
  16440. - Broadcom 802.11 Driver: Remove incorrect OR condition. Always true.
  16441. Noted by Shao Li in Issue 127. From Gregory Nutt.
  16442. - NRF24L01: Fix compilation errors. From Mateusz Szafoni.
  16443. * Other Common Drivers:
  16444. - ALARM Upper Half: Fix alarm ISR error when no CONFIG_SCHED_TICKLESS
  16445. drivers/timers/arch_alarm.c: Use uint64_t to avoid alarm 32-bit
  16446. overflow. From ligd.
  16447. - MAX11802: Fix compilation errors and allow setting PULL and SAMPLE
  16448. registers. From Petteri Aimonen.
  16449. - S25FL1: During a MTDIOC_GEOMETRY ioctl call, the driver was
  16450. incorrectly reporting the blocksize to be the same as the erasesize.
  16451. The blocksize should be 256 (the page size). This patch fixes that,
  16452. and now the SmartFS configuration is working. From Ken Pettit.
  16453. - SYSLOG: nx_syslog's return value should include the timestamp length
  16454. From Xiang Xiao.
  16455. - SYSLOG: syslog_putc() calls sc_force in idle task even if interrupt
  16456. buffer enabled. The following cases may hang randomly in the bring up
  16457. phase: (1) boot up process and (2) suspend/resume process. Either
  16458. case runs in the idle task context, so it's difficult to debug the
  16459. hang issue if these output go through the interrupt buffer. From
  16460. Xiang Xiao.
  16461. - SYSLOG: Ensure interrupt log doesn't interlace in normal log. Don't
  16462. call syslog_putc in syslog_default_write because syslog_putc will try
  16463. to empty the interrupt buffer every time. From Xiang Xiao.
  16464. - UART 16550: Fix UART flow control issue. UART_MCR_RTS need be high
  16465. even UART_MCR_AFCE is enabled From zhangyuan7.
  16466. - USB RNDIS Device: Fix buffer overrun check in rndis.c. The rndis
  16467. driver has been working since 13 Nov 2017. However, I finally found
  16468. that it depends on network and buffer configurations. If a receiving
  16469. TCP packet is divided into smaller ones based on USB max packet size,
  16470. this condition check works correctly. From Masayuki Ishikawa.
  16471. * ARMv7-A:
  16472. - ARMv7-A: Replicate the same fix was previously committed for the
  16473. ARMv7-R. From Gregory Nutt.
  16474. * ARMv7-R:
  16475. - ARMv7-R: Fix error in cp15_flash_dcache. Change mcrne to mcr for
  16476. unconditional dcache. From EunBong Song.
  16477. * ARMv7-M:
  16478. - ARMv7-M Interrupts: Correct all ARMv7-M architectures. Interrupts
  16479. were not be disabled correctly on power up. Writing zero to the NVIC
  16480. SET-ENABLE registers has no effect. In order to disable interrupts,
  16481. it is necessary to write all ones to the NVIC CLEAR-ENABLE register.
  16482. Noted by David Sidrane. From Gregory Nutt.
  16483. * Broadcom BCM2708 Drivers:
  16484. - BCM2708 Serial: Juha Niskanen's fix related to STM32
  16485. CONFIG_SERIAL_OFLOWCONTROL also applies to cloned logic in BCM2708.
  16486. From Gregory Nutt.
  16487. * Intel x86:
  16488. - Qemu i486: Correct .bss, IDLE stack, heap organization. From Gregory
  16489. Nutt.
  16490. * NXP/Freescale LPC43xx Drivers:
  16491. - LPC43 Ethernet: Fix Ethernet TX_EN pin definitions. TX_EN on LPC43xx
  16492. can be routed via P0.1 and PC.4 in both MII and RMII mode. Before,
  16493. P0.1 was hard-coded for MII and PC.4 was hard-coded for RMII. Also,
  16494. the definitions used inconsistent naming (TXEN vs. TX_EN). From Jakob
  16495. Haufe.
  16496. - LPC43 Serial: Fix copy-paste error: g_usart1port->g_uart1port. From
  16497. Dave Marples.
  16498. - LPC43 SDMMC: Fix the LPC43 family SDMMC card access: Clocks were
  16499. wrongly configured, way too fast because there is no primary divider
  16500. on LPC4330, the LPC43_SDMMC_DELAY register was not being set, the
  16501. LPC43_SDMMC_BLKSIZ and LPC43_SDMMC_BYTECNT registers had the wrong
  16502. values. From Dave Marples.
  16503. - LPC43 SDMMC: Corrected a problem in lpc43_dmasendsetup(). There was
  16504. no linked DMA descriptor code on the send side. The end result was
  16505. stalls while sending multiple sectors. This commit adds that in and
  16506. the send code is working much better. From Dave Marples.
  16507. - LPC43 SDMMC: With these changes the SDMMC card for LPC43 is now
  16508. working properly: Timing was dependent on CPU speed rather than
  16509. absolute time, end of transfer handling was a bit mixed up. It is
  16510. possible for data to still be in the FIFO (i.e. not have reached the
  16511. card) when a next write is requested, so we need to wait for that to
  16512. complete. Interrupt Status could be carried over from one transfer
  16513. episode to the next, corrupting progress. Multi-descriptor DMA
  16514. writing simply wasn't implemented. From Dave Marples.
  16515. * NXP/Freescale LPC43xx Boards:
  16516. - Bambino-200E: Correct calculation of SDMMC clock configuration. The
  16517. LPC43 has no SDMMC source clock divider. Error noted by Dave
  16518. Marples. From Gregory Nutt.
  16519. * NXP/Freescale Kinetis:
  16520. - Kinetis: Remove all attempts to reprioritize interrupts. From Gregory
  16521. Nutt.
  16522. * NXP/Freescale Kinetis Drivers:
  16523. - Kinetis I2C: I2C On failed reset re-initialization I2C and clocking.
  16524. If a reset fails, we still must reinitializes the I2C block so that
  16525. subsequent transfers will not cause a hard-fault due to the clock
  16526. being off. If that transfer fails it can try to reset again. From
  16527. David Sidrane.
  16528. - Kinetis Serial: Juha Niskanen's fix related to STM32
  16529. CONFIG_SERIAL_OFLOWCONTROL also applies to cloned logic in Kinetis.
  16530. From Gregory Nutt.
  16531. * NXP i.MXRT Drivers:
  16532. - i.MXRT Ethernet: The board would not come up if I ran NuttX from cold.
  16533. I dumped the PHY registers to see what the differences were and the
  16534. PHY was coming up in NANDTree mode. This is a mode for testing
  16535. connectivity between the PHY and the MAC. Switching this mode off in
  16536. the PHY registers has fixed the problem. From Dave Marples.
  16537. - i.MXRT Ethernet: Fix a race condition in setting up the Ethernet Tx
  16538. transfer. From Dave Marples.
  16539. - i.MXRT Ethernet: Corrections for the i.MXRT Ethernet: (1) Now the
  16540. Ethernet is completely re-initialized when an error occurs by means of
  16541. taking the interface down and back up but the PHY is _not_
  16542. renegotiated for that case because that is very time consuming and an
  16543. error in the Ethernet is no reflection on the state of the PHY
  16544. anyway. (2) Explicitly sets the expected PHY address to zero (this
  16545. could be moved into the config rather than searching for it which
  16546. takes ages, and it's zero anyway for this board (that's the broadcast
  16547. address, and anything that cannot respond on that has multiple PHYs,
  16548. so that would be a new board). (3) Allows for the renegotiation of
  16549. the PHY to be optional when a reset is needed. If a non-renegotiated
  16550. reset doesn't result in good comms to the PHY then it'll automatically
  16551. be escalated to a renegotiated one. (4) Only performs a reset for
  16552. errors that need it (the CRITICAL_ERROR define). The list of errors
  16553. that need reset are somewhat arbitrarily chosen based on my prejudices
  16554. and might need to be revisited, but certainly the jabber errors don't
  16555. need reset, the partial packet is thrown away by the layer above
  16556. anyway. (5) Re-loads the multicast table on reset. (6) Adds a bit
  16557. more logging into the imxrt Ethernet module. From Dave Marples.
  16558. - i.MXRT LPI2C: Fixes 2 bugs in the for IMXRT1050: (1) I2C time out and
  16559. did not send STOP condition when sending single byte, (2) I2C could
  16560. not receive bytes after repeated start. From Ivan Ucherdzhiev.
  16561. - i.MXRT LPSRTC: SVNC LPCR register bits 0 & 1 are NOT reserved and
  16562. are, in fact, needed to enabled the SRTC. Now the SRTC is working.
  16563. From Ivan Ucherdzhiev.
  16564. - LPC54 SDMMC: Add support for and SDMMC errata. It appears that now I
  16565. can read the SD card successfully, but I get CRC errors when writing
  16566. to the card. From Gregory Nutt.
  16567. - LPC54 SDMMC: Ported Dave Marples fixes LPC43 SDMMC to the LPC54.
  16568. From Gregory Nutt.
  16569. - i.MXRT WDOG: Typos in bit definitions, wdog registers are 16 bits,
  16570. wdog update has to be within 255 clocks of unlock, define board
  16571. clocking based on divisor and muxes. From David Sidrane.
  16572. * NXP i.MXRT:
  16573. - i.MXRT: clockconfig bug fix: Fixed logic that was not clearing bits
  16574. as ~ was missing in &= mask operations. Use values from the board.h
  16575. file so set the Mux that selects the clock sources. Use board
  16576. defined PODF values to select clock. Only configure USDHC2 clocks
  16577. when board defines clocks. From David Sidrane.
  16578. * NXP i.MXRT Boards:
  16579. - IMXRT1050-EVK: Previous committed implemented SPI-based MMC/SD card
  16580. support conditioned on CONFIG_MMCSD. This interferes with the
  16581. implementation of MMC/SD card support using the SDIO-based
  16582. peripheral. This commit renames that atypical support to *mmcsd_spi*
  16583. and conditions using the SPI-based support on CONFIG_MMCSD_SPI which
  16584. will then not interfere with the MMC/SD support that can be
  16585. conditioned on CONFIG_MMCSD_SDIO. From Gregory Nutt.
  16586. * On Semi LC823450 Boards:
  16587. - LC823450: Fix up_allocate_heap() in lc823450_allocateheap2.c. For
  16588. lc823450, heap area in flat build mode must start just after
  16589. _eronly. Because bss/data area is allocated in lower address than
  16590. text area in SRAM. See ld.scripts for details. Also, this change
  16591. removes unused up_allocateheap.c From Masayuki Ishikawa.
  16592. * Silicon Labs EFM32 Drivers:
  16593. - EFM32 Serial: Juha Niskanen's fix related to STM32
  16594. CONFIG_SERIAL_OFLOWCONTROL also applies to cloned logic in EFM32.
  16595. From Gregory Nutt.
  16596. - EFM32 USB Device: The epin_configure() function used the same eptype
  16597. as the TxFIFO number for all endpoints. This should probably be the
  16598. physical EP number, not the EP type. Suggested by Key Two. From
  16599. Gregory Nutt.
  16600. * STMicro STM32 Drivers:
  16601. - STM32* SPI: Don't rely on SPI_CR1_SPE to determine if peripheral has
  16602. been initialized. This change is needed specifically for the case
  16603. where a boot loader sets the SPE bit before starting NuttX. In that
  16604. case, the test in the SPI driver is wrong. This change fixes that by
  16605. assuring that NuttX has booted and initialized at least once (whether
  16606. or not SPE is set) before the driver starts refusing to initialize.
  16607. From Anthony Merlino.
  16608. - STM32 F0, F7, H7, L4 Serial: Fix use of CONFIG_SERIAL_IFLOWCONTROL
  16609. where CONFIG_SERIAL_OFLOWCONTROL was intended. From Juha Niskanen.
  16610. - STM32 TIM: Don't use hard-coded UIF interrupt in some functions.
  16611. From raiden00pl.
  16612. - STM32 (FS/HS), STM32F7, and STM32L4 OTGFS/HS Device: The
  16613. epin_configure() function used the same eptype as the TxFIFO number
  16614. for all endpoints. This should probably be the physical EP number,
  16615. not the EP type. Suggested by Key Two. From Gregory Nutt.
  16616. - STM32 F2: Fixes Kconfig options to include all STM32F20XX processors,
  16617. not just STM32F207. Also removes redundant STM32_STM32F429 depends
  16618. from Kconfig. STM32F4XXX already does this. From Anthony Merlino.
  16619. - STM32 F4 DAC: STM32F407VG has only one DAC. NDAC=2 causes
  16620. compilation error when trying to use e.g. STM32_DAC1_CR macro. From
  16621. Petteri Aimonen.
  16622. - STM32 F7 Serial: Force invalidation of data cache after DMA re-enable
  16623. when returning from low-power mode From Juha Niskanen.
  16624. * STMicro STM32 Boards:
  16625. - B-L475E-IOT01A: Correct timer source clock frequencies. From Freemans
  16626. Goden.
  16627. - Nucleo-L432KC: Fix SPI pin definitions in board.h. From Daniel P.
  16628. Carvalho.
  16629. * MIPS32:
  16630. - CP0 Definitions: Fix some copy-paste errors that cause malformed
  16631. comments and syntax errors when certain CP0 CONFIG1 bits are
  16632. referenced. Note in Issue 123 by Anonymous. From Gregory Nutt.
  16633. - microMIPS: Reported by Anonymous in Bitbucket Issue #129: When MIPS
  16634. port is built for microMIPS and then loaded as an application, the
  16635. __start entry point is entered in microMIPS mode, but the CPU core
  16636. initialization code there misses to set the config3ISAOnExc bit to 1.
  16637. Subsequently, exceptions are entered in MIPS32 mode, but the code base
  16638. was built for microMIPS.
  16639. * Microchip PIC32MZ:
  16640. - PIC32MZ Startup: In pic32mz-head.S, initialize the global pointer in
  16641. all shadow sets. From Ouss4.
  16642. * Microchip PIC32MZ Drivers:
  16643. - PIC32MZ Serial: Fix a typo in assignment of TTYS0 to UART6 From Ouss4.
  16644. * Simulation:
  16645. - SIM Network Driver: Fix error 'invalid operands to binary &' From
  16646. Xiang Xiao.
  16647. * C Library/Header Files:
  16648. - Fix typographical error in endian.h and resource.h From anchao.
  16649. - include/net/if.h: Adds extern "C" guard in include/net/if.h From
  16650. Anthony Merlino.
  16651. - include/netinet/in.h: Per OpenGroup.org, type of sin_port in struct
  16652. sockaddr_in must be in_port_t vs uint16_t. NOTE: in_port_t is
  16653. typdef'ed as uint16_t anyway. From Gregory Nutt.
  16654. - include/nuttx: Fix definitions used to access OS functions within the
  16655. libraries. In the FLAT build, we must always set the errno and/or
  16656. create cancellation points because the same library functions are used
  16657. within the OS as are used by applications. This could cause issues
  16658. for the OS but corrects some problems at the user interface. Noted by
  16659. Federico Braghiroli in Bitbucket issue 121. From Gregory Nutt.
  16660. - include/nuttx/clock.h: Fix uptime wrong if DEBUG_FEATURES and
  16661. SCHED_TICKLESS enabled. From Xiang Xiao.
  16662. - include/nuttx/fs/fs.h: Fix some backward parameters in a new macro
  16663. definition. From Gregory Nutt.
  16664. - include/nuttx/fs/fs.h: Register_mtddriver should depend on CONFIG_MTD
  16665. not CONFIG_MTD_PARTITION From Xiang Xiao.
  16666. - include/sys/socket.h: Renumber the socket types. They must begin at
  16667. 1, not zero. Socket type zero has a special meaning for some
  16668. interfaces. For example, getaddrinfo() uses a socket type of zero to
  16669. many any type of socket. The is no standard name for the
  16670. any-type-socket, but macOS uses SOCK_UNSPEC. NuttX will do the same.
  16671. Issue noted by Anthony Merlino. From Gregory Nutt.
  16672. - libs/libc: Correct some errors in psignal() and stpncpy(). From
  16673. Lokesh B V.
  16674. - libs/libc/math: Add variable convergence in log() and logf() to avoid
  16675. hangs caused by failure to converge for very specific input values.
  16676. Also includes a small change to log() and logf() that improves
  16677. accuracy and convergence time. From Rajan Gill.
  16678. - libs/libc/stdio: Fix conversion for format specifiers in sscanf() that
  16679. appear right after a floating point format specifier. When
  16680. performing a floating point conversion the parsing code could consume
  16681. more than required characters from the input buffer. This made
  16682. impossible to convert input of form "1.1K" using format "%f%c". Fix
  16683. the issue by advancing the input buffer with the actual characters
  16684. converted as a float point number. From Mihai Serban.
  16685. - libs/libc/stdio: Remove CONFIG_NOPRINTF_FIELDWIDTH. That option
  16686. does, indeed, make the printf family of functions much smaller. But
  16687. it also adds a lot of complexity and makes the functions
  16688. non-standard. Removing this might break some of the tinier platforms
  16689. but it is the best thing to do for long term maintenance for for
  16690. OpenGroup.org compliance.
  16691. - libs/libc/stdio: Update to vsprintf(). This resolves the integer
  16692. field width problem if Issue 35 for the cases of integer, long and
  16693. long long integer types. The output now matches the output form
  16694. glibc. From Gregory Nutt.
  16695. - libs/libc/string: Correct the return pointer value from stpncpy() for
  16696. the case where the NUL terminator is transferred. From Gregory Nutt.
  16697. - libs/libc/string: Fix strrchr() so that it considers null terminator
  16698. as part of string. From Petteri Aimonen.
  16699. - libs/libc/wqueue: Eliminate a race condition noted by Xiang Xiao.
  16700. Use sigprocmask() so that we do not lose a signal. From Gregory Nutt.
  16701. - libs/libnx/nxfonts: Fix kerning of 'I' in Sans17x22 font. From
  16702. Petteri Aimonen.
  16703. - libs/libnx/nxfonts: In nxfonts_getfont(), avoid unnecessary warnings
  16704. for other whitespace chars also. From Petteri Aimonen.
  16705. - libs/libnx/mxmu: NXMU now re-validates window pointer for mouse
  16706. events. NXMU caches the previous window pointer so that further mouse
  16707. events can be sent to the same window. However, if the window is
  16708. destroyed while mouse button is held down, the pointer may become
  16709. invalid and cause a crash. This patch revalidates the pointer before
  16710. using it. From Petteri Aimonen.
  16711. - libs/libnx/nxtk: nxtk_bitmapwindow: Fix warning message when bitmap is
  16712. fully off-screen. From Petteri Aimonen.
  16713. * Build System:
  16714. - Fix issue with libcxx build. This was changed multiple times, but
  16715. should be fixed now. From Anthony Merlino.
  16716. - configs/Makefile and tools/Config.mk: Move single file copy to the
  16717. new function COPYFILE. This fixes the Windows native build case when
  16718. there is no cp or cp does not recognize Windows paths. From Anatol
  16719. Ivanov.
  16720. - tools/Config.mk and tools/Makefile.win: Force use 'cmd' for shell
  16721. with windows native build From Anatol Ivanov.
  16722. - tools/Directories.mk: Correct the path to the installed libcxx
  16723. directory. From Gregory Nutt.
  16724. - tools/Makefile.win/unix: Staging directory (and its libraries) should
  16725. be removed on 'make clean' (issue noted by Dave Marples). From
  16726. Gregory Nutt.
  16727. - apps/Directory.mk: If the current directory contains a Kconfig file
  16728. and MENUDESC is not defined, then Directory.mk must not trash the
  16729. Kconfig in the current directory. From Gregory Nutt.
  16730. - apps/Makefile: Fix Windows native build patch extension. From Anatol
  16731. Ivanov.
  16732. * Other Tools:
  16733. - tools/Config.mk: Fix an error in RWILDCARD implementation From
  16734. Anthony Merlino.
  16735. - tools/configure.c: Add missing '\n' in printf statement
  16736. - tools/configure.c: Add missed -g option to getopt() string. From
  16737. Anatol Ivanov.
  16738. - tools/configure.c and tools/configure.sh: Fix Windows native
  16739. pre-build kconfig-conf incompatibility. From Anatol Ivanov.
  16740. - tools/csvparser.h: Extend MAX_PARMSIZE to 256. Fixes this issue:
  16741. 70: Parameter too long: ... From Xiang Xiao.
  16742. - tools/link.bat: Fix .fakelink creation. From Anatol Ivanov.
  16743. - tools/mkdeps.c: Fix '\0' missing with MinGW. From Anatol Ivanov.
  16744. * NSH Library: apps/nshlib:
  16745. - apps/nshlib: Correct maximum number of arguments that can be provided
  16746. to the mksmartfs command. From Eunbong Song.
  16747. - apps/nshlib: Add fflush to nsh_consolewrite(). This resolves this
  16748. problem: 'cat /dev/ttyCP &' followed by 'echo ls >/dev/ttyCP'. In
  16749. that case we can't get the 'ls' result immediately, because 'cat' cmd
  16750. uses nsh_consolewrite() and that uses fwrite with no fflush. We can
  16751. get the 'ls' result after type '\n', because nsh will fflush output
  16752. when get '\n'. From ligd.
  16753. - apps/nshlib: nsh_catfile() should not append '\n' if the last char in
  16754. file is already '\n' From Xiang Xiao.
  16755. - apps/nshlib: Fix warning g_oldpwd defined but not used
  16756. [-Wunused-const-variable] in nsh_envcmds.c. From Xiang Xiao.
  16757. * Examples/Tests: apps/examples:
  16758. - apps/examples/adc/Kconfig: CONFIG_BOARDCTL_ADCTEST does not exist
  16759. anymore and should removed as a dependency. From Eunbong Song.
  16760. - apps/examples/webserver/Kconfig: The webserver "app" allows for DHCP
  16761. client to be enabled. However, the Kconfig infrastructure does not
  16762. contain EXAMPLES_WEBSERVER_DHCPC config. Based on patch from
  16763. "Anonymous" attached to Bitbucket Issue #130. From Gregory Nutt.
  16764. * System Utilities: apps/system:
  16765. - apps/system/hexed: Fix memory leak From zhuyanlin.
  16766. - apps/system/i2c: Fix i2c_msg freq initialization problem. Typo
  16767. prevented I2C frequency initialization in a struct i2c_msg. From
  16768. dongjiuzhu.
  16769. - apps/system/system: Fix warning when passing argument 6 of
  16770. 'task_spawn' from incompatible pointer type
  16771. [-Wincompatible-pointer-types] From Xiang Xiao.
  16772. * Network Utilities: apps/netutils:
  16773. - Correct some network-related configuration variable names. All *_MTU
  16774. defines were changes to *_PKTSIZE gut that was not reflected in
  16775. apps/ From Gregory Nutt.
  16776. - apps/netutils/netlib/netlib_parsehttpurl.c: Correct handling of long
  16777. URLs as noted in Bitbucket issue #119 (in the nuttx/ repository, not
  16778. the apps/ repository). From Gregory Nutt.
  16779. - apps/netutils/codecs: "dst" overflow protection when base64 string
  16780. ends with "=" From Aleksandr Vyhovanec.
  16781. - apps/include/netutils/ipmsfilter.h: Eliminate error generated by bad
  16782. pre-processor logic. From Gregory Nutt.
  16783. * GPS Utilities: apps/graphics:
  16784. - apps/graphics/NxWidgets: Fix garbage returned when
  16785. CCycleButton::getValue() is called after removeAllOptions().
  16786. CScrollingPanel should not draw outside the widget area. From
  16787. Petteri Aimonen.
  16788. NuttX-7.28 Release Notes
  16789. ------------------------
  16790. The 128th release of NuttX, Version 7.28, was made on January 19, 2019,
  16791. and is available for download from the Bitbucket.org website. Note
  16792. that release consists of two tarballs: nuttx-7.28.tar.gz and
  16793. apps-7.28.tar.gz. These are available from:
  16794. https://bitbucket.org/nuttx/nuttx/downloads
  16795. https://bitbucket.org/nuttx/apps/downloads
  16796. Both may be needed (see the top-level nuttx/README.txt file for build
  16797. information).
  16798. Additional new features and extended functionality:
  16799. * Core OS:
  16800. - Critical Section Monitor: Adds data collection logic in support of
  16801. pre-task monitoring critical sections and pre-emption state. From Gregory
  16802. Nutt
  16803. - Critical Section Monitor: Add support for global pre-emption and
  16804. global critical sections to monitor as suggested by Xiang Xaio. From
  16805. Gregory Nutt
  16806. - Interrupt Time: Measurement of interrupt handler duration used to
  16807. be available only in Tickless mode since it used the high resolution
  16808. Tickless timer to measure interrupt time. This change adds
  16809. CONFIG_SCHED_IRQMONITOR_GETTIME which, if enabled, will force the
  16810. interrupt duration calculation to use the same high-resolution,
  16811. platform-specific timer as is used with the Critical Section Monitor.
  16812. This leads to two improvements: (1) You can now measure interrupt
  16813. duration in non-Tickless mode, and (2) in either mode, the interrupt
  16814. duration and the critical section measures will use the same
  16815. high-resolution timer and should, therefore, never be any discrepancy
  16816. due to different clock sources. From Gregory Nutt
  16817. - Context Switching Protection: Add debug assertions before each call
  16818. to up_block_task() to assure that there is no attempt to block an
  16819. IDLE task. From Dave Marples
  16820. - init Task: Allow the init task priority to be configurable. From
  16821. David Sidrane
  16822. - pthreads: Implement pthread_key_delete(). This involves some minor
  16823. changes to the group data structure. From Gregory Nutt
  16824. * File Systems/Block and MTD Drivers
  16825. - ProcFS: Extended the process ID ProcFS output to show per-thread
  16826. maximum time for pre-emption disabled and maximum time within a
  16827. critical section. From Gregory Nutt
  16828. - NXFFS: Pass unrecognized IOCTL commands to the contained MTD
  16829. driver. From Daniel P. Carvalho
  16830. - LittleFS: Adds an initial port the ARM mbed littlefs to NuttX. This does
  16831. not include FLASH formatting utilities. Depends on CONFIG_MTD_BYTE_WRITE.
  16832. From lihaichen
  16833. - AT25 MTD Driver: Added support for AT25DF081A serial flash chip.
  16834. From Marc Rosen
  16835. - MTD Configdata Device: Extends the MTD configdata device with the
  16836. following features / additions:
  16837. 1. Configurable option to use named config items instead of enumerated
  16838. ID/Instance numbers.
  16839. 2. Ability to iterate through the existing configdata items in the
  16840. /dev/config device.
  16841. 3. Ability to "unset" a configdata item.
  16842. 4. Ability to perform "flash_eraseall" on the /dev/config device.
  16843. From Ken Pettit
  16844. * Networking/Network Drivers:
  16845. - Telnet Driver: Add NAWS and poll interface to telnet for screen size
  16846. negotiation used with termcurses. From Ken Pettit
  16847. * Wireless/Wireless Drivers:
  16848. - BLE HIC Core: Add second RX work function From Lwazi Dube
  16849. - BLE IOCTL Commands: Add SIOCBTCONNECT and SIOCBTDISCONNECT ioctl
  16850. commands From Lwazi Dube
  16851. - CC2564: Add cc2564 HCI UART driver. From Lwazi Dube
  16852. * Graphics/Display Drivers:
  16853. - Sitronix ST7032i: Add support to Alphanumeric Sitronix ST7032i
  16854. display From Alan Carvalho de Assis
  16855. - NXP TDA19988: This commit brings in a complete, but untested,
  16856. implementation of a driver for the TI TDA19988 HDMI Encoder. This encoder
  16857. is used on the Beaglebone Black board. Since this driver is untested, it
  16858. requires CONFIG_EXPERIMENTAL in the configuration. From Gregory Nutt
  16859. * Crypto:
  16860. - crypto/aes.c: This change provides an improved AES cipher API in
  16861. addition to the existing routines. The reasons for this new API are:
  16862. 1) better performance, giving the possibility to avoid re-setting-up
  16863. the key for each AES block when the same key is used multiple times.
  16864. This is important for the current single user of AES, which is
  16865. related to storage and FTL. And 2) suitable for simultaneous use of
  16866. multiple AES keys, which will be required by the upcoming crypto
  16867. framework. It retains compatibility with the previous API, so there
  16868. is no need to change anything else right now. From Sebastien Lorquet
  16869. * Other Common Device Drivers:
  16870. - MMCSD SDIO: The mmcsd_sdio driver makes calls for dcache
  16871. invalidation through the chip specific architecture function
  16872. SDIO_DMARECVSETUP(). I changed the arch/arm/stm32f7 chips to use
  16873. arch_invalidate_dcache_by_addr() instead of arch_invalidate_dcache().
  16874. This commit includes additional changes to mmcsd_sdio.c. I
  16875. created SDIO_DMADELYDINVLDT() (DMA delayed invalidate) to
  16876. invalidate store-into mode dcaches after the DMA transfer. I
  16877. have been using SDIO_DMADELYDINVLDT() for several weeks now and
  16878. it has fixed the problems that I previously reported regarding
  16879. non-cache aligned buffer invalidation errors (for my store-through
  16880. dcache). However, it does not permit use of unaligned DMA buffers
  16881. for store-into mode dcaches.
  16882. SDIO_DMADELYDINVLDT() is a NoOp unless the chip specific Kconfig
  16883. file selects CONFIG_ARCH_HAVE_SDIO_DELAYED_INVLDT. I have modified
  16884. all the stm32f7 chips to select it. From Bob Feretich
  16885. - SPI Lower Half Interface: Extend the HW features supported by SPI.
  16886. It now supports a deferred DMA trigger hardware configuration. From
  16887. Dave Marples
  16888. - DS28E17 1-Wire Driver: Optimize I2C write followed by read to same
  16889. address. From Juha Niskanen
  16890. - LMP92001: Add support for the TI LMP92001 Multi-channle DAC/ADC
  16891. device. From Abdelatif Guettouche.
  16892. - EEPROM Character Driver: Add support to Microchip AT24CM02 From
  16893. Alan Carvalho de Assis
  16894. - Microchip MCP73871: Add support to Microchip MPC73871 Battery Charger.
  16895. From Alan Carvalho de Assis
  16896. - MCP7941x: Add support for the Microchip MCP741x external RTC. From Ouss4
  16897. - Sensirion SCD30: Driver for Sensirion SCD30 CO2 sensor. From Jussi
  16898. Kivilinna
  16899. - Sensirion SGP30: Driver for Sensirion SCD30 gas sensor. From Jussi
  16900. Kivilinna
  16901. - Sensirion SPS30: Driver for Sensirion SCD30 particulate matter sensor.
  16902. From Jussi Kivilinna
  16903. - USB CDC/ACM Device: When implemented usb cdc on nrf52840, I found
  16904. some issues with cdc driver:
  16905. 1. Lost data when receiving buffer is full;
  16906. 2. Low-water mask implement issue;
  16907. 3. Re-flush cdc buffer when enabling
  16908. 4. Serial dma is conflict with cdc , modify the serial.h
  16909. From Levin Li
  16910. * MIPS32:
  16911. - Configuration System: Allow Penguino for windows for the Windows
  16912. Ubuntu platform as well.
  16913. * Maxim Integrated MAX326xx
  16914. - MAX32660: Support for the MAX32660 was added (along with partial
  16915. support for other members of the MAX326xx family). The initial port
  16916. includes Clock configuration, timer, GPIO pin configuration, ICC,
  16917. and UART. Additional untested drivers are complete and ready for
  16918. testing: DMA, GPIO interrupts, SPI0 Master, TC, WDT. The following
  16919. drivers are not yet implemented: I2C and I2S.
  16920. * Maxim Integrated MAX326xx boards
  16921. - MAX32550-EVSYS: Basic support for the Maxim Integrated MAC3X660
  16922. EVSYS is included. A basic NSH configuration is available and is
  16923. fully functional. Includes unverified support for an SPI0-based
  16924. SD card.
  16925. * Microchip/Atmel SAMD21/L21 Drivers:
  16926. - SAMD21/L21: Adds a complete ADC header file for SAMD21 and a partially
  16927. complete ADC header file for the SAML21. From Alexander Vasiliev
  16928. - SAMD21/L21: Export sam_i2c_master_initialize(int bus) to be used by
  16929. board config. From Alan Carvalho de Assis
  16930. * Microchip PIC32MZ Drivers:
  16931. - PIC32MZ I2C: Add support for the I2C bus. From Ouss4
  16932. * ARMv7-A
  16933. - ARMv7-A MMU: Use TLBIMVA vs TLBIMVAAIS to invalidate the Cortex-A8
  16934. cache. From Petro Karashchenko
  16935. * ARMv7-M
  16936. - Cortex-M7 Cache: This commit adds a new function
  16937. arch_invalidate_dcache_by_addr(). It takes the same parameters as
  16938. arch_invalidate_dcache(), but performs invalidation of only the lines
  16939. in cache that need to be invalidated. This new function could be
  16940. used as a a direct replacement for arch_invalidate_dcache(). From
  16941. Bob Feretich
  16942. - ARMv7-M: In the current implementation we only use very high
  16943. priority interrupts (levels 0, 0x10 and 0x20 in CORTEX-M speak) but
  16944. that means there are loads of lower priority ones that are
  16945. effectively unused. I have *not* changed the semantics of these
  16946. levels but have 'shifted' them to be based around the midpoint of the
  16947. available interrupts (0x80) rather than at the top end....that allows
  16948. for interrupts to be defined above (or, indeed, below) them as needed
  16949. by the application. This should have no functional effect on
  16950. existing code but adds in a clean capability to define higher
  16951. priority interrupts. From Dave Marples
  16952. * Broadcom BCM2708:
  16953. - BCM2708: Remove all support for the BCM2708/2835. This was added
  16954. only for support of the RaspberryPi Zero board which was previously
  16955. removed. The support was minimal and unverified. The removed files
  16956. can still be found in the Obsoleted directory. From Gregory Nutt
  16957. * Broadcom BCM2708 Boards:
  16958. - Raspberry Pi Zero: Remove the partial support for the Raspberry Pi
  16959. Zero. This port was started with the best of intentions but was
  16960. never completed. The board support can still be found in the
  16961. Obsoleted repository. From Gregory Nutt
  16962. * Nordic NRF52 Boards:
  16963. - Improve LED handling #if~#endif in nrf52_autoleds.c and
  16964. nrf52_userleds.c
  16965. Add Adafruit Feather nRF52 board LED support
  16966. Add Adafruit Feather nRF52 board
  16967. Add nrf52-generic
  16968. Replace 'pca10040' with 'generic'
  16969. Copy from nrf52-pca10040 to nrf52-generic
  16970. From Zou Hanya
  16971. * NXP i.MX RT Drivers:
  16972. - i.MXRT: Add PIT, GPT, and QIMER(TMR) header files From David Sidrane
  16973. - i.MXRT: Add FLEXPWM. From David Sidrane
  16974. - i.MXRT: Add ADC chip header From David Sidrane
  16975. - i.MXRT Build: Include up_systemreset and up_stackcheck.c From David Sidrane
  16976. - i.MXRT GPIO: Add GPIO Support Input daisy selection. From David Sidrane
  16977. - i.MXRT Serial: Support independent input and output flow control. From
  16978. David Sidrane
  16979. - i.MXRT USB: Use single define for USB pin definitions. From David Sidrane
  16980. - IMXRT106X: Add FLEXCAN3 to pinmux header file. From David Sidrane
  16981. * NXP Freescale i.MX RT Boards:
  16982. - IMXRT1050-EVK: GPIO device driver support added and tested by
  16983. Pavlina Koleva and Ivan Ucherdzhiev. From Pavlina Koleva
  16984. * On Semi LPC23450:
  16985. - LPC23450: Add support for SPI flash boot. Also, remove unnecessary
  16986. code for the SPI flash boot. From Masayuki Ishikawa
  16987. * On Semi LPC23450 Boards:
  16988. - LC823450-XGEVK: Add linker script for SPI flash boot. From
  16989. Masayuki Ishikawa
  16990. - LC823450-XGEVK: Enable NFS client for RNDIS configuration. Also, some
  16991. stack size were adjusted to work with NFS From Masayuki Ishikawa
  16992. * Simulation
  16993. - Critical Section Monitor: Add low level timer support for simulation. From
  16994. Gregory Nutt
  16995. * STMicro STM32:
  16996. - Configuration: Simplify ARM core selection logic From Mateusz Szafoni
  16997. - Configuration: USB Host is an option. From David Sidrane
  16998. - STM32 L0: Brings in initial support for the STM23 L0. From Mateusz
  16999. Szafoni
  17000. * STMicro STM32 Drivers:
  17001. - STM32 ADC: Configurable ADC DMA mode (one shot mode, circular
  17002. mode). From Mateusz Szafoni
  17003. - STM32 ADC: Start conversion on startup is now possible if TIM
  17004. triggering selected. This can be useful to start ADC TIM conversion
  17005. for ADC IPv2 when opening ADC device.
  17006. - STM32 DAC: Unified naming for DAC interfaces From Mateusz Szafoni
  17007. - STM32 DMA: Add interfaces to interact with high priority DMA
  17008. interrupts. From Mateusz Szafoni
  17009. - STM32 DMA: Use STM32 DMA IP core version instead of chip family
  17010. names. From Mateusz Szafoni
  17011. - STM32 DMA: Add support for DMA v1 CSELR support. From Mateusz Szafoni
  17012. - STM32 HRTIM: Do not enable timers on startup if option from Kconfig
  17013. selected and add interface to enable/disable timers. From Mateusz
  17014. Szafoni
  17015. - STM32 PWM: Add timer enable/disable and frequency update to
  17016. low-level ops. From Mateusz Szafoni
  17017. - STM32 SPI: Implements the new deferred DMA trigger feature. From
  17018. Dave Marples
  17019. - STM32 F0 Build: Rename the stm32f0 directory to stm32f0l0 to make a
  17020. space for STM32 L0. Rename files, functions and defines, removing
  17021. the f0_ from the names in order to make them MCU agnostic. From
  17022. Gregory Nutt
  17023. - STM32 F0 GPIO: Add support for GPIO EXTI. From Mateusz Sfafoni
  17024. - STM32 F2 FLASH: stm32_flash_writeprotect() supported the same for
  17025. STM32F20XX as STM32F4XXX From Anthony Merlino
  17026. - STM34 F7 DMA: stm32f7 enable separate DMA per SPI configuration
  17027. From Daniel Agar
  17028. - STM32 F7 QEncoder: Ported the QEncoder from F4 to F7. From Eduard
  17029. Niesner
  17030. - STM32 F7 SPI: Port Dave Marples STM32 deferred trigger enhancement
  17031. to the STM32 F7 SPI drivers. From Gregory Nutt
  17032. - STM32 H7 SPI: Port Dave Marples STM32 deferred trigger enhancement
  17033. to the STM32 H7 SPI drivers. From Gregory Nutt
  17034. - STM32 L4 SPI: Port Dave Marples STM32 deferred trigger enhancement
  17035. to the STM32 L4 SPI drivers. From Gregory Nutt
  17036. * STMicro STM32 Boards:
  17037. - B-L072Z-LRWAN1: Add basic support for b-l072z-lrwan1. Nucleo boards
  17038. use as default ST LINK MCO as clock input from MCU and for this
  17039. HSEBYP must be enabled. From Mateusz Szafoni
  17040. - Nucleo-F103RB: Add board support. From Mateusz Szafoni
  17041. - Nucleo-F103RB: Add ADC and PWM examples. From Mateusz Szafoni
  17042. - Nucleo-F207ZG: Add board support. From Mateusz Szafoni
  17043. - Nucleo-F207ZG: Add ADC and PWM examples. From Mateusz Szafoni
  17044. - Nucleo-F302R8: Add high priority ADC interrupts example to the
  17045. 'highpri' configuration. From Mateusz Szafoni
  17046. - Nucleo-F334R8: Add support for ADC injected sequence to the 'highpri'
  17047. configuration, add triggering from TIM1. From Mateusz Szafoni
  17048. - Nucleo-F334R8: Add example for the SPWM generation (custom STM32 PWM
  17049. usage). From Mateusz Szafoni
  17050. - Nucleo-F767ZI: Use on board USB UART as default console. Board is powered
  17051. by USB which can be used as UART link for upload and console. Previously
  17052. it was set to use Arduino shield which developer may not have. From Phil
  17053. Coval
  17054. - Nucleo-F767ZI: Add ethernet config based on nsh configuration plus
  17055. stm32f769i-disco/nsh-ethernet. From Phil Coval
  17056. - Nucleo-L073RZ: Add basic support for nucleo-l073rz. Nucleo boards
  17057. use as default ST LINK MCO as clock input from MCU and for this
  17058. HSEBYP must be enabled. From Mateusz Szafoni
  17059. - Nucleo-L152RE: Add board support. From Mateusz Szafoni
  17060. - STM32F4 Discovery: Add timing support for the critical section
  17061. monitor using the DWT CYCNT register. From Gregory Nutt
  17062. - STM32F4 Discovery: If the Critical Section Monitor, modify the
  17063. ITM_LAR register to assure that the DWT cycle counter is enabled.
  17064. Suggested by Dave Marples. From Gregory Nutt
  17065. - STM32F4 Discovery: Add board support to display ST7032i From Alan
  17066. Carvalho de Assis
  17067. - STM32F4 Discovery: Add loadable application build support in
  17068. Make.defs From Masayuki Ishikawa
  17069. - STM32F4 Discovery: Update RNDIS configuration: (1) Add NFS and adjusted
  17070. stack size for usermain and telnetd client. (2) Add support for loadable
  17071. application and ping. From Masayuki Ishikawa
  17072. - STM32F4 Discovery: Update nsh configuration: (1) Add
  17073. CONFIG_BOARD_INITIALIZE=y, (2) Add CONFIG_EXAMPLES_HELLO=y. From Masayuki
  17074. Ishikawa
  17075. - STM32F429I-DISCO: Add high priority ADC interrupts example to the
  17076. 'highpri' configuration. From Mateusz Szafoni
  17077. - configs/nucleo-l073rz: Support for nrf24l01. From Mateusz Sfafoni
  17078. * TI CCxx:
  17079. - CC13x0 family and CC13x2/CC26x2: Basic, minimal support was added
  17080. for these two chip families. This is a Work-In-Progress: There is
  17081. just enough logic in place to support a simple NSH configuration.
  17082. However, the port is still missing certain, necessary hooks into the
  17083. TI ROM-based 'DriverLib'. As a result, the support is not fully code
  17084. complete and is totally untested. Support for the CC26x2, which is
  17085. nearly identical to the CC13x2 is fragmentary. Stay tuned.
  17086. Hopefully full support will be available in NuttX 7.29.
  17087. * TI CCxx Boards:
  17088. - LAUNCHL-CC1312R1: Board support is available for the TI
  17089. LAUNCHL-CC1312R1. That board support consists only of an unverified
  17090. NSH configuration. The primary purpose of this port for the time
  17091. being is simply support the core architecture bring-up.
  17092. * TI AM335x:
  17093. - AM335x: Adds initial support for the TI AM355x family.
  17094. - AM335x: Add minimal wdog logic needed to disable the watchdog timer.
  17095. Otherwise, the board is rebooted after certain time expires while NuttX is
  17096. running. From Petro Karashchenko
  17097. - AM335x: Switch to DMTimer2 for system tick generation. U-Boot does not
  17098. enable DMTimer1ms clocks hence it is not possible to use it until
  17099. implementation in am335x_clockconfig.c is ready. From Petro Karashchenko
  17100. * TI AM335x Boards:
  17101. - Beaglebone Black: Initial port for BeagleBone Black board support
  17102. (TI AM335x family based on Cortex-A8). Includes a basic functional NSH
  17103. configuration . From Petro Karashchenko
  17104. * TI Tiva:
  17105. - LM3S9B92: Add support for LM3S9B92. From Lwazi Dube
  17106. * TI Tiva Drivers:
  17107. - Tiva HCI UART: Port bluetooth HCI uart interface from stm32 to tiva
  17108. From Lwazi Dube
  17109. * TI Tiva Boards:
  17110. - TM4C1294-Launchpad: Add IRQBUTTONS support to tm4c1294 launchpad.
  17111. From Lwazi Dube
  17112. * Tools:
  17113. - tools/convert-comments.c: Add a tool to convert C++-style comments
  17114. to C89 C-style comments. From Gregory Nutt
  17115. - tools/detab.c: Add detab.c which will convert all tabs in a file to
  17116. spaces. From Gregory Nutt
  17117. - tools/lowhex.c: Add lowhex.c that will convert hexadecimal constants
  17118. in a file to use lower case representation. From Gregory Nutt
  17119. - tools/mkconfig.c: Add definitions to distinguish between tristate
  17120. 'y' and 'm' options. From Gregory Nutt
  17121. - tools/nxstyle.c: Add logic to detect long lines. From Gregory Nutt
  17122. - tools/nxstyle.c: Add -h for help. From Gregory Nutt
  17123. * Libraries/Header Files:
  17124. - include/nuttx/lcd/edid.h: Add EDID definitions From Gregory Nutt
  17125. - libs/libc/netdb: Make DNS retries configurable From Juha Niskanen
  17126. - libs/libc/netdb: Harden query logic against DNS spoofing. This
  17127. commit implements most of the RFC 5452 guidelines for making DNS more
  17128. resilient. We now verify response matches against what was queried
  17129. and use unpredictable query IDs. It is also checked that response
  17130. come from correct DNS server. Also fixes a buffer overflow when
  17131. querying hostnames longer than CONFIG_NETDB_DNSCLIENT_NAMESIZE. From
  17132. Juha Niskanen
  17133. - libs/libc/netdb: Support multiple IP addresses per hostname From
  17134. Juha Niskanen
  17135. * NSH: apps/nshlib:
  17136. - apps/nshlib: Add support to use SLCD as NSH Console From Alan Carvalho de
  17137. Assis
  17138. - apps/nshlib: Add support for CROMFS start-up script. From David Sidrane
  17139. - apps/nshlib: Add var expansion in NSH parse. From Daniel Agar
  17140. - apps/nshlib: Display built-in apps using multi-column mode like the NSH
  17141. commands. From Ken Pettit
  17142. - apps/nshlib: In all multi-column help output, calculate an optimal column
  17143. width rather than using a hard-coded width that may or may not be
  17144. appropriate. Also make the number of rows presented dependent upon the
  17145. maximum width of the widest column. From Gregory Nutt
  17146. - apps/nshlib: Adds addroute command options for setting default gateway.
  17147. Like 'addroute default <ipaddr> <interface>'. From Anthony Merlino
  17148. * Examples/Tests: apps/examples:
  17149. - apps/examples/battery: Add Battery Charger Monitor Example From Alan
  17150. Carvalho de Assis
  17151. * System Utilities: apps/system
  17152. - apps/system/configdata: Adds an "cfgdata" command which allows
  17153. manipulation of the /dev/config items via the command line. One such use
  17154. for this utility would be to set a "macaddr" configdata item, etc. The
  17155. utility is sort-of like a u-boot env variable edit function:
  17156. For instance, to set a "macaddr" when the new CONFIG_MTD_CONFIG_NAMED
  17157. option is selected, you would do:
  17158. nsh> cfgdata set macaddr [0xfc 0x01 0x0b 0x45 0xa1 0x12]
  17159. (The brackets denotes an array of bytes)
  17160. nsh> cfgdata set hostname myboard
  17161. or using the old ID,INSTANCE numeric method:
  17162. nsh> cfgdata set 0,0 [0xfc 0x01 0x0b 0x45 0xa1 0x12]
  17163. (The brackets denotes an array of bytes)
  17164. nsh> cfgdata set 1,0 myboard
  17165. You can also display all config items:
  17166. nsh> cfgdata print all
  17167. Name Len Data
  17168. macaddr 6 0xFC 0x01 0x0B 0x45 0xA1 0x12
  17169. hostname 8 myboard
  17170. From Ken Pettit
  17171. - apps/system/critmon: Add a daemon to monitor critical section usage. From
  17172. Gregory Nutt
  17173. - apps/system/nsh: Set NSH priority if the NSH task was scheduled at a
  17174. different priority than the configured priority. From Gregory Nutt
  17175. - apps/system/nxplayer: Introduce CONFIG_NXPLAYER_MAINTHREAD_STACKSIZE. From
  17176. Masayuki Ishikawa
  17177. - apps/system/termcurses: Addition of termcurses libraries in
  17178. apps/system/termcurses From Ken Pettit
  17179. - apps/system/vi: New feature additions
  17180. 1. Vi startup feature to prepend the current working directory to the
  17181. supplied filename if it does not start with '/' absolute path
  17182. specifier. This allows editing files in the current directory
  17183. without needing to fully qualify the filename.
  17184. 2. Standard '~' empty screen line characters for proper identification
  17185. of empty '\n' only lines at the end of the file.
  17186. 3. Moving into insert or append mode now prints '--INSERT--' in the
  17187. status line and clears it upon exit.
  17188. 4. Integration with termcurses to detect special keystrokes and to
  17189. handle terminal type differences. Haven't yet converted all vt100
  17190. print codes to termcurses equivalents.
  17191. 5. Support for up, down, left, right arrows, page-up, page-down keys in
  17192. command mode.
  17193. 6. Added 'b' command to move cursor 'b'ack to previous word. Honors the
  17194. command repeat value for multiple word moves.
  17195. 7. Added 'w' command to move cursor to next 'w'ord. Honors the command
  17196. repeat value for multiple word moves.
  17197. 8. Added 'f' and 't' commands to find characters on the current line.
  17198. Honors the command repeat value.
  17199. 9. Added the find 'n'ext command to repeat the previous find operation.
  17200. 10. Added the 'H', 'M', and 'L' commands to move the cursor to top,
  17201. middle and bottom of the display.
  17202. 11. Extended yank/paste to manage a paste buffer with character mode in
  17203. addition to line mode. Character mode allows cut / paste of
  17204. individual characters or groups of characters vs. full lines.
  17205. 12. Added support in the 'd'elete and 'y'ank commands for character mode
  17206. deletions such as 'dw', 'dfa', '2yw', etc.
  17207. 13. Added support in paste routine for multiple paste using command value
  17208. argument.
  17209. 14. Added support for the 'D' and 'C' delete and change to end of line
  17210. commands.
  17211. 15. Added support for 's'ubstitute key ('x' followed by insert mode).
  17212. 16. Modified yank / paste allocation scheme to avoid repeated alloc and
  17213. free of paste buffer. Uses a minimum allocation size scheme and only
  17214. does free / realloc when paste does not fit. If the paste is smaller
  17215. than the current allocation and the current allocation is larger than
  17216. the threshold, then the buffer is freed and a smaller buffer
  17217. allocated. Otherwise the existing buffer is used.
  17218. 17. Support for 'P'aste before current cursor position.
  17219. 18. Support for '?' reverse search mode.
  17220. 19. Support for 'J'oin next line with current line command.
  17221. 20. Printing of current row,col in status line of display.
  17222. 21. Command repeat '.' support for commands that modify text.
  17223. 22. Support in replace / insert mode for arrow keys, PGUP / PGDN, HOME,
  17224. and END. Using these will cause the command repeat buffer to reset
  17225. such that only the last text addition after a cursor movement is saved.
  17226. 23. Added 'X' delete previous command.
  17227. 24. Added "gg" go to top of document command sequence.
  17228. 25. Added "ZZ" save and quit command (equivalent to :wq).
  17229. 26. Implemented '^' goto first non-whitespace on current line, along with
  17230. '+' and '-' goto first non-whitespace on next / previous line.
  17231. 27. Added CR / LF goto first non-whitespace on next line in command
  17232. mode. From Ken Pettit ?
  17233. * Network Utilities: apps/netutils:
  17234. - apps/netutils/webserver: The webserver/httpd app is was broken when script
  17235. support was enabled (CONFIG_NETUTILS_HTTPD_SCRIPT_DISABLE). The root cause
  17236. has been tracked down to the "Content-length" not being available ahead of
  17237. time in this case (length of -1 passed to send_headers() ). On the other
  17238. hand, the server closing the socket does not result in FIN being sent to
  17239. the browser either (FIN not supported by NuttX yet).
  17240. Simple solution: Add support for HTTP Chunked Encoding to webserver/httpd.
  17241. The change is simple. It adds a configuration option to enable chunked
  17242. encoding. When enabled, the implementation will auto-detect the cases where
  17243. content length is not available ahead of time, and will automatically
  17244. engage chunked encoding transfers.
  17245. Without this patch, the browser/client hangs forever, as it is expecting
  17246. more data. With this patch, the browser displays the content. From Vlado
  17247. Vidovic
  17248. * Wireless Utilities: apps/wireless:
  17249. - apps/wireless/bluetooth/btsak: Add connect and disconnect commands to
  17250. btsak. From Lwazi Dube
  17251. * Graphic Utilities: apps/graphics:
  17252. - apps/graphics/pdcurs34: Integration of termcurses into pdcurses, plus
  17253. pdcurses updates for multi-thread support From Ken Pettit
  17254. - apps/graphics/pdcurs34: Adds a configuration option to pdcurses to enable
  17255. line-drawing character (ALTCHARSET) when using the short 16-bit chtype.
  17256. This is done by limiting the characters to 7-bit ASCII values and using the
  17257. 8-th bit as the A_ALTCHARSET bit. This allows a significant RAM savings 4K
  17258. - 20K depending on terminal size) while still allowing the nicer
  17259. line-graphic characters for border drawing. From Ken Pettit
  17260. * Testing: apps/testing:
  17261. - apps/testing/ostest: Add test for pthread-specific data. From Gregory
  17262. Nutt
  17263. Bugfixes. Only the most critical bugfixes are listed here (see the
  17264. ChangeLog for the complete list of bugfixes and for additional, more
  17265. detailed bugfix information):
  17266. * Core OS:
  17267. - Assertions: Identify the running task correctly when dumping task
  17268. state information. It takes time to switch to the target task after
  17269. g_readytorun has been modified. If panic/assert happen during this
  17270. period, the dump will contain the incorrect and confusing information
  17271. due to the difference between the real running task and the return
  17272. value of this_task(). This change resolve this problem by adding
  17273. g_running_task to track the real running task through the context
  17274. switch. From Xiang Xiao
  17275. - Assertions: Correct duplicated logic from commit
  17276. dbf01d12b7321d1b48b68d3b69842a853b049376. Checking for PID == zero
  17277. is not a valid way to test for the IDLE task in all configurations!
  17278. This is only true in the single CPU configuration. In multiple CPU
  17279. configurations, there will be a separate IDLE task for each CPU with
  17280. a different PID and an alternative check must be used. NOTE: The
  17281. logic fixed in some places still lacks sufficient intelligence in SMP
  17282. mode to find the right stack for the CPU IDLE thread and could still
  17283. show the wrong stack. From Gregory Nutt
  17284. - Interrupt Prioritization: Remove all driver-specific logic that may
  17285. set the interrupt priority to anything but the default. There is no
  17286. good reason to change the interrupt priority unless you just want to
  17287. debug a difficult problem. OR if you want to use high priority
  17288. interrupts. In that case the specific interrupt priorities will need
  17289. to be set by board-specific logic. From Gregory Nutt
  17290. - Memory Management: Revert "This patch prevent heap corruption as in
  17291. below case." This solution to the problem noted by EunBong Song
  17292. results in major memory fragmentation and out-of-memory
  17293. conditions on the PX4 platform. On that platform the lower priority
  17294. work queue is very low priority and essentially never runs when the
  17295. system is busy. As a result, the systems gets slowly starved of
  17296. memory until failures and bad behaviors begin to occur. From Gregory Nutt
  17297. - Memory Management: This is a replacement for EunBong Song's reverted
  17298. change. This change adds (1) logic in getpid() to return an error instead
  17299. of the PID if the (apparent) currently executing task is not marked as
  17300. RUNNING. Then (2) mm_trysemaphore() (the root implementation of both
  17301. kmm_trysemaphore() and umm_trysemaphore()) will know that the (apparent)
  17302. running task cannot be the holder of the semaphore. How could the
  17303. non-running task be trying to get the MM semaphore? I think only in the
  17304. exact scenario that Eunbong Song has described. So this new solution
  17305. should provide the same protection as the original change but without the
  17306. bad consequences to memory usage. From Gregory Nutt (with corrections
  17307. from David Sidrane)
  17308. - Memory Management: In implementation of calloc(), verify that the number of
  17309. elements times the size of an element will not overflow type size_t. This
  17310. is required by the SEI CERT C coding style and resolves anonymous Bitbucket
  17311. Issue #139 From Gregory Nutt
  17312. - sigtimedwait(): Remove unnecessary disable of pre-emption. From
  17313. Gregory Nutt
  17314. - _exit(): Update all architecture-specific _exit() implementations
  17315. so that they correctly call the scheduler instrumentation layer for
  17316. the new task that runs when the old one exits. This missing
  17317. instrumentation was confusing the Critical Section Monitor logic with
  17318. uses this instrumentation to track the state of critical sections.
  17319. From Gregory Nutt
  17320. - sched_foreach(): sched_foreach() should not have to hold the
  17321. critical section over the entire traversal. It should be acceptable
  17322. to simply only the critical section while one entry is being
  17323. processed (the caller can always call sched_foreach within a critical
  17324. section is greater stability is needed). From Gregory Nutt
  17325. - task_spawn(): Correct description of input parameters to
  17326. task_spawn_exec(). Noted by: JeongchanKim From Gregory Nutt
  17327. * Crypto:
  17328. - crtypo/: This change:
  17329. Avoids the use of up_aesinitialize() entirely, which resolves
  17330. dependency problems, because this function does not make sure that
  17331. an actual hardware aes implementation was made available: each SoC
  17332. is now responsible to ensure the AES hardware is initialized before
  17333. first use. This applies to lpc43xx, stm32 and sam34.
  17334. Remove definitions of the NEVER used aes_init and aes_update
  17335. operations. The new AES API will be more suitable.
  17336. From Sebastien Lorquet
  17337. * File System/Block and MTD Drivers:
  17338. - opendir(): Corrects a problem with opendir() noted by Petteri
  17339. Aimonen in Bitbucket Issue 132: "opendir() fails for FAT filesystem
  17340. with trailing slash in path". I see the following behaviour on NuttX
  17341. 7.26, where I have SD card mounted on /flash and a directory called
  17342. "frm" on it:
  17343. opendir("/flash") returns (DIR *) 0x1000c580
  17344. opendir("/flash/") returns (DIR *) 0x1000c5d0
  17345. opendir("/flash/frm") returns (DIR *) 0x1000c620
  17346. opendir("/flash/frm/") returns (DIR *) 0x0
  17347. From POSIX specs for opendir(): "A pathname ... that ends with one or
  17348. more trailing slashes shall be resolved as if a single dot character
  17349. ( '.' ) were appended to the pathname." So for mount points,
  17350. opendir() works correctly, but for FAT32 filesystem it fails to open
  17351. directory if the path has a trailing slash...
  17352. NOTE: You would not see this problem if you call opendir() indirectly
  17353. in NSH (like 'ls -R /') because NSH contains logic to remove trailing
  17354. '/' characters from paths. From Gregory Nutt
  17355. - dup()/dup2(): dup() and dup2() were broken some time back.
  17356. fs_dupfd() was return returning OK on success, not the file
  17357. descriptor of the duplicated fd. From David Sidrane
  17358. - ProcFS: Remove the unnecessary critical section From Xiang Xiao
  17359. - CROMFS: Fix hardfault. From David Sidrane
  17360. - SmartFS MTD Driver: Fix smart_write_alloc_sector sector size mapping.
  17361. Was not correctly calculating the encoded sector size for small (256)
  17362. byte or large (>= 4096 byte) sectors. Noted by Daniel P. Carvalho.
  17363. Fix from Ken Pettit
  17364. - AT25 MTD Driver: Fixed missing opening parenthesis. From Marc Rosen
  17365. - MTD Configdata MTD Driver: Check return value mtdconfig_readbytes().
  17366. From Jussi Kivilinna
  17367. - S25FL1 MTD Driver: Minor change for the s25fl1 QSPI FLASH driver which
  17368. fixes additional sectorshift vs. pageshift confusion. From Ken Pettit
  17369. * Networking/Network Drivers:
  17370. - All network drivers! Change pre-processor logic that selects the
  17371. high priority work queue or gives preferential treatment to the high
  17372. priority work. All network logic must run on the low priority work
  17373. queue! Or suffer the consequences. From Gregory Nutt
  17374. - Socket Clone/Dup: On a failure to start the TCP monitor, the cloned
  17375. socket is closed but is not properly freed, leaving it attached to a
  17376. TCP connection structure with the wrong reference count. From
  17377. Gregory Nutt
  17378. - ARP: Fix whitespace after ARPHRD_IEEE80211 in ARP header file. From
  17379. Daniel Agar
  17380. - 6LoWPAN: Fixes decompression of ipaddr from MAC address. The logic
  17381. used to populate the IP from the radio address should match
  17382. sixlowpan_ipfromsaddr/sixlowpan_ipfromeaddr From Anthony Merlino
  17383. - 6LoWPAN: Fixes logic surrounding the Universal/Local bit. This bit
  17384. represents whether the IID is locally/globally administered. The U/L
  17385. bit is bit 1 of the MSB of the EUI-64. It should only be inverted in
  17386. cases where there is a full EUI-64. In cases where the IID is derived
  17387. from say, a short address, this bit should be forced to 0, indicating
  17388. that it is locally administered. See:
  17389. https://tools.ietf.org/html/rfc4291#section-2.5.1
  17390. https://tools.ietf.org/html/rfc4944#section-6
  17391. https://tools.ietf.org/html/rfc2464#section-4
  17392. From Anthony Merlino
  17393. - 6LoWPAN: IEEE802.15.4 stores and uses addresses in little endian
  17394. order. From Anthony Merlino
  17395. - 6LoWPAN: Address comment regarding avoiding double lookup of address
  17396. context. From Anthony Merlino
  17397. - 6LoWPAN: Record and restore d_buf on entry/exit of sixlowpan_input.
  17398. This avoids an issue where d_buf gets set to NULL by 6LoWPAN, and
  17399. then is used by forwarding logic from another network interface
  17400. before getting set back to the drivers internal buffer. From Anthony
  17401. Merlino
  17402. - 6LoWPAN: sixlowpan_input should always return 0 if the incoming frame was
  17403. consumed. From Anthony Merlino
  17404. - TUN Driver: Fixes a problem reported by Masayuki Ishikwawa: Recently I
  17405. noticed that ARP response packet is corrupted when I tried to run
  17406. bluekitchen with the latest tun.c in TAP mode. If I revert commit
  17407. 8193c28e9126c9cb89042e80d6ebab7485a831e4, then it works again. From Xiang
  17408. Xiao
  17409. - Telnet Driver: Add missing logic to set read event flags in poll()
  17410. method. From Ken Pettit
  17411. * Wireless/Wireless Drivers:
  17412. - BLE: Fix uninitialized variables. From Lwazi Dube
  17413. - BLE GATT header file: Fix struct name. From Lwazi Dube
  17414. - BLE GATT: Remove unnecessary GATT ioctls From Lwazi Dube
  17415. * Graphics/Display Drivers:
  17416. - ST7032: Fix seek method. Was not taking into account the offset for the
  17417. SEEK_END case. Did not account for negative offsets. On errors, it was
  17418. clobbering the filep->f_pos setting. From Gregory Nutt
  17419. - PCF8574 Backpack: Fix seek method. Had the same problems as noted for
  17420. ST7032 driver. From Gregory Nutt
  17421. * Common Drivers:
  17422. - Button Upper Half: Fix two bad NULL checks From Juha Niskanen
  17423. - PWM Interface: Remove dependency on CONFIG_PWM for the upper-half
  17424. PWM header. This allows compilation for the lower-level PWM drivers
  17425. even if the upper-half PWM logic is not used. From Mateusz Szafoni
  17426. - Various I2C Drivers: In most I2C drivers, correct upper index value
  17427. in I2C trace dump. Eliminates the extra NONE event from the trace
  17428. dump output. From Ouss4
  17429. - Battery Gauge: Add missing initialization of semaphore. From Alan
  17430. Carvalho de Assis
  17431. - Batter Charger: Add missing initialization of semaphore. From Alan
  17432. Carvalho de Assis
  17433. - MCP73871: Fix Microchip MCP73871 Battery Charger driver to register
  17434. correctly as a battery charger. The first element of a 'struct
  17435. battery_charger_dev_s' should be a pointer to operations structure. From
  17436. Alan Carvalho de Assis
  17437. - MCP794xx: Fix MCP794xx driver to wait for OSCRUN and fix tm_year. From
  17438. Abdelatif Guettouche
  17439. - Numerous files: Fixes usage of CONFIG_BIG_ENDIAN; should be
  17440. CONFIG_ENDIAN_BIG From Anthony Merlino
  17441. * ARMv7-A:
  17442. - ARMv7-A MMU: Fix end address calculation for mmu_invalidate_region() API
  17443. From Petro Karashchenko
  17444. * ARMv7-M:
  17445. - ITM: Fix missing space causing macro issues From Alan Carvalho de
  17446. Assis
  17447. - Common Exception Handlers: This commit changes the lazy and non-lazy
  17448. exception handler to remove a couple of cpsid instructions from them
  17449. on ARMv7-m. If my understanding is correct then these interrupt
  17450. manipulations aren't doing anything anyway because prioritization
  17451. stops secondary interrupts arriving and, even if they did work, they
  17452. would have introduced race conditions for the period of time between
  17453. the interrupt arriving and further interrupts being disabled. From
  17454. Dave Marples
  17455. - MPU/Protected Mode Build: Revert "arch/arm/armv7-m: MPU:
  17456. mpu_log2regionceil needs take into account the offset too". Masayuki
  17457. Ishikawa reports that this commit breaks ALL PROTECTED mode builds. It
  17458. violates the basic requirements of the use of the MPU in protected mode.
  17459. Those basic requirements are:
  17460. 1. The MPU region must be aligned to the base address of the memory
  17461. region being mapped (it may NEVER extend before the memory region).
  17462. That is, the following MUST always be zero: (base & ((1 << l2size) - 1))
  17463. 2. The MPU region must never extend beyond the end of the memory region.
  17464. That is, the following must be true: size >= (1 << l2size)
  17465. From Gregory Nutt
  17466. * Microchip PIC32MX Drivers:
  17467. - PIC32MX Ethernet: Fix a comparison in a debug assertion. Should be
  17468. <= vs <. Noted by Anonymous in Bitbucket Issue 134. From Gregory Nutt
  17469. * Microchip PIC32MZ:
  17470. - PIC32MZ chip.h Header: Add a missing " in an error message. From Ouss4
  17471. * Microchip PIC32MZ Drivers:
  17472. - PIC32MZ Ethernet: Fix a comparison in a debug assertion. Should be
  17473. <= vs <. Noted by Anonymous in Bitbucket Issue 134. From Gregory Nutt
  17474. * Microchip/Atmel SAMD21/L21
  17475. - SAMD21/L21: Corrects behavior of the I2C_M_NOSTART flag. Also adds
  17476. a release a bus on RXNACK and corrects typo priv->flags to msg->flags
  17477. as priv->flags is never set. From Alexander Vasiliev
  17478. - SAMD21/L21: Fix SAMD2L2 arch to use calibrated oscillator value. Now
  17479. SAMD20 and SAMD21 should work fine without external crystal. Note that
  17480. SAML21 Xplained board has an external crystal and doesn't need this change,
  17481. unless you don't want to use the crystal. From Alexander Vasiliev
  17482. - SAMD21/L21 I2C Master: Adds calculation of a timeout and disables
  17483. interrupts in case of error. From Alexander Vasiliev
  17484. * Microchip/Atmel SAMD21/L21 Boards
  17485. - SAML21-Xplained: Fix removed MAXCOARSESTEP from saml21-xplained board.
  17486. From Alan Carvalho de Assis
  17487. * Microchip/Atmel SAMD51/Ex
  17488. - SAMD51/Ex: Alexander Vasiliev's fix to the SAMD21 I2C Master (commit
  17489. b1110ba91c549572e94c24ebed202643233deee3) should probably also be
  17490. applied to the SAMD51 I2C Master which is identical. From Gregory Nutt
  17491. * Microchip/Atmel SAMV7
  17492. - SAMV7 Serial: Fix case where TTYS0 is not defined. From Ken Pettit
  17493. * Maxim Integrated MAX326xx
  17494. - MAX326xx: WFI instruction in IDLE loop seems to interfere with
  17495. stability. Commented out for now. Needs to be investigated further.
  17496. From Gregory Nutt
  17497. * NXP i.MXRT Drivers:
  17498. - i.MXRT FLEXPWM: Correct duplicated definitions From David Sidrane
  17499. - i.MXRT SERIAL: Fix TTYS0 defined definitions of higher numbered ports
  17500. From David Sidrane
  17501. - i.MXRT LPSPI: Removed unused clock, that borked the build. From David
  17502. Sidrane
  17503. - i.MXRT LPI2C: I2C Reset rework From David Sidrane
  17504. * On Semi LC823450:
  17505. - LC823450: Fix up_allocate_heap() in lc823450_allocateheap2.c. This
  17506. change fixes heap size and also implements up_addregion(). From
  17507. Masayuki Ishikawa
  17508. - LC823450: Fix go_os_start() in lc823450_start.c. I found a bug in
  17509. go_os_start() that it returns immediately because it does not compare
  17510. r1 to zero. This commit fixes this bug. Also, this commit fixes its
  17511. description. From Masayuki Ishikawa
  17512. - Other Architectures: Masayuki Ishikawa's change to go_os_start() was
  17513. also to all MCU-specific start-up functions that support
  17514. go_os_start(). From Gregory Nutt
  17515. * On Semi LC823450 Boards:
  17516. - LC823450-XEVK: Fix IOB params in rndis/defconfig. These parameters
  17517. work for HTTP audio streaming. From Masayuki Ishikawa
  17518. - LC823450-XGEVK: Change RNDIS MAC address assignment in rndis
  17519. configuration. In previous implementation, mac[0] was assigned to
  17520. 0xaa for RNDIS host to avoid MAC address conflicts with RNDIS
  17521. device.. However, I noticed that this assignment causes a random MAC
  17522. address generation on ubuntu16.04 or later which is inconvenient to
  17523. set up network interface. This new assignment scheme fixes this
  17524. issue. From Masayuki Ishikawa
  17525. - LC823450-XGEVK: Fix overlapped memory settings in memory.ld. From
  17526. Masayuki Ishikawa
  17527. * STMicro STM32 Drivers:
  17528. - STM32: Remove redundant STM32 family definitions from chip.h header
  17529. file. It is already done in arch/arm/src/stm32/Kconfig From Mateusz
  17530. Szafoni
  17531. - STM32 ADC: There is no DMA CFG bit for the basic IPv1 ADC. From
  17532. Mateusz Szafoni
  17533. - STM32 ADC: Refactor adc_reset. It should be easier to maintain this
  17534. code if it's divided into smaller functions From Mateusz Szafoni
  17535. - STM32 F0 Clocking: Fixes the problem in GPIO port clocks. Only port
  17536. A clock was enabled although the comment states otherwise. From Juha
  17537. Paalijärvi
  17538. - STM32 F7 I2C: I2C out of bounds access on priv->msgv. Error in if
  17539. statement. It was checking for msgc > 0. If message count is 1, only
  17540. index 0 is valid on priv->msgv. Therefore random values in memory
  17541. were used to set next_norestart. From David Sidrane
  17542. - STM32 H7 I2C: Applied David Sidrane's I2C fix to the identical logic
  17543. for STM32 H7. From Gregory Nutt
  17544. - STM32 L4 I2C: Applied David Sidrane's I2C fix to the identical logic
  17545. for STM32 L4. From Gregory Nutt
  17546. * STMicro STM32 Drivers:
  17547. - STM32 ADC: Fix RCC reset logic. From Mateusz Szafoni
  17548. - STM32 ADC: Fix compilation errors for chips with one ADV TIM. From
  17549. Mateusz Szafoni
  17550. - STM32 DMA: Add missing DMA channel configuration.
  17551. - STM32 PWM: STM32 MOE is not being appropriately handled for PWM for
  17552. advanced timers. It is only ever reset and so no PWM train is
  17553. generated. This change addresses this. Noted by Dave Marples. From
  17554. Mateusz Szafoni
  17555. - STM32 PWM: Fix compilation errors if the upper-half PWM logic is not
  17556. enabled. From Mateusz Szafoni
  17557. - STM32 SPI: STM32F446 & STM32F469 correct PC1 SPI assignments From
  17558. David Sidrane
  17559. - STM32 TIM: Fix compilation error if there is no TIM8. From Mateusz
  17560. Szafoni
  17561. - STM32 F0: Fix GPIO EXTI lines assignment for STM32 M0. From Mateuz Szafoni
  17562. - STM32 F3 I2C: Remove the extra NONE event from the trace dump
  17563. output. From Ouss4
  17564. - STM32 F4 I2C: Remove the extra NONE event from the trace dump
  17565. output. From Ouss4
  17566. - STM32 F7 I2C: Use clock_t for ticks instead of uint32_t to hold system
  17567. time. From Jussi Kivilinna
  17568. - STM32 L4 I2C: Use clock_t for ticks instead of uint32_t to hold system
  17569. time. From Jussi Kivilinna
  17570. * STMicro STM32 Boards:
  17571. - STM32F429I-DISCO: Fix lvgl demo removing STM32_FB_CMAP. From Alan
  17572. Carvalho de Assis
  17573. - STM32VL Discovery: Fix SRAM and FLASH size in the linker script.
  17574. There is STM32F100RB with 8KB RAM and 128KB FLASH on the STM32VL
  17575. Discovery kit. Invalid memory size could cause a hard fault. From
  17576. Matous Pokorny
  17577. - STM32VL Discovery: Fix memory size configuration and documentation.
  17578. There is STM32F100RB instead of STM32F100RC on the STM32 VL Discovery
  17579. kit. From Matous Pokorny
  17580. - Viewtool-STM32F107: Change RNDIS MAC address assignment in rndis
  17581. configuration. In previous implementation, mac[0] was assigned to
  17582. 0xaa for RNDIS host to avoid MAC address conflicts with RNDIS
  17583. device.. However, I noticed that this assignment causes a random MAC
  17584. address generation on ubuntu16.04 or later which is inconvenient to
  17585. set up network interface. This new assignment scheme fixes this
  17586. issue. From Masayuki Ishikawa
  17587. * TI Tiva:
  17588. - Tiva LM/TM4C Start-Up: Remove option CONFIG_TIVA_BOARD_CLOCKCONFIG. It is
  17589. not used and unnecessary. Fix some naming. up_clockconfig() is
  17590. inappropriate. Change tiva_clockconfig() to tiva_clock_reconfigure()
  17591. then we can change up_clockconfig() to tive_clock_configure(). From
  17592. Gregory Nutt
  17593. - Tiva LM/TM4C GPIO Interrupts: Fix tiva gpio interrupts From Lwazi Dube
  17594. - Tiva LM/TM4C: Improve GPIO interrupt support by removing unnecessary,
  17595. hard-coded per-MCU defines and using the existing Kconfig configuration
  17596. options instead. From Lwazi Dube
  17597. * TI Tiva Drivers:
  17598. - Tiva TM4C Serial: After commit
  17599. 51b78034ac8d1fdf598107bf4093f0beccd5b80b, my tiva console does not
  17600. work - enter key produces garbage characters. This commit fixes the
  17601. problem for me. From Lwazi Dube
  17602. * C Library/Header Files:
  17603. - include/dsp.h: Fix missing semicolon error in dsp.h From MYAPICI
  17604. - include/nuttx/compiler.h: Correct support of C-version-specific features.
  17605. Cannot depend on GCC version because -std=c89 may be used on comomand
  17606. line. Need instead to use __STDC_VERSION__ to determine if a feature is
  17607. supported. Also add conditional support inline, depending on C99. From
  17608. Gregory Nutt
  17609. - libs/libc/stdio: fread() should always set EOF if fewer than the
  17610. requested number of bytes was not read. Per Anthony Merlino. From
  17611. Gregory Nutt
  17612. * Build System:
  17613. - sched/irq/Make.defs: Fix warning about irq_csection.o appearing
  17614. multiple times in the same rule. From Gregory Nutt
  17615. * Tools:
  17616. - tools/gencromfs.c: "gencromfs.c:1171:3: warning: ignoring return
  17617. value of 'asprintf'", declared with attribute warn_unused_result
  17618. [-Wunused-result]. From David Sidrane
  17619. - tools/gencromfs.c: Fix build on macOS. From David Sidrane
  17620. * NSH Library: apps/nshlib:
  17621. - apps/nshlib: Fixes an error in the NSH parser. There was a bug when
  17622. executing an nsh shell script which contains a redirection. When the
  17623. command in the script is executed, it sets the vtbl->np.np_redirect flag
  17624. (as it should), but then doesn't restore it, leaving it set at the end of
  17625. the script execution. Then the vtbl->np.np_redirect flag is set when the
  17626. 'sh' command completes, causing a restore from un-initialized variables,
  17627. thus leading to a crash. See the code snippet below for an example test
  17628. case.
  17629. Test case:
  17630. NuttShell (NSH)
  17631. nsh> mkrd -s 1024 40
  17632. nsh> mkfatfs /dev/ram0
  17633. nsh> mount -t vfat /dev/ram0 /tmp
  17634. nsh> echo "echo 1 > /dev/null" > /tmp/test.sh
  17635. nsh> cat /tmp/test.sh
  17636. echo 1 > /dev/null
  17637. nsh> sh /tmp/test.sh
  17638. ...
  17639. The nsh prompt doesn't get printed. You can type a couple of commands,
  17640. but then the system will crash because of bad pointers. From Ken Pettit
  17641. - apps/nshlib: Fix buffer overrun when redirected to a file. SAVE_SIZE
  17642. must be the same as sizeof(struct serialsave_s). From Masayuki Ishikawa
  17643. * System Utilities: apps/system:
  17644. - system/system.c: Fixes build error; There is no result variable, use
  17645. errcode instead. From Anthony Merlino
  17646. - apps/system/vi: Bug fixes:
  17647. 1. Deletion of last line in file using 'dd' caused infinite loop
  17648. searching for 'nextline'. Fixed.
  17649. 2. Insertion of line above 1st line using 'O' caused line to be
  17650. inserted on 2nd line. Fixed.
  17651. 3. Paste buffer from 'dd' was being free'd after the 'p'aste operation,
  17652. preventing multiple paste opportunity. Fixed.
  17653. 4. The cursor was not being bound to the line end and was allowed to
  17654. 'hover' over the '\n' EOL character. This caused weird (relative to
  17655. standard vi) insertion locations and cursor movement with 'a'ppend
  17656. and 'i'nsert. Fixed.
  17657. 5. The 'vi_shrinkpos' position didn't take the end of file pointer into
  17658. account when calculating 'curpos', 'prevpos' variables causing
  17659. weirdness when deleting things near the end of the file. Fixed.
  17660. 6. The 'yy'ank command was improperly deleting the text from the
  17661. document instead of simply yanking to the paste buffer. Fixed.
  17662. 7. The 'dd'elete line function was not copying the deleted line to the
  17663. paste buffer as part of the delete operation. Fixed.
  17664. 8. The bottom line of the screen was sometimes being used for document
  17665. text and other times for command / find entry. Fixed by reserving
  17666. the bottom the bottom line for status / command only.
  17667. 9. When scrolling up / down through a file, the cursor position was not
  17668. preserved and moved further and further to the left column based on
  17669. the line lengths of the lines visited. Fixed.
  17670. 10. The display was being COMPLETELY redrawn with each keystroke,
  17671. causing the responsiveness to be unbearable. Fixed. Added logic to
  17672. dynamicall indicated which portions of the screen need to be updated
  17673. (full display, current line to end of screen, current line only,
  17674. none).
  17675. 11. The individual display line updates were being performed a character
  17676. at a time by calling the vi_putch() function, causing slow
  17677. performance, especially in telnet or USBCDC sessions where there is
  17678. a lot of overhead per packet. Fixed by calling vi_write() instead
  17679. with a block of characters with breaks as needed for TAB exansion.
  17680. 12. The forward delete 'x' operation allowed deletion through '\n'
  17681. characters causing lines to be joined. This is different from
  17682. standard vi where 'x' at the end of a line performs a delete
  17683. backward operation. Fixed.
  17684. 13. When in 'ex' or find sub-modes (':' or '/' bottom line modes),
  17685. hitting backspace with empty text did not return the operation to
  17686. command mode like it does in standard vi. Fixed.
  17687. 14. Performing a 'find' opertation would only search from the current
  17688. cursor position to the end of the file and did not wrap like in
  17689. standard vi. Fixed.
  17690. 15. Loading a file that was larger than the initial text allocation
  17691. would force a call to 'vi_extendtext', marking the file as modified
  17692. when in fact it hadn't even been loaded yet. Fixed.
  17693. 16. Combined vi_insert_mode and vi_replace_mode into a single function
  17694. to save code space since they are nearly identical routines.
  17695. 17. In command mode, backspace was deleting characters which is
  17696. different from standard vi. Backspace in command mode normally
  17697. simply moves the cursor left / to the previous line. Fixed.
  17698. 18. Added code to handle boundary conditions when the file is new and
  17699. commands are applied to an empty file.
  17700. 19. Fixed vi_shrinktext so it doesn't allocate a zero-length buffer when
  17701. the last character in the file is deleted.
  17702. 20. The 'x' command was not copying to the paste buffer. Fixed.
  17703. 21. Fixed parsecolon routine to properly deal with ":wq" command sequence.
  17704. From Ken Pettit
  17705. * Wireless Utilities: apps/wireless:
  17706. - apps/wireless/bluetooth/btsak: 'bt bnep0 info' outputs a reversed addr. It
  17707. should print BDAddr: aa:bb:cc:dd:ee:ff instead of BDAddr:
  17708. ff:ee:dd:cc:bb:aa. From Lwazi
  17709. - apps/wireless/bluetooth/btsak: Fix some errors in btsak. From Lwazi Dube
  17710. - apps/wireless/bluetooth/btsak/btsak_main.c: Fix address parsing. From
  17711. Lwazi Dube
  17712. - apps/wireless/bluetooth/btsak: Remove unnecessary gatt get commands. From
  17713. Lwazi Dube
  17714. - apps/wireless/bluetooth/btsak/btsak_scan.c: Fix reversed address. From
  17715. Lwazi Dube
  17716. - apps/wireless/ieee802154/i8sak: Fixes issues related to re-running
  17717. daemon. Releases lock when releasing daemon. Re-sets daemon_shutdown so
  17718. that a subsequent daemon launch does not immediately return. From Anthony
  17719. Merlino
  17720. NuttX-7.29 Release Notes
  17721. ------------------------
  17722. The 129th release of NuttX, Version 7.29, was made on March 25, 2019,
  17723. and is available for download from the Bitbucket.org website. Note
  17724. that release consists of two tarballs: nuttx-7.29.tar.gz and
  17725. apps-7.29.tar.gz. These are available from:
  17726. https://bitbucket.org/nuttx/nuttx/downloads
  17727. https://bitbucket.org/nuttx/apps/downloads
  17728. Both may be needed (see the top-level nuttx/README.txt file for build
  17729. information).
  17730. Additional new features and extended functionality:
  17731. * Core OS:
  17732. - Configuration: CONFIG_NFILE_DESCRIPTORS=0 can no longer be used to
  17733. disable the file system. NuttX with no file system does not make
  17734. sense and is no longer supported. From Gregory Nutt.
  17735. - Rename most internal OS functions from sched_* to nxsched_* to
  17736. indicate that they are NuttX internal functions (some renaming is
  17737. still needed). From Gregory Nutt.
  17738. - Rename all internal OS functions from task_* to nxtask_* to indicate
  17739. that they are NuttX internal functions. From Gregory Nutt.
  17740. - Rename sched_process_timer to nxsched_process_timer. Rename
  17741. sched_timer_expiration to nxsched_timer_expiration. Rename
  17742. sched_alarm_expiration to nxsched_alarm_expiration. Those are the
  17743. appropriate names for an internal sched/ function (still many named
  17744. incorrectly). From Gregory Nutt.
  17745. - Standardize naming: Rename os_start() to nx_start(), rename os_smp*
  17746. to nx_smp*, rename os_bringup to nx_bringup, rename all internal
  17747. static functions to begin with nx_ vs os_. From Gregory Nutt.
  17748. - Initialization: Remove the option CONFIG_BOARD_INITTHREAD. Now, if
  17749. CONFIG_BOARD_INITIALIZE is selected, then the board_initialize()
  17750. logic will ALWAYS run on an internal kernel thread. This will
  17751. prevent the problems people have had doing inappropriate
  17752. board_initialization on the IDLE thread. From Gregory Nutt.
  17753. - Initialization: Add support for CONFIG_BOARD_EARLY_INITIALIZE. If
  17754. this option is selected then nx_start() will call a board-provided
  17755. function board_early_initialize() immediately after calling
  17756. up_initialize(). Rename board_initialize() to
  17757. board_late_initialize(). From Gregory Nutt.
  17758. - Signal Delivery: Add a flag to the TCB to indicate that we are in a
  17759. signal handler. Use this flag to assure that a there is never
  17760. attempts to nest signal handling operations on a thread. This was
  17761. guaranteed before but when locking of pre-emption during signal
  17762. delivering was eliminated in a previous commit, there was a remote
  17763. possibility of an attempt to do nested signal handling. This flag
  17764. assures that there is only one signal handled at a time. From
  17765. Gregory Nutt.
  17766. - Signal Handler Security: The architecture-specific signal handler
  17767. return register state is saved and available on the user stack.
  17768. This commit reorders some logic so that certain, critical registers
  17769. are preserved in the TCB. This eliminates most malicious exploits
  17770. which more the return address, for example, but does not make the
  17771. logic 100% secure. From Gregory Nutt.
  17772. - Timer Interrupt Procssing: Add a configurable call out to a
  17773. user-provided function, 'timer hook', on each timer interrupt. From
  17774. Gregory Nutt.
  17775. - PM Activity: Add pm_staycount() API for get stay numbers. This
  17776. function is currently not used and a waste of FLASH space. From ligd.
  17777. - Pthreads: Add support for pthread_mutex_timedlock From Leif Jakob.
  17778. - Pthread Spinlocks: Add a very preliminary implementation of the new
  17779. POSIX pthread_spinlock_* interfaces. From Gregory Nutt.
  17780. - Critical Section Monitor: Remove SCHED_IRQMONITOR_GETTIME to
  17781. simplify the clock source selection: (1) Use up_critmon_gettime if
  17782. SCHED_IRQMONITOR, (2) Call clock_systimespec if SCHED_TICKLESS, (3)
  17783. Don't collect timing info for all other cases. From Xiang Xiao.
  17784. - Work Queue Notification: Notifier can now work with either lpwork
  17785. or hpwork. From Xiang Xiao.
  17786. - Protected Build: Add add a new field (us_heapend) to struct
  17787. userspace_s that labels the end of the heap. From Xiang Xiao.
  17788. * Binary Loader/Kernel Modules/Shared Libraries
  17789. - Shared Libraries: Implement dlerror() using strerror(). From Xiang
  17790. Xiao.
  17791. - Shared Libraries: Add LD_LIBRARY_PATH environment variable
  17792. support. From anchao.
  17793. - ELF Loaders: Optimize elf load speed: (1) Don't zero out memory,
  17794. (2) Reduce the initial buffer size to 32 bytes. From Xiang Xiao.
  17795. - ARM ELF Relocation: Add support for the R_ARM_THM_JUMP11 relocation
  17796. type. This relocation type may be generated when LTO optimization
  17797. is enabled. From anchao.
  17798. - ELF Modules: Add relocation buffer table to reduce filesystem
  17799. access. From anchao.
  17800. - ELF Modules: Add symbol buffer table to reduce filesystem access.
  17801. From anchao.
  17802. * File Systems/Block and MTD Drivers
  17803. - Filesystem Mount: Move the union inode_ops_u i_mtd field into the
  17804. mount section of inode_ops_u and remove the guard to simplify fs
  17805. which support both block and mtd. From Xiang Xiao.
  17806. - ROMFS: Add support to mount a ROMFS volume using an MTD driver
  17807. interface using the standard mount() operation. From Xiang Xiao.
  17808. - LittleFS: VFS wrapper improvement: (1) Support block device
  17809. interface, (2) support ioctl, stat and sync file operation, (3)
  17810. support forceformat and autoformat option, (4) update file->f_pos
  17811. and dir->fd_position, (5) remove the internal struct from dir, and
  17812. (6) remove mtd byte read/write requirement. From Xiang Xiao.
  17813. - UnionFS: Support mount of UnionFS from the NSH command line. From
  17814. Xiang Xiao.
  17815. * Networking/Network Drivers:
  17816. - UsrSock: Add mutual exclusion so that only user can perform a
  17817. socket request From zhangyuan7.
  17818. - UDP: Initialize callback address structure to avoid random values
  17819. in padding. From anchao.
  17820. * Wireless/Wireless Drivers:
  17821. - SX127x: Initial support for SX127x LoRA radio From Mateusz Szafoni.
  17822. * Graphics/Display Drivers:
  17823. - Graphics: Fix a naming collision: Ye olde nx_start that started
  17824. the NX graphics is now nxmu_start(). nxmu_start() is now
  17825. prototyped in nxmu.h (instead of nx.h). From Gregory Nutt.
  17826. - NX Server Startup: Extend nxmu_start() so that receives a display
  17827. number as an argument. This makes it possible to have multiple
  17828. instances of the NX server running on boards that support multiple
  17829. displays. Also includes updates to boardctl() to accept display
  17830. number parameters. From Gregory Nutt.
  17831. - Graphics: nx_openwindow() and nxtk_openwindow() now accept an
  17832. additional 'flag' parameter. This argument is current used only to
  17833. select a RAM backed, per-window framebuffer. From Gregory Nutt.
  17834. - Per-Window Framebuffers: Windows may now be optionally created
  17835. with a RAM framebuffer backing up the window content. Rending into
  17836. the window will result in rending into the backup framebuffer, then
  17837. updating the physical display from the framebuffer. The advantage
  17838. of this option is that the application that manages window will no
  17839. longer receive redraw() callbacks. Those calls normally occur when
  17840. a window "above" moves exposing a portion of the window below. If
  17841. this option is selected, then the system will redraw the exposed
  17842. portion of the window from the backup framebuffer without
  17843. intervention of the window applications. This greatly reduces the
  17844. complexity of the application and performance of the window at the
  17845. expense of increased memory usage. Redraw requests in other cases
  17846. are also suppressed: Changes to window position, size, etc. As a
  17847. consequence, some manual updates will be required when certain
  17848. events occur (like removing a toolbar from a window). NOTE: A
  17849. significant amount of RAM, usually external SDRAM, may be required
  17850. to use per-window framebuffers.
  17851. * Other Common Device Drivers:
  17852. - Driver Notifications: Support signal notification through
  17853. SIGEV_THREAD in all drivers that provide signal notifications:
  17854. RTC, Joysticsks, buttons, Zero-Crossing, wireless, FT80x, Timer,
  17855. PHY. From Xiang Xiao.
  17856. - Watchdog Driver: Support auto-monitor service From Gregory Nutt.
  17857. - Timer and Alarm Drivers: Implement up_critmon_gettime and
  17858. up_critmon_convert and remove the critical section from
  17859. current_usec to infinite recursion. From Xiang Xiao.
  17860. - RTC Driver: Protect the RTC state with a semaphore. From Xiang
  17861. Xiao.
  17862. - Serial Upper Half: Call pm_activity() when characters are received
  17863. on a console device. From Gregory Nutt.
  17864. - MPU60x0: Initial support for TDK InvenSense MPU6000 and MPU6050
  17865. 6-axis gyroscope and accelerometers. This commit supports SPI
  17866. media only. From Bill Gatliff.
  17867. - EEPROM Driver: Add configurable SPI eeprom frequency. From
  17868. Valmantas Paliksa.
  17869. - GPIO Driver: Support reading and writing gpio pins using cat and
  17870. echo. From Valmantas Paliksa.
  17871. - MCP2515: Add MCP2515 clock input config to KConfig. From
  17872. Valmantas Paliksa.
  17873. - MAX7456: Support for the Maxim MAX7456 on-screen-display chip.
  17874. From Bill Gatliff.
  17875. * Common Board Logic:
  17876. - boardctl(): up_testset() can now be accessed by applications via
  17877. the boardctl() interface rather than attempting to call it
  17878. directly. pthread Spinlocks are not available unless the
  17879. architecture supports the up_testset() operation. From Gregory
  17880. Nutt.
  17881. - boardctl(): Add support for BOARDIOC_NXTERM which can be used to
  17882. create an NxTerm terminal. From Gregory Nutt.
  17883. - boardctl(): Add boardctl() commands to replace direct calls to
  17884. nxterm_redraw() and nxterm_kbdin(). From Gregory Nutt.
  17885. * Microchip PIC32MZ Drivers:
  17886. - PIC32MZ Timers: Add support for the PIC32MZ timers (driver,
  17887. lowerhalf, freerun and oneshot) From Abdelatif Guettouche.
  17888. * Common ARM Options:
  17889. - arch/arm: Move FPU options to a common place and unify the usage
  17890. by removing ARCH_CORTEXRxF. From Xiang Xiao.
  17891. - arch/: Unify the cache interface for all architectures that
  17892. support a data cache. From Xiang Xiao.
  17893. - ARMv7-M/A/R: Add a architecture-specific new barriers.h header
  17894. file that provides the memory barrier definitions that were
  17895. previously in the (now unified) cache.h header files. From Gregory
  17896. Nutt.
  17897. * ARMv7-A
  17898. - ARMv7-A: Support thumb mode and fix interworking issue. From
  17899. zhangyuan7.
  17900. - ARMv7-A: Add weak attribute to arm_data_initialize so platform
  17901. could provide the new implementation as needed. From zhangyuan7.
  17902. - ARMv7-A: Add SCR bit definitions. From Xiang Xiao.
  17903. - ARMv7-A: Add mmu_l1_map_regions() to remove the code duplication.
  17904. From Xiang Xiao.
  17905. - ARMv7-A: Add the initial cortex-a7 architecture support From
  17906. zhangyuan7.
  17907. * ARMv7-M
  17908. - ARMv7-M: stackcheck allow faulting stack calculation to make it to
  17909. the up_assert reg dump From David Sidrane.
  17910. * Microchip/Atmel SAMD21/L21 Drivers:
  17911. - SAMD2/L2: Add RS485 support to SAMD2L2 serial. From Alan Carvalho
  17912. de Assis.
  17913. * Misoc:
  17914. - Minerva: Add support for the Minerva architecture. From Ramtin
  17915. Amin.
  17916. * Misoc Boards:
  17917. - misoc: Add support for an NSH configuration using the Verilator
  17918. board. From Ramtin Amin.
  17919. * Nordic NRF52:
  17920. - NRF52: 1. Added 52840 family support 2. Use common IRQ and memory
  17921. layout header file for 52832 & 52840. From Levin Li.
  17922. * Nordic NRF52 Drivers:
  17923. - NRF52 RNG: 1. added RNG device driver 2. added errdata to correct
  17924. temp which will be used by RNG module 3. use general task_trigger /
  17925. event_clear inline api for all driver. From Levin Li.
  17926. * NXP i.MX RT Drivers:
  17927. - i.MXRT XBAR: Add XBAR Support. From David Sidrane.
  17928. - i.MXRT USB: Add USB analog header file. From David Sidrane.
  17929. - i.MXRT OCOTP: Added OCOTP Support. From David Sidrane.
  17930. - i.MXRT LCD: Adds framebuffer support for the i.MXRT 1050.
  17931. Includes DCD initialization for SDRAM to provide space for the
  17932. framebuffer. External code I used/ported is from NXP and is BSD
  17933. 3-clause license. From Johannes.
  17934. * NXP i.MX RT Boards:
  17935. - IMXRT1050-EVK: Adds framebuffer support for the i.MXRT 1050.
  17936. From Johannes.
  17937. * NXP LPC17xx
  17938. - LPC17xx: Add a configuration option to skip over the framebuffer
  17939. when adding DRAM to the heap. From Gregory Nutt.
  17940. * NXP LPC17xx Boards
  17941. - Open1788: Add a configuration to test NxTerms in the PROTECTED
  17942. mode. From Gregory Nutt.
  17943. - Open1788: Re-arrange PROTECTED mode link map to make more space
  17944. for large kernels with debug enabled. From Gregory Nutt.
  17945. - Open1788: Add a configuration for testing per-window frame buffers
  17946. using apps/examples/pwfb. From Gregory Nutt.
  17947. * NXP LPC54xx Boards
  17948. - LPCXpresso-LPC54628/pwfb: Add per-window framebuffer configuration
  17949. using apps/examples/pwfb. From Gregory Nutt.
  17950. - LPCXpresso-LPC54628: Add a configuration for addition per-window
  17951. framebuffer using apps/examples/pwlines. From Gregory Nutt.
  17952. * STMicro STM32 Drivers:
  17953. - STM32F0/L0 SPI: Add SPI support for F0. From Mateusz Szafoni.
  17954. - STM32 ADC, PWM and TIM: (1) configure injected channels external
  17955. trigger when ADC enabled, (2) update injected conversion queue of
  17956. context after configuration, (3) support for offset configuration,
  17957. and (6) support for advanced timers channel 5 and 6. From Mateusz
  17958. Szafoni.
  17959. - STM32 DFU Mode: Add logic to reboot the STM32 in DFU mode.
  17960. Current implementation only works for STM32F2 and F4. From Bill
  17961. Gatliff.
  17962. - STM32F7 LSE: Add configuration of LSE oscillator drive capability
  17963. From Jussi Kivilinna.
  17964. - STM32F7 I2C: Fix another memory access issue on a bus error. From
  17965. David Sidrane.
  17966. - STM32F7 TIM: Add OUTTOGGLE mode for STM32f7 timer From Valmantas
  17967. Paliksa.
  17968. - STM32F7 Timer Lower Half: Add timer lowerhalf driver for stm32f7.
  17969. From Valmantas Paliksa.
  17970. - STM32F7 ITM: Add ITM syslog support. From Valmantas Paliksa.
  17971. - STM32F7 CAN: Add CAN driver with support for three bxCAN
  17972. interfaces. From Valmantas Paliksa.
  17973. - STM32F7 QSPI: Add stm32f7 Quad SPI support. From Valmantas Paliksa.
  17974. - STM32L4 LSE: Ports Jussi Kivilinna's recent STM32F7 LSE change to
  17975. STM32L4. From Juha Niskanen (Haltian).
  17976. - STM32H7 I2C: Apply David Sidrane's fix for the STM32F7 to the
  17977. STM32H7. From Gregory Nutt.
  17978. - STM32H7 DMA: Rename DMA1/2 IRQ names to match those from other
  17979. STM32. Add auxiliary definitions. Add DMAMAP definitions for
  17980. MDMA, DMA1, DMA2 and BDMA. Add some address blocks. Change RCC
  17981. definitions to match other STM32 ports. Enable clock for MDMA and
  17982. BDMA. Rename DMA channel definitions. Separated files for MDMA,
  17983. DMA, BDMA and DMAMUX. Add missing definitions for MDMA, BDMA and
  17984. DMAMUX. SPI DMA mode. Add base addresses for D1, D2 and D3
  17985. domain; use 2 bytes to specify memory region. Add D1 domain core
  17986. prescaler configuration. From Mateusz Szafoni.
  17987. - STM32H7 OTG: Initial OTG support for STM32H7 and some minor
  17988. improvements. Add support for HSI48 clock. From Mateusz Szafoni.
  17989. - STM32H7 Build: Initial support for protected build mode. From
  17990. Mateusz Szafoni.
  17991. - STM32L4 I2C: Apply David Sidrane's fix for the STM32F7 to the
  17992. STM32L4. From Gregory Nutt.
  17993. * STMicro STM32 Boards:
  17994. - B-L072Z-LRWAN1: Add SX127x configuration. From Mateusz Szafoni.
  17995. - Nucleo-F091RC: Add support for SX127x radio. From Mateusz Szafoni.
  17996. - Nucleo-F091RC: Add SX127x configuration. From Mateusz Szafoni.
  17997. - Nucleo-F207ZG: Add support for USB and initialize CDCACM if
  17998. configured. From Mateusz Szafoni.
  17999. - STM32F429I-DISCO: Add an apps/examples/examples/nxhello
  18000. configuration. From Gregory Nutt.
  18001. - Nucleo-F446RE: Add support for the Nucleo F446RE. From Sebastien
  18002. Lorquet.
  18003. - B-L072Z-LRWAN1: Use HSI as default clock source. From Mateusz
  18004. Szafoni.
  18005. - Nucleo-L073RZ: Add SX127x configuration. From Mateusz Szafoni.
  18006. - Nucleo-L073RZ: Port button logic from nucleo-f072 which appears to
  18007. be the same. From Gregory Nutt.
  18008. - Nucleo-L432KC: Add support for I2C driver initialization. From
  18009. Nikolay Semenov.
  18010. - Nucleo-H743ZI: Add support for USB and initialize CDCACM if
  18011. configured. From Mateusz Szafoni.
  18012. - OmnibusF4: Initial support for the OmnibusF4 family of flight
  18013. management units. "OmnibusF4" is not a product name per se, but
  18014. rather a design spec that many product vendors adhere to. The spec
  18015. defines the major components, and how those components are wired
  18016. into the microcontroller. Airbot is one such vendor, and they
  18017. publish a schematic here: http://bit.ly/obf4pro. Other software
  18018. that supports the OmnibusF4 family include Betaflight, iNAV, and
  18019. many others. PX4 recently added support as well, using their own,
  18020. non-upstreamed, bespoke port of NuttX. No code from those resources
  18021. is included in this port. From Bill Gatliff.
  18022. - OmnibusF4: Add MAX7546 support. From Bill Gatliff.
  18023. * TI CCxx:
  18024. - CC1312R1: Code complete and builds successfully. Stalled on
  18025. further radio development. I planned to integrate the IEEE 802.15.4
  18026. radio interface, but the Cortex-M0 interface is not available with
  18027. an open license.
  18028. * TI CCxx Boards:
  18029. - LaunchXL-CC1312R1: Add support for on-board LEDs and buttons. The
  18030. LauchXL-CC1312R1 NSH Configuration is now fully functional. From
  18031. Gregory Nutt.
  18032. - LaunchXL-CC1310: Clone LED and button support from the
  18033. LaunchXL-CC1312R1. The number of LEDs and buttons as well as DIO
  18034. usage is identical (Still not functional). From Gregory Nutt.
  18035. * Tools:
  18036. - tools/rmcr.c: Add a tool to remove carriage returns and dangline
  18037. whitespace at the end of lines. From Gregory Nutt.
  18038. - tools/nxstyle.c: Can now detect if the C comment closing is not on
  18039. a separate line. From Gregory Nutt.
  18040. - tools/nxstyle.c: Make sure that all files begin with a comment on
  18041. line 1 (which should be the file header). From Gregory Nutt.
  18042. - tools/nxstyle.c: Add check for multiple definitions of local
  18043. variables on a line. From Gregory Nutt.
  18044. - tools/nxstyle.c: Beef up logic that detects multiple variable
  18045. definitions per line. From Gregory Nutt.
  18046. - tools/nxstyle.c: Add capability to detect CamelCase identifiers.
  18047. From Gregory Nutt.
  18048. - tools/nxstyle.c: Add logic to detect a blank line following a left
  18049. brace or a blank line preceding a right brace. From Gregory Nutt.
  18050. - tools/nxstyle.c: Don't complain about certain lowercase characters
  18051. in otherwise uppercase pre-processor identifiers: IPv6, IPv4,
  18052. ICMPv6, IGMPv2, p as a decimal point, d signifying a divisor. It
  18053. was a bad idea to let the door open a crack for there. While they
  18054. improve readability, the inconsistently also causes other
  18055. problems. From Gregory Nutt.
  18056. * Build System:
  18057. - Makefiles: Modify tools/Makefiles to add a "Do not Edit" warning
  18058. on defconfig files From Alan Carvalho de Assis.
  18059. * Libraries/Header Files:
  18060. - lib_vsprintf() (Nano): Add newlib-nano lib_vsfprintf has been
  18061. added and is now the default support for the printf family. This
  18062. fprintf code was originally adapted from AVR libc and provides
  18063. improved floating point output support, including 'g' mode and
  18064. making 'f' mode include digits past the decimal by default. The
  18065. newlib version can be found here:
  18066. https://salsa.debian.org/electronics-team/toolchains/newlib-nano.
  18067. That project is GPL overall, but the newlib-nano printf portions
  18068. are BSD licensed as described in the COPYING.NEWLIB file. From
  18069. Keith Packard.
  18070. - lib_vsprintf() (Nano): Added support for long lont types. From
  18071. Johannes.
  18072. - lib_vsprintf() (Nano): Added hh type modifier (without extending
  18073. the flag variable). From Johannes.
  18074. - lib_vsprintf() (Nano): Adds configurable support for numbered
  18075. arguments. From Johannes.
  18076. - lib_vsprintf() (Nano): Cleaned naming and allow for leading zeros
  18077. in argument number (which doesn't make sense but should be). From Johannes.
  18078. - lib_vsprintf() (Legacy): Add support for %g format which, for
  18079. these purpose, is equivalent to %f except that trailing zeroes are
  18080. suppressed. From Gregory Nutt.
  18081. - vscanf(): Moved vscanf logic to lib_sscanf.c Switched to stream
  18082. interface (tricky, because the old implementation used massive read
  18083. ahead, which isn't suitable for streams, chars already read are
  18084. gone). Added hh, h, and ll modifiers. From Johannes.
  18085. - scanf() and fscanf(): Added scanf and fscanf based on enhanced
  18086. vscanf(). From Johannes.
  18087. - uname(): Add build date and time to uname output (like Linux).
  18088. From Gregory Nutt.
  18089. - strsep(): Add strsep BSD/Linux function. From Xiang Xiao.
  18090. - netdb: Hostname support no longer depends on CONFIG_NET since the
  18091. host name is also useful in the non-network environment.
  18092. CONFIG_NET_HOSTNAME changed to CONFIG_LIB_HOSTNAME. From Xiang Xiao.
  18093. - netdb: Support the nameserver change notification then we can pass
  18094. DNS info from server to client in usrsock case. From Xiang Xiao.
  18095. - include/fixedmath.h: Add macros for conversion between types
  18096. b16_t and type double From Gregory Nutt.
  18097. - include/limits.h: Define NL_ARGMAX (as well as some of the other
  18098. 'invariant values' per
  18099. http://pubs.opengroup.org/onlinepubs/7908799/xsh/limits.h.html).
  18100. From Johannes.
  18101. - linclude/limits.h: Add 'range 9 999999' to CONFIG_LIBC_NL_ARGMAX
  18102. to Kconfig. Per OpenGroup.org, the minimum value for NL_ARGMAX is
  18103. 9. From Gregory Nutt.
  18104. - include/nuttx/lcd/edid.h: Add extended EDID block IDs From
  18105. Gregory Nutt.
  18106. * apps/ General:
  18107. - apps/: Follow up the kernel signal-related change in various files
  18108. under examples/ and graphics/. From Xiang Xiao.
  18109. - apps/: Update for corrected name of standard header file. Should
  18110. be dlfcn.h, not dllfcn.h. From Gregory Nutt.
  18111. - apps/: The file system can no longer be disabled. Remove all
  18112. conditional logic based on CONFIG_NFILE_DESCRIPTORS==0 From
  18113. Gregory Nutt.
  18114. - apps/: Remove/replace all conditional logic based on
  18115. CONFIG_NSOCKET_DESCRIPTORS == 0. That value is always greater than
  18116. zero now. In places just replace with #ifdef CONFIG_NET. From
  18117. Gregory Nutt.
  18118. - apps/: Some updates due to NuttX renaming:
  18119. CONFIG_BOARD_INITIALIZE is now CONFIG_BOARD_LATE_INITIALIZE;
  18120. board_initialize() is now board_late_initialize(). From Gregory
  18121. Nutt.
  18122. - apps/: Graphics interfaces nx_openwindow() and nxtk_openwindow()
  18123. now accept an additional 'flag' parameter. From Gregory Nutt.
  18124. * NSH: apps/nshlib:
  18125. - apps/nshlib/nsh_netinit.c: Update for changes to signal
  18126. notification structures. From Gregory Nutt.
  18127. * Examples/Tests: apps/examples:
  18128. - apps/examples/ini_dumper: New example program. ini_dumper is
  18129. example program that dumps content of ini file in pretty ascii table.
  18130. It is using inih ini library in fsutils/inih. From Michal Lyszczek.
  18131. - apps/examples/modbusmaster: Add Simple Modbus master example.
  18132. This example only supports Read/Write HoldingRegisters, but it is
  18133. easy to extend it to support Read/Write Input/Coils/etc.
  18134. Originally creatd by Vytautas in 2016 and updated with minor fixes
  18135. for this commit. From Alan Carvalho de Assis.
  18136. - apps/examples/pwfb: Added a test/example at apps/examples/pwfb
  18137. that was used for initial testing of the per-window framebuffer
  18138. feature. From Gregory Nutt.
  18139. - apps/examples/pwlines: Added another a test/example at
  18140. apps/examples/pwlines that was used for further testing of the
  18141. per-window framebuffer feature. From Gregory Nutt.
  18142. - apps/examples/sx127x: Add sx127x demo From Mateusz Szafoni.
  18143. * File System Utilities: apps/system
  18144. - apps/fsutils/inih: New package. inih (INI Not Invented Here) is a
  18145. simple .INI file parser written in C.
  18146. https://github.com/benhoyt/inih. From Michal Lyszczek.
  18147. * Network Utilities: apps/netutils:
  18148. - apps/netutils/codecs/: Remove the big Base64 stack array. From
  18149. Xiang Xiao.
  18150. - apps/netutils/codecs/: Add base64_[de|en]code_length() API From
  18151. ligd.
  18152. * System Utilities: apps/system
  18153. - apps/system/cfgdata: Make builtin task stack size and priority
  18154. configurable. Set default to 2048 (from 1024) per recommendation
  18155. of Ken Pettit. From Gregory Nutt.
  18156. - apps/system/embedlog: Update to version 0.4.0. From Michal Lyszczek.
  18157. - apps/system/nxplayer and nxrecorder: Change 'int prio' to
  18158. 'unsigned int prio'. Required by changes to MQ function
  18159. prototypes. From Michal Lyszczek.
  18160. - apps/system/psmq: New package. psmq is publish subscribe message
  18161. queue. It's a set of programs and libraries to implement
  18162. publish/subscribe way of inter-process communication on top of
  18163. POSIX message queue. From Michal Lyszczek.
  18164. - apps/system/zmodem: Switch to the raw mode before transfer and
  18165. restore to the original setting after finishing the transfer. From
  18166. Xiang Xiao.
  18167. * Testing: apps/testing:
  18168. - apps/testing/: Move all file system tests from examples/ to
  18169. testing/ (cxxtest, fstest, nxffs, smart, smart_test, smp). From
  18170. Gregory Nutt.
  18171. - apps/testing/cxxtest: Add a README file. From Gregory Nutt.
  18172. - apps/testing/ostest: Add test of pthread_mutex_timedlock() From
  18173. Gregory Nutt.
  18174. - apps/testing/ostest: Fix several errors in the setvbuf() test.
  18175. From Gregory Nutt.
  18176. - apps/testing/scanftest: Port of Greg King's scanf test
  18177. (https://github.com/cc65). From Johannes.
  18178. * Tools: apps/tools:
  18179. - apps/tools/check-hash.sh: Add a tool check hash on downloaded
  18180. packages. From Michal Lyszczek.
  18181. Bugfixes. Only the most critical bugfixes are listed here (see the
  18182. ChangeLog for the complete list of bugfixes and for additional, more
  18183. detailed bugfix information):
  18184. * Core OS:
  18185. - Signals: Restructure nxsig_deliver() so that the signal handler is
  18186. not called with the pre-emption disabled (or, at least no with
  18187. pre-emption disabled by nxsig_deliver() itself). From Gregory Nutt.
  18188. - Critical Section Monitor: Move up_critmon_* to arch.h avoid the
  18189. duplicated declaration. From Xiang Xiao.
  18190. - Assertions: Architecture-specific assertion logic should dump CPU0
  18191. IDLE stack only when PID equals 0. IDLE threads of other CPUs do
  18192. not need this special check. From Xiang Xiao.
  18193. - Message Queues: Change 'int prio' to 'unsigned int prio'.
  18194. According to open group specification, priority field in mq_*
  18195. functions should have unsigned type:
  18196. http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/mqueue.h.html.
  18197. From Michal Lyszczek.
  18198. - Timer Expiration: Fix macro SEC2TICK() 32-bits overflow by using
  18199. uint64_t in calculation. From ligd.
  18200. - Kernel Memory Manager: In mm/kmm_heap/kmm_kernel.c, remove unused,
  18201. duplicated kmm_heapmember(). From Xiang Xiao.
  18202. - User Memory Manager: Ensure all user allocation try sbrk before
  18203. fail From Xiang Xiao.
  18204. - waitid(): Could exit without leaving critical section on some
  18205. error conditions. From Gregory Nutt.
  18206. - IOBs: iob_allocwait() should decrease semcount manually. From
  18207. Xiang Xiao.
  18208. - IOBs: iob_copyin() should wait for each buffer and adjust the
  18209. return value of iob_copyin_internal return to simplify the code
  18210. From Xiang Xiao.
  18211. - IOB Notifier: Don't check iob_navail in iob_notifier_setup to
  18212. avoid a potential race condition. From Xiang Xiao.
  18213. - IOB Debug Dump: Format the whole line before log to avoid the
  18214. multiple timestamp prefix in each line. From Xiang Xiao.
  18215. - SHM: Convert bytes to pages by MM_NPAGES instead of MM_PGALIGNUP
  18216. From Xiang Xiao.
  18217. - SHM: shmget() should hould call shm_extend() to allocate the
  18218. physical memory. From Xiang Xiao.
  18219. - Page Allocator: mm/pgalloc: shouldn't just allocate one page
  18220. always. From Xiang Xiao.
  18221. - Granule Allocator: Fix the wrong data in g_1bit_info and make the
  18222. internal function static. From Xiang Xiao.
  18223. - srbk(): Fix a backward conditional test. Should call
  18224. mm_initialize() when brkaddr equal zero From Xiang Xiao.
  18225. - sbrk(): Pass ARCH_HEAP_VEND as maxbreak argument From Xiang Xiao.
  18226. - ELF Headers: Move elf related arch function to include/nuttx/elf.h
  18227. because the implementation is located in libs/libc/machine and in
  18228. order to avoid the conflict with the 3rd party libraries and clean
  18229. up the file inclusion: (1) Remove redundant elf32.h, (2) Remove
  18230. nuttx/binfmt/elf.h in libs/libc/machine, (2) Remove
  18231. nuttx/binfmt/elf.h in modlib, and (4) Remove nuttx/module.h in
  18232. modlib. From Xiang Xiao.
  18233. - ELF Executables: If there is an address environment
  18234. (CONFIG_ARCH_ADDRENV), binfmt/elf doesn't need to free ctor/dtor
  18235. alloc since freeing the address environment releases the heap
  18236. automatically. From Xiang Xiao.
  18237. - ELF Configuration: Correct libcxx exception handling by
  18238. introducing the generic config(CXX_EXCEPTION and CXX_LIBSUPCXX)
  18239. From Xiang Xiao.
  18240. - ELF Loaders: Call umm_initialize as soon as possible otherwise
  18241. elf_loadctors/elf_loaddtors may fail to allocate memory. From
  18242. Xiang Xiao.
  18243. * Crypto:
  18244. - Crypto AES: After NuttX 7.28 crypto/aes.c would no longer
  18245. compile. From Gregory Nutt.
  18246. * File System/Block and MTD Drivers:
  18247. - open(): Fix not returning failure for block_proxy() call. From
  18248. David Sidrane.
  18249. - AIO: aio_cancel() needs to signal caller after success. Also fix
  18250. minor issue in the error handler. From Xiang Xiao.
  18251. - HostFS: Remove the unnecessary use of host_stat() in
  18252. hostfs_bind() From ligd.
  18253. - LittleFS: Fix a minor issue found in code review: (1) Replace
  18254. printf to finfo/fwarn/ferr, (2) Replace malloc/free to
  18255. kmm_malloc/kmm_free, (3) define LFS_NAME_MAX to NAME_MAX, (4) Check
  18256. the big endian using CONFIG_ENDIAN_BIG. From Xiang Xiao.
  18257. - LittleFS: VFS Lookahead should use bit unit not byte unit. From
  18258. Xiang Xiao.
  18259. - NxFLAT: Correct a double free debug assertion. This occurs when
  18260. groups are enabled: (1) once via binfmt_exit and unload_module,
  18261. and (2) once via sched_releasetcb(). this was corrected by adding
  18262. logic to free/unload the memory once and nullify the pointer so
  18263. that cannot be freed a second time. This commit resolves Bitbucket
  18264. issue #145. From Valmantas Palikša.
  18265. - NxFLAT: File descriptor leaks when nxflat loading fails. From
  18266. Valmantas Palikša.
  18267. - ProcFS: Fix typo in procfs uptime logic. From Sebastien Lorquet.
  18268. * Networking/Network Drivers:
  18269. - Network Configuration: The setup seems to support a network
  18270. without sockets (CONFIG_NSOCKET_DESCRIPTORS == 0). That is not the
  18271. case; if the network is enabled, sockets must be provided. From
  18272. Gregory Nutt.
  18273. - Networking: The value ERROR should never be returned from internal
  18274. OS functions. That is reserved for returning values to appliations
  18275. with the errno value set. Within the OS, errors are returned with
  18276. a negated errno value ALWAYS. From Gregory Nutt.
  18277. - Networking: The struct in_addr doesn't have the member sin_addr.
  18278. The function lib_lo_ipv6match() is for IPv6. Correct the function
  18279. it calls from lib_lo_ipv4matchto() to lib_lo_ipv6match(). Also add
  18280. CONFIG_NET_IPv6 for configuration. From Kejun ZHOU.
  18281. - TCP (buffered) send: Fix assertion crash when window size is
  18282. zero. From Gregory Nutt.
  18283. - ICMP/ICMPv6: Bind icmp callback from device to connection.
  18284. Resolves the issue that bind() could not be called before send()
  18285. From anchao.
  18286. - TUN/TAP Driver: Re-order all TUN/TAP driver state data. Not only
  18287. was was with wasting memory due to alignment requirements, it was
  18288. also causing network packet buffers to be improperly aligned
  18289. causing problems because the network requires 16-bit packet buffer
  18290. alignment for uint16_t accesses. This alignment problem was
  18291. discovered by Alan Carvalho de Assis. From Gregory Nutt.
  18292. - TUN/TAP Driver: Packet buffer size should include the configured
  18293. GUARD_SIZE. And, given how the buffers are allocated, the
  18294. allocation size must be an even number of 16-bit values to preserve
  18295. alignment. From Gregory Nutt.
  18296. - Local Sockets: In local_connect(), initialize lc_result before
  18297. giving lc_waitsem From zhangyuan7.
  18298. - Local Sockets: Fixed deadlock issue by replacing nxsem_wait() with
  18299. net_lockedwait() so that we do not wait with the network locked.
  18300. From zhangyuan7.
  18301. * Graphics/Display Drivers:
  18302. - NX Graphics: Remove naming associated with the now non-existent
  18303. NXFE graphics layer: Rename nxfe_reportposition to
  18304. nxmu_reportposition. Rename nxfe_redrawreq to nxmu_redrawreq.
  18305. Rename nxfe.h to nxmu.h. Rename nxfe_state_s to nxmu_state_s.
  18306. Rename nxfe_conn_s to nxmu_conn_s. From Gregory Nutt.
  18307. - NxTERM: Remove the nxterm_unregister interface. The correct way
  18308. to unregister a device is to unlink it. From Gregory Nutt.
  18309. - NxTerm: Needs to clear display initially. Otherwise, garbage from
  18310. previous display may still be present from preceding NxWM window.
  18311. From Gregory Nutt.
  18312. - Font Cache: Fix a memory leak in the font cache. With a busy
  18313. NxTerm display, this could drain off all the memory pretty quickly!
  18314. From Gregory Nutt.
  18315. - Graphics: Nothing under graphics/ should set the errno. From
  18316. Gregory Nutt.
  18317. - Graphics: Fix a coordinate system error in nx_filltrapezoid().
  18318. When no clipping rectangle is falls, it falls back to use the
  18319. entire window as for the clip. However, that window must then then
  18320. be in window relative coordinates, not in absolute device
  18321. coordinates. From Gregory Nutt.
  18322. * Common Board Logic:
  18323. - boardctl(): Fix compiling error when set
  18324. CONFIG_BOARDCTL_IOCTL/CONFIG_BOARDCTL_UNIQUEID. From Kevin Liu.
  18325. * Common Drivers:
  18326. - INA3221: Fix errors in INA3221 register field addresses and
  18327. bitfield values. Signed value was losing its signed-ness due to
  18328. use of unsigned type for register. From Ken Pettit.
  18329. - Serial Upper Half: Initialize OPOST and ONLCR in uart_register.
  18330. From Xiang Xiao.
  18331. - Serial Upper Half: Don't reset the circular buffer on close since
  18332. DMA may still be transferring data in the background if the user
  18333. closes the handle too quickly and the handle is opened with
  18334. O_NONBLOCK. From Xiang Xiao.
  18335. - 16550 UART: Fix error: 'g_uart0port' undeclared. From Xiang Xiao.
  18336. - 16550 UART: Fix typo for UART1 flow field initialization From
  18337. Gregory Nutt.
  18338. - CDC/ACM HCD: Fixes to the IOCTL method in recovery of UART pointer
  18339. and in names of Termios-related field. From xhbm.
  18340. - USB Device: Fix type for USBDEV_TRACE_INITIALIDSET in Kconfig.
  18341. From Mateusz Szafoni.
  18342. - TCA64xx: Fix some errors in the TCA64XX driver. From Bruno
  18343. Schwander.
  18344. - SYSLOG RAMLog: Fix error: Conflicting types for 'ramlog_addchar'
  18345. From Xiang Xiao.
  18346. - NRF24L01: Fix uninitialized irq_work which was causing a
  18347. hard_fault on interrupt handler whenever something was sent from
  18348. nrf24l01_term From Petri Ahonen.
  18349. - MCP2515: Use kmm_zalloc to allocate device state structure. Fix
  18350. some compiler errors. From Valmantas Paliksa.
  18351. * Architecture Common:
  18352. - arch/ Common: Remove architecture-specific watchdog.h and
  18353. arm-elf.h because they are empty. The arm-elf header file was
  18354. never used; the empty watchdog.h header file was used in only one
  18355. place. From Xiang Xiao.
  18356. - arch/ Common: Move up_pminitialize() after timer_initialize()
  18357. From ligd.
  18358. - arch/ Common: Align semi-hosting call style with other syscalls in
  18359. architecture-specific syscall.h. From Xiang Xiao.
  18360. - arch/ Common: Every file that uses serial IOCTLs (TIOC*) must
  18361. explicitly include nuttx/fs/ioctl.h. This was included previously
  18362. via sneak path in the now deleted arch/serial.h. From Gregory Nutt.
  18363. - arch/ Interfaces: Rename sched_process_cpuload to
  18364. nxsched_process_cpuload. All internal sched_ functions should be
  18365. prefixed with nx. From Valmantas Paliksa.
  18366. * ARMv7-A:
  18367. - ARMv7-A MMU: Updating the cp15_wrttb and cp15_wrdacr functions to
  18368. use inline assembly in the correct way. The incorrect method was
  18369. generating errors as ARMv7-a expects the MCR/MRC instructions to
  18370. provide registers as an argument(MRC p15, 0, <Rt>, c2, c0, 0) and
  18371. the code was providing a constant value(and hence the build
  18372. error). From Bilal Wasim.
  18373. - ARMv7-A: Remove inclusion pg_macros.h for armv7-a since this
  18374. header file does not exist. From zhangyuan7.
  18375. - ARMv7-A: Guard some assembly files if configuration not selected.
  18376. From zhangyuan7.
  18377. - ARMv7-A GIC: Fix assemble error when including gic.h From Xiang
  18378. Xiao.
  18379. - ARMv7-A GIC: Don't use GIC_ICDDCR_ENABLEGRP1 for GIC NONSECURE
  18380. since this bit doesn't exist in this mode. From liuzhuang.
  18381. * ARMv7-R:
  18382. - ARMv7-R Syscall: In arch/arm/include/syscall.h, add missing
  18383. inclusion of arch/armv7-r/syscall.h for Cortex-R. From Xiang Xiao.
  18384. * ARMv7-M:
  18385. - ARMv7-M Initialization: As noted by Roland Takacs in Bitbucket
  18386. issue 141, there is a compilation error for STM32 if CONFIG_NET and
  18387. CONFIG_NETDEV_LATEINIT are selected. That was due in part to the
  18388. commit which extended up_netinitialize() with a
  18389. !defined(CONFIG_NETDEV_LATEINIT) guard but did not add the guard to
  18390. concrete implementations. I say "in part" because I don't think
  18391. that the original intent of commit 19e16cb was to enable an
  18392. alternative initialization of MCU internal Ethernet support but
  18393. rather to enable support of external Ethernet devices that may have
  18394. dependencies on, for example, SPI. However, this is still a proper
  18395. fix to avoid the compilation error that can occur with this
  18396. combination of configuration options. From Gregory Nutt.
  18397. - ARMv7-M Configuration: ARCH_HIPRI_INTERRUPT shouldn't select
  18398. ARMV7M_USEBASEPRI. First because that is a violation of the
  18399. layered nature of the Kconfig architecture, but also because then
  18400. Kconfig will generate errors when high priority interrupts are used
  18401. with other architectures. From Xiang Xiao.
  18402. - ARMv7-M Vector Table: Make the default NVIC_VECTAB_TBLOFF_MASK
  18403. safer. The base address of the new vector table must be aligned to
  18404. the size of the vector table extended to the next larger power of
  18405. 2. From Xiang Xiao.
  18406. - ARMv7-M RAM Vectors: Correct bad NVIC_VECTAB_TBLOFF_MASK
  18407. definitions in previous commit. Were missing bits in the mask.
  18408. Raised DEBUGASSERT in armv7-m/up_ramvec_initialize.c line: 144.
  18409. From Mateusz Szafoni.
  18410. * Espressif ESP32 Drivers:
  18411. - ESP32 Timer ISR: Fix backward comparison. From Gregory Nutt.
  18412. - ESP32 Serial: Fix some backward arguments. Correct 2-stop bit
  18413. setting. From Gregory Nutt.
  18414. * Microchip/Atmel SAMD2x/L2x Drivers:
  18415. - SAMD2/L2 Serial: SAMD2/L2 serial driver. It needs
  18416. sam_usart_enable(). to work From Alan Carvalho de Assis.
  18417. * Microchip/Atmel SAMD3/4 Drivers:
  18418. - SAM3/4 Ethernet: Port Anthony Merlino's SAMv7 fix to similar
  18419. Ethernet driver for the SAM3/4. From Gregory Nutt.
  18420. * Microchip/Atmel SAMV7 Drivers:
  18421. - SAMv7 SPI: Fix DMA Tx/Rx timeout issue. From Kevin Liu.
  18422. - SAMv7 QSPI: Compile error when set CONFIG_SAMV7_QSPI_DLYBCT.
  18423. From Kevin Liu.
  18424. - SAMv7 Ethernet: The logic for determining the number of queues for
  18425. SAMV71 must be extended. All SAMv7 parts increase the number of
  18426. queues from 3 to 6 at revision B, not just the SAMV71. From
  18427. Gregory Nutt.
  18428. - SAMv7 Ethernet: Fixes rxdesc index logic to handle Buffer Not
  18429. Available (BNA) condition. If a SOF is found, but no EOF, don't
  18430. move past the frame. Instead, keep the index at the SOF buffer
  18431. until the rest of the data is written. This fixes a receiver
  18432. lockup condition where the peripheral and this driver get out of
  18433. sync with there head pointers. In this case the driver has moved
  18434. past buffers it owns, without clearing ownership, which results in
  18435. the peripheral and driver in a deadlock with each other. From
  18436. Anthony Merlino.
  18437. * Microchip/Atmel SAMA5Dx Drivers:
  18438. - SAMA5Dx Ethernet: Port Anthony Merlino's SAMv7 fix to similar
  18439. Ethernet driver for the SAMA5Dx. From Gregory Nutt.
  18440. * Microchip/Atmel SAMA5Dx Board:
  18441. - SAMA5D2-XULT: Move console from FLEXCOM4 to UART1. FLEXCOM4 does
  18442. not work for the Arduino serial. UART1 is used with the VCOM
  18443. provided by the EDBG. From Gregory Nutt.
  18444. * NXP i.MXRT:
  18445. - i.MXRT Clock Configuration: If SDRAM is activated it was only
  18446. running at 40MHz. This was because imxrt_clockconfig.c changed the
  18447. SEMC clock divider after the DCD was configured. This commit
  18448. corrects that. From Johannes.
  18449. * NXP i.MXRT Drivers:
  18450. - i.MXRT GPT: Correct register offsets. From David Sidrane.
  18451. - i.MXRT TMR: Fix addressing and restructure using common offset.
  18452. From David Sidrane.
  18453. - i.MXRT ADC: Error in offset. From David Sidrane.
  18454. * NXP/Freescacle Kinetis Boards:
  18455. - Teensy-3.x: Fix a mismatch in types in defconfig. From Gregory
  18456. Nutt.
  18457. * NXP LPC17xx:
  18458. - LPC176x Clock Configuration: The code preserves undocumented
  18459. reserved bits only if board does not set them to keep previous
  18460. behavior for boards where developers (hopefully) know what values
  18461. should be set into these bits. From Pavel Pisa.
  18462. - LPC17xx Clock Configuration: The enable of EMC clocks has to be
  18463. preserved when already enabled by loader. EMC and related pins
  18464. configuration has to be skipped if the system is run from SDRAM. A
  18465. region of SDRAM which is used by system must not be used for heap.
  18466. From Pavel Pisa.
  18467. * NXP LPC17xx Drivers:
  18468. - LPC17xx CAN: The name can_txready clashes with NuttX CAN core
  18469. global function. LPC178x has only single LPC17_SYSCON_PCLKSEL with
  18470. only single divisor. From Pavel Pisa.
  18471. * NXP LPC17xx Boards:
  18472. - Open1788: Add missing MPU configuration option. From Gregory Nutt.
  18473. * On Semi LC823450 Boards:
  18474. - LC823450-XGEVK: Remove -nostdinc to avoid build error From
  18475. Masayuki Ishikawa.
  18476. * STMicro STM32:
  18477. - STM32: Don't try including stm32_gpio.h from within chip/*.h
  18478. header files. Not only is bad style for a layered inclusion
  18479. system, but it doesn't always work. From Gregory Nutt.
  18480. * STMicro STM32 Drivers:
  18481. - STM32 PWM: Fix polarity and IDLE state configuration From Mateusz
  18482. Szafoni.
  18483. - STM32 ADC, PWM and TIM: (1) missing T1TRGO2 for JEXTSEL, (2) fix
  18484. sample time configuration for channels. The array index for
  18485. channels was missing, (3) fix TRGO/TRGO2 configuration, and (6)
  18486. support for advanced timers channel 5 and 6. From Mateusz Szafoni.
  18487. - STM32 Heap: Change 'if CONFIG_STM32_HAVE_CCM' to 'ifdef
  18488. CONFIG_STM32_HAVE_CCM' to avoid a warning when
  18489. CONFIG_STM32_HAVE_CCM is not defined. From Gregory Nutt.
  18490. - STM32 Oneshot Timer: Fix an error introduced be a previous timer
  18491. commit. From Maximilian Kriegleder
  18492. - STM32 Tickless Mode and Free-Running Timer: Apply Max's
  18493. stm32_oneshot.c fix to the tickless implementation and to the
  18494. freerunning time. From Mateusz Szafoni.
  18495. - STM32 PWM: Set CCPxP and CCPxNP bits if polarity is negative.
  18496. Missing commas in initializers could break compilation in certain
  18497. configurations. From Mateusz Szafoni.
  18498. - STM32F7 Interrupts: Add the missing macro STM32_IRQ_NIRQS used by
  18499. arch/arm/src/stm32f7/stm32_irq.c. From Kejun ZHOU.
  18500. - STM32H7 DMA: Fix AHB1 base addresses memory map. From Mateusz
  18501. Szafoni.
  18502. - STM32H7 SysTick: H7 appears to ignore the SysTick CLKSOURCE bit
  18503. and use the CPU clock in all cases. From Mateusz Szafoni.
  18504. * STMicro STM32 Boards:
  18505. - B-L072Z-LRWAN1: Fix typo in SPI1 pin definitions. From Mateusz
  18506. Szafoni.
  18507. - STM32F429I-DISCO: Handle multiple calls to the LCD
  18508. up_fbinitialize() function. From Gregory Nutt.
  18509. - STM32F769I-DISCO: Florian R. Hölzlwimmer reports that
  18510. stm32_appinitialize.c often has missing OK and NULL definitions.
  18511. This should be fixed by including sys/types.h where they are
  18512. defined. From GregoryN.
  18513. - STM32F769I-DISCO: Remove CONFIG_STM32F7_QUADSPI=y from the
  18514. configuration. This was apparently set before the implementation
  18515. was added. Now that the implementation was added, the configuration
  18516. will not build because it requires that QSPI GPIO pin definitions
  18517. be provided in the board.h header file. From Gregory Nutt.
  18518. * TI AM335x Drivers:
  18519. - AM335x Serial: Eliminate an error 'TIOCSBRK undeclared. From
  18520. Gregory Nutt.
  18521. * C Library/Header Files:
  18522. - strto*: In alll strto* function family, did't consume single '-'
  18523. or '+', allow sign in strotul(l)). From Johannes.
  18524. - getopt(): Add logic to reinitialize the stale context for the
  18525. FLAT/PROTECTED builds. In these builds getopt() global variables
  18526. may be shared by many tasks. If any task exits the getopt() loop
  18527. before all command line arguments have been parsed, then getopt()
  18528. global variables will be left in a bad state. The next time
  18529. getopt() is called, this logic should detect the bad state and
  18530. force the state of getopt() to be re-initialized so that it can be
  18531. reused. This logic is not full proof (it would fail, for example,
  18532. if you tried to parse the same command line twice) but should catch
  18533. the typical misuse cases. From Xiang Xiao.
  18534. - sscanf(): Initialized the lastc pointer to avoid the checks for
  18535. NULL. Removed a bug in the floating point parsing which allowed
  18536. several signs after each other. From Johannes.
  18537. - lib_vsprintf() (Legacy): No precision specifier resulted in
  18538. precision 0 but should be precision 6. From Johannes.
  18539. - lib_vsprintf() (Legacy): Correct justification for alternate forms
  18540. of %p and %P From ligd.
  18541. - lib_vsprintf() (Nano): Add long long support.
  18542. CONFIG_LIBC_LONG_LONG needs at least CONFIG_NANO_PRINTLEVEL 2.
  18543. Code size for compile without CONFIG_LIBC_LONG_LONG shouldn't be
  18544. affected. From Johannes.
  18545. - lib_vsprintf() (Nano): Remove CONFIG_LIBC_PRINT_MINIMAL. The
  18546. output in that configuration is unsatisfactory and inappropriate
  18547. for use with NuttX. For example, the output from many NSH commands
  18548. become corrupted and useless. Doesn't belong in this context.
  18549. From Gregory Nutt.
  18550. - libs/libc/symtab: Remove unused symtab_findorderedbyvalue(). From
  18551. Xiang Xiao.
  18552. - libs/libc/machine/arm: Fix the minor issue in libc arm machine
  18553. folder; MOVW/MOVT should use zero(not sign) extension. From Xiang
  18554. Xiao.
  18555. - libs/libc/libc.csv: Should be locale.h not local.h. From Joao
  18556. Matos.
  18557. - libs/libc/libc.csv: Needed logic for correct compilation if not
  18558. using CONFIG_LIBC_WCHAR. From Joao Matos.
  18559. - libxx: Always include libxx_cxa_guard.cxx in the build for for
  18560. uclibcxx. From zhangyuan7.
  18561. - include/stdbool.h: Define bool only when __cplusplus isn't
  18562. defined. From Xiang Xiao.
  18563. - include/nuttx/list.h: Added a Linux-compatible list
  18564. implementation. From zhuyanlin.
  18565. - include/nuttx/irq.h: Fix enter_critical_section/spin_lock_irqsave
  18566. macro typo error and remove the duplicated inclusion of
  18567. arch/irq.h. From Xiang Xiao.
  18568. - include/dlfcn.h: Correct naming of standard header file. Should
  18569. be dlfcn.h, not dllfcn.h. From Gregory Nutt.
  18570. - include/nuttx/nx/nxmu.h: This header file could be lethal; it
  18571. declared an #error if CONFIG_DISABLE_MQUEUE=y. From Gregory Nutt.
  18572. - include/nuttx/compiler.h: Important fix for C++ users.
  18573. compiler.h was using the value of __STDC_VERSION__ to determine if
  18574. inline functions are supported or not. If not then the keyword
  18575. inline was defined out. Good for C but bad for C++ because C++
  18576. does not define __STDC_VERSION__ at all. C++ applications may
  18577. draw in compiler.h indirectly via other head files and this can
  18578. result in C++ compiler problems since 'inline' is defined out.
  18579. This fix is to ignore the (undefined) __STDC_VERSION__ if
  18580. __cplusplus is defined. From Gregory Nutt.
  18581. - include/nuttx/elf.h: Adds missing extern "C" __cplusplus guard.
  18582. From Anthony Merlino.
  18583. - include/poll.h: Remove un-named union from 'struct pollfd'. It
  18584. is not required by OpenGroup.org and violates the NuttX C coding
  18585. standard because it is not C89 compatible. From Gregory Nutt.
  18586. - libs/libc/Makefile, libs/libnx/Makefile, and mm/Makefile: Remove
  18587. obj-path MKDEPS option since make dependency target (MT) is not
  18588. supported by some toolchains. From anchao.
  18589. - include/nuttx/compiler.h: Assume inline support if
  18590. __STDC_VERSION__ not defined. From Xiang Xiao.
  18591. * Tools:
  18592. - tools/convert-comments.c: Fix an error in handling of a blank C++
  18593. comment before a comment block. From Gregory Nutt.
  18594. - tools/lowhex.c: Fix an initialization problem that was causing
  18595. some odd behavior at the beginning of lines. From Gregory Nutt.
  18596. - tools/nxstyle.c: Fix logic that detects if an operator is
  18597. correctly delimited with spaces. sched/: Various changes because
  18598. sched/ C files were used as Guinea Pigs to test nstyle.c. From
  18599. Gregory Nutt.
  18600. - tools/nxstyle.c: Was confusing hex constants with strings staring
  18601. with 'x'. Added logic to complain about hex constants containing
  18602. upper case characters. From Gregory Nutt.
  18603. - tools/nxstyle.c: Fix logic error that prevent detecion of '/' and
  18604. '/=' as operators. net/: Minor updates resulting from testing
  18605. tools/nxstyle. From Gregory Nutt.
  18606. * NSH Library: apps/nshlib:
  18607. - NSH Console: Fix copy paste errors. Some Kconfig configuration
  18608. names needed CONFIG_ prefix. From David Sidrane.
  18609. - nshlib/nsh_timcmds.c: Uninitialized struct tm caused 'date -s' to
  18610. fail. From Valmantas Palikša.
  18611. * Examples: apps/examples:
  18612. - apps/examples/nxterm: Replace direct calls to nxtk_register()
  18613. with legal, indirect calls via boardctrl(BOARDIOC_NXTERM).
  18614. Replace calls to (deleted) nxterm_unregister(). The correct way
  18615. to delete a driver is by unlink'ing it. From Gregory Nutt.
  18616. - apps/examples/nxterm: Most configuration options were not
  18617. available in the Kconfig file. From Gregory Nutt.
  18618. - apps/examples/nxterm: Replace illegal direct calls to
  18619. nxterm_redraw() and nxterm_kbdin() with new boardctl() calls.
  18620. From Gregory Nutt.
  18621. - apps/examples/nxterm: NxWM passed the size of the NxTK sub-window
  18622. but nxterm example passed the size of the complete NxTK window.
  18623. They must be made consistent. From Gregory Nutt.
  18624. * Graphics Utilities: apps/graphics:
  18625. - apps/graphics/NxWidgets/nxwm: Correct an error in the type of the
  18626. return value in CCalibration. From Gregory Nutt.
  18627. - apps/graphics/NxWidgets/nxwm: Replace direct calls to
  18628. nxtk_register() with legal, indirect calls via
  18629. boardctrl(BOARDIOC_NXTERM). Replace calls to (deleted)
  18630. nxterm_unregister(). The correct way to delete a driver is by
  18631. unlink'ing it. From Gregory Nutt.
  18632. - apps/graphics/NxWidgets: Replace illegal direct calls to
  18633. nxterm_redraw() and nxterm_kbdin() with new boardctl() calls.
  18634. From Gregory Nutt.
  18635. * Modbus: apps/modbus:
  18636. - apps/modbus/Kconfig: Fix modbus master Kconfig. Modbus Master
  18637. ASCII compiles correctly. From Alan Carvalho de Assis.
  18638. * Network Utilities: apps/netutils:
  18639. - apps/netutils/dhcpc/dhcpc.c: Fix an error for DHCP REQUEST
  18640. receiving a NAK.In DHCP Request operation, no need to update
  18641. ciaddr to the client address and keep it as 0. From Kevin Liu.
  18642. * System Utilities: apps/system:
  18643. - apps/system/vi/vi.c: Fix an infinite loop bug that can show up in
  18644. some cases (plus a couple of other items). From Ken Pettit.
  18645. - apps/system/vi: Condition KEY_CMDMODE_REPEAT with
  18646. CONFIG_SYSTEM_VI_INCLUDE_COMMAND_REPEAT to avoid build error when
  18647. option is not selected. From Anthony Merlino.
  18648. - apps/system/nxplayer/nxplayer.c: Fix build error when only enable
  18649. CONFIG_AUDIO_EXCLUDE_VOLUME is enabled. From ZhongAn.
  18650. - apps/system/system/system.c: Correct a path name. From anchao.
  18651. - apps/system/taskset: Fix command arguments are not passed. From
  18652. Masayuki Ishikawa.
  18653. * Testing: apps/testing:
  18654. - apps/testing/ostest/timedmutex.c: pthread_mutex_timedlock()
  18655. returns EDTIMEDOUT on a timedout, not EAGAIN. From Gregory Nutt.
  18656. * Tools: apps/tools:
  18657. - apps/tools/mksymtab.sh: 'export LC_ALL=C' to get the traditional
  18658. sort order From anchao.
  18659. NuttX-7.30 Release Notes
  18660. ------------------------
  18661. The 130th release of NuttX, Version 7.30, was made on May 19, 2019,
  18662. and is available for download from the Bitbucket.org website. Note
  18663. that release consists of two tarballs: nuttx-7.30.tar.gz and
  18664. apps-7.30.tar.gz. These are available from:
  18665. https://bitbucket.org/nuttx/nuttx/downloads
  18666. https://bitbucket.org/nuttx/apps/downloads
  18667. Both may be needed (see the top-level nuttx/README.txt file for build
  18668. information).
  18669. Additional new features and extended functionality:
  18670. * Core OS:
  18671. - pthreads: Added non-standard pthread_get_stackaddr_np() and
  18672. pthread_get_stacksize_np(). From Joao Matos.
  18673. - boardctl(): Add a command to start the VNC server. From Gregory
  18674. Nutt.
  18675. - Signals: Remove references to CONFIG_DISABLE_SIGNALS in many
  18676. files. Signals can no longer be disabled. From Gregory Nutt.
  18677. * Wireless/Wireless Drivers:
  18678. - NRF24L01: Add support for "multicast" TX mode - no waiting for ACK
  18679. (needs to be enabled with fcntl SETTXPAYLOADNOACK) From Leif Jakob.
  18680. * Graphics/Display Drivers:
  18681. - NX Graphics: Add new server->client callback to notify the window
  18682. client of server events. Remove the old 'blocked' callback and just
  18683. make it one case of an 'event' callback. From Gregory Nutt.
  18684. - NX Graphics: Implement new interfaces nx_synch() and nxtk_synch().
  18685. This are used to synchronize the NX server with the window client.
  18686. Currently most of the logic is equivalent to nx_block() and
  18687. nxtk_block(), but with slightly different semantics. They are
  18688. separate now because they are likely to diverge in the future.
  18689. From Gregory Nutt.
  18690. - NX Graphics: Add support for modal windows. From Gregory Nutt.
  18691. - NX Graphics: Implement a software cursor. The cursor behaves
  18692. like a "sprite", always at the top of the display with a
  18693. transparent background. Includes new NX interfaces to show/hide
  18694. the cursor, set the cursor image, and to move the cursor position.
  18695. From Gregory Nutt.
  18696. - NX Graphics: Added support for hiding windows. This features is
  18697. needed by Twm4Nx: When a window is iconified, the icon should
  18698. appear on the background and the window should disappear (i.e., be
  18699. hidden). The windows needs to remain healthy and to be updated in
  18700. all ways, but it cannot affect the display content. Conversely,
  18701. when the icon is clicked, the icon needs to be hidden on the
  18702. background and the window needs to be restored in its current
  18703. state (which may be different than the state of the window at the
  18704. time it was iconified. From Gregory Nutt.
  18705. - NX Graphics: Windows can now be created in the hidden state.
  18706. This can be used to clean up initial window presentation which may
  18707. involve several steps. This makes those steps all invisible until
  18708. nx[tk]_setvisibility() is called to make the windows visible.
  18709. From Gregory Nutt.
  18710. - NX Graphics: Add new NX interfaces to query if a window is hidden
  18711. or not. From Gregory Nutt.
  18712. - NxTerm IOCTLs: Replace specific interfaces between boardctl and
  18713. nxterm with a generalized IOCTL interface. From Gregory Nutt.
  18714. - NxTerm: Add a new IOCTL that can be used to inform NxTerm that
  18715. the size of a window has changed. From Gregory Nutt.
  18716. * Other Common Device Drivers:
  18717. - CAN Upper Half: Support multiple readers of the same port From
  18718. Valmantas Paliksa.
  18719. - MAX7456: Adds a read-only (for now) /dev/osd0/CM interface for
  18720. obtaining the chip's onboard NVM character map data. Use seek()
  18721. to position the cursor over a desired subset of bytes, or request
  18722. a large read to obtain the entire EEPROM memory contents. Values
  18723. are returned in binary form. Use hexdump, etc. to format them for
  18724. viewing. From Bill Gatliff.
  18725. - Serial Upper Half: The upper half serial driver configuration
  18726. CONFIG_SERIAL_DMA used to enable DMA on both RX and TX streams.
  18727. This was replaced with CONFIG_SERIAL_RXDMA and CONFIG_SERIAKL_TXDMA
  18728. which will permit supporting DMA on only one or both streams.
  18729. From Gregory Nutt.
  18730. - FUSB303: Add FUSB303 driver From Juha Niskanen.
  18731. * Microchip PIC32MZ Drivers:
  18732. - PIC32MZ GPIO: Adds support for edge detect mode. Slew Rate was
  18733. also added for completeness. From Abdelatif Guettouche.
  18734. * Microchip/Atmel SAMv7 Boards
  18735. - SAME70-xplained: Add a configuration for test Twm4Nx using VNC.
  18736. From Gregory Nutt.
  18737. * Microchip LPCxx Drivers:
  18738. - LPC17xx Ethernet: Added support for KSZ8081RNA PHY to LPC17xx
  18739. Ethernet driver. From jjlange.
  18740. - LPC17xx Ethernet: Added support for Ethernet PHY ioctl() on
  18741. LPC17xx. From jjlange.
  18742. * NXP i.MX RT:
  18743. - .i.MXRT1020: Gets imx1020 family support started. It is pretty
  18744. similar, but subtly different, to 1050/60 (less PLLs, less GPIO
  18745. banks, differently numbered ports etc. etc.).
  18746. Moved each of the imxrt family-specific files into its own
  18747. subdirectory to tidy things up a bit, and remove the vast majority
  18748. of ifdefs from the mainline code.
  18749. From Dave Marples.
  18750. * NXP LPC54xx Drivers
  18751. - LPC54xx USB FS Host: Bring in the USB FS OHCI driver from LPC17.
  18752. This is a quick'n'dirty port from LPC17 that I hope finish
  18753. sometime later. Currently, it is missing hardware clocking setup
  18754. and is not even hooked into the build system yet. From Gregory
  18755. Nutt.
  18756. * NXP LPC54xx Boards
  18757. - LPCXpresso-LPC54628: Add a Twm4Nx configuration. From Gregory Nutt.
  18758. * Sony CXD56xx
  18759. - CXD56xx: Add initial CXD56xx chip driver sources. From Nobuto
  18760. Kobayashi.
  18761. * Sony CXD56xx Spresense Board
  18762. - Spresense: Add Spresense board support. This is not the full
  18763. Spresense BSP from Sony, only the barebones logic to present an
  18764. NSH console. From Nobuto Kobayashi.
  18765. * STMicro STM32:
  18766. - STM32F7 Clocking: Add support for using the HSE in bypass mode,
  18767. configured by board.h From Anthony Merlino.
  18768. - STM32F7 Clocking: Added support for TICKLESS mode. From Valmantas
  18769. Paliksa.
  18770. - STM32H7 Backup Domain: Add backup domain control registers. From
  18771. Jukka Laitinen.
  18772. - STM32H7 Clocking: Set the STM32H7 default HSI pre-divider to 4.
  18773. The I2C driver currently assumes HSI clock to be 16MHz. From Jukka
  18774. Laitinen.
  18775. - STM32H7 Memorymap.: Add the STM32H7 SYSTEM_UID and DEBUGMCU_BASE
  18776. register definitions. From Jukka Laitinen.
  18777. - STM32L071x: Add support for STM32L071x. From Mateusz Szafoni.
  18778. * STMicro STM32 Drivers:
  18779. - STM32 OTGHS Host: Allow VBUS monitoring for the OTG_HS host
  18780. driver. From Jason Harris.
  18781. - STM32F0/L0 ADC: Initial ADC support for the STM32 M0 From Mateusz
  18782. Szafoni.
  18783. - STM32F0/LO I2C: Port STM32F7 I2C to STM32F0/L0, From Mateusz Szafoni.
  18784. - STM32F1 FLASH: As noted by Matias N, the FLASH base address used
  18785. was incorrect. It was using the address of the FLASH data, not
  18786. the address of the FLASH registers. From Gregory Nutt.
  18787. - STM32F3 I2C: Port STM32F7 I2C to STM32F3. From Mateusz Szafoni.
  18788. - STM32F7 Ethernet.c: Auto-generate Ethernet MAC address from
  18789. device unique ID. From Valmantas Paliksa.
  18790. - STM32F7 FLASH: Add flash block mapping support for progmem. From
  18791. Valmantas Paliksa.
  18792. - STM32F7 FMC: Updated stm32_fmc.h with more FMC definitions. From
  18793. Joao Matos.
  18794. - STM32F7 GPIO: Adds additional pin alternate function for SPI2.
  18795. From Anthony Merlino.
  18796. - STM32F7 PWM: Ported the PWM from F4 to F7. From Eduard Niesner.
  18797. - STM32F7 SDMMC: Support bypassing the input clock divider on the
  18798. SDMMC interface. This enables using the full clock speed provided
  18799. to the SDMMC interface with no dividing. From Anthony Merlino.
  18800. - STM32F7 SPI: Add SPI DMA threshold configuration. From Valmantas
  18801. Paliksa.
  18802. - STM32F7 UID: Add UID access. From Valmantas Paliksa.
  18803. - STM32F7 USB: USB High speed for STM32F7 series From Ramtin Amin.
  18804. - STM32H7 Ethernet: Add stm32h7 Ethernet driver. This is the
  18805. initial push for the Ethernet driver. The driver has been tested
  18806. to be working on a nucleo board. This is still WIP, it doesn't
  18807. for example do MAC filtering on HW level, but just receives all
  18808. Ethernet packets. From Jukka Laitinen.
  18809. - STM32H7 GPIO: Add the GPIO_ETH_RMII_RXD1 pinmap definition for
  18810. STM32H7. From Jukka Laitinen.
  18811. - STM32H7 SDMMC: Add STM32H7 SDMMC driver. It is mostly copied
  18812. from STM32F7, with modified register addresses and bits, and IDMA
  18813. dded. This is still WIP; it only works with IDMA. From Jukka
  18814. Laitinen.
  18815. - STM32H7 Timers: Add timer devices driver for STM32H7. This i
  18816. mostly a forklift from stm32f7 with some h7 specific
  18817. modifications. From Jukka Laitinen.
  18818. - STM32L0 AES: Add support for AES for L0. From Mateusz Szafoni.
  18819. - STM32L0 RND: Add support for RND. From Mateusz Szafoni.
  18820. - STM32L0 HSI48: Add support for HS148 for L0. Move HSI48 enable
  18821. from stm32_usbdev.c to stm32xx_rcc.c From Mateusz Szafoni.
  18822. - STM32L4 USB FS Device: Add USB FS device support. From Juha
  18823. Niskanen.
  18824. - STM32L4 HSI48: Port HSI48 from STM32F0/L0 From Juha Niskanen.
  18825. - STM32L4 CRS: Port CRS from STM32F0/L0 From Juha Niskanen.
  18826. * STMicro STM32 Boards:
  18827. - B-L072Z-LRWAN1: Add ADC example. From Mateusz Szafoni.
  18828. - B-L072Z-LRWAN1: Add nxlines_oled example (ssd1306). Add support
  18829. for the I2C tool From Mateusz Szafoni.
  18830. - Nucleo-144: Added STM32_RCC_DCKCFGR2_DSISRC definition to board.h.
  18831. From Joao Matos.
  18832. - Nucleo-144: Mount sysfs for ifconfig for f767-netnsh/defconfig.
  18833. Even if ifconfig is working to set IP, it will not work to display
  18834. NICs (without args) From Phil Coval.
  18835. - Nucleo-144: Add basic PWM support to nucleo-144 board. More PWMs
  18836. and multi channels support may be investigated and added later.
  18837. Tested on Nucleo-F767ZI. From Phil Coval.
  18838. - Nucleo-F303ZE: Add nxlines_oled example (ssd1306) From Mateusz
  18839. Szafoni.
  18840. - Nucleo-H743ZI: Enable the FPU. From Jason Harris.
  18841. - Nucleo-H743ZI: Add support for I2C devices: ssd1306, pca9635,
  18842. i2ctools From Mateusz Szafoni.
  18843. - Nucleo-H743ZI: Add default clock configuration for SDMMC for
  18844. Nucleo-H743ZI's board.h. From Jukka Laitinen.
  18845. - Nucleo-H743ZI: Add the input clock frequency definitions in
  18846. board.h for all the drivers. Assumes internal clock source for
  18847. all the timers. From Jukka Laitinen.
  18848. - STM32F4 Discovery: Keep c++ global constructor symbols From
  18849. Masayuki Ishikawa.
  18850. - Nucleo-L073RZ: Add MFRC522 support From Mateusz Szafoni.
  18851. - OmnibusF4: Add boardctl() reset logic. From Bill Gatliff.
  18852. - OmnibusF4: Add board_ioctl() which is needed only if
  18853. CONFIG_BOARDCTL_IOCTL=y is selected; Update NSH configuration
  18854. to enable board IOCTLs and DFU mode reset. From Bill Gatliff.
  18855. - STM32L Discovery: Add support for board_late_initialize(), Move
  18856. common initialization logic out of board_app_initialize() into new
  18857. file stm32_bringup.c From Gregory Nutt.
  18858. - STM32F103-Minimum: Add PROCFS automount support From Alan
  18859. Carvalho de Assis.
  18860. * Libraries/Header Files:
  18861. - include/alloca.h: Add alloca.h. Included limited implementation
  18862. of alloc() that is only available for GCC versions 3 and above.
  18863. From Joao Matos.
  18864. - include/cxx/cstdlib: Add std::random() From Gregory Nutt.
  18865. * apps/ General:
  18866. - Many locations: Remove references to CONFIG_DISABLE_SIGNALS.
  18867. Signals can no longer be disabled. From Gregory Nutt.
  18868. * Examples/Tests: apps/examples:
  18869. - apps/examples/fb: Add some awareness of overlays to
  18870. apps/examples/fb From Matthew Koch.
  18871. - apps/examples/lvgldemo. Update to Littlevgl 5.3. From Matthew
  18872. Koch.
  18873. - apps/examples/pwfb: Extend example to verify software cursors.
  18874. From Gregory Nutt.
  18875. - apps/examples/pwfb: Add options to reduce the number of windows.
  18876. This is helpful during debug to reduce the complexity. From
  18877. Gregory Nutt.
  18878. * Network Utilities: apps/netutils:
  18879. - apps/netutils/cjson: Support for the current version of cJSON.
  18880. From Mateusz Szafoni.
  18881. - apps/netutils/libcurl4nx: This is an initial commit libcurl4nx.
  18882. It is not complete yet, but I still wish to commit the unfinished
  18883. bits to describe the roadmap, and because it is already usable. It
  18884. will be updated and fixed in the future weeks and months, certainly
  18885. including POST support and later, SSL. From Sebastien Lorquet.
  18886. - apps/netutils/netinit. This commit removes the private network
  18887. initialization logic from NSH and puts in a common location at
  18888. apps/netutils/netinit. Now that netork initialization logic can be
  18889. used by applications that do not include NSH. From Gregory Nutt.
  18890. - apps/netutils/netlib: Add a more flexible version of
  18891. netlib_parsehttpurl(). This one can parse any URL, and is
  18892. extensible so future improvements keep the same API. From Sebastien
  18893. Lorquet.
  18894. * System Utilities: apps/system
  18895. - apps/system/spi: I needed a small test tool for spi in the style of
  18896. the I2C tool, but I didn't see one so I've hacked one out of the I2C
  18897. tool source. From Dave Marples.
  18898. * Graphics: apps/graphics:
  18899. - apps/graphics/twm4nx. This release introduces Twm4Nx. Twm4Nx is a
  18900. "port" of TWM, Tab Window Manager (or Tom's Window Manager) version
  18901. 1.0.10 to NuttX NX windows server. No, a port is not the right
  18902. word. It is are-design of TWM from the inside out to work with the
  18903. NuttX NX server and NXWidgets. The name Twm4Nx reflects this
  18904. legacy. But Twm4Nx is more a homage to TWM than a port of TWM.
  18905. The original TWM was based on X11 which provides a rich set of
  18906. features. TWM provided titlebars, shaped windows, several forms of
  18907. icon management, user-defined macro functions, click-to-type and
  18908. pointer-driven keyboard focus, graphic contexts, and user-specified
  18909. key and pointer button bindings, etc.
  18910. Twm4Nx, on the other hand is based on the NuttX NX server which
  18911. provides comparatively minimal support. Additional drawing support
  18912. comes from the NuttX NxWidgets library (which necessitated a
  18913. conversion to C++).
  18914. Twm4Nx is greatly stripped down and targeted on small embedded systems
  18915. with minimal resources. For example, no assumption is made about the
  18916. availability of a file system; no .twmrc file is used.
  18917. The state of the "port" is available in
  18918. apps/graphics/twm4mx/README.txt. To summarize: The port is fully
  18919. functional but probably only at an alpha release level. The only
  18920. missing critical feature is built-in touchscreen calibration.
  18921. - apps/graphics/littlevgl. Update to Littlevgl 5.3. From Matthew
  18922. Koch.
  18923. - apps/graphics/nxglyphs: Put all NxWidgets and NxWM glyphs into a
  18924. common directory where they can eventually be shared. Decouple
  18925. from nxwidgets and nxwm so that they can be used elsewhere.
  18926. Creates include/graphics/nxglyphs.h From Gregory Nutt.
  18927. - apps/graphics/nxglyphs: Add some new cursor bitmap images. From
  18928. Gregory Nutt.
  18929. - apps/graphics/nxglyphs: Add mkcursor.c. Will auto-generate
  18930. cursor image header file from Gimp C output. From Gregory Nutt.
  18931. - apps/graphics/nxglyphs: Add 16x16 cursor images. 30x30 are kind
  18932. of large on small displays. From Gregory Nutt.
  18933. - apps/graphics/nxglyphs: Add a new resize cursor image. From
  18934. Gregory Nutt.
  18935. - apps/graphics/nxwm: Separate NxWidgets and NxWM into separate
  18936. directories. Remove old, common NxWidgets directory. From
  18937. Gregory Nutt.
  18938. - apps/graphics/nxwm: Move the NxWM unit test main() to apps/nxwm.
  18939. It is no longer a unit test, but the main startup entry point for
  18940. NxWM. From Gregory Nutt.
  18941. - apps/graphics/nxwidgets: Update NX window clients so that they
  18942. use the new 'event' callback (vs. the obsoleted 'blocked' callback).
  18943. From Gregory Nutt.
  18944. - apps/graphics/nxwidgets: Add a synchronize method to every window.
  18945. This is a wrapper arounc nx[tk]_sync and permits C++ applications
  18946. to synchronize with the NX server. From Gregory Nutt.
  18947. - apps/graphics/nxwidgets: Add support for modal windows. From
  18948. Gregory Nutt.
  18949. - apps/graphics/nxwidgets: Add cursor control methods to the
  18950. CNxServer class. From Gregory Nutt.
  18951. - apps/graphics/nxwidgets: Add a method to CButtonArray that will
  18952. allow us to dynamically resize the array (at the cost of losing all
  18953. button labels). From Gregory Nutt.
  18954. - apps/graphics/nxwidgets: Fix a possible deadlock condition when
  18955. waiting for window geometry data that will never come. Fixed by
  18956. re-requesting geometry data if we don't already have it. From
  18957. Gregory Nutt.
  18958. - apps/graphics/nxwidgets: Add handshake to
  18959. CWidgetControl::getWindowHandle() to avoid returning a NULL
  18960. handle. From Gregory Nutt.
  18961. - apps/graphics/nxwidgets: CNxTkWindow, CNxWindow, CNxServer: Add
  18962. support to create RAM backed windows. From Gregory Nutt.
  18963. - apps/graphics/nxwidgets: Add methods to all windows to query if a
  18964. window is visible or hidden. From Gregory Nutt.
  18965. Bugfixes. Only the most critical bugfixes are listed here (see the
  18966. ChangeLog for the complete list of bugfixes and for additional, more
  18967. detailed bugfix information):
  18968. * Core OS:
  18969. - Clock Initialization: A recent change broke Tickless mode for all
  18970. architectures. The original change was intended to handle the
  18971. case where up_timer_gettime may not start from zero case. The
  18972. side effect is that this changed to order of initialization of
  18973. clocking, breaking Tickless mode:: After this change the tickless
  18974. timer structures are used before they are initialized in
  18975. clock_inittime(). The commit has been reverted.
  18976. - pthread Stack Attribute: Fixed pthread_attr_get/setstacksize
  18977. param type to size_t. From Joao Matos.
  18978. - Signals: The abnormal termination signal handler was just calling
  18979. exit() conditionally when, for example, Ctrl-C is sent to a task.
  18980. The abnormal termination handler must obey the rules of cancellation
  18981. points: If cancellation is disabled, then the abnormal termination
  18982. logic must wait for cancellation to be re-enabled; If cancellation
  18983. is deferred then the abnormal termination logic may have to wait
  18984. for the victim task to enter or exit a cancellation point. From
  18985. Gregory Nutt.
  18986. - Syscall: Added support for munmap() syscall. From Joao Matos.
  18987. - Syscall: Fix a warning due to inconsistencies in return type in
  18988. syscall.csv. From Gregory Nutt.
  18989. - Syscall: Correct an error syscall.csv. Error occurred when
  18990. creating the munmap() proxy if CONFIG_FS_RAMMAP is not defined.
  18991. From Gregory Nutt.
  18992. * File System/Block and MTD Drivers:
  18993. - fs/littlefs/lfs.c: Fix lfs_format bug. In superblock disk root-
  18994. block assignment, the second must be root[1]. From YanLin Zhu.
  18995. * Networking/Network Drivers:
  18996. - getsockname(): Fix addrlen check in socket debug features.
  18997. Getsockname() checked erroneously a pointer against 0, where the
  18998. intention was to dereference the pointer and to check the length.
  18999. This causes also a compilation failure if the code is compiled
  19000. with CONFIG_DEBUG_FEATURES and with -Werror flag set. From Jukka
  19001. Laitinen.
  19002. - Network Locking: net_lock() and net_restorelock() now return a
  19003. value. That values is the standard zero on success; negated errn
  19004. value on failure. This return value is only needed for
  19005. -ECANCELED. That cancellation indication needs to ripple all the
  19006. way back to the highest levels where the cancellation can be acted
  19007. on. This commit only adds the return value; it does not add
  19008. checking for the return values of net_lock() and net_restorelock()
  19009. at higher levels. That is required too. From Gregory Nutt.
  19010. - PHY Notification Driver: Change sprintf to strncpy in phy_notify.
  19011. On some platforms, the sprintf doesn't accept a const char* as a
  19012. format argument. From Jukka Laitinen.
  19013. - 6LoWPAN HC06: Correct an endian-ness problem in HC06 decompression.
  19014. From Ivan Ucherdzhiev.
  19015. * Wireless/Wireless Drivers:
  19016. - NRF24L01: Don't block in read if file descriptor is O_NONBLOCK.
  19017. From Leif Jakob.
  19018. * Graphics/Display Drivers:
  19019. - NX Graphics: Fix an error in coordinate system usage. Expected
  19020. rectangle in device coordinate frame, but was passing the
  19021. rectangle in window-relative coordinate frame. From Gregory Nutt.
  19022. - NX Graphics: Fix an oversight in the implementation of per-window
  19023. framebuffers. It is true that redraw callbacks can be suppressed
  19024. for all cases ... EXCEPT ONE: When the window is resized to a
  19025. larger size, then the newly exposed territory must be drawn for
  19026. the first time. From Gregory Nutt.
  19027. - NxTK: Fix an error in handling mouse events for framed windows.
  19028. When drawing, NX may report mouse positions outside of the Window.
  19029. The is only for NX windows, but the outside-the-side positions were
  19030. being discarded by nxtk_events(). From Gregory Nutt.
  19031. - NxTK: Refuse to open a toolbar of height zero or less. From
  19032. Gregory Nutt.
  19033. - Nxglib: Correct bogus logic in nxgl_interesting(). From Gregory
  19034. Nutt.
  19035. - VNC Server: Fix an error in color conversion. From Gregory Nutt.
  19036. * Common Drivers:
  19037. - APDS9960: Initial state of allocated structure was not being set.
  19038. Noted by Leif Jacob. From Gregory Nutt.
  19039. - MFRC522: In mfrc522_read uid.sak must be different from 0x04 not
  19040. as before from 0x00. SAK == 0x00 is a valid PICC type. Add
  19041. interface to read MIFARE Ultralight data From Mateusz Szafoni.
  19042. - Power: Fix build for battery gauge From Tom Kopriva.
  19043. - Syslog: In syslog buffered mode, avoid IOB alloc lock-up with
  19044. heavy network activity. This change alters the buffered syslog
  19045. logic to use 'iob_tryalloc' instead of blocking 'iob_alloc' to
  19046. avoid syslog printing from getting stuck when all IOBs are
  19047. depleted by network activity. An issue was seen when large
  19048. incoming TCP transfer uses free IOB buffers and processing
  19049. threads try to use syslog which then block at iob_alloc. From
  19050. Jussi Kivilinna.
  19051. - USB CDC/ACM Device: This fixes a problem where the host sent a
  19052. "get descriptor" message of type "standard" with a recipient of
  19053. type "interface". Since the composite driver would only pass
  19054. messages to the child interfaces when a message was not
  19055. "standard", this message was not handled. I changed the condition
  19056. so that the composite driver checks not only if this is a
  19057. "standard" message but if it is also directed to the device.
  19058. Otherwise, the handling is delegated to the children of the
  19059. composite device. From Matias N.
  19060. - USB HID: The usbhid_descriptor_s struct defined in hid.h included
  19061. some optional fields that should not be hard-defined as part of
  19062. that structure. An arbitrary number of optional entries could be
  19063. included in the descriptor, but that is not properly represented.
  19064. No code on NuttX currently depends on the structure definition
  19065. with an optional descriptor so it is safe to remove. From Matias N.
  19066. - USB MSC Device: Correct typo "const const" to "const".
  19067. arch/arm/src/stm32/stm32_i2s.c: In debug assertions, it on a
  19068. sample rate of 0, but based on other code comments this value
  19069. implies disabling the i2s master clock. From Jason Harris.
  19070. - Zerocross Driver: Fix some errors when debug assertions are
  19071. enabled. From Matous Pokorny.
  19072. - User Leds: Fix ledset validity check in ULEDIOC_SETALL ioctl.
  19073. From Jussi Kivilinna.
  19074. * Architecture Common:
  19075. - All board interfaces (those starting with board_) must be defined
  19076. in board-specific logic. Otherwise, they cannot be customized for
  19077. specialized usage by different boards. The board_reset()
  19078. interface was defined in architecture-specific logic that only
  19079. called up_systemreset(). That is useless! This change removes
  19080. the board_reset() implementation from the architecture-specific
  19081. code and re-implements it in the src/ directory of each board that
  19082. has CONFIG_BOARDCTL_RESET enabled. That is the correct functional
  19083. partitioning. From Gregory Nutt.
  19084. - Start-up: Remove dependency on CONFIG_ARCH_FPU for inclusion of
  19085. nvic.h in all other *_start.c files. From Gregory Nutt.
  19086. - Architecture initialization: up_initialize() needs to know about
  19087. ramlog_consoleinit() From Jason Harris.
  19088. * Microchip PIC32MZ Drivers:
  19089. - PIC32MZ GPIO: Corrects the gpioirq when mismatch mode is
  19090. selected. From Abdelatif Guettouche.
  19091. * ARMv7-A:
  19092. - ARMv7-A Build: Fix 'cc1: warning: switch -mcpu=cortex-a7 conflicts
  19093. with -march=armv7-a switch' From Xiang Xiao.
  19094. * Nordic NRFxx
  19095. - NRF52: Fix compiler error in nrf52832_errdata.c when following
  19096. C89. From Erik Englund.
  19097. * STMicro STM32:
  19098. - STM32 Configuration: It seems one option in the timer configuration
  19099. was lost at some point. From Matias N.
  19100. - STM32 start-up: Inclusion of nvic.h should not be conditioned on
  19101. CONFIG_ARCH_FPU. From Mateusz Szafoni.
  19102. - STM32H7 Clocking: Fixes for STM32H7 RCC definitions. From Jukka
  19103. Laitinen.
  19104. * STMicro STM32 Drivers:
  19105. - STM32F0/L USART: A few fixes for USART. From Mateusz Szafoni.
  19106. - STM32F1/F30 FLASH: RCC register access should not be offset by
  19107. FLASH register base. From Matias N.
  19108. - STM32F7 CAN: CAN fixes. From Valmantas Paliksa.
  19109. - STM32F7 I2C: I2C Interrupt storm fix. I2C track bad state. Now
  19110. we track bad state and so the SW reset only when it occurs. From
  19111. David Sidrane.
  19112. - STM32F7 OTG: Fixes some macros related to OTGFS/OTGHS preventing
  19113. OTGHS from working. From Anthony Merlino.
  19114. - STM32F7 OTG Device: Correct hard-coded FIFO size that is wrong
  19115. for OTG FS. From Ramtin Amin.
  19116. - STM32F7 QSPI: Fix QuadSPI interrupts. This commit essentially
  19117. replaces wrongly named configuration variable STM32F7_QSPI_INTERRUPTS
  19118. into CONFIG_STM32F7_QSPI_INTERRUPTS. Also fixes some getreg/
  19119. putreg where register addresses were used instead of register
  19120. offsets From Pierre-Olivier Vauboin.
  19121. - STM32H7 I2C: Fix I2C4 compilation for STM32H7. From Jukka
  19122. Laitinen.
  19123. - STM32H7 UART: Fix compilation for UART7, UART8 and I2C4s. From
  19124. Jukka Laitinen.
  19125. - STM32L4 USB Device: Add missing PWR USBV enable, correct two USB
  19126. register bits From Juha Niskanen.
  19127. * STMicro STM32 Boards:
  19128. - STM32F103-Minimum: USB reset was not working appropriately since
  19129. the pin connected to D+ was incorrectly defined and the pullup/down
  19130. logic was reversed. From Matias N.
  19131. - Nucleo-l476RG: Fix some errors in GPIO logic when debug assertions
  19132. are enabled. From Matous Pokorny.
  19133. - Nucleo-L476RG: Add missing files of BMP180 example for Nucleo-L476RG.
  19134. From Fabian Justi.
  19135. - STM32F103-Minimum GPIO: Fix some errors when debug assertions are
  19136. enabled. From Matous Pokorny.
  19137. - STM32L4 PWM: Fix register addr, en_bit and resetbit for pwm timers.
  19138. From Fabian Justi.
  19139. - STM32F746G-DISCO: I2C1 config on stm32f746g-disco. Typo in
  19140. stm32f7/stm32_i2c.c From Matthew Koch.
  19141. * C Library/Header Files:
  19142. - include/limits.h: Remove the duplicate TMP_MAX definitions. The
  19143. standard requires that TMP_MAX defines be in stdio.h. From
  19144. Xiang Xiao.
  19145. - include/sys/select.h: Fix compiler error when
  19146. CONFIG_NSOCKET_DESCRIPTORS is undefined. From Xiang Xiao.
  19147. - include/signal.h: Add commented out definition of the si_addr
  19148. field. From Joao Matos.
  19149. - include/unistd.h: Fixed R_OK/X_OK definitions to match POSIX.
  19150. From Joao Matos.
  19151. - libs/libc/locale: Improved error handling in setlocale(). From Joao
  19152. Matos.
  19153. - libs/libc: Fixed return code in uname(). From Joao Matos.
  19154. - libs/libc/stdio: Restore support for printing NULL string as
  19155. "(null)". Legacy printf supported printing "(null)" in place for
  19156. NULL string: printf("null: %s\n", NULL); => null: (null). This
  19157. commit restores this functionality for new printf library. From
  19158. Jussi Kivilinna.
  19159. * Examples: apps/examples:
  19160. - apps/examples/pca9635/pca9635_main.c: fix compilation error. From
  19161. Mateusz Szafoni.
  19162. * Graphics Utilities: apps/graphics:
  19163. - Various graphics apps (and apps/examples): If CONFIG_VNCSERVER=y,
  19164. don't call vnc_default_fbinitialize() directly. That is a violation
  19165. of the portable POSIX interface. Instead, call
  19166. boardctl(BOARDIOC_VNC_START);. From Gregory Nutt.
  19167. - apps/graphics/nxwidgets: CWidgetControl::handleLeftClick now
  19168. returns a value to indicate if the click was actually processed or
  19169. not. CWidgetControl::pollMouseEvents: Correct return value. From
  19170. Gregory Nutt.
  19171. - apps/graphics/nxwidgets/: NXWidgets::CNxWidgets: Fix some issues
  19172. with returned values. On setting the widget size or position, it was
  19173. returning false if there was no change in size or position. Many
  19174. places in the code were treating the false return value as an error.
  19175. From Gregory Nutt.
  19176. * System Utilities: apps/system:
  19177. - apps/system/nxplayer: Fix some logical errors from recent commits.
  19178. They broke the build of the nxplayer as a library vs. a task.
  19179. NuttX-7.31 Release Notes
  19180. ------------------------
  19181. The 131st release of NuttX, Version 7.31, was made on July 21, 2019,
  19182. and is available for download from the Bitbucket.org website. Note
  19183. that release consists of two tarballs: nuttx-7.31.tar.gz and
  19184. apps-7.31.tar.gz. These are available from:
  19185. https://bitbucket.org/nuttx/nuttx/downloads
  19186. https://bitbucket.org/nuttx/apps/downloads
  19187. Both may be needed (see the top-level nuttx/README.txt file for build
  19188. information).
  19189. Additional new features and extended functionality:
  19190. * Core OS:
  19191. - poll(): Removed all references to CONFIG_DISABLE_POLL. The
  19192. standard POSIX poll() can no longer be disabled. From Gregory Nutt.
  19193. - LWL console: Add support for OpenOCD 'Lightweight Link' protocol
  19194. between a target and debugger for use when you need a console but
  19195. the target doesn't have a spare serial port or other available
  19196. resource. From Dave Marples.
  19197. * Network/Network Drivers:
  19198. - Socket Options: Previous change removed some incorrect SO_LINGER
  19199. socket option functionality. SO_LINGER was always enabled if
  19200. CONFIG_NET_SOLINGER was selected. This change implements a proper
  19201. version of SO_LINGER. It is based on new logic to drain the
  19202. buffered TX data, integrated with network event notification system.
  19203. Supports notification when UDP or TCP write buffer becomes empty.
  19204. From Gregory Nutt.
  19205. - Telnet Driver: Handle ctrl events (SIGINT, SIGSTP). From
  19206. Valmantas Paliksa.
  19207. - Telnet Driver: I/O thread now offloads reading from socket
  19208. from client thread to the I/O thread. From Valmantas Palikša.
  19209. * Wireless/Wireless Drivers:
  19210. - GS2200M: Add support for Telit GS2200M Wi-Fi module From Masayuki
  19211. Ishikawa.
  19212. - GS2200M: Introduce CONFIG_WL_GS2200M_SPI_FREQUENCY. Also, changed
  19213. usleep(100) to up_udelay(100) to avoid invalid response. From
  19214. Masayuki Ishikawa.
  19215. - GS2200M: Add channel parameter for AP mode in gs2200m.c From
  19216. Masayuki Ishikawa.
  19217. * Graphics/Video/Display Drivers:
  19218. - Video Streaming: Add basic Video Stream and Capture implementation
  19219. based on the SPresence SDK code release From Alin Jerpelea.
  19220. - video/: Create video/ directory to hold non-driver video-related
  19221. logic. From Gregory Nutt.
  19222. - EDID: Add some initial EDID logic ported from FreeBSD. From
  19223. Gregory Nutt.
  19224. - EDID: Add logic to sort video modes by how close they are to the
  19225. preferred mode. This is part of the logic to pick the best possible
  19226. video mode. From Gregory Nutt.
  19227. - EDID/Video Modes: Separate EDID and from videomode management.
  19228. They really are separate things. From Gregory Nutt.
  19229. - EDID/Video Modes: Add debug functions to dump the EDID and
  19230. videomode content. From Gregory Nutt.
  19231. - VESA GTF: Bring VESA Generalized Timing Formula (GTF) from FreeBSD.
  19232. From Gregory Nutt.
  19233. - Video Modes: At some additional lookups from FreeBSD. Not
  19234. currently used in NuttX so ifdef'ed out for now. From Gregory Nutt.
  19235. - tda19988: Now uses the new common videomode structure of
  19236. include/nuttx/video/videomode.h as do other video components. From
  19237. Gregory Nutt.
  19238. - ILI9340: Add ILI9340 LCD Single Chip Driver. Required LCD driver
  19239. settings: LCD_MAXCONTRAST should be 255, but any value >0 and <=255
  19240. will be accepted. LCD_MAXPOWER should be 1: 0=off, 1=on. From
  19241. Alin Jerpelea.
  19242. - LPM013M091A: Add JDI LPM013M091A LCD Driver. From Alin Jerpelea.
  19243. - ISX012: Add support for ISX012 Image sensor. From Alin Jerpelea.
  19244. * Other Common Device Drivers:
  19245. - SPI Interface: Added standard definitions for ADC SPI device ID.
  19246. From Daniel P. Carvalho.
  19247. - AK09911/AK09912: Add Asahi AK09911/AK09912 compass sensor over I2C
  19248. bus From Alin Jerpelea.
  19249. - AS726X: Add support for AS726X spectral sensor From Fabian Justi.
  19250. - BMI160: Add driver support for the Bosch BMI160 Inertial Measurement
  19251. sensor. This driver can be used with the BMI160 sensor connected
  19252. over SPI or I2C bus. From Alin Jerpelea.
  19253. - BMP280: Add Bosch BMP280 Barometic pressure sensor connected over
  19254. I2C bus. From Alin Jerpelea.
  19255. - INA3221: Adds INA3221_I2C_ADDRx macro helpers. From Anthony
  19256. Merlino.
  19257. - VL53L1x: Added support for VL53L1x TOF sensor. From Juan Flores.
  19258. * Microchip PIC32MZ Drivers:
  19259. - PIC32MZ DMA: Add DMA support. From Abdelatif Guettouche.
  19260. * NXP i.MXRT Drivers:
  19261. - i.MXRT EHCI: Add i.MXRT EHCI driver. From Dave Marples.
  19262. - i.MXRT USDHC: Implements SDIO and Multi-card support for i.MXRT.
  19263. From Dave Marples.
  19264. - i.MXRT USDHC: Implements USDHC1 & 2 selection on the imxrt. If
  19265. only one port is active (either 1 or 2) it will always be numbered
  19266. as 0, if both are active then USDHC1 will be number 0, USDHC2 will
  19267. be 1. From Dave Marples.
  19268. - i.MXRT Serial: Add TIOCSINVERT ioctls. From Beat Küng.
  19269. - i.MXRT Serial: Implemented RS485 RX/TX switching and RTS/CTS flow
  19270. control for the IMXRT family. It has been tested on 1020 but I
  19271. don't see any reason for issues on any other family member. From
  19272. Dave Marples.
  19273. * NXP/Freescale Kinetis Drivers:
  19274. - Kinetis Serial: Add UART signal inversion support From Beat Küng.
  19275. * NXP LPC11xx:
  19276. - LPC11xx: Support for the LPCXpresso-LPC1115 and for the LPC1115
  19277. architecture in general was removed after NuttX-7.30. The LPC11
  19278. port was never really used (to my knowledge) and was no longer
  19279. supported. A snapshot of the port is still available in the
  19280. Obsoleted repository. It can be brought back into the main
  19281. repository at any time if anyone is willing to provide support
  19282. for the architecture. From Gregory Nutt.
  19283. * NXP LPC17xx Boards:
  19284. - PNEV5180B: Add support for NXP Semiconductors' PN5180 NFC Frontend
  19285. Development Kit. This board is based on the NXP LPC1769 MCU. At
  19286. the moment there is just support for a minimal nsh configuration via
  19287. UART0. From Michael Jung.
  19288. - PNEV5180B: Add usbnsh configuration. This is basically the same as
  19289. the 'nsh' defconfig, but uses CDC/ACM as the NuttShell console
  19290. device. From Michael Jung.
  19291. - PNEV5180B: Adds NSH configuration with UART0 and eth0 via CDC/ECM
  19292. on USB device. From Michael Jung.
  19293. - PNEV5180B: Add new configuration includes a USB Composite Device
  19294. with both CDC/ACM and CDC/ECM. NuttShell provides a terminal via
  19295. CDC/ACM. A network interface (eth0) is provided via CDC/ECM. From
  19296. Michael Jung.
  19297. - PNEV5180B ROMFS: Auto-mount baked-in ROMFS image. Includes support
  19298. for linking a binary ROMFS image into the nuttx executable and for
  19299. mounting it during board bring-up. From Michael Jung.
  19300. - PNEV5180B PROTECTED: Add PROTECTED mode configuration with
  19301. NuttShell. From Michael Jung.
  19302. * NXP LPC40xx:
  19303. - LPC40xx: Add support for LPC40xx family chips. Renamed LPC17XX to
  19304. LPC17XX_40XX in directory, configuration, file names, etc., as
  19305. appropriate. Corrected a few peripheral definitions and pin
  19306. functions for the LPC17xx family. Added configuration options, chip
  19307. definitions, and additional pin functions for the LPC40xx family.
  19308. From jjlange.
  19309. * NXP LPC40xx Boards:
  19310. - LPC4088-Devkit: Added board configuration for Embedded Artists
  19311. LPC4088 Developer's kit. From jjlange.
  19312. - LPC4088-Quickstart: Added board configurations for Embedded Artists
  19313. LPC4088 Quickstart board. From jjlange.
  19314. * NXP LPC54xx Boards
  19315. - LPCXpresso-LPC54628: Enable DATE command in twm4nx1 and twm4nx2
  19316. configurations. From Gregory Nutt.
  19317. * Sony CXD56xx
  19318. - CXD56xx: Adds (1) the HW pin configuration, (2) GPIO support for
  19319. CXD56xx, (3) GPIO interrupts, (4) clock support, (5) PMIC (Power
  19320. management integrated circuit) support (6) add a simple FIFO
  19321. scheduler that minimizes overhead, (6) Inter Core Communication.
  19322. From Alin Jerpelea.
  19323. - CXD56xx: Add Package Configuration. The CXD56xx can come in FCBGA
  19324. 185 pin or WLCSP 100 pin package. For each package we have to pick
  19325. the right pin setup. The default configuration is set to FCBGA 185
  19326. pin package From Alin Jerpelea.
  19327. - CXD56xx: Add Power Management support From Alin Jerpelea.
  19328. - CXD56xx: (1) Add syscontrol, (2) Add the function to change the
  19329. clock speed, (3) Add pinctrl and clock ctrl functionality. From
  19330. Alin Jerpelea.
  19331. * Sony CXD56xx Drivers:
  19332. - CXD56xx USB: Add basic support for USB connectivity. From Alin
  19333. Jerpelea.
  19334. - CXD56xx SDHC: Add SDHCI driver for the CXD56xx. From Alin
  19335. Jerpelea.
  19336. - CXD56xx SPI: Add SPI support. From Alin Jerpelea.
  19337. - CXD56xx DMA: Add DMA support. From Alin Jerpelea.
  19338. - CXD56xx RTC: Add RTC support. From Alin Jerpelea.
  19339. - CXD56xx PWM: Add support for PWM. From Alin Jerpelea.
  19340. - CXD56xx Power Management: Add Power Management PROCFS support. From
  19341. Alin Jerpelea.
  19342. - CXD56xx Timer: Add Timer driver. From Alin Jerpelea.
  19343. - CXD56xx Watchdog Timer: Add watchdog timer support. From Alin
  19344. Jerpelea.
  19345. - CXD56xx UID: Add support to be able to read the HW UID. From Alin
  19346. Jerpelea.
  19347. - CXD56xx I2C: Add I2C support. From Alin Jerpelea.
  19348. - CXD56xx I2C: Add I2C character driver support. For testing
  19349. purposes, we use the CXD56_I2C_DRIVER to register the /dev/i2c[]
  19350. character devices. Add battery gauge and battery charger drivers.
  19351. Add SPI-based SP card support. From Alin Jerpelea.
  19352. - CXD56xx SCU: Add Sensor Control Unit (SCU); Use DMAC for reading
  19353. sensing data from SCU on CXD56xx chip. From Alin Jerpelea.
  19354. - CXD56xx ADC: Add ADC interface support. From Alin Jerpelea.
  19355. - CXD56xx eMMC: Add eMMC support for CXD56xx chip From Alin Jerpelea.
  19356. - CXD56xx Camera: Add driver for hardware image processor device to
  19357. enable the hardware image processor set CXD56_GE2D=true. From Alin
  19358. Jerpelea.
  19359. - CXD56xx CISIF: Add CISIF support to be able to use cameras. From
  19360. Alin Jerpelea.
  19361. - CXD56xx GNSS: Add GNSS device, add Geofence Support, add UART0
  19362. interface. UART0 is an interface with hardware flow control in the
  19363. application subsystem. From Alin Jerpelea.
  19364. * Sony CXD56xx Spresense Board:
  19365. - Default Configurations: (1) We are using the framework to
  19366. initialize the CPU, (2) Enable PowerManager on SPresence board, (3)
  19367. Initialize the UART interfaces, (4) Enable clock management using
  19368. the CXD56 framework, (5) Use timerisr on the SPresence board, (6)
  19369. Enable USBDEV on Spresense board, (7) Enable SD Card support on
  19370. SPresence board, (8) Enable Mass Storage on Spresense board From
  19371. Alin Jerpelea.
  19372. - Default Configurations: Add support for RNDIS configuration. From
  19373. Masayuki Ishikawa.
  19374. - RTC: Enable RTC functionality on SPresence board From Alin
  19375. Jerpelea.
  19376. - SPI FLASH: Enable SPI Flash arch/arm/src/cdx56xx: (1) Group all
  19377. CXD56xx Options in one menu, (2) Add Storage Options menu and
  19378. Peripheral Support comment, (3) Add SPI Flash support From Alin
  19379. Jerpelea.
  19380. - Add SPI configuration for SPresence board. Enable PWM support on
  19381. SPresence board; The powermanager procfs is disabled by default and
  19382. need to be enabled by the CONFIG_CXD56_PM_PROCFS option. Timers can
  19383. be used on the SPresence board. Watchdog timer support also added.
  19384. From Alin Jerpelea.
  19385. - Add USERLED for SPresence board. From Alin Jerpelea.
  19386. - Enable I2CDEV for SPresence board. Add useful diagnostic LEDs on
  19387. the SPresence board. From Alin Jerpelea.
  19388. - Add support for Tilt GS2200M Wi-Fi module. From Masayuki Ishikawa.
  19389. - Remove SPI MMC/SD support and enable ADC support for SPresence
  19390. board. From Alin Jerpelea.
  19391. - Enable BMI160_I2C sensor over I2C on SPresence board. From Alin
  19392. Jerpelea.
  19393. - Add I2CTOOL support and extend GPIO for future use. Add delay
  19394. support for CXD56xx chip. For development is useful to register
  19395. I2C buses when the I2CTOOL is built. Enable GPIO interface on
  19396. the Spresense board. From Alin Jerpelea.
  19397. - Add use o the CXD56_I2C_DRIVER to register the /dev/i2c character
  19398. devices. Enable battery gauge and battery charger support. From
  19399. Alin Jerpelea.
  19400. - Enable UID functionality. To enable the UID functionality for
  19401. SPresence board set BOARDCTL_UNIQUEID in menuconfig. From Alin
  19402. Jerpelea.
  19403. - Add USBDEV_SETNOTIFYSIG signal ID. Set signal ID for notify USB
  19404. device connection status and supply current value. From Alin
  19405. Jerpelea.
  19406. - Register the procfs in the NSH configuration. This is a
  19407. configuration change in sync with the other ones. Enable
  19408. READLINE_CMD_HISTORY, enable by default SPI 4 and 5, and enable
  19409. SPI to keep all configurations in sync. From Alin Jerpelea.
  19410. - Add support for MSC and USB Composite device. Adds usbmsc
  19411. configuration. Spresense board does not have buttons and but a
  19412. template for gpio buttons that can be connected on the external
  19413. header From Alin Jerpelea.
  19414. - LCD: Add support for LPM013M091A LCD, add support for ILI9340
  19415. LCD, add a new configuration to support an LCD. From Alin
  19416. Jerpelea.
  19417. - WiFi: Improve performance for webserver: (1) Enable SPI DMA for
  19418. both TX and RX, (2) Increase SPI clock speed from 4MHz to 10MHz,
  19419. (3) Increase buffer size for sendfile() from 512B to 1KBm abd (4)
  19420. Enable sendfile() for webserver. From Masayuki Ishikawa.
  19421. - MPY: Add MPY defconfig. From Alin Jerpelea.
  19422. - Update defconfigs rndis and wifi: Enable RTC and webserver with
  19423. directory listing support. Also, changed start year/month/day for
  19424. NuttX 2019. From Masayuki Ishikawa.
  19425. - Build nuttx.spk images. Enable nuttx.spk binary image that can be
  19426. flashed on SPresence board. From Alin Jerpelea.
  19427. - configs/SPresence: Add entry point for MPY. The entry point is
  19428. needed for the downstream projects based on SPresence. From Alin
  19429. Jerpelea.
  19430. - Enable internal flash storage for SPresence boards. The SmartFS
  19431. flash is mounted under /mnt/spif folder. From Alin Jerpelea.
  19432. - For compatibility with SDK we need to change the USER_ENTRYPOINT
  19433. in all configurations to spresense_main(). From Alin Jerpelea.
  19434. * STMicro STM32:
  19435. - STM32 Kconfig: Add MEDIUM_DENSITY selection. From Dave Marples.
  19436. - STM32 Kconfig: Add the missing STM32 LCD Clock Source Selections.
  19437. From Alan Carvalho de Assis.
  19438. - STM32G0: Initial support for STM32G0 family. From Mateusz Szafoni.
  19439. - STM32F0L0G0: Renamed directories STM32F0L0 to STM32F0L0G0 since
  19440. they now also supports the STM32G0 thanks to Mateusz Szafoni's
  19441. contribution From Gregory Nutt.
  19442. - STM32H7x3: Added ADC pins to pin map. From David Sidrane.
  19443. * STMicro STM32 Drivers:
  19444. - STM32 PWM: Add support for all PWM modes. Add an interface to
  19445. change PWM mode. Refactor pwm_mode_configure(). STM32_PWM_CHANx
  19446. corresponds to the timer channel and STM32_PWM_OUTx corresponds to
  19447. the timer channel output. Add CHAN5 and CHAN6 to
  19448. PWM_TIMx_NCHANNELS. Calculate thePWM_TIMx_NCHANNELS if
  19449. CONFIG_STM32_PWM_MULTICHAN is selected. From Mateusz Szafoni.
  19450. - STM32 FSM/FSCM: Split the STM32 FMC/FSMC functionality. Makes FMC
  19451. it's own thing rather than piggy backing on the FSMC code. The
  19452. peripherals have a few utility functions and this commits lets you
  19453. have a common architectural functions rather than having duplicate
  19454. functions in each board implementation. From Jason Harris.
  19455. - STM32F7 DTCM: Add procfs register From Daniel Agar.
  19456. - STM32F7 GPIO: Add GPIO driver. Code is inspired from STM32F3-
  19457. Discovery and Nucleo-L476RG platforms. Tested on Nucleo-F767ZI.
  19458. From Phil Coval.
  19459. - STM32F7 Serial: This adds the ability to invert and swap RX/TX on
  19460. STM32F7 UARTs. I added the TIOCGINVERT as well to reserve the IOCTL
  19461. number, but did not implement it. This is the same as for
  19462. TIOCGSINGLEWIRE. From Beat Küng.
  19463. - STM32L4 CRS: Make STM32L4 CRS synchronization source board
  19464. configurable. From Juha Niskanen.
  19465. - STM32L4 HSI48: Enable CRS_CR_CEN with CRS_CR_AUTOTRIMEN. From
  19466. Jussi Kivilinna.
  19467. - STM32L4 I2C: Add support for 16 and 120 MHz timings. Board can use
  19468. HSI16 clock for I2C From Juha Niskanen.
  19469. - STM32L4 PWR: Enable PWR peripheral for setting USV. From Jussi
  19470. Kivilinna.
  19471. - STM32L4 RCC: Use Range 1 Boost mode if SYSCLK is higher than 80
  19472. MHz. From Juha Niskanen.
  19473. - STM32L4 Serial: Add TIOCSINVERT and TIOCSSWAP ioctls. From Beat
  19474. Küng.
  19475. - STM32H7 ADC: Added ADC Driver, ADC clocking. From David Sidrane.
  19476. - STM32H7 Ethernet: Fix typo in define. From Pierre-Olivier Vauboin.
  19477. - STM32H7 PWM: Port PWM from STM32 From Mateusz Szafoni.
  19478. - STM32H7 QEncoder: Ported the QEncoder from F7 to H7. From Eduard
  19479. Niesner.
  19480. - STM32H7 Serial: Add TIOCSINVERT and TIOCSSWAP ioctls. Ensure
  19481. TIOCSSINGLEWIRE is atomic and UE disabled. From Beat Küng.
  19482. * STMicro STM32 Boards:
  19483. - Olimex-STM32-E407: Added BMP180 initialization and a configuration
  19484. to test the BMP180. From Juan Flores.
  19485. - Olimex-STM32-E407: Add DAC support, add IN219 support, add timer
  19486. driver support. From Juan Flores.
  19487. - Olimex-STM32-E407: Add support for MRF24J40 radio. From Gregory
  19488. Nutt.
  19489. - Axoloti: Adds initial support for the Axoloti sound/music
  19490. synthesizer board. Board is based on STM32F427 SoC. See
  19491. http://www.axoloti.com/. From Jason Harris.
  19492. - Nucleo-G071RB: Initial support for nucleo-g071rb. From Mateusz
  19493. Szafoni.
  19494. - Nucleo-L432KC: Add new configuration settings for CRS
  19495. synchronization to board.h. From Juha Niskanen.
  19496. - Nucleo-L432KC: Add support for testing the ina219 current sensor.
  19497. From Sebastien Lorquet.
  19498. - Nucleo-L452RE: Add new configuration settings for CRS
  19499. synchronization to board.h. From Juha Niskanen.
  19500. - Nucleo-144: Add ROMFS support. Image was generated using genromfs
  19501. tool. Tested on Nucleo-F767ZI. From Phil Coval.
  19502. - Nucleo-144: Add reset feature. Code is derives from STM32F4-
  19503. Discovery. It can be enabled using CONFIG_BOARDCTL_RESET From Phil
  19504. Coval.
  19505. - Nucleo-L476RG: (1) Add I2C tool to board init, (2) Add support for
  19506. AS726X spectral sensor From Fabian Justi.
  19507. - Nucleo-L496ZG: Add new configuration settings for CRS
  19508. synchronization to board.h. From Juha Niskanen.
  19509. - STM32L476VG-Disco: Add new configuration settings for CRS
  19510. synchronization to board.h. From Juha Niskanen.
  19511. - STM32L4R9AI-Disco: Add ksh config, some updates for I2C, SPI and
  19512. DFSDM support. From Juha Niskanen.
  19513. - Nucleo-H743ZI: Add ADC support. From David Sidrane.
  19514. - STM32F769I-Disco PWM: Enable PWM support for stm32f769i-disco
  19515. board.
  19516. - STM32L-Discovery: Add button support for stm32Ldiscovery. Add
  19517. chronometer board config. From Alan Carvalho de Assis.
  19518. * TI AM335x:
  19519. - AM335x Clock Module: Add clock module registers definition. Switch
  19520. to DMTIMER1 for systick. From Petro Karashchenko.
  19521. * TI AM335x Drivers:
  19522. - AM335x CAN, LCD: Add register description files for DCAN and LCD.
  19523. From Petro Karashchenko.
  19524. - AM355x I2C: Add register description files for I2C (plus various
  19525. improvements to the WDOG register definitions) From Petro Karashchenko.
  19526. - AM355x MCSPI: Add register description files for MCSPI. From Petro
  19527. Karashchenko.
  19528. - AM355x LCDC: This change brings in an initial LCD driver into the
  19529. AM335x architecture. Ported from FreeBSD. From Gregory Nutt.
  19530. - AM335x Framebuffers: Add logic to map the framebuffer to a non-cached,
  19531. non-buffered memory region. From Gregory Nutt.
  19532. - AM335x LCDC: Add logic to get/set the module reference clock. From
  19533. Gregory Nutt.
  19534. * TI AM335x Boards:
  19535. - Beaglebone-Black LCD: Add a configuration for bringing up the LCDC
  19536. driver. From Gregory Nutt.
  19537. - Beaglebone-Black LCD: Framework (only) for TDA19988 and LCD support
  19538. for Beaglebone Black. Can't use TDA19988 yet because there is no I2C
  19539. driver. In the mean time, support LCD initialization using a fixed,
  19540. configurable video mode. From Gregory Nutt.
  19541. * ZiLOG z16f ZNeo:
  19542. - z16f ZNeo: Add support for the latest 5.2.1 version of the ZDS-II
  19543. toolchain. From Gregory Nutt.
  19544. * ZiLOG eZ80Acclaim!:
  19545. - Integrate support for the newest eZ80 ZDSII 5.3.0 toolchain. From
  19546. Gregory Nutt.
  19547. * ZiLOG eZ80Acclaim! Drivers:
  19548. - eZ80 RTC: Integrate and verify the RTC driver From Gregory Nutt.
  19549. - eZ80 RTC: Add an RTC lower half driver. From Gregory Nutt.
  19550. * ZiLOG eZ80Acclaim! Boards:
  19551. - MakerLisp: Add initial support for the MakerLisp eZ80 board. Ref:
  19552. https://makerlisp.com/ From Gregory Nutt.
  19553. - MakerLisp: Add hooks needed by SPI driver. Move SPI MMC/SD chip
  19554. selected configuration from ez80_lowinit.c to here as is done in
  19555. other NuttX architectures. This enables support for multiple
  19556. devices on the SPI bus. From Gregory Nutt.
  19557. - MakerLisp: Add Smart Flash Programmer project. From Gregory Nutt.
  19558. - MakerLisp: Enable Procfs, RTC, SPI-based SD support, task name, NSH
  19559. data command in NSH configuration.. From Gregory Nutt.
  19560. - MakerLisp: Use .ztgt files from MakerLisp SDK. From Gregory Nutt.
  19561. - MakerLisp: Add a tiny FLASH-resident loader that will load and
  19562. start applications in Intel HEX format from an SD card. From
  19563. Gregory Nutt.
  19564. - MakerLisp: Bring in a new configuration to support execution
  19565. entirely out of external SRAM. From Gregory Nutt.
  19566. - MakerLisp: Add an sdboot configuration that will load .hex files
  19567. from the SD card. From Gregory Nutt.
  19568. - MakerLisp: Add a linker script to support copying the NuttX image
  19569. from FLASH into external SRAM. From Gregory Nutt.
  19570. - MakerLisp: The VGA display controller and keyboard controller come
  19571. up by default emulating a terminal with 'newline mode' on. That is
  19572. newlines expance to carriage-return, newline. This change turns that
  19573. mode off. From Gregory Nutt.
  19574. * Libraries/Header Files:
  19575. - include/cxx/cstddef: Add C11++ std::nullptr_t From junmin-kim.
  19576. - libc netdb: Implemented the netdb functions getnameinfo(),
  19577. getservbyport(), and getservbyport_r(). From Michael Jung.
  19578. * Documentation
  19579. - Applied a style sheet to static HTML files. Put the TOC of each
  19580. document to the side, where it made sense (in some documents the
  19581. TOC was actually inside a section so it wasn't possible). In some
  19582. cases the TOC is built with a table, in others with a <ul> element,
  19583. so I had to accommodate for this. I also didn't go into collapsing,
  19584. although this could really help for some long TOCs. From Matias N.
  19585. - Coding Standard: Add a brief section summarizing the major
  19586. differences between the NuttX C and C++ coding standards. This is a
  19587. stop-gap measure in lieu of having a real C++ coding standard. From
  19588. Gregory Nutt.
  19589. - Coding Standard: Update requirements for indenting C pre-processor
  19590. statements. From Gregory Nutt.
  19591. - Coding Standard: Small change discouraging the practice of
  19592. enclosing the value argument of 'return' statements in parentheses.
  19593. From Gregory Nutt.
  19594. - COPYING. Tools in the tools/ directory are not intended for binary
  19595. redistribution and may not all conform to BSD licensing. From
  19596. Gregory Nutt.
  19597. * Tools:
  19598. - tools/ocdconsole.py: OCD TCL interface changed after version 0.10
  19599. of OpenOCD. This change allows the script to work with both the
  19600. older and newer TCL interface. From Dave Marples.
  19601. - tools/nxstyle.c: Tool depends on the file under test containing
  19602. "Private Functions" or "Public Functions" block comments. Emit an
  19603. error if neither are present in a C source. From Gregory Nutt.
  19604. - tools/nxstyle.c: Bandaid-up logic that detects left brackets on the
  19605. same line in global structure/enumeration types and initializers.
  19606. From Gregory Nutt.
  19607. - tools/nxstyle.c: No warning for declarations that begin in column 1
  19608. within 'extern "C"'. This is because the 'extern "C"' is conditioned
  19609. on __cplusplus so the declarations are not normally indented. From
  19610. Gregory Nutt.
  19611. - tools/: Add spk binary format. The .spk binary format is used on
  19612. SPresence and other boards based on the CXD56 arch. To enable this
  19613. binary format set in your config CONFIG_CXD56_BINARY=y. From Alin
  19614. Jerpelea.
  19615. - tools/: Add flash_writer for CXD56 boards. This flash writter is
  19616. using the xmodem for firmware transfer for flashing please use:
  19617. 'tools/flash_writer.py -s -c /dev/ttyUSB0 -d -b 115200 -n nuttx.spk'.
  19618. From Alin Jerpelea.
  19619. * apps/ General:
  19620. - Removed all references to CONFIG_DISABLE_POLL. The standard POSIX
  19621. poll() can no longer be disabled. From Gregory Nutt.
  19622. * Examples/Tests: apps/examples:
  19623. - apps/examples/abntcodi: Adds test/demo program for ABNT CODI
  19624. library. From Alan Carvalho de Assis.
  19625. - apps/examples/webserver: Update to compile with
  19626. CONFIG_NETUTILS_HTTPD_SENDFILE=y. Also some configs such as
  19627. CONFIG_NETUTILS_HTTPDFILESTATS can be selected by menuconfig.
  19628. From Masayuki Ishikawa.
  19629. - apps/examples/chrono: Add chronometer apps example. From Alan
  19630. Carvalho de Assis.
  19631. * Network Utilities: apps/netutils:
  19632. - apps/netutils/webserver: Add mp3 mime type to httpd.c. From
  19633. Masayuki Ishikawa.
  19634. - apps/netutils/webserver: Add directory listing to httpd. From
  19635. Masayuki Ishikawa.
  19636. - apps/netutils/webserver: Add web server info based on uname().
  19637. From Masayuki Ishikawa.
  19638. * Network Utilities: apps/wireless
  19639. - apps/wireless/gs2200m: Add usrsock daemon for Tilt GS2200M Wi-Fi
  19640. module. From Masayuki Ishikawa.
  19641. - apps/wireless/gs2200m: Add channel parameter for AP mode. From
  19642. Masayuki Ishikawa.
  19643. * Graphics: apps/graphics:
  19644. - apps/graphics/nxglyphs: Add more modern looking button images for
  19645. the Twm4Nx CONTEMPORARY theme. From Gregory Nutt.
  19646. - apps/graphics/slcd: Adds a CSLcd class that will generate graphic
  19647. simulated segments of an SLCD display. From Gregory Nutt.
  19648. - apps/graphics/twm4nx: This change adds a calibration screen to
  19649. Twm4Nx. In addition to the Calibration screen port from NxWM, this
  19650. required extensions to the event handling logic to support (1)
  19651. receiving raw, uncalibrated touchscreen inputs, (2) shutting down
  19652. of externally controlled windows. From Gregory Nutt.
  19653. - apps/graphics/twm4nx: Move application-related files into different
  19654. directories to separate them from the core Twm4Nx files. From
  19655. Gregory Nutt.
  19656. - apps/graphics/twm4ndx: Compile out cursor support if we are using a
  19657. mouse. From Gregory Nutt.
  19658. - apps/graphics/twm4nx: Add an alternative COMPONTEMPORARY theme.
  19659. Still has some artifacts on the display. From Gregory Nutt.
  19660. - apps/graphics/twm4nx: Use custom CWidgetStyle to force Icon
  19661. background to match selected desktop background. From Gregory Nutt.
  19662. - apps/graphics/twm4nx: Add some definitions to support Themes.
  19663. Background image is now optional. From Gregory Nutt.
  19664. - apps/graphics/twm4nx: Add a configuration option to control the
  19665. number of buttons in one column of the Icon Manager. The Icon
  19666. anager no longer relies the default window width; now it
  19667. determines a preferred window width based primarily on the font
  19668. size. From Gregory Nutt.
  19669. - apps/graphics/tmw4nx: Add a CClock class that implements the
  19670. Twm4Nx digital clock based on the CSLcd simulated SLCD segments.
  19671. From Gregory Nutt.
  19672. - apps/graphics/twm4nx/README.txt: Add an overview of how to create
  19673. Twm4Nx applications. From Gregory Nutt.
  19674. * Industry: apps/industry:
  19675. - apps/industry/abnt_codi: Adds support for ABNT CODI library. This
  19676. is an energy meter protocol used in Brazil. From Alan Carvalho de
  19677. Assis.
  19678. Bugfixes. Only the most critical bugfixes are listed here (see the
  19679. ChangeLog for the complete list of bugfixes and for additional, more
  19680. detailed bugfix information):
  19681. * Core OS:
  19682. - Semaphores: Fix a bad assertion in priority inheritance logic.
  19683. The comments state correctly that we cannot make any assumptions
  19684. about the number of holders of the semaphore, yet the code
  19685. asserts if there are any holders. This makes the code behave
  19686. closer to what the comments say. From Gregory Nutt.
  19687. - Memory Manager: Fix error that occurs when CONFIG_CPP_HAVE_VARARGS
  19688. is not defined. In that case, the arguments to the debug macro will
  19689. all be evaluated even though they are not used any variables that
  19690. are references must at least be defined. From Gregory Nutt.
  19691. - System Calls: Adapt the conditional compile logic on when to
  19692. include the vfork() syscall proxy and stub to the logic used for
  19693. vfork() itself. From Michael Jung.
  19694. - System Calls: Fixed SYS_mount syscall define when CONFIG_FS_READABLE
  19695. is undefined. From Joao Matos.
  19696. - waitpid(): In waitpid, remember to grab the exited child ptr. After
  19697. being unblocked in waitpid, the child pointer might be NULL. Modify
  19698. to use group_exitchild to get the pointer of recent exited child.
  19699. From Yang ChungFan.
  19700. * File System/Block and MTD Drivers:
  19701. - MMC/SD: Fixes bug where thread gets deadlocked due to recursive call
  19702. and addresses comment regarding events. When initializing the
  19703. MMCSD, if we are being told there is a card, but we fail to
  19704. initialize it, we should not re-register for an insertion event as
  19705. this will immediately cause us to call in again. Instead, we should
  19706. register for a removal event and wait for the card to be removed and
  19707. re-inserted. From Anthony Merlino.
  19708. * Networking/Network Drivers:
  19709. - UsrSock: Fix debug logs and remove DEBUGASSERT from
  19710. usrsockdev_do_request(). In a client mode, socket() will be the
  19711. first request for usrsockdev_do_request(). However, in a server
  19712. mode, the first request to accepted sockets will be recv() or other
  19713. which depend on applications. So I think we should remove thi
  19714. DEBUGASSERT from usrsockdev_do_request(). From Masayuki Ishikawa.
  19715. - ICMPV6 Autoconfig: Use ntohs() to convert IPv6 address from
  19716. network to host order int network debug output. From Bernd Walter.
  19717. - TCP Buffering: Fix TCP buffer send deadlock in iob_copyin() when
  19718. IOB buffers are exhausted and network lock is taken. From
  19719. Valmantas Paliksa.
  19720. - TCP Close: Fix TCP active close in inet_close.c. In previous
  19721. implementation, FIN packet was not sent when a socket is actively
  19722. closed (e.g. telnetd or webserver) without SO_LINGER. This issue
  19723. happens because the socket closing sequence waits for the
  19724. status.cl_sem only if lingering timeout is set. However, in many
  19725. server use-cases, SO_LINGER is not usually set and even in these
  19726. cases, FIN packet must be sent correctly. This changes the logic
  19727. in inet_close.c so that it can wait for status.cl_sem regardless
  19728. of SO_LINGER. Instead, if SO_LINGERis set, it waits for the
  19729. semaphore with timeout option. From Masayuki Ishikawa.
  19730. - UDP: Fix C89 compatibility problem. Empty initializers are not
  19731. permitted. Caused eZ80 build failure. From Gregory Nutt.
  19732. - Telnet: Fix a C89 non-compliance that was breaking the eZ80 build.
  19733. From Gregory Nutt.
  19734. * Wireless/Wireless Drivers:
  19735. - NRF24L01: Fix NRF24L01_NCMDS in ioctl.h. The last one in
  19736. nrf24l01.h is _WLCIOC(NRF24L01_FIRST + 15) From Masayuki Ishikawa.
  19737. - NRF24L01: Fix PIPENO/PKTLEN bitmask in RX FIFO header. In RX FIFO
  19738. header, the first byte should use 5 lsb to store PKTLEN and 3 msb
  19739. to store PIPENO. However, FIFO_PIPENO_SHIFT was set to 4 which
  19740. causes the lsb of pipe number to interfere with the received packet
  19741. size stored in the FIFO. This fix RX corruption when using pipe
  19742. number > 0. From Federico Braghiroli.
  19743. * Graphics/Display Drivers:
  19744. - Raising Windows: Fix a critical list handling bug in the graphics
  19745. system. When a lower-level window was raised while a model window
  19746. was in place, then list corruption could occur. From Gregory Nutt.
  19747. * Common Drivers:
  19748. - Serial: Limit the number of times that the poll semaphore is
  19749. incremented. From Dave Marples.
  19750. - USB Host: Remove duplicate const in USB Host files. From Adam
  19751. Porter.
  19752. - USB Host Composite: Class-specific descriptors were not available
  19753. if the interface is part of a composite device, since only interface
  19754. and endpoint descriptors are copied by usbhost_copyinterface().
  19755. This change will copy any class-specific interface descriptors for
  19756. use in downstream class drivers. The loop was aborting due to
  19757. finding two interface descriptors back-to-back. From Adam Porter.
  19758. - USB Host Composite: The cfgdesc pointer was initialized after the
  19759. buffer had been advanced, so it was not pointing where it should.
  19760. The totallen operations at the end of the function ended up
  19761. overwriting memory belonging to the first copied interface
  19762. descriptor. From Adam Porter.
  19763. - USB MSC: Fix usbmsc_exportluns declaration. Fixes the following
  19764. error "...undefined reference to `usbmsc_exportluns'". From Alin
  19765. Jerpelea.
  19766. * Architecture Common:
  19767. - Rename all arch/<family>/src/<chip>/chip directories to
  19768. arch/<family>/src/<chip>/hardware. This eliminates a name collision
  19769. that is usually harmless but does cause problems at the time. The
  19770. problem is because the include path includes '.' and 'chip/.',
  19771. therefore an inclusion like '#include <chip/mcu_header.h' can be
  19772. ambiguous if a file named mcu_header.h exists in both at both
  19773. arch/<family>/src/<chip>/chip and at arch/<family>/src/chip/chip.
  19774. From Gregory Nutt.
  19775. * Board Common:
  19776. - Default Configurations: Update configurations for changes to
  19777. apps/netutils/netinit configuration. MAC address configuration
  19778. was represented by type long long. That is a problem for
  19779. architectures that do not support type long long. Replaces by
  19780. two long configuration items. From
  19781. Gregory Nutt.
  19782. - Default Configurations: Change CONFIG_NSH_MACADDR to
  19783. CONFIG_NETINIT_MACADDR From Masayuki Ishikawa.
  19784. - Default Configurations: Fix mac address settings for RNDIS.
  19785. Recently CONFIG_NETINIT_MACADDR_2 and CONFIG_NETINIT_MACADDR_1 were
  19786. newly introduced instead of CONFIG_NETINIT_MACADDR. This change
  19787. conforms to this change. From Masayuki Ishikawa.
  19788. - Default Configurations: Kconfig files should not select
  19789. SCHED_WORKQUEUE since that is really only is only the logical OR if
  19790. SCHED_LPWORK and SCHED_HPWORK. Selecting it has no effect other
  19791. than to produce an erroneous configuration. From Gregory Nutt.
  19792. - Linker Scripts: Make sure sections are aligned to 32-bits in all LD
  19793. linker scripts. This fixes and issues noted specifically for the
  19794. SAMD21 by Bernd Walter, but should be applicable to all other LD
  19795. scripts as well.
  19796. - Linker Scripts: Add . = ALIGN(4); before every .data section,
  19797. add . = ALIGN(4); before every ARM.extab section, add . = ALIGN(4);
  19798. before every definition of __exidx_start, add . = ALIGN(4); before
  19799. every .init_section. Convert TABs to spaces in all ld linker
  19800. scripts. This just makes things easier to modify with scripts
  19801. because the files are more consistent. From Gregory Nutt.
  19802. - configs/Board.mk: Cannot call $(AR) directly. That works only with
  19803. GCC. It must, instead use the ARCHIVE command from Config.mk as do
  19804. other Makefiles. From Gregory Nutt.
  19805. * MIPS32:
  19806. - Fix a copy-paste error. On vfork, the GP register was being set to
  19807. the new SP value vs. the context GP value. NOTED in Bitbucket issue
  19808. 155. From Gregory Nutt.
  19809. - An older commit used CP0 register definitions that were not defined
  19810. in the NuttX cp0.h header file. Probably these were from the
  19811. Microchip hacked up GCC toolchain but are not generally available
  19812. outside that toolchain. Fix: Add definitions to NuttX cp0.h header
  19813. file. From Gregory Nutt.
  19814. * Microchip PIC32MZ Drivers:
  19815. - PIC32MZ GPIO: Use LAT instead of PORT when writing. From Ouss4.
  19816. * Microchip/Atmal SAM3/SAM4 Drivers:
  19817. - SAMD2/L2: Correct TC register bit field definitions used with
  19818. TC_CTRLBCLR and TC_CTRLSET registers. From Bernd Walter.
  19819. * NXP LPC17xx Boards:
  19820. - LPC17xx PROTECTED: On the LPC1769 there are two 16 KiB AHB SRAM
  19821. blocks, which are mapped back to back at physical address 0x2007C000
  19822. and 0x20080000 (i.e. right below and right above a 512 KiB boundary).
  19823. Memory from those two blocks is considered continuous when assigned
  19824. to a heap. In the protected build mode, when the memory protection
  19825. unit is used, though, it must be split into two MPU regions. This
  19826. is because MPU regions must be naturally aligned, and the 32KiB
  19827. continuous address space of the two 16KiB AHB SRAM blocks does not
  19828. start at an address divisible by 32KiB. The only other
  19829. configurations that use protected build mode on lpc17xx are
  19830. currently open1788/knsh and open1788/knxterm. The LPC1788 has the
  19831. AHB SRAM blocks mapped more sanely (from an MPU region point of
  19832. view), which is probably why no problems emerged here. Both still
  19833. compile with my change and other than wasting an MPU region (which
  19834. would otherwise remain unused) should work fine. That said, I
  19835. have no hardware to confirm. From Michael Jung.
  19836. * NXP LPC54xx Boards:
  19837. - LPCXpresso-LPC54628: Modify the TWM configurations to properly
  19838. inject keyboard data. This way, in the case of multiple NxTERMs,
  19839. only the NxTerm at the top of the hierarchy gets the keyboard input.
  19840. Otherwise, it is not possible to use multiple NxTerms with each the
  19841. keyboard input going to a different NxTerm window. From Gregory
  19842. Nutt.
  19843. * NXP i.MXRT Drivers:
  19844. - i.MXRT Serial: Fix serial TIOCSINVERT From David Sidrane.
  19845. - i.MXRT USDHC: USDHC Stopgap Fix for build breakage From David
  19846. Sidrane.
  19847. - i.MXRT USDHC: Fix compiler error for CONFIG_IMXRT_USDHC1 &&
  19848. !CONFIG_IMXRT_USDHC2 From David Sidrane.
  19849. * On Semiconductor LC823450:
  19850. - LC823450-XGEVK: Remove CPU assignment for LPWORK. This change will
  19851. reduce audio under-run when running dvfs auto mode. From Masayuki
  19852. Ishikawa.
  19853. * SiLabs EFM32 Drivers:
  19854. - EFM32 USB Host: Apply Adam Porter's STM32 fix to EFM32 which has
  19855. the same IP. From Gregory Nutt.
  19856. * STMicro STM32:
  19857. - STM32F1 Pinmap: Fix names for complementary PWM outputs From
  19858. Mateusz Szafoni.
  19859. - STM32L4: If SRAM3 is used as heap, do not power it off in stop 2
  19860. mode. From Juha Niskanen.
  19861. * STMicro STM32 Drivers:
  19862. - STM32 ADC: Fix a compilation error when verbose analog debugging is
  19863. enabled for the STM32 ADC. not all STM32s have an SQR4 register.
  19864. From rajan gill.
  19865. - STM32 PWM: Fix pulse count for the number of counts greater than 128.
  19866. From Mateusz Szafoni.
  19867. - STM32 USB OTG FS/HS Host: In stm32_ctrlout() in the HS and FS host
  19868. drivers, the data buffer isn't sent. This patch passes the buffer
  19869. and buflen to the stm32_ctrl_senddata() function. With this change,
  19870. I am able to send MBIM control messages to my USB modem, and read the
  19871. response. From Adam Porter.
  19872. - STM32L4 USB: Fix USB device PMA accesses. USB PMA accesses are
  19873. done as 16-bit words on STM32L4 instead of 32-bit words on STM32L1.
  19874. From Jussi Kivilinna.
  19875. - STM32L4 OTG FS/HS: Fix constant using in comparison to determine
  19876. endpoint is interrupt type. From Adam Porter.
  19877. - STM32F7 OTG FS/HS: Fix constant using in comparison to determine
  19878. endpoint is interrupt type. From Adam Porter.
  19879. - STM32H7 PWM: Fix pulse count for the number of counts greater than 128.
  19880. From Mateusz Szafoni.
  19881. - STM32H7 Serial: Fix error when SINGLEWIRE or
  19882. CONFIG_STM32H7_SERIALBRK_BSDCOMPAT defined. From David Sidrane.
  19883. - STM32H7 SPI: Correct a typo in condition compilation. From
  19884. Jonathan Richner.
  19885. - STM32H7 Timer: Fixed compile errors with TIM13, TIM14, TIM7. From
  19886. David Sidrane.
  19887. - STM32H7 USB OTG FS/HS: Fix constant using in comparison to determine
  19888. endpoint is interrupt type. From Adam Porter.
  19889. - STM32G0 Serial: Fix STM32G0 error when SINGLEWIRE or SERIALBRK_BSDCOMPAT
  19890. defined (it reflects previous changes in STM32H7). From Mateusz Szafoni.
  19891. * STMicro STM32 Boards:
  19892. - Nucleo-L432KC: Shorten some long lines, fix i2c pinout. From
  19893. Sebastien Lorquet.
  19894. - STM32L476VG-Disco: Fix an error in defconfig files because a line
  19895. in the rcS file was longer than the configured NSH command line.
  19896. From Juha Niskanen.
  19897. - STM32L4R9AI-Disco: Fix an error in defconfig files because a line
  19898. in the rcS file was longer than the configured NSH command line.
  19899. From Juha Niskanen.
  19900. - OmnibusF4: Correct naming of a configuration variable for ROMFS.
  19901. From Phil Coval.
  19902. - Olimex-STM32-E407: Change initialization to match the way it is
  19903. done with other boards. From Gregory Nutt.
  19904. - Olimex-STM32-E407 SPI: Add SPI initialization logic. From Juan
  19905. Flores.
  19906. - STM32F4-Discovery ROMFS: Missing colon in declaration of local
  19907. variable. From Phil Coval.
  19908. - STM32F4-Discovery ROMFS: Correct naming of a configuration variable
  19909. for ROMFS. From Phil Coval.
  19910. - STM32F4-Discovery Build: Fix .ARM.exidx section overlap Source:
  19911. https://stackoverflow.com/questions/30778614/arm-none-eabi-ld-section-arm-exidx-overlaps-section-data.
  19912. From Alan Carvalho de Assis.
  19913. - STM32F4-Discovery PROTECTED: Fix a problem with undefined symbol
  19914. 'abort' from GCC library in PROTECTED build. Fix by moving libgcc
  19915. into recursive archive group between --start-group and --end-group.
  19916. Other kernel/Makefiles suffer from this same issue From Gregory
  19917. Nutt.
  19918. - Nucleo-H743ZI SPI: Correct typos in function naming. From Jonathan
  19919. Richner.
  19920. * TI AM335x:
  19921. - AM335x SYSCLK: Add a function to return a frequency of the system
  19922. clock. From Gregory Nutt.
  19923. - AM355x CM: Fix a typo in a macro name. From Gregory Nutt.
  19924. - AM355x LCD: Fix a few typos. Add things needed by the LCDC driver.
  19925. From Gregory Nutt.
  19926. * TI Tiva Drivers:
  19927. - Tiva Ethernet: Add a workaround for tiva with qemu. With qemu,
  19928. tiva_ifup() hangs because Ethernet link status can not be set
  19929. correctly. This change is a workaround to avoid this issue. From
  19930. Masayuki Ishikawa.
  19931. * TI Tiva Boards:
  19932. - TM4C1294-Launchpad: Fix syntax error in oocd.sh script. From
  19933. Nathan Hartman.
  19934. * ZiLOG Common:
  19935. - z80: up_addregion() must be prototyped in nuttx/mm/mm.h, not
  19936. up_internal.h. Various name changes to better conform to the coding
  19937. standard, naming conventions, and use by other architectures. From
  19938. Gregory Nutt.
  19939. * ZiLOG Z80 Boards:
  19940. - z80sim: Remove unused function up_earlyserialinit() from serial
  19941. driver. From Gregory Nutt.
  19942. * ZiLOG z16f ZNeo:
  19943. - z16f ZNeo: Replicate build changes make for eZ80 and z8 for ZNeo.
  19944. From Gregory Nutt.
  19945. - ZNeo compile fixes: Fix misuse of FAR which makes a difference on
  19946. this platform. Be consistent in use of WDOG_ID type. ZDS-II doesn't
  19947. like auto-conversions of struct wdog_s * to WDOG_ID (which is type
  19948. struct wdog_s *). From Gregory Nutt.
  19949. * ZiLOG eZ80Acclaim!:
  19950. - eZ80: Fix eZ80 compile problems due to New ZDS-II toolchain and
  19951. ongoing bit rot due to non-C89 code creeping into the core OS. From
  19952. Gregory Nutt.
  19953. - eZ80: Fix some backward conditional logic in Make.defs. From
  19954. Gregory Nutt.
  19955. - eZ80: Fix a logic error in vector initialization. From Gregory Nutt.
  19956. * C Library/Header Files:
  19957. - signal.h: Fix a C89 compliance problem that cause the eZ80 build to
  19958. fail. Empty structure and unions are not accepted by the compiler.
  19959. From Gregory Nutt.
  19960. - wqueue.h: Allow definitions even if work queues are not enabled.
  19961. This solves build failures when work queues are not enabled. From
  19962. Gregory Nutt.
  19963. - fixedmath.h: Regarding the single precision float to/from fixed
  19964. point conversions in fixedmath.h, I believe the floating point
  19965. literals should be appended with the letter 'f' to avoid (expensive)
  19966. conversions from single to double precision, and thereby also avoid
  19967. (expensive if done in SW) double point arithmetic (which is what is
  19968. happening upon inspection of my disassembly). From rajan gill.
  19969. - stdio: Fix long long usage in all of the newer printf-related
  19970. logic: The selection CONFIG_LIBC_LONG_LONG must be ignored if the
  19971. architecture does not support long long types. From Gregory Nutt.
  19972. - gm_time_r(): Spurious reorganization of a loop in gm_time_r() to
  19973. work around and ZDD-II internal compiler error. Might be a little
  19974. bigger now, but is also probably a more structured use of C. From
  19975. Gregory Nutt.
  19976. - Debug: For platforms whose CPP tool does not support a variable
  19977. number arguments to pre-processor macros, we may still need to build
  19978. the debug functions even when CONFIG_DEBUG_FEATURES is not selected.
  19979. For example, __alert() may be needed if CONFIG_ARCH_STACKDUMP is
  19980. set. From Gregory Nutt.
  19981. * Tools:
  19982. - tools/nxstyle.c: Fix error in conditional logic that was preventing
  19983. detection bad brace alignment. Add logic to handle alignment of
  19984. braces in data initializers which following slightly different
  19985. indentation rules. From Gregory Nutt.
  19986. - tools/mkexport.sh: The mcu sub-directory chip/ was renamed to
  19987. hardware/ in late May of 2019. The mkexport.sh script that copies
  19988. these files was not updated, however, until now. Noted by Alin
  19989. Jerpelea. From Gregory Nutt.
  19990. * NSH Library: apps/nshlib:
  19991. - apps/nshlib: Fix all places where cle() and readline() are used.
  19992. readline() returns EOF on a failure. cle() returns a negated errno
  19993. value. Checking only for EOF causes failures to be missed (and
  19994. infinite loops ensuing). From Valmantas Paliksa.
  19995. - nshlib/nsh_parse.c: Fix a warning about an uninitialized variable
  19996. from the ZDS-II compiler. From Gregory Nutt.
  19997. - apps/nshlib/nsh_ddcmd.c: Seemingly nonsense change but somehow
  19998. works around a compilation error using the ZDS-II toolchain. It
  19999. was claiming that vtbl was undefined indd_outfopen(). From Gregory
  20000. Nutt.
  20001. * Network Utilities: apps/netutils:
  20002. - apps/netutils/netinit: MAC address configuration was represented
  20003. by type long long. That is a problem for architectures that do not
  20004. support type long long. Replaces by two long configuration items.
  20005. From Gregory Nutt.
  20006. - apps/netutils/telnetd/telnetd_daemon.c: Fix a C89 violation that
  20007. caused the eZ80 build to fail. From Gregory Nutt.
  20008. - apps/netutils/json: Removed. Replaced with apps/netutils/cjson.
  20009. From Gregory Nutt.
  20010. * Graphics Utilities: apps/graphics:
  20011. - apps/graphics/twm4nx: Fix an uninitialized variable that was
  20012. causing toolbar buttons to randomly come up enabled or disabled.
  20013. Remove some unused event definitions. From Gregory Nutt.
  20014. - apps/graphics/twm4nx: Fix a calibration screen startup issue.
  20015. Make an initial calibration screen optional. From Gregory Nutt.
  20016. - apps/graphics/twm4nx: Revise logic to detect clicks on the
  20017. background image. The original implementation had some side
  20018. effects. From Gregory Nutt.
  20019. - apps/graphics/twm4nx: Remove some remaining stuff from TWM that
  20020. was never used. Menus need to close after the 'terminal' selection
  20021. is made. Otherwise, the menu can become buried under a newly open
  20022. menu and not easily recovered. From Gregory Nutt.
  20023. - apps/graphics/twm4ndx: Add a 'critical' bit to the eventID. While
  20024. resizing, all events will be ignore except those marked critical.
  20025. From Gregory Nutt
  20026. - apps/graphics/twm4nx: CBackground now brings up the main menu if
  20027. the background image is clicked. This makes the behavior the same
  20028. across all of the background except when an icon is clicked. From
  20029. Gregory Nutt.
  20030. - apps/graphics/twm4nx: Fix a bug in placement of icons on the
  20031. desktop. When many windows are displayed, a bug in the looping logic
  20032. could cause an infinite loop. From Gregory Nutt.
  20033. - apps/graphics/twm4nx: Fix some errors found when enabling NX
  20034. keyboard support. The most important being that the mouse and
  20035. keyboard drivers need to be opened non-blocking. From Gregory Nutt.
  20036. NuttX-8.1 Release Notes
  20037. ------------------------
  20038. The 132nd release of NuttX, Version 8.1, was made on September 14, 2019,
  20039. and is available for download from the Bitbucket.org website. Note
  20040. that release consists of two tarballs: nuttx-8.1.tar.gz and
  20041. apps-8.1.tar.gz. These are available from:
  20042. https://bitbucket.org/nuttx/nuttx/downloads
  20043. https://bitbucket.org/nuttx/apps/downloads
  20044. Both may be needed (see the top-level nuttx/README.txt file for build
  20045. information).
  20046. The major release version number is only incremented when there is a major
  20047. change to the OS that makes it more-or-less incompatible with preceding
  20048. versions. This release bumps the major version number from 7 to 8 due
  20049. primarily to a major reorganization in the what was the configs/ directory
  20050. in nuttx-7.31. That directory has been renamed boards/ and now has a
  20051. directory structure that mirrors the organization of the arch/ directory
  20052. for the most part:
  20053. board/ - Holds all board-related information
  20054. board/<arch> - Holds board-related information for all boards that use
  20055. the same CPU architecture. For example, all ARM-based boards will be
  20056. found under board/arm
  20057. board/<arch>/<chip> - Holds board-related information for all boards
  20058. that use the same MCU chip family. For example, all STM32-based
  20059. boards will be found under board/arm/stm32
  20060. board/<arch>/<chip>/<board> - Holds board-related information for a
  20061. specific board. This is analogous to the configs/<board> directory in
  20062. nuttx-7.31. So, for example, the STM32F4-Discovery board support that
  20063. was at configs/stm32f4disovery can now be found under
  20064. boards/arm/stm32/stm32f4discovery.
  20065. boards/<arch>/<chip>/<board>/<configs> - All configurations for a
  20066. specific board can now be found together in this configs/
  20067. subdirectory. So, continuing the example, the STM32F4-Discovery NSH
  20068. configuration can now be found at
  20069. boards/arm/stm32/stm32f4discovery/configs/nsh.
  20070. In additional, common MCU logic can be found at board/<arch>/<chip>/common
  20071. and MCU common drivers can be found at board/<arch>/<chip>/common. Related
  20072. changes include changes to tools/, comments, and documentation that depend
  20073. on the board directory structure.
  20074. This re-organization is the work of Alin Jerpelea. Not only did Alin do
  20075. this major directory re-organization, but he ran the code standard
  20076. compliance tool and corrected every .c and .h file under boards/ so that
  20077. they all correctly follow the NuttX coding style. These changes were very
  20078. extensive and, hence, will not be addressed individually in the ReleaseNotes.
  20079. You have to give Alin credit for his effort to take on really big jobs and
  20080. stick with it until it is finished. Kudos!
  20081. A more constrained re-organization of the drivers/ directory was also
  20082. contributed by Augusto Fraga Giachero. Augusto reorganized some driver
  20083. directories to make better functional associations and also to make space
  20084. for a new set of RF-related drivers.
  20085. Additional new features and extended functionality:
  20086. ---------------------------------------------------
  20087. * Core OS:
  20088. - POSIX Message Queues: Add a test to verify that message queue is
  20089. closed by the same task group that opened it. If not, then list
  20090. corruption would result. This test is only performed if
  20091. CONFIG_DEBUG_FEATURES is enabled since it should not normally be an
  20092. issue: It would be a strange programming practice to open a
  20093. message queue in open task group, then close it in another. From
  20094. ???.
  20095. - Signal Notifications: Add configuration option to select either the
  20096. high-priority or low-priority work queue for SIG_EVTHREA
  20097. notifications. From ligd.
  20098. - System Calls: In order to support built-in in function in protected
  20099. mode, a task_spawn() system call must be supported. task_spawn()
  20100. and posix_spawn() are NuttX OS interfaces. In PROTECTED and KERNEL
  20101. build modes, then can be reached from applications only via a system
  20102. call. Unfortunately this is overly complex because there is a (soft)
  20103. limit of 6 parameters in a system call; task_spawn has seven
  20104. parameters. This is a soft limit but still difficult to extend
  20105. because it involves assembly language changes to numerous
  20106. architectures. Better to get more creative. Rather than extend the
  20107. maximum number of parameters across all architectures, I opted
  20108. instead to marshal the seven parameters into a structure and pass
  20109. only a single parameter: A pointer to the structure containing the
  20110. seven marshaled parameters. From Gregory Nutt.
  20111. - /etc/passwd and /etc/group: Improve the format of the /etc/passwd
  20112. file as used in the sim:nsh configuration. It is now a little
  20113. more similar to other systems and includes user and group IDs. Add
  20114. also an /etc/group file to support future testing. From Gregory
  20115. Nutt.
  20116. - User/Group IDs: Implement 'real' setuid, getuid, setgid, and getgid
  20117. interfaces is so configured (otherwise fall back to stubs that
  20118. support only the 'root' user ID and group. Once set, these IDs will
  20119. be inherited by all child task groups. From Gregory Nutt.
  20120. - Debug Output: Add debug macros for contactless. The various
  20121. contactless device drivers currently define device specific debug
  20122. macros within their local header files. This patch adds generic
  20123. ctls[info|warn|err] macros for the overall contactless subsystem to
  20124. be used in future drivers. Ported the existing contactless device
  20125. drivers to use these generic logging macros and fixed some logging
  20126. bugs along the way. From Michael Jung.
  20127. - IOB instrumentation. Introduces producer/consumer id to every IOB
  20128. call. This is so that the calls can be instrumented to monitor the
  20129. IOB resources and to collect usage statistics. From Anthony
  20130. Merlino.
  20131. - IOB ProcFS: Adding ProcFS support at /proc/iobinfo to show the data
  20132. collected from the IOB instrumentation. From Anthony Merlino.
  20133. - Versioning: Report GIT information via ProcFS. GIT info reported:
  20134. branch, version, GIT hash, hostname, user, build date. Integrates
  20135. into existing .version and ProcFS. From David Alessio.
  20136. * File System/Block and MTD Drivers:
  20137. - BinFS: The BinFS file system uses the same built-in library and
  20138. built-in arrays as does NSH. The built-in arrays are simple name-
  20139. value pairs that map built-in function names with the user-space
  20140. entry point. In the FLAT build, the built-in arrays are available
  20141. everywhere via the backdoor left open by the FLAT address space.
  20142. In the PROTECTED build, however, the kernel must maintain its own
  20143. reference to the user-space built-in array. This commit adds those
  20144. kernel globals and a new boardctl(BOARDIOC_BUILTINS) that can be
  20145. used by applications to the provide the built-in list reference to
  20146. the kernel. From Gregory Nutt.
  20147. - MMC/SD: Added support for MMC (eMMC) bigger than 2 GB (Tested with
  20148. IMXRT1050EVKB and samsung eMMC 16GB).
  20149. - AT24CSxx: Register a character driver for UUID of AT24CSxx chips.
  20150. Allows the UUID to read as a file or displayed from an nsh prompt with:
  20151. nsh> hexdump /dev/eeprom.uuid From David Alessio.
  20152. - Macronix FLASH: Add support for 4-byte addressing on >128Mb
  20153. Macronix flash parts From jjlange.
  20154. - MX25Rxx: Add support for 512B sectors. From Simon Piriou.
  20155. - SST26: Accept the 16MBit Flash when reading the JEDEC-ID at
  20156. initialization time. From Ouss4.
  20157. * Network/Network Drivers:
  20158. - IPv4 Options: Now handles reception of IPv4 packets with larger
  20159. IPv4 headers containing options. From Gregory Nutt.
  20160. - Sockets: Re-order the content of all address-family socket
  20161. 'connection' structures so that they begin with a common prologue.
  20162. This permits better use of logic for different address family
  20163. types. From Gregory Nutt.
  20164. - TCP: Make RTO and WAIT_TIME configurable. This fix is not really
  20165. correct: TCP RTO really should be calculated dynamically for each
  20166. TCP connection: http://sgros.blogspot.com/2012/02/calculating-tcp-rto.html.
  20167. From zhangyuan7.
  20168. - IP Forwarding: Check if interface is up early on when forwarding to
  20169. avoid extra work. As noticed in a previous wireless commit, when
  20170. forwarding is enabled and a packet comes in, the packet is attempted
  20171. to be sent on each other netdev without regard for whether it is in
  20172. the UP state. Of course this is eventually caught, but it can be
  20173. caught earlier to avoid unnecessary work, especially in the 6LoWPAN
  20174. case where a useless packet conversion will occur. From Anthony
  20175. Merlino.
  20176. - RNDIS: Expose option to change the number of write requests that
  20177. can be in flight. From Anthony Merlino.
  20178. - GS2200M: Add UDP support. From Masayuki Ishakawa
  20179. - GS2200M: Implement GS2200M_IOC_IFREQ IOCTL command. From Masayuki
  20180. Ishikawa.
  20181. - GS2200M: Enable NuttX's DHCP client instead of GS2200M's DHCP
  20182. client. From Masayuki Ishikawa.
  20183. - GS2200M: GS2200M now supports SIOCGIFHWADDR From Masayuki
  20184. Ishikawa.
  20185. * Wireless/Wireless Drivers:
  20186. - IEEE802.15.4 Network Driver: Allow 64-bit prefix to be configurable
  20187. when auto-configuring the IPv6 address during bring-up. Previously,
  20188. only the link-local prefix fe80::/64 was used. Also, put the
  20189. network in the DOWN state at the end of initialization. From
  20190. Anthony Merlino.
  20191. - IEEE 802.15.4 MAC: Adds support for energy detect. Adds support
  20192. for energy detect by introducing a new radio call/callback, as the
  20193. PHY layer is required to perform the energy detect. From Anthony
  20194. Merlino.
  20195. - IEEE 802.15.4 MAC: Adds support for getting/setting
  20196. macMaxFrameRetries via IOCTL. Add get support for rxonidle
  20197. attribute From Anthony Merlino.
  20198. - IEEE 802.15.4 MAC: Move the global iobuffer into the macnet struct
  20199. so that more than one macnet device can exist. From Anthony
  20200. Merlino.
  20201. - IEEE 802.15.4 MAC: Defer handling of extracting association
  20202. response to LPWORK queue. From Anthony Merlino.
  20203. - IEEE 802.15.4 Radios: Support dynamic FCS length. Adds
  20204. IEEE802154_ATTR_PHY_FCSLEN. This change introduces
  20205. IEEE802154_ATTR_PHY_FCSLEN which the radio layer can support to
  20206. set/get the FCS length that's added to the end of the frame. One
  20207. use case, in promiscuous mode, is to add back in the FCS of the
  20208. received frame by increasing the iob->io_len by the FCS length.
  20209. From Anthony Merlino.
  20210. - Xbee: Support "WR" AT command for writing parameters to non-
  20211. volatile memory. From Anthony Merlino.
  20212. - Xbee: Add configuration option for setting the default prefix
  20213. to use when bringing up the network and setting the IP address.
  20214. From Anthony Merlino.
  20215. * Other Common Device Drivers:
  20216. - RTC: If the RTC time is successfully set, then update the current
  20217. system time to match. From ligd.
  20218. - ADT7320: Add support for the ADT7320 temperature sensor. From
  20219. Augusto Fraga Giachero.
  20220. - DAC7554: Add support to the DAC7554 digital-to-analog converter.
  20221. From Augusto Fraga Giachero.
  20222. - DAT-31R5-SP+: Add support to the DAT-31R5-SP+ digital attenuator.
  20223. Creates a the new device driver directory drivers/rf/ to support
  20224. drivers related to RF peripherals. It also adds support for the
  20225. DAT-31R5-SP+ digital attenuator. From Augusto Fraga Giachero.
  20226. - ISL29023: Add basic driver of ISL29023 ambient light sensor. The
  20227. basic driver can set operational mode, range, and resolution. It
  20228. can also read lux value in continuous mode. Interrupt and the alarm
  20229. is not implemented. From Matous Pokorny.
  20230. - SHT3x: Add Sensirion SHT3x driver. From Markus Bernet.
  20231. * Simulator:
  20232. - Simulator Build: Even though the simulation has no "chips", it
  20233. needs to have CONFIG_ARCH_CHIP and chip sub-directories. Otherwise,
  20234. we would have to treat it as a special case in the build system
  20235. after the changes to the boards/ directory. From Gregory Nutt.
  20236. * Microchip PIC32MZ:
  20237. - PIC32MZ. Make the PLL input clock configurable. From Ouss4.
  20238. * ARMv7-M
  20239. - Add ARMv7-M setjmp/longjump functions. From David S. Alessio.
  20240. * NXP i.MXRT:
  20241. - i.MXRT Clocking: Enable TRACE clocks if the divider has been
  20242. defined in the board's board.h file. From Dave Marples.
  20243. * NXP i.MXRT Drivers:
  20244. - i.MXRT QEncoder: Adds quadrature encoder driver for IMXRT. From
  20245. Nicholas Chin.
  20246. - i.MXRT uSDHC: This change completes SDIO support for IMXRT, and
  20247. also adds support for WiFi using the AP6212A module based on Simon
  20248. Piriou's rather excellent work. The patch should also address
  20249. DavidS's concern about width setting for USDHC1 and 2. Testing of
  20250. the WiFi is minimal so far but functionality is proven. I'm
  20251. specifically not happy that the driver doesn't recover elegantly
  20252. from a DMA data checksum failure, but that is an issue that can be
  20253. dealt with in due course ... I'm trying to get the rest of the
  20254. interfaces fleshed out and the hardware proven so it can go for pre-
  20255. production build. I _think_ there's only Bluetooth and USB-device
  20256. left to implement now. From Dave Marples.
  20257. - i.MXRT uSDHC: IMXRT uSDHC driver cmd line reset logic modified.
  20258. From Ivan Ucherdzhiev.
  20259. * NXP/Freescale Kinetis Drivers:
  20260. - Kinetis Serial: Add possibility to specify pull-up instead of
  20261. open drain for serial single-wire mode. From Beat Küng.
  20262. * NXP LPC17xx/40xx:
  20263. - LPC17xx/40xx Build: Cortex-M system reset is applicable to
  20264. LPC17xx/40xx too. From Pavel Pisa.
  20265. * NXP LPC17xx/40xx Drivers:
  20266. - LPC17xx/40xx Ethernet: Follow the procedure listed in the
  20267. LPC176x/5x User Manual when reading from and writing to the PHY's
  20268. registers (section 10.11.14). I couldn't see any behavioral change
  20269. after this commit, but nonetheless is a good practice to follow the
  20270. manufacturer's recommended procedure. From Augusto Fraga Giachero.
  20271. * NXP S31K1xx:
  20272. - Added architecture support for the NXP S32K1xx family. Basic
  20273. support includes the boot up logic, clock configuration, LPUART
  20274. console, Systick timer, GPIO controls, and eDMA (unverified).
  20275. * NXP S31K1xx Drivers:
  20276. - S32K1xx eDMA Leverage eDMA logic from i.MXRT to S32K1XX. Appears
  20277. to be the same IP but with fewer channels and features than the
  20278. i.MXRT implementation. From Gregory Nutt.
  20279. - S32K1xx LPUART: Bring in the LPUART from i.MXRT. It is the same
  20280. IP. From Gregory Nutt.
  20281. - S32K1xx SysTick: Bring in Cortex-M0+ SysTick and interrupt handling
  20282. from samd2l2; bring in Cortex-M4F Systick and interrupt handling
  20283. from LPC54xx. From Gregory Nutt.
  20284. - S32K1xx GPIO: Bring in GPIO logic from Kinetis. Looks like similar
  20285. IP. From Gregory Nutt.
  20286. - S32K1xx Ethernet: Unverified port of the i.MXRT Ethernet driver to
  20287. the S32K1xx. The i.MXRT uses the same IP. From Gregory Nutt.
  20288. - S32K1xx LPSPI and LPI2C: Brings in the LPSPI and LPI2C peripheral
  20289. drivers from the i.MXRT which used the identical IP. From Gregory
  20290. Nutt.
  20291. * NXP S31K1xx Boards:
  20292. - S32K118EVB. This commit adds initial board support for the NXP
  20293. S32K118EVB development board. Currently supports only a minimal
  20294. NSH configuration. From Gregory Nutt.
  20295. - S32K118EVB: Implement board support for on-board LEDs and buttons.
  20296. This is taken from the Freedom-K66f with has the same LED and
  20297. button configuration as the S32K116EVB and uses the same GPIO IP.
  20298. LEDs, but not buttons, have have been verified. From Gregory Nutt.
  20299. - S32K146EVB: Adds initial board support for the S32K146EVB
  20300. development board. Currently supports a NSH configuration with a
  20301. richer feature set than the minimal configuration of the S32K118EVB.
  20302. From Gregory Nutt.
  20303. - S32K146EVB: Add support for execution out of SRAM. This is helpful
  20304. for bring-up when you want to avoid putting a lethal image in FLASH.
  20305. From Gregory Nutt.
  20306. - S32K148EVB: Add support for the NXP S32K148EVB development board.
  20307. Very similar to the S32K146EVB but with more on-chip memory and
  20308. hardware features.
  20309. * Sony CXD56xx
  20310. - CXD56xx: Migrate CXD56xx common code to the common/ directory:
  20311. Boot code, FLASH code, I2C driver, UID. From Alin Jerpelea.
  20312. - CXD56xx: Add SPH. The SPH is used by the ASMP implementation from
  20313. the SDK. From Alin Jerpelea.
  20314. * Sony CXD56xx Drivers:
  20315. - CXD56xx: Add sensors connected to the SCU on Spresense board:
  20316. o Avago APDS9930 Proximity and Ambient light Sensor.
  20317. o Rohm BH1721FVC Ambient Light Sensor.
  20318. o Rohm BH1745NUC Color Sensor.
  20319. o Rohm BM1383GLV/BM1383AGLV Pressure Sensor.
  20320. o Rohm BM1422GMV/BM1422AGMV Magnetic Sensor.
  20321. o Bosch BMI160 Sensor support.
  20322. o Bosch BMP280 Barometic Pressure Sensor.
  20323. o Kionix KX022/KX122 Acceleration Sensor.
  20324. o Murata LT1PA01 Proximity and Ambient light Sensor.
  20325. o Rohm RPR0521RS Proximity and Ambient light Sensor.
  20326. o BMI160: Add optional I2C address.
  20327. From Alin Jerpelea.
  20328. - CXD56xx: Add the sensor initialization for CXD56xx boards in the
  20329. common board folder:
  20330. o APDS9930: typo fix
  20331. o cxd56_ak09912 initialization.
  20332. o cxd56_bmi160 initialization.
  20333. o cxd56_apds9960 initialization.
  20334. o cxd56_bh1721fvc initialization.
  20335. o cxd56_bh1745nuc initialization.
  20336. o cxd56_bm1383glv initialization.
  20337. o cxd56_bm1422gmv initialization.
  20338. o cxd56_bmi160 initialization.
  20339. o cxd56_bmp280 initialization.
  20340. o cxd56_kx022 initialization.
  20341. o cxd56_lt1pa01 initialization.
  20342. o cxd56_rpr0521rs initialization.
  20343. o cxd56_sensors initialization.
  20344. o Backup Log driver.
  20345. o crashlog driver.
  20346. o Move gs2200m initialization.
  20347. o Move ili9340 initialization.
  20348. o Move lpm013m091a initialization.
  20349. From Alin Jerpelea.
  20350. * Sony CXD56xx Spresense Board:
  20351. - Spresense: Enable SmartFS and UDP support From Masayuki Ishikawa.
  20352. * STMicro STM32:
  20353. - STM32F4 PLLI2S: Add support to enable the I2S Phase Locked Loop on
  20354. STM32F427 and STM32F437 MCUs. From Michael Jung.
  20355. * STMicro STM32 Drivers:
  20356. - STM32 ADC: Add ADC calibration procedure for IP_ADC_V1. Tested on
  20357. STM32F100, and it magically increased result accuracy. STM32F103
  20358. has the same calibration procedure. I am not sure about others.
  20359. From Matous Pokorny.
  20360. - STM32 SPI: TI Synchronous Serial Frame Format. The SPI macros on
  20361. STM32 MCUs now support the Texas Instruments Synchronous Serial
  20362. Frame Format protocol (TI protocol). Defined a new SPIDEV_MODETI
  20363. and add support for it in stm32_spi.c. From Michael Jung.
  20364. - STM32 UART: Serial add HW HS on UART 4 & 5. From David Sidrane.
  20365. - STM32 PWM: Configure multi-channel duty only if channel specified.
  20366. This allows you to update duty cycle for a single channel. From
  20367. Mateusz Szafoni.
  20368. - STM32F7 Ethernet: Add a timeout on MAC reset From David Sidrane.
  20369. - STM32F7 FLASH: Exposes stm32_flash_xxx functions. From Anthony
  20370. Merlino.
  20371. - STM32F7 PWM: Configure multi-channel duty only if channel specified.
  20372. This allows you to update duty cycle for a single channel. From
  20373. Mateusz Szafoni.
  20374. - STM32F7 UART: Serial add HW HS on UART 4 & 5. From David Sidrane.
  20375. - STM32H7 ADC: Fix internal channel numbers. From Markus Bernet.
  20376. - STM32H7 BBSRAM: Add BBSRAM support. From David Sidrane.
  20377. - STM32H7 DTCM: Port DTCM from F7 From David Sidrane.
  20378. - STM32H7 I2C: Select ARCH_HAVE_I2CRESET in configuration. From
  20379. David Sidrane.
  20380. - STM32H7 PWM: Configure multi-channel duty only if channel
  20381. specified. This allows you to update duty cycle for a single
  20382. channel. From Mateusz Szafoni.
  20383. - STM32H7 RCC: Fix RCC register definitions and typos for ADC/UART.
  20384. From Markus Bernet.
  20385. - STM32H7 RTC: Ported over F7 RTC. From David Sidrane.
  20386. - STM32H7 SPI: Allow more clock sources. From David Sidrane.
  20387. - STM32H7 UART: Serial add HW HS on UART 4 & 5. From David Sidrane.
  20388. - STM32H7 UART: Fix typo in UART8 configuration. From Markus Bernet.
  20389. - STM32H7 UID: Ported UID from F7 From David Sidrane.
  20390. - STM32L4 PWM: Configure multi-channel duty only if channel specified.
  20391. This allows you to update duty cycle for a single channel. From
  20392. Mateusz Szafoni.
  20393. - STM32L4 UART: Serial add HW HS on UART 4 & 5. From David Sidrane.
  20394. * STMicro STM32 Boards:
  20395. - B-L475E-IOT01A: Add mx25rxx memory chip and smartfs support in NSH
  20396. configuration. From Simon Piriou.
  20397. - LX_CPU: Add support for the PIKRON LX_CPU board. From Pavel Pisa.
  20398. - Nucleo-F303RE: Add basic NSH configuration. From Mateusz Szafoni.
  20399. - Nucleo-F303RE: Enable console on UART2 and set entry point to
  20400. nsh_main() in the PWM configuration. From Mateusz Szafoni.
  20401. - Nucleo-H743ZI: Add RTC support. From David Sidrane.
  20402. - Nucleo-L432KC: Added GPIO drivers for use with /apps/examples/gpio.
  20403. From Daniel P. Carvalho.
  20404. - Nucleo-L432KC: Added Zero Cross sensor to nucleo-l432kc. From
  20405. Daniel P. Carvalho.
  20406. * TI Tiva:
  20407. - Tiva: Add support for Tiva TM4C123AH6PM. From Nathan Hartman.
  20408. - Tiva Configuration: Modify preprocessor logic to support
  20409. configurations with no UART. Now similar to logic for other
  20410. architectures. From Nathan Hartman.
  20411. - Tiva Interrupts: Add handling for IRQs 128 through 159. From Nathan
  20412. Hartman.
  20413. * TI Tiva Drivers:
  20414. - TM4C QEncoder: Reinstate TM4C qencoder driver and expand its
  20415. ioctls. Add TIVA_HAVE_QEI0, TIVA_HAVE_QEI1 as applicable to each
  20416. ARCH_CHIP_TM4C12*. Rewrite tiva_qe_setup(). Replace tiva_qe_ppr()
  20417. with tiva_qe_resetatppr(). Add tiva_qe_resetatmaxpos() and
  20418. tiva_qe_resetatindex(). Add missing definitions:
  20419. SIGMODE_QUADRATURE, SIGMODE_CLK_AND_DIR, SWAP_NO_SWAP, SWAP_PHA_PHB.
  20420. Rename TIVA QEI ioctl QEIOC_PPR to QEIOC_RESETATPPR; add TIVA QEI
  20421. ioctl identifiers QEIOC_RESETATMAXPOS, QEIOC_RESETATINDEX. From
  20422. Nathan Hartman.
  20423. * TI Tiva Boards:
  20424. - TM4C1294-Launchpad: Enables /dev/userleds in board bring-up for
  20425. tm4c1294-launchpad by calling userled_lower_initialize() in
  20426. tm4c_bringup(). From Nathan Hartman.
  20427. * TI Tiva Drivers:
  20428. - Tiva GPTM timers: Implement 16-bit PWM mode. Add
  20429. tiva_pwm16_sel_event() to choose GPTMCTL.TnEVENT value. Implement
  20430. tiva_pwm_mode16(). This also involved numerous corrections to the
  20431. 16-bit timer logic. Add tiva_timer16pwm_setperiodduty() to set
  20432. initial period, duty cycle, and enable interrupts if requested in
  20433. GPTM peripheral. Interrupts are not enabled in NVIC until
  20434. tiva_timer16_start() is called. Add tiva_timer16pwm_setduty() to
  20435. update duty cycle at any time. Add new TIMER_FLAG_* configuration
  20436. flags to enable configuring the 16-bit PWM feature. Extend type of
  20437. "flags" in tiva_timer32config_s and tiva_timer16config_s from 8- to
  20438. 32-bits to allow more flags. From Nathan Hartman.
  20439. * Build System:
  20440. - Export Build: Export all variables/files to support architecture
  20441. independent build against NSH. From Pavel Pisa.
  20442. - Application Export: This change too build tools allows to export
  20443. built-in applications registry into temporarily created directory
  20444. where export archive content is prepared. If the Makefile in apps/
  20445. directory does not define export: target then error is print but
  20446. export continues without interruption. It would be more logical to
  20447. print warning but there is no way instruct apps make to not print
  20448. error. From Pavel Pisa.
  20449. - boards/Board.mk: Add support to pass dependency paths. From
  20450. Gregory Nutt.
  20451. * Libraries/Header Files:
  20452. - libs/libc/libc.csv: Add some missing C library functions. From
  20453. Pavel Pisa.
  20454. - libs/libc/libc.csv: Add ioctl() to fs_ioctl() wrapper for varidic
  20455. case. From Pavel Pisa.
  20456. - libs/libc/builtin/: Moves shared built-in information out of
  20457. binfmt/libbuiltin and into libs/libc/builtin where it can be shared
  20458. with applications. This should permit built-in application in the
  20459. PROTECTED build where binfmt/libbuiltin was not available in user
  20460. space. From Gregory Nutt.
  20461. - libs/libc/dirent/: Added alphasort() implementation, scandir()
  20462. implementation and DT_* definitions to include/dirent.h. Apparently
  20463. those definitions are not required by POSIX, but are part of
  20464. 4.3BSD and available in glibc as well. From Michael Jung.
  20465. - libs/libc/grp/: Added stubbed implementations of getgrgid,
  20466. getgrgid_r, getgrnam, getgrnam_r, and initgroups. These functions
  20467. are essentially stubs pretending that NuttX supported groups and
  20468. that the only configured group in the system was 'root' with gid 0.
  20469. The intend is not to provide meaningful new features, but to ease
  20470. porting of foreign source code to NuttX. From Michael Jung.
  20471. - libs/libc/machine/arm/armv7-m/: Add Cortex M4F machine optimized
  20472. fabsf and sqrtf. From David S. Alessio.
  20473. - libs/libc/pwd/: Added stubbed implementations. Added stubbed
  20474. implementations of getpwuid, getpwuid_r, getpwnam, and getpwnam_r.
  20475. These functions are essentially stubs pretending that NuttX
  20476. supported users and that the only configured user in the system
  20477. was 'root' with uid 0. The intend is not to provide meaningful
  20478. new features, but to ease porting of foreign source code to NuttX.
  20479. From Michael Jung.
  20480. - libs/libc/pwd and libs/libc/grp/: Modify to get user/group data
  20481. from /etc/passwd and /etc/group if so configured. From Gregory
  20482. Nutt.
  20483. - libs/libc/stdio/: Add support for the size_t integer qualifier 'z'
  20484. to the printf family. This is kind of tricky due the variety of
  20485. sizeof(size_t) on different platforms. From David Sidrane.
  20486. - libs/libc/unistd.h: Added stubbed implementations of setuid() and
  20487. setgid(). These functions are essentially stubs pretending that
  20488. NuttX supported users and groups and that the only configured user
  20489. and group in the system were both 'root' with a uid and a gid of 0,
  20490. respectively. The intent is not to provide meaningful new features,
  20491. but to ease porting of foreign source code to NuttX. From Michael
  20492. Jung.
  20493. - libs/libc/unistd/: Add getuid() and getgid() stubs to match
  20494. MichaelJung's setuid() and setgid(). From Gregory Nutt.
  20495. - libc/libc/unistd/: Add stubs for geteuid(), getegid(), seteuid(),
  20496. setegid(), setreuid(), and setregid(). NuttX does not currently
  20497. support effective user/group IDs, but these stubs will support
  20498. linkage of applications that expect these POSIX standard interfaces.
  20499. From Gregory Nutt.
  20500. * Symbol Tables:
  20501. - NuttX provides lists of available syscalls and library functions and
  20502. tools to process them. The lists can be used to build symbol table
  20503. which allows runtime program loading which can reuse functions
  20504. already compiled into NuttX system image. List processing,
  20505. compilation and linking to the final system image has been possible
  20506. only under manual control until now. Provided changes add option
  20507. (CONFIG_EXECFUNCS_GENERATE_SYSTEM_SYMTAB) to build complete list of
  20508. available functions and syscalls automatically. The symbolic table
  20509. is generated in form libsymtab.a which can be reused by application
  20510. or directly pull in when "g_symtab" and "g_nsymbols" variables are
  20511. requested by EXECFUNCS configuration. I have tried to follow
  20512. mechanisms for library compilation in different kernel protection
  20513. modes but tested only flat no-MMU build. The basic assumption is
  20514. that this library and libraries providing syscall stubs and C-
  20515. library functions are available in user-space context and initial
  20516. application (usually NSH) registers the symbol table through IOCTL.
  20517. The table can be reused then by another applications in their
  20518. address space as kernel allows. Simple for flat or protected mode,
  20519. I am not sure if really support in MMU mode. It is highly probable
  20520. that I have made some mistake, overlooked something, but the
  20521. functionality is optional (should not cause troubles in any mode if
  20522. disabled) and main purpose is to lower memory overhead when more
  20523. applications are loaded on memory constrained system which usually
  20524. use direct kernel calling without protection or address space
  20525. separation. If the table should be provided by kernel to
  20526. applications then makefiles has to be adjusted. From Pavel Pisa.
  20527. * Tools:
  20528. - tools/: Change preferred argument of configurations tools to use
  20529. ':' as the delimiter between <board-name> and <config-name>. This
  20530. is to emphasize that this is not a path; it is configuration
  20531. specification. The legacy '/' delimiter is still supported but
  20532. not recommend and not advertised. Updated configurations
  20533. instructions in README.txt files to show ':' delimiter vs '/'
  20534. delimiter. Update all configuration-related tools to accept ':'
  20535. separator between board and configuration name. From Gregory Nutt.
  20536. * apps/ General:
  20537. - Makefile: Added support for application-specific export target.
  20538. Used by nuttx/tools/mkexport.sh. From Pavel Pisa.
  20539. - apps/builtins: Move apps/builtins/builtin_forindex.c to
  20540. nuttx/libs/libc/builtin since it is required by kernel logic as
  20541. well. Other changes account for movement of builtin.h from
  20542. nuttx/include/nuttx/binfmt/built.h to nuttx/include/lib/builtin.h.
  20543. From Gregory Nutt.
  20544. * Examples/Tests: apps/examples:
  20545. - apps/examples/uid: Demo used to verify PASSWD and GROUP interfaces.
  20546. From Gregory Nutt.
  20547. - apps/examples/webserver/: Initialilze network and run forever only
  20548. if not built-in app. Infer from CONFIG_NSH_BUILTIN_APPS if we are a
  20549. NSH built-in app or not. If built-in app (CONFIG_NSH_BUILTIN_APPS
  20550. defined) then we assume network is initialized prior to webserver
  20551. starting and we exit on webserver failure. If running standalone
  20552. (CONFIG_NSH_BUILTIN_APPS is undefined) then behavior is unchanged:
  20553. webserver initializes network and runs forever. From Nathan Hartman.
  20554. * Network Utilities: apps/fsutils:
  20555. - apps/fsutils/passwd: Handle the improved the format of the
  20556. /etc/passwd file. It is now a little more similar to other systems.
  20557. From Gregory Nutt.
  20558. * Network Utilities: apps/netutils:
  20559. - apps/netutils/dhcpc: Add host name support to DHCP client. From
  20560. Masayuki Ishikawa.
  20561. * Network Utilities: apps/wireless
  20562. - apps/wireless/ieee802154/i8sak: I8sak improvements: (1) Adds
  20563. support for getting/setting maxretries and promsicuous mode from
  20564. i8sak, (2) Fixes a build warning and handles a few cases where a
  20565. fault can occur due to not catching missing arguments. From
  20566. Anthony Merlino.
  20567. - apps/wireless/ieee802154/i8sak: Allow setting the endpoint PAN ID.
  20568. From Anthony Merlino.
  20569. - apps/wireless/ieee802154/i8sak: Adds support for energy scan result
  20570. printout. From Anthony Merlino.
  20571. - apps/wireless/ieee802154/i8shark: Adds support for intentionally
  20572. suppressing passing the FCS so that Wireshark doesn't try to
  20573. validate it. From Anthony Merlino.
  20574. - apps/wireless/ieee802154/libmac: Adds support for getting/setting
  20575. the FCS length From Anthony Merlino.
  20576. - apps/wireless/gs2200m: Add UDP support to the GS2200M driver. From
  20577. Masayuki Ishikawa.
  20578. - apps/wireless/gs2200m: Add DHCP client handling in ioctl_request().
  20579. From Masayuki Ishikawa.
  20580. - apps/wireless/gs2200m: ioctl_request() supports SIOCGIFHWADDR.
  20581. From Masayuki Ishikawa.
  20582. Bugfixes:
  20583. ---------
  20584. Only the most critical bugfixes are listed here (see the ChangeLog for a
  20585. more complete list of bugfixes and for additional, more detailed bugfix
  20586. information):
  20587. * Core OS:
  20588. - Priority Inheritance: Fix a race in telnet with PRIORITY_INHERITANCE
  20589. and SCHED_HPWORK. Sometimes causes an assertion to fire incorrectly.
  20590. From David S. Alessio.
  20591. - Task Groups: Correct some naming. The NuttX task groups have been
  20592. using the acronym 'gid' and also the type 'gid_t' for the the task
  20593. group ID. That is incorrect. Than naming is reserved for use with
  20594. group permissions. So these were all named to grpid and grpid_t so
  20595. that it is clearer that these refer to NuttX task group IDs, and not
  20596. to group permissions. From Gregory Nutt.
  20597. - Task Termination: nxtask_signalparent() in task_exithook.c may
  20598. invalidate the group's parent task ID (tg_ppid) too soon. The
  20599. tg_ppid field is use only to remember the parent tasks ID so that it
  20600. can send the SIGCHLD signal to it. So it must stay valid until
  20601. SIGCHLD has been sent. In nxtask_signalparent(), it calls
  20602. nxtask_sigchild() to send SIGCHLD to the parent, then invalidates
  20603. tg_ppid. That would be okay, except that the SIGCHLD is only sent
  20604. when the last member of the group terminates. That is incorrect;
  20605. tg_ppid can be invalidated too soon and, as a consequence, SIGCHLD
  20606. would never be sent. Noted by Jeongchan Kim in the Google group:
  20607. https://groups.google.com/forum/#!topic/nuttx/SXd8fVwVKBk From
  20608. Gregory Nutt.
  20609. - sched_get_rr_interval(): sched_get_rr_interval() should return
  20610. {0,0} if round-robin scheduling is not selected for the task. From
  20611. Gregory Nutt.
  20612. - SMP Type Collision: The non-standard, non-portable type cpu_set_t
  20613. was created specifically to support the NuttX internal, SMP
  20614. implementation. Any resemblance to any other cpu_set_t would be
  20615. purely coincidental. However it appears that that coincidence has
  20616. occurred. cpu_set_t has an equivalent, non-standard, non-portable
  20617. type in the GNU C library. Compilation of libgnat expects this
  20618. non-standard type to be defined. Who am I to stand in the way of
  20619. progress? This commit removes the conditioning on CONFIG_SMP so
  20620. that cpu_set_t is typed (as a uint8_t) even if CONFIG_SMP is not
  20621. defined. Reference: Bitbucket issue 164. From Gregory Nutt.
  20622. - Binary Loader: Change some debug macros from berr() to binfo()
  20623. when dumping module data. The report of problems is important
  20624. during development but when it enables complete informative output
  20625. about load binaries then the important information can be easily
  20626. overlooked. The huge output sent to serial terminal slows loading
  20627. significantly as well. From Pavel Pisa.
  20628. - Power Management: Fix g_pmcount 16-bits overflow when
  20629. CONFIG_PM_XXENTER_COUNT set big value. From ligd.
  20630. - Timekeeping: Fix cases in time conversion that must be >=
  20631. NSEC_PER_SEC, not > NSEC_PER_SEC. From Gregory Nutt.
  20632. * File System/Block and MTD Drivers:
  20633. - opendir(): opendir() set errno to a negative value in one error
  20634. case. From Michael Jung.
  20635. - SmartFS: Update smartfs smart_scan() function. From Simon Piriou.
  20636. - ProcFS: Add missing LF to cpuload procfs output From David Alessio.
  20637. - MMC/SD: Copy/paste error fix in the SDIO-based block driver for
  20638. MMC. From Ivan Ucherdzhiev.
  20639. - MMC/SD: Correct a misplaced #endif in the SDIO-based driver. From
  20640. Gregory Nutt.
  20641. * Networking/Network Drivers:
  20642. - Ethernet Configuration: Ethernet packet buffer size cannot be
  20643. permitted to go below 1294 if IPv6 is selected. From Gregory Nutt.
  20644. - TCP RST: Fix outgoing RST packet with wrong ack number. From
  20645. biantao.
  20646. - TCP Close: Fix TCP close flow; free the connection after all TCP
  20647. close process finished. From zhangyuan7.
  20648. - UDP Broadcast: Remove net stack dependency from CONFIG_NET_BROADCAST.
  20649. This change allows us to use CONFIG_NET_BROADCAST without network
  20650. stack (i.e. usrsock application can use broadcast) From Masayuki
  20651. Ishikawa.
  20652. - UDP: Fixes a UDP send copy-paste error in the new SO_LINGER code:
  20653. CONFIG_TCP_NOTIFIER to CONFIG_UDP_NOTIFIER. From Juha Niskanen.
  20654. - TCP and UDP: Fix errors in the new implementation of SO_LINGER.
  20655. The tcp_drain() and udp_drain() functions were casting the working
  20656. argument to the wrong type, resulting in hangs and abnormal
  20657. behavior. There is a complexity in the TCP drain logic when the
  20658. remote peer closes the socket before all Tx data has been flushed.
  20659. Sometimes we are not notified of this case and wait the entire
  20660. timeout unnecessarily. There is a workaround in place in
  20661. tcp_txdrain(), but this really should be revisited. From Gregory
  20662. Nutt.
  20663. - 6LoWPAN: Removes unnecessary conversions that were happening due to
  20664. a misunderstanding of byte ordering with EUI-64. From Anthony
  20665. Merlino.
  20666. - RNDIS: Fix issue with DEBUGASSERT when using composite device and
  20667. endpoint numbers not being the default. From Anthony Merlino.
  20668. * Wireless/Wireless Drivers:
  20669. - wireless network devices: Attach radio to d_buf before registering
  20670. device to handle forwarding case. When CONFIG_NET_IPFORWARD is
  20671. enabled, and CONFIG_NET_6LOWPAN is being used, a packet that
  20672. attempts to get forwarded on the 6LoWPAN interface will require
  20673. that the radio's buffer be attached to d_buf. Otherwise an assertion
  20674. will fire. The underlying "radio" in this case is the
  20675. mac802154_netdev. This behavior has probably not been observed
  20676. because the buffer is normally attached in the periodic txpoll
  20677. worker. However, in my case, the 6LoWPAN interface was not UP yet,
  20678. and therefore the worker hadn't run yet. From Anthony Merlino.
  20679. - IEEE 802.15.4 MAC: Fixes issues with extended address. 1) Extended
  20680. address should be read-only. 2) Extended address should be placed
  20681. in frame in "reverse-canonical" order. The extended address is a
  20682. read-only attribute and thus an attempt to write the extended
  20683. address should be denied. Instead, the extended address should
  20684. really be either set by the PHY/radio itself, or provided at board
  20685. bring-up time to the radio layer. The MAC layer now pulls in the
  20686. extended address from the radio any time the MAC is reset. The
  20687. extended address is also supposed to be sent in the frame in
  20688. reverse-canonical order. This is very confusing in the standard and
  20689. it wasn't until I realized it was backwards in Wireshark that I
  20690. researched this further. Searching online I find documents from the
  20691. committee for suggestions/feedback on the future standard. It isn't
  20692. in the 2015 standard but a newer version of the standard will
  20693. presumably clarify this. It says that the extended address should be
  20694. written in reverse-canonical form, meaning the OUI comes last, not
  20695. first inside the frame. From Anthony Merlino.
  20696. - IEEE 802.15.4 MAC: Frame Version should have been 1, but was being
  20697. set to 3 when payload exceeds version 0 capabilities. Adds warning
  20698. to build to indicate what is noted in the menu for
  20699. CONFIG_MAC802154_NTXDESC From Anthony Merlino.
  20700. - IEEE 802.15.4 MAC: Fixes issue where the txdesc's ackreq flag was
  20701. not being set, despite the frame containing a Frame Control field
  20702. with ACKREQ bit set. From Anthony Merlino.
  20703. - Xbee: Fix logic to prevent deadlock scenario when there are no
  20704. available IOBs From Anthony Merlino (2018-12-21).
  20705. - Xbee: Change assumption about destination address mode for incoming
  20706. frames. If a short address has been assigned to our radio, then
  20707. assume we were addressed using that. Otherwise we were addressed
  20708. using our extended address. From Anthony Merlino.
  20709. - Xbee: Initialize the short address to the unspecified address and
  20710. query for the extended address on initialization. From Anthony
  20711. Merlino.
  20712. - Xbee: Adds CONFIG_XBEE_LOCKUP_WORKAROUND option and corresponding
  20713. logic to workaround an issue where the XBee locks up and stops
  20714. responding. This typically happens when there is a lot of data
  20715. being received over the link. When the XBee stops responding, many
  20716. times, querying the XBee kicks it out of this state. However,
  20717. occasionally the XBee is completely locked up and the XBee has to
  20718. be reset. This change handles these conditions by periodically
  20719. (if not naturally occurring) querying the XBee. If during any
  20720. query, the XBee does not respond within a certain number of
  20721. attempts, the XBee is reset. From Anthony Merlino.
  20722. - Xbee: Cancel query timeout upon receiving the expected response.
  20723. Add protection for race condition that can cause association
  20724. timeout to continue firing repeatedly From Anthony Merlino.
  20725. - Xbee: Detect lockup and reset XBee in xbee_req_data From Anthony
  20726. Merlino.
  20727. - Xbee: Fixes one instance of the use of IOBUSER_WIRELESS_MAC802154
  20728. which isn't available without the software MAC layer. Instead we
  20729. use IOBUSER_WIRELESS_RAD802154 throughout the whole driver since it
  20730. is always available when IEEE 802.15.4 support is enable. From
  20731. Anthony Merlino.
  20732. * Common Drivers:
  20733. - pipes: Use inode reference counter instead of device reference
  20734. counter to handle dup(). I found that if I dup() a pipe, the
  20735. reference counter d_refs is not increased. If I close any of the
  20736. fd, backed by the same pipe, the pipe will be freed. This causes
  20737. any further usage on the fd referencing a non existent pipe. This
  20738. change uses the inode reference counter, which is properly
  20739. maintained during dup(). From Yang ChungFan.
  20740. - SPI Bitbang: Fix build error when the SPI bitbang variable width
  20741. support is enabled. From Augusto Fraga Giachero.
  20742. - GPIO Lower Half: Remove limitation when pintype >
  20743. GPIO_INTERRUPT_PIN. From ligd.
  20744. * ARMv4/ARMv5
  20745. - Classic ARM7/ARM9: When performing stability test, the application
  20746. would cause kernel crash. When I trace the stack, I find that
  20747. register R1 has been changed, and its value is the same as register
  20748. CPSR. In up_fullcontextrestore.S, the restoration of R0 and R1 is
  20749. not atomic: 'msr cpsr r1 will enable interrupts and the recovery of
  20750. r0 and r1 may be interrupted and the value or R1 may be changed.
  20751. Fix is to use a single ldmia to restore R0, R1, and return via R15.
  20752. From Loyen Wang.
  20753. * ARMv7-A
  20754. - ARMv7-A: Fix typo and missing quotation for ARMv7-A. From Oki
  20755. Minabe.
  20756. - ARMv7-A: Fix double increment in armv7-a's
  20757. arm_addrenv_destroy_region(). From Oki Minabe.
  20758. - ARMv7-A: Fix L2 page table mask for ARMv7-A page allocator. From
  20759. Oki Minabe.
  20760. * ARMv7-M
  20761. - Interrupts. Removes the architecture-common
  20762. CONFIG_ARCH_INT_DISABLEALL configuration option (but which was
  20763. supported only by ARMv7-M). In the normal course of things,
  20764. interrupts must occasionally be disabled using the up_irq_save()
  20765. inline function to prevent contention in use of resources that may
  20766. be shared between interrupt level and non-interrupt level logic.
  20767. Now the question arises, if we are using BASEPRI to disable
  20768. interrupts and have high priority interrupts enabled
  20769. (CONFIG_ARCH_HIPRI_INTERRUPT=y), do we disable all interrupts except
  20770. SVCall (we cannot disable SVCall interrupts). Or do we only disable
  20771. the "normal" interrupts? If we are using the BASEPRI register to
  20772. disable interrupts, then the answer is that we must disable ONLY the
  20773. "normal interrupts". That is because we cannot disable SVCALL
  20774. interrupts and we cannot permit SVCAll interrupts running at a
  20775. higher priority than the high priority interrupts (otherwise, they
  20776. will introduce jitter in the high priority interrupt response time.)
  20777. Hence, if you need to disable the high priority interrupt, you will
  20778. have to disable the interrupt either at the peripheral that
  20779. generates the interrupt or at the NVIC. Disabling global interrupts
  20780. via the BASEPRI register cannot effect high priority interrupts.
  20781. From Gregory Nutt.
  20782. - ARMv7-M Priorities: In the 'normal' case, the priority of the
  20783. SVCALL interrupt was the same as the priority of the high priority
  20784. interrupt. This means that SVCALL interrupt processing can defer
  20785. the high priority interrupt and result in the jitter in that
  20786. interrupt response. Fix is to raise the priority of the high
  20787. priority interrupt above the priority of the SVCALL interrupt.
  20788. Suggested by Nathan Hartman. From Gregory Nutt.
  20789. * Microchip i.MXRT Drivers:
  20790. - i.MXRT ENC: Fix some errors in register bit definitions. Noted by
  20791. Arie de Muijnck. From Gregory Nutt.
  20792. - i.MXRT LPI2C: Slave addresses are now correctly shifted when
  20793. sending START. TX/RX FIFOs now discarded on error to prevent FIFO
  20794. underflow errors. Fixes error checking to use priv structure and
  20795. removes checking of BBF flag as it is not an error. From Nicholas
  20796. Chin.
  20797. * Microchip PIC32MZ Drivers:
  20798. - PIC32MZ SPI: Fix SPI Mode selection. CKE is the inversion of the
  20799. CPHA. From Ouss4.
  20800. * Microchip/Atmel SAMD2x/SAML2x Drivers:
  20801. - SAMD2/L2 I2C: Correct time calculation. From Bernd Walter.
  20802. * Microchip/Atmel SAM3/SAM4:
  20803. - SAM3/4: Add missing DMA configuration Kconfig setting. From Bernd
  20804. Walter.
  20805. * NXP LPC17xx/40xx Drivers:
  20806. - LPC17xx/40xx ADC: Only use PCLKSEL0 for ADC on LPC176x family.
  20807. From jjlange.
  20808. - LPC17xx/40xx Ethernet: Set speed back to 10Mbps if 10Mmbps link
  20809. negotiated. From Augusto Fraga Giachero.
  20810. - LPC17xx/40xx I2C: Abort I2C transfers if a timeout has occurred.
  20811. If a timeout has occurred in the middle of a I2C transfer, the next
  20812. I2C interrupt should abort any transfers and send a stop condition
  20813. to the corresponding I2C bus. Failure to do so will result in
  20814. memory corruption / undefined behavior as priv->msgs points to a
  20815. region of memory it doesn't owns anymore after lpc17_40_i2c_start
  20816. returns. From Augusto Fraga Giachero.
  20817. - LPC17xx/40xx I2C: Calculate the appropriate timeout for I2C
  20818. transfers. Depending on the bus frequency and transfer size, I2C
  20819. transactions can take quite a bit, so a fixed timeout is not a
  20820. good solution. Calculating the timeout at run time poses some
  20821. overhead but still better than aborting long transactions. From
  20822. Augusto Fraga Giachero.
  20823. * NXP/Freescale Kinetis Drivers:
  20824. - Kinetis I2C: i2c transfer ensure correct result returned.
  20825. kinetis_i2c_transfer released the mutex then fetched the state,
  20826. this resulted in returning the correct results. From David
  20827. Sidrane.
  20828. * NXP LPC17xx/40xx Drivers:
  20829. - LPC17xx/40xx CAN: If BOARD_CCLKSEL_DIVIDER is not equal to 1 on
  20830. LPC178x or LPC40xx then base clock rate is calculated incorrectly
  20831. because CCLK frequency does not correspond to PLL0 clock which is
  20832. used for PCLK. This is partially workaround solution. It would
  20833. be probably better to define BOARD_PCLK_FREQUENCY even for LPC176x
  20834. targets and use that to replace divisor by base_clock in up_dev_s.
  20835. From Pavel Pisa.
  20836. * NXP LPC17xx/40xx Boards:
  20837. - LPC17xx/40xx Ethernet: Add missing LPC17_40_PHY_CEMENT_DISABLE
  20838. variable to the lpc17xx/40xx Kconfig file. For some reason this
  20839. setting was not referenced anywhere except in the Ethernet driver.
  20840. From Augusto Fraga Giachero.
  20841. - LPC17xx/40xx Ethernet: Fix the initialization for DP83848x PHYs.
  20842. The DP83848x requires the RMII mode to be manually enabled through
  20843. the MII_DP83848C_RBR register. Before querying the speed and mode
  20844. it should wait for the link to be established. From Augusto Fraga
  20845. Giachero.
  20846. * NXP i.MXRT Drivers:
  20847. - i.MXRT LPUART: Fix some errors in the LPUART register definition
  20848. files. Correct naming of a function: up_earlyserialinit() should
  20849. be imxrt_earlyserialinit(). Remove prototypes for non-existent
  20850. serial initialization functions. From Gregory Nutt.
  20851. - i.MXRT USDHC: uSDHC typo fixes and command transfer error handling
  20852. modified. From Ivan Ucherdzhiev.
  20853. * SiLabs EFM32 Drivers:
  20854. - EFM32 OTG host: Adam Porter's various fixex for STM32 FS/HS
  20855. probably should be applied to EFM32 host which which has very
  20856. similar IP. From Gregory Nutt.
  20857. * STMicro STM32:
  20858. - STM327F Configuration: Kconfig add depends on BBSRAM. From David
  20859. Sidrane.
  20860. - STM32F7 Interrupts: Fix overwritten IRQ enable. System boot order
  20861. calls clock_initialize() then up_initialize(). clock_initialize()
  20862. was setting up the alarm IRQ up_initialize is initializing the NVIC.
  20863. This most likely worked in the past due to a bug in the NVIC
  20864. initialization code that failed to clear the Interrupt enables.
  20865. - STM32H7: Rix BBSRAM name in memory map. From David Sidrane.
  20866. - STM32H7: Removed f7 in file path. From David Sidrane.
  20867. * STMicro STM32 Drivers:
  20868. - STM32H7 BBSRAM: Fix issues causing no writes and hardfaults. From
  20869. David Sidrane.
  20870. - STM32H7 BBSRAM: Convince compiler to perform 32 bit write. From
  20871. David Sidrane.
  20872. - STM32F7 OTGHS: Fixes bad preprocessor logic preventing USB OTG HS
  20873. to work when used without external ULPI. From Anthony Merlino.
  20874. - STM32 OTGH[FS|HS] Host STM32 host only initiates transfer if
  20875. buflenl > 0. From Adam Porter.
  20876. - STM32F7/H7/L4 OTG host: Adam Porter's fix for STM32 FS/HS probably
  20877. should be applied to STM32 F7, H7, and L4 OTG host which are very
  20878. similar. From Gregory Nutt.
  20879. - STM32/F7/H7/L4: This change was required to get my devices
  20880. (CDC-MBIM) to enumerate. Initially the system timed out retrieving
  20881. the USB configuration descriptor. Ctrl IN requests got nothing but
  20882. NAKs. I found that the initial SETUP packet and corresponding IN
  20883. transfer were fine; it was the Status OUT phase that was getting the
  20884. NAK. After receiving a NAK on the Status OUT, the code would loop
  20885. back and issue another ctrl IN, which will always fail because the
  20886. data was already transferred before. Thus the entire transfer would
  20887. 'timeout'. The fix I implemented moves the DATANAK timeout loop to
  20888. only apply to the Status OUT. Both the ctrl IN and the Status OUT
  20889. need their own retry loops. From Adam Porter.
  20890. - STM32F7 SDMMC: If there is only one SDMMC it is slot 0 From David
  20891. Sidrane.
  20892. - STM32F7 USART1: USART1_RXDMA is dependent on STM32F7_DMA2 not
  20893. STM32F7_DMA1 From Anthony Merlino.
  20894. - STM32H7 DBGMCU: Memory Map DBGMCU is @ 0x5c001000 From David
  20895. Sidrane.
  20896. - STM32F7 SDMMC: Fix warning when DMA is not enabled. From David
  20897. Sidrane.
  20898. - STM32H7 Ethernet: Fix some errors in Ethernet MAC configuration.
  20899. From Markus Bernet.
  20900. - STM32H7 Ethernet: Correct stm32h7 mac address filtering. Correct
  20901. the MAC address 0 register definition and remove the 'receive all'
  20902. flag. Now the Ethernet driver only receives packets addressed to
  20903. correct MAC. From Jukka Laitinen.
  20904. - STM32H7 Ethernet: Correct memory corruption error. The Ethernet
  20905. driver initialization incorrectly wrote to DMACRXCR instead of
  20906. DMACSR when trying to clear the stopped flags. This caused
  20907. invalid buffer length in the DMACRXCR, causing DMA to overflow the
  20908. RX buffers when large packets are sent to the device. From Jukka
  20909. Laitinen.
  20910. - STM32H7 PWR: Ensure data is flushed on backup domain access
  20911. changes. From David Sidrane.
  20912. - STM32H7 Serial: Serial fix undefined with TERMIOS From David
  20913. Sidrane.
  20914. - STM32H7 UARTs: Fix UART7/8 typos. Fix bug in ETH_MACQTXFCR
  20915. configuration. From Markus Bernet.
  20916. * STMicro STM32 Boards:
  20917. - Multiple STM32 Boards: If CONFIG_SCHED_CRITMONITOR is selected,
  20918. then make sure that ITM and DWT resources are enabled before
  20919. accessing ITM and DWT registers. By default, these registers are
  20920. disabled. Suggested by Juha Niskanen. From Gregory Nutt.
  20921. - Nucleo-H743ZI: Correct logic that determines if the RTC driver is
  20922. available. Find in build testing. From Gregory Nutt.
  20923. - Nucleo-G071RB: Fix linker script to avoid .ARM.exidx section
  20924. overlap with .data From Daniel Pereira Volpato.
  20925. - Modify all linker scripts (all boards, all architectures) to use
  20926. solution from Daniel P. Volpato. From Alan Carvalho de Assis.
  20927. - Nucleo-L432KC ADC: Change analog pins definitions and correct DMA
  20928. related issue. From Daniel P. Carvalho.
  20929. * TI Tiva:
  20930. - Tiva Configuration: Rename TM4C123GH6PMI identifiers to
  20931. TM4C123GH6PM. Rationale: In terms of firmware programming, there
  20932. is no functional difference between these parts: TM4C123GH6PMI7,
  20933. TM4C123GH6PMI7R, TM4C123GH6PMT7, and TM4C123GH6PMT7R. From a
  20934. programming standpoint, all of the above parts are TM4C123GH6PM,
  20935. which means it doesn't make sense to differentiate between PM and
  20936. PMI. (The PM means 64-LQFP. The I means temperature range -40C to
  20937. +85C. It could be T meaning -40C to +105C. The R means it ships in
  20938. Tape and Reel packaging as opposed to Tray.) From Nathan Hartman.
  20939. - Tiva Configuration: Rename TM4C1294NC identifiers to TM4C1294NCPDT.
  20940. Rationale: TM4C1294NC is ambiguous: TM4C1294NCPDT is a 128-TQFP,
  20941. TM4C1294NCZAD is a 212-NFBGA. The TM4C1294NC part currently
  20942. supported by NuttX is the TM4C1294NCPDT used on the TI EK-TM4C1294XL
  20943. "Connected LaunchPad" (see configs/tm4c1294-launchpad). To ensure
  20944. the correct part is fully specified, this commit updates all
  20945. TM4C1294NC identifiers to TM4C1294NCPDT. From Nathan Hartman.
  20946. - Tiva Configuration: Fix TM4C129XNCZAD part number in Kconfig and
  20947. identifiers. Rationale: Fully specify that this is the 212-pin BGA
  20948. package (ZAD ending) and for consistency with earlier changes to
  20949. other Tiva TM4C12x part numbers in Kconfig names and identifiers.
  20950. From Nathan Hartman.
  20951. * TI Tiva Drivers:
  20952. - Tiva TM4C 1-Wire: Fix wrong description on define TIVA_1WIRE_BASE:
  20953. Was "EEPROM and Key Locker" (same as the item above). Now "1-Wire
  20954. Master Module." Make DMACTL symbols visible for TM4C123: Remove
  20955. "#ifdef CONFIG_ARCH_CHIP_TM4C129" guard around UART DMA Control
  20956. (DMACTL) symbols. These bits are valid on TM4C123 devices, as well
  20957. as on TM4C129. Also, improve the comment on UART_DMACTL_DMAERR.
  20958. From Nathan Hartman.
  20959. - Tiva GPIO Interrupts: LM3S, LM4F, TM4C: Fix GPIO IRQ error, ports
  20960. R, S, T. Preprocessor logic for CONFIG_TIVA_GPIOx_IRQS was setting/
  20961. clearing port Q defines when it should act on ports R, S, T.
  20962. gpioport2irq() was missing handling for port T. From Nathan
  20963. Hartman.
  20964. - Tiva Timers: Fix minor errors in tiva_timerlib.c. Fix incorrect
  20965. preprocessor conditionals related to Kconfig defines:
  20966. CONFIG_TIVA_TIMER32_EDGECOUNT -> CONFIG_TIVA_TIMER16_EDGECOUNT,
  20967. CONFIG_TIVA_TIMER32_TIMECAP -> CONFIG_TIVA_TIMER16_TIMECAP,
  20968. CONFIG_TIVA_TIMER32_PWM -> CONFIG_TIVA_TIMER16_PWM. From Nathan
  20969. Hartman.
  20970. - Tiva Timers: Fix errors in low-level timer support.
  20971. tiva_gptm_configure() and tiva_gptm_release() were calling
  20972. tiva_emac_periphrdy() instead of tiva_gptm_periphrdy(). Fix
  20973. error in "abcde" description of bit flag defines. From Nathan
  20974. Hartman.
  20975. - Tiva Timers: Fix one code error and some comment errors.
  20976. tiva_timer16_setinterval(): Was DEBUGASSERTing on mode !=
  20977. TIMER16_MODE. Fixed to DEBUGASSERT on mode == TIMER16_MODE.
  20978. From Nathan Hartman.
  20979. * ZiLOG Z80 Boards:
  20980. - z80sim Serial: Fix uart_dev_t initializer: pollfds[] is a array of
  20981. pointers and, hence, the NULL initializer must be included in braces.
  20982. Noted by Paul Osmialowski in Issue #160. From Gregory Nutt.
  20983. - z80sim Interrupts: Missed a name change up_irqinitialize to
  20984. z80_irq_initialize. From Gregory Nutt.
  20985. * C Library/Header Files:
  20986. - include/netinet/in.h: Rename __pad member to sin_zero in struct
  20987. sockaddr_in. Libwebsockets initializes the 'sin_zero' member of
  20988. sockaddr_in objects to zeros. Apparently, judging from mailing list
  20989. entries, there are platforms on which not doing this causes
  20990. undefined behavior. On NuttX compiling respective code is broken,
  20991. as the corresponding member variable is called '__pad'. Neither in
  20992. the 'nuttx' nor in the 'apps' repository did I find any reference to
  20993. this identifier. Thus, I believe its a safe bet to just rename it.
  20994. UNIX Network Programming states in this regard: "The POSIX
  20995. specification requires only three members in the structure:
  20996. sin_family, sin_addr, and sin_port. It is acceptable for a POSIX-
  20997. compliant implementation to define additional structure members, and
  20998. this is normal for an Internet socket address structure. Almost all
  20999. implementations add the sin_zero member so that all socket address
  21000. structures are at least 16 bytes in size." From Michael Jung.
  21001. - libs/libc/libc.csv: Correct dependency of setlocale on
  21002. CONFIG_LIBC_LOCALE. From Pavel Pisa.
  21003. - libs/libc/machine/arm/armv7-m: Fix build error for ELF. From
  21004. Masayuki Ishikawa.
  21005. - libs/libc/math.csv: Correct format of some function entries. From
  21006. Pavel Pisa.
  21007. * Tools:
  21008. - tools/: Change all occurrences of /bin/(ba)sh in shell scripts to
  21009. /usr/bin/env bash which appears more portable From Manuel Stühn.
  21010. * NSH Library: apps/nshlib:
  21011. - apps/nshlib/: As noted by David S. Alessio, 'cat' should not output
  21012. any additional newline at the end of the cat'ed file content. This
  21013. additional newline was added to assure that the NSH prompt was
  21014. presented on a new line. However, that is not the correct behavior
  21015. of 'cat' per the IEEE std: "The standard output shall contain the
  21016. sequence of bytes read from the input files. Nothing else shall be
  21017. written to the standard output." Reference:
  21018. https://pubs.opengroup.org/onlinepubs/009695399/utilities/cat.html.
  21019. This commit changes the function nsh_catfile() which underlies the
  21020. 'cat' command and well as other NSH commands. Although this is the
  21021. correct behavior for 'cat' it may not be the correct behavior for
  21022. other commands implemented via nsh_catfile(). That remains to be
  21023. determined. From Gregory Nutt.
  21024. * System Utilities: apps/system:
  21025. - apps/system/cle/: ASCII DEL should be treated by Delete-Left. From
  21026. Dave Marples.
  21027. - apps/system/i2ctool: (1) Friendlier I2C "knock-knock" uses only
  21028. read request. While many I2C slave devices have multiple indexed
  21029. registers, some have only one register and it's not indexed. For
  21030. example, the I2C bus switch TCA9548A has only a Control Register,
  21031. attempting to index to "Reg[0]" alters its contents to 0x00
  21032. disabling all subordinate buses. This patch fixes that problem by
  21033. simply trying to read something/anything from the slave. This also
  21034. helps coax out slaves with register files that start from a higher
  21035. index, i.e. the AT24CS0x, FLASH chips with a UUID that appears as a
  21036. 2nd I2C slave at (address+8), report their serial number at
  21037. Reg[80]-Reg[8F] and will NAK a read of Reg[0]. (2) Modify get/set
  21038. to prevent write of reg index if not specified From David Alessio.
  21039. * Network Utilities: apps/netutils:
  21040. - apps/netutils/dhcpd: Fixes bug where hwaddr was being used instead
  21041. of ipaddr in the ARP update. This bug seems to have been introduced
  21042. three years ago during a rewrite to remove a direct OS call to arp.
  21043. I'm not sure how others have not run into issues with this. The
  21044. behavior I was observing was that the DHCPD would go to offer an IP
  21045. address, but then send a ARP request for the IP instead because it
  21046. didn't know where to send the data. From Anthony Merlino.
  21047. - apps/netutils/netinit/: Remove warnings. Unhook PHY notification
  21048. signal handler when cleaning up, if an error occurs after the signal
  21049. handler is put into place. From Nathan Hartman.
  21050. * Wireless Utilities: apps/wireless:
  21051. - apps/wireless/ieee802154/i8sak: Fixes conversion from extended
  21052. address to IPv6 address. From Anthony Merlino.
  21053. NuttX-8.2 Release Notes
  21054. ------------------------
  21055. The 133rd release of NuttX, Version 8.2, was made on November 16, 2019,
  21056. and is available for download from the Bitbucket.org website. Note
  21057. that release consists of two tarballs: nuttx-8.2.tar.gz and
  21058. apps-8.2.tar.gz. These are available from:
  21059. https://bitbucket.org/nuttx/nuttx/downloads
  21060. https://bitbucket.org/nuttx/apps/downloads
  21061. Both may be needed (see the top-level nuttx/README.txt file for build
  21062. information).
  21063. Additional new features and extended functionality:
  21064. ---------------------------------------------------
  21065. * Core OS:
  21066. - Signals: Add support for SIGPIPE default action. SIGPIPE uses
  21067. SIG_SIGPIPE_ACTION which terminates process by default. It also
  21068. could be ignored. From liuhaitao.
  21069. - Spinlocks: Remove support for re-entrant spinlocks. They seemed
  21070. like a good idea, but they are never used. From Xiang Xiao.
  21071. - Memory Manager: Remove the assumption that one character equals
  21072. eight bits. From Xiang Xiao.
  21073. - Power Management: Historically, the NuttX PM subsystem has
  21074. consisted of two functional components: (1) an "Upper" part that
  21075. detects state changes based on a random walk driven by activity
  21076. levels, and (2) and "lower" part that implementst the state changes.
  21077. This change decouples that upper activity-based logic from the lower
  21078. random walk logic and allows use of other upper state detection
  21079. logic (such as a custom, application-specific state machine). From
  21080. Matias Nitsche.
  21081. - boardctl(): Expose power manager function through boardctl()
  21082. interface. From Xiang Xiao.
  21083. * File System/Block and MTD Drivers:
  21084. - GD25: Add support for a new FLASH vendor. From zhangbo_a.
  21085. - GD25: Add support for GD25 device with 256-Mbit capacity. From
  21086. YanLin Zhu.
  21087. - GD25: Add 4-byte address operation for capacity larger than
  21088. 128-Mbit. From YanLin Zhu.
  21089. - GD25: Add gd25_lock/unlock to case: enable 4-bytes address From
  21090. ligd.
  21091. - GD5F: Add gigadevice SPI NAND FLASH driver. From YanLin Zhu.
  21092. * Networking/Network Drivers:
  21093. - Networking: Use ntoh() when printing IPv6 addresses so that the
  21094. addresses appear in friendlier host order vs. network order. From
  21095. Bernd Walter.
  21096. - Netlink: Implement minimal NETLINK_ROUTE socket functionality that
  21097. can (for now) be use used to obtain a list of network devices, IPv4
  21098. ARP and IPv6 Neighbor tables, and IPv4 and IPv6 routing tables.
  21099. From Gregory Nutt.
  21100. * Wireless/Wireless Drivers:
  21101. - BCM43438A1 Bluetooth: Add support for the BCM43438A1 Bluetooth
  21102. capability. From Dave Marples.
  21103. - HCIUART Shim: Add a serial 'shim' to allow any regular serial port
  21104. to support a Bluetooth H4 interface and to be used to drive a
  21105. Bluetooth device. From Dave Marples.
  21106. - BCM4343x HCIUART: BCM4343x HCIUART support. From Dave Marples.
  21107. - BCM43xxx: Move drivers/wireless/ieee80211/ to
  21108. drivers/wireless/ieee80211/bcm43xxx/ since the directory only
  21109. contains only BCM43362 and BCM43438 related code. From Xiang Xiao.
  21110. - GS2200M: Add reset handler to interface. Add reset and un-reset
  21111. sequence in driver. From Masayuki Ishikawa.
  21112. * Audio/Audio Drivers:
  21113. - Audio: Add message type to support audio trigger. From anchao.
  21114. * Other Common Device Drivers:
  21115. - Altair: Add support for the altair LTE modem driver. From Alin
  21116. Jerpelea.
  21117. - MCP2515: MCP2525 SPI STD-EXT ID fixes. From DisruptiveNL.
  21118. - OpenAMP: Brings in the drivers needed to support OpenAMP. These
  21119. changes were ported from https://github.com/FishsemiCode/nuttx.
  21120. This port was effort of a number of people, I rather arbitrarily
  21121. gave authorship to Guiding Li because he has the largest number of
  21122. fundamental quashed commits from the Xiamoi repository. From
  21123. Guiding Li.
  21124. * Simulator:
  21125. - Simulator: Add stack coloration feature. From ligd.
  21126. - Simulator: Report PM activity on simulated UART. From Matias
  21127. Nitsche.
  21128. - Simulator: Add host ftruncate() support. From chao.an.
  21129. - Simulator: Replace all CONFIG_DEV_CONSOLE with USE_DEVCONSOLE for
  21130. arch/sim and compile up_devconsole.c conditionally. From Xiang
  21131. Xiao.
  21132. - Simulator OpenAMP: Support OpenAMP between two simulator
  21133. instances. Please read rpserver/rpproxy section in
  21134. boards/sim/sim/sim/README.txt for more information. From chao.an.
  21135. * ARMv7-M
  21136. - ARMv7-M: Add BPIALL register address. From Dave Marples.
  21137. - ARMv7-M MPU: Add user peripheral helper
  21138. * Atmel SAMD2/L2 Boards:
  21139. - Arduino-M0: Add initial board support for the Arduino M0 which is
  21140. based on the SAMD21 chip. Include nsh and usbnsh configurations.
  21141. From Alan Carvalho de Assis.
  21142. * NXP i.MXRT Drivers:
  21143. - i.MXRT LCD: Add support for LCD. Clean up some LCD-related
  21144. interfaces. From Fabio Balzano.
  21145. - i.MXRT Serial: This change improves the performance of UART serial
  21146. ports on the IMXRT by enabling the RX & TX FIFOS and transmission on
  21147. the holding register being empty (TDRE) rather than transmission
  21148. being complete (TC). From Dave Marples.
  21149. - i.MXRT Pin Mux: This change separates out the pinmux and iomux
  21150. functions cleanly. For ease of conversion default IOMUX definitions
  21151. have been added into imxrt_iomux.h. The change effectively does two
  21152. things: (1) unifies the iomux definitions - previously some pins
  21153. had them, and some didn't. This effectively made it impossible to
  21154. use the pinmuxes without editing the header file in the standard
  21155. distribution tree. And (2) unifies the pin definitions so that every
  21156. pin now has a suffix. This makes it *much* easier to see when a pin
  21157. is in use in your code, because it will always have a definition in
  21158. your board.h file. From Dave Marples.
  21159. - IMXRT1020-EVK: Add support for the MIMXRT1021-EVK board. It
  21160. features nsh, netnsh and usdhc sample configurations. From Dave
  21161. Marples.
  21162. * NXP i.MXRT Boards:
  21163. - IMXRT1060-EVK: Add basic LCD support for the board IMXRT1060-EVK.
  21164. From Fabio Balzano.
  21165. - IMXRT1060-EVK: Added Littlevgl demo configuration into the
  21166. IMXRT1060-EVK board directory. From Fabio Balzano.
  21167. * NXP/Freescale Kinetis Drivers:
  21168. - Kinetis Ethernet: Add support for TJA1100 PHY. From David Sidrane.
  21169. * NXP S31K1xx:
  21170. - S32K1xx: Support configuration and initialization of the flash
  21171. configuration bytes. From Gregory
  21172. * NXP S31K1xx Boards:
  21173. - S32K1**EVB: Create a special FLASH section to hold the FLASH
  21174. configuration bytes. From Gregory Nutt.
  21175. - S32K146EVB: Added configuration script and instructions for using
  21176. Thread-Aware OpenOCD for the S32K146 with Eclipse. From Han
  21177. Raaijmakers.
  21178. * Renesas RX65N:
  21179. - RX65N: Adds a port of to the Renesas RX65N Micro-controller. This
  21180. port includes Serial (UART) driver (13 ports) and Ethernet
  21181. driver. From Anjana.
  21182. * Renesas RX65N Boards:
  21183. - RSK RX65N-2MB: Add support for the RSK RX65N-2MB board. From
  21184. Anjana.
  21185. - GR-Rose: Add support for the GR-Rose board. From Anjana.
  21186. * Sony CXD56xx
  21187. - CXD56xx CPU FIFO: Add configurations for CPU FIFO elements. From
  21188. Alin Jerpelea.
  21189. - CXD56xx Loader: Update loader and gnssfw ver. 17660. From Alin
  21190. Jerpelea.
  21191. - CXD56xx SMP: Add support for SMP. To run cxd56xx in SMP mode, new
  21192. boot loader which will be released later must be used. From
  21193. Masayuki Ishikawa.
  21194. - CXD56xx SMP: Add IRQ routing for SMP in cxd56_irq.c. In CXD56xx,
  21195. each external interrupt controller can be accessed from a local
  21196. APP_DSP (Cortex-M4F) only. This change supports IRQ routing for SMP
  21197. by calling up_send_irqreq() in both up_enable_irq() and
  21198. up_disable_irq(). From Masayuki Ishikawa.
  21199. * Sony CXD56xx Drivers:
  21200. - CXD56xx I2C: Add ability to set the i2c frequency to other than just
  21201. 100 or 400 Hz. From Alin Jerpelea.
  21202. - CXD56xx SDHCI: Reduce power consumption by stopping SD clock. Re-
  21203. enable SD clock during access to SD card. Improve GNSS low
  21204. sensitivity with SD card inserted. From Alin Jerpelea.
  21205. * Sony CXD56xx Spresense Board:
  21206. - CXD56xx Board Common: Add the Altair LTE modem support on the
  21207. Spresense board. From Alin Jerpelea.
  21208. - CXD56xx Board Common: Add Spresense Image Processor. Enable support
  21209. for accelerated format converter, rotation and so on. using the CXD5602
  21210. image processing accelerator.
  21211. - Spresense: Add board specific pin configurations of CXD5602 pins to
  21212. fit Spresense board. From Takayoshi Koizumi.
  21213. - Spresense: Add a configuration option to select if an extension
  21214. board is attached to the SPresence. If there is no extension board
  21215. attached, the SPresense may run in a low-power mode by default (as
  21216. determined by the CONFIG_CXD56_CUSTOM_PINCONFIG option). If an
  21217. extension board is present, then the SPresense will need to run at a
  21218. higher power mode, selected by the new CONFIG_SPRESENSE_EXTENSION
  21219. option. From Gregory Nutt.
  21220. - Spresense Camera: Add ISX012 camera initialization and
  21221. configuration. From Alin Jerpelea.
  21222. - Spresense OS test: Enable ostest in rndis/defconfig and
  21223. wifi/defconfig. From Masayuki Ishikawa.
  21224. - Spresense: Add --gc-sections to LDFLAGS and add -ffunction-sections
  21225. and -fdata-sections to ARCHCFLAGS in scripts/Make.defs. From
  21226. Masayuki Ishikawa.
  21227. - Spresense SMP: Add smp configuration. From Masayuki Ishikawa.
  21228. - Spresense SCU: The SCU has to be initialized at bootup on Spresense
  21229. board because several functions depend on it. Add audio control
  21230. definitions. Add configuration for the audio implementation. From
  21231. Alin Jerpelea.
  21232. - Spresense: Add audio and board audio control implementation. From
  21233. Alin Jerpelea.
  21234. - Spresense: Sdd power_control and audio_tone_generator. Add a simple
  21235. way to control the audio buzzer with defined frequency for user-space
  21236. apps. From Alin Jerpelea.
  21237. - Spresense: Add the optional initialization of GNSS and GEOFENCE at
  21238. boot if the drivers are enabled From Alin Jerpelea.
  21239. - Spresense: Add LTE configuration. From Alin Jerpelea.
  21240. - Spresense: Enable high current mode for the Spresense Extension
  21241. board on all examples that have SDCARD support. From Alin Jerpelea.
  21242. - Spresense: Add lcd examples configuration. This is a configuration
  21243. for the basic nx examples From Alin Jerpelea.
  21244. * STMicro STM32:
  21245. - STM32F0/L0/G0: Add support for STM32G070xx family. From Daniel
  21246. Pereira Volpato.
  21247. - STM32F0/L0/G0 Power: Scale dynamic voltage and flash wait states
  21248. properly on STM32G0 chips. Included preliminary implementation of
  21249. PWR module VOS support. From Daniel Pereira Volpato.
  21250. - STM32L4R5ZI: Add support for the STM32L4R5ZI chip type. From Jussi
  21251. Kivilinna.
  21252. - STM32 L4+ DMA: Add DMA support for STM32L4+ series. From Jussi
  21253. Kivilinna.
  21254. - STM32 L4 Clocking: Enable "Range 1 boost" mode if any PLL freq
  21255. above 80 MHz. From Jussi Kivilinna.
  21256. - STM32 L4 LPTIM: Add support for LPTIM timers on the STM32L4 as PWM
  21257. outputs. From Matias N.
  21258. - STM32 H7 Progmem: Add FLASH progmem support. From David Sidrane.
  21259. * STMicro STM32 Drivers:
  21260. - STM32 Serial: Single Wire add pull{up|down|none} via new IOCTL
  21261. command. From David Sidrane.
  21262. - STM32 F0/L0/G0 Serial: Single Wire add pull{up|down|none} via
  21263. new IOCTL command. From David Sidrane.
  21264. - STM32 F0/L0/G0 PWM: Add PWM support. From Daniel Pereira Volpato.
  21265. - STM32 G0 TIM: Support timers available on STM32G070. Includes TIM1
  21266. PIOs, TIM driver lower-half. From Daniel Pereira Volpato.
  21267. - STM32 F7 Serial: Single Wire add pull{up|down|none} via new IOCTL
  21268. command. From David Sidrane.
  21269. - STM32 H7 BBSRAM: Exclude BBSRAM from cacheable when
  21270. CONFIG_ARMV7M_DCACHE. ST placed the STM32H7 BBSRAM in the SRAM
  21271. default memory region which is cacheable. This change sets the
  21272. BBSRAM memory range to non-cacheable. From David Sidrane.
  21273. - STM32 H7 SDMMC: Add SDMMC support and IDMA as well as interrupt
  21274. driven transmission. Support pull-ups and SDIO. From David Sidrane.
  21275. - STM32 H7 Serial: Single Wire add pull{up|down|none} via new IOCTL
  21276. command. From David Sidrane.
  21277. - STM32 L4 OTGFS: Enable OTGFS for STM32L4+ series. The OTGFS
  21278. peripheral on stm32l4x6 and stm32l4rxxx reference manual is exactly
  21279. the same. From Jussi Kivilinna.
  21280. - STM32L4 IDLE Loop: (1) Added BEGIN_IDLE()/END_IDLE() to stop call
  21281. so that we also get notification via LED of the STOP mode, (2) Added
  21282. the stm32l4_clockenable call as previously discussed, and (3) Added
  21283. call to pm_changestate() to inform drivers we're back to running
  21284. after the call to stm32l4_stop() returns. From Matias N.
  21285. - STM32 L4 Serial: Single Wire add pull{up|down|none} via new IOCTL
  21286. command. From David Sidrane.
  21287. * STMicro STM32 Boards:
  21288. - Nucleo-G070RB: Initial support for board STM32 NUCLEO-G070RB,
  21289. including NSH config. Enables PWR peripheral and set SYSCLK to
  21290. maximum frequency. From Daniel Pereira Volpato.
  21291. - Nucleo-G070RB: Enable basic timers. Add TIMx clock frequencies to
  21292. board.h. From Daniel Pereira Volpato.
  21293. - Nucleo-G070RB: Add PWM support and GPIO_TIM3_* mappings. Add a PWM
  21294. configuration. From Daniel Pereira Volpato.
  21295. - Nucleo-G070RB: Add button driver support, Add driver support. Add
  21296. GPIO configuration. From Daniel Pereira Volpato.
  21297. - Nucleo-L476RG: Add required definitions if libcxx is enabled. From
  21298. Matias N.
  21299. - Nucleo-L476RG: Add support for LPTIM timers as PWM outputs. From
  21300. Matias N.
  21301. - Nucleo-H743ZI: Added GPIO device driver for user-space apps. From
  21302. Heiko Demlang.
  21303. - olimex-stm32-e407: Newer Olimex E407 boards are populated with
  21304. STM32407ZE chips. From David Alessio.
  21305. - STM32F4-Discovery: Add support for external DS1307 module. From
  21306. Alan Carvalho de Assis.
  21307. - STM32F4-Discovery: Add support for MMCSD_SPI. This change works
  21308. with STM32F4 Discovery Shield plus microSD click From Masayuki
  21309. Ishikawa.
  21310. - STM32F4-Discovery: Add support for gs2200m. Works with mikroe
  21311. STM32F4 Discovery Shield (slot3) From Masayuki Ishikawa.
  21312. * TI Tiva:
  21313. - TM4C129ENCPDT: Add support for Tiva TM4C129ENCPDT. From Nathan
  21314. Hartman.
  21315. * TI Tiva Boards:
  21316. - TM4C123G-Launchpad: SPI CAN functionality on TM4C123GXL. From
  21317. DisruptiveNL.
  21318. * Build System:
  21319. - tools/Config.mk: Eliminate use of the built-in implicit rules.
  21320. From anchao.
  21321. - tools/Config.mk and Makefile.unix: Support the incremental build
  21322. for configuration change. From Xiang Xiao.
  21323. - tools/Config.mk: Support the ability to change the CFLAGS for
  21324. the compilation of a single file. Set special compiler options as
  21325. follows the rule: sourcefile + fixed suffix "_[A|C|CPP|CXX]FLAGS".
  21326. For example in apps/examples/hello/Makefile:
  21327. $(SRCDIR)/hello_main.c_CFLAGS = -DTEST. From Xiang Xiao.
  21328. - Configuration: Auto-select CONFIG_BUILD_LOADABLE when either
  21329. CONFIG_BUILD_KERNEL or CONFIG_BINFMT_LOADABLE is selected. From
  21330. Xiang Xiao.
  21331. * Libraries/Header Files:
  21332. - libs/libc: Add CONFIG_MODLIB_SYSTEM_SYMTAB to generate the symbol
  21333. table for dlopen/insmod. From Xiang Xiao.
  21334. - getdelim() and getline(): Add implementations of the POSIX
  21335. functions getdelim() and getline(). Because of how the function is
  21336. defined, getline() cannot be used on platforms that use CR-LF lin
  21337. terminations. From Gregory Nutt.
  21338. - alarm(), setitimer(), and getitimer(): Implement alarm(),
  21339. setitimer() and getitimer() APIs. From liuhaitao.
  21340. * Tools:
  21341. - tools/mkexport.sh: Copy the essential build script files too and
  21342. move Make.defs/gnu-elf.ld into scripts like board folder layout.
  21343. From Xiang Xiao.
  21344. - tools/mkexport.sh: Should export full content for FLAT build even
  21345. with CONFIG_BUILD_LOADABLE. From Xiang Xiao.
  21346. - tools/testbuild.sh: Add an option to select the number of CPUs to
  21347. use with 'make' From Gregory Nutt.
  21348. - tools/indent.sh: Add a command line option to suppress reformatting
  21349. of comments. This is useful when comments are already correct
  21350. and/or contain formatted data such as tables or lists. From Gregory
  21351. Nutt.
  21352. - tools/nxstyle.c: Add detection of carriage returns. Improve
  21353. reporting of TABs. From Gregory Nutt.
  21354. - tools/nxstyle.c: Add logic to detect if there is a blank line
  21355. following the final right brace. From Gregory Nutt.
  21356. - tools/nxstyle.c: Eliminate false alarm errors on comments that are
  21357. to the right of code when the comment terminator is on the same
  21358. line as the last of the comment. From Gregory Nutt.
  21359. - tools/nxstyle.c: Eliminate false alarms when checking for
  21360. alignment of comments to the right of code. Fix check for C++ style
  21361. comments so that strings like http:// and https:// do not generate
  21362. false alarms. From Gregory Nutt.
  21363. - tools/nxstyle.c: Eliminate false positive 'Invalid character after
  21364. asterisk in comment block'. From Gregory Nutt.
  21365. * apps/ Build System:
  21366. - apps/ Build System: Numerous changes for improvements and general
  21367. clean-up of the apps/ build system. Too many small and individual
  21368. changes to list here. Includes many improvements related to loadable
  21369. modules and symbol table generation, removal of duplicated logic,
  21370. renaming of binary directories, use of cygpath, etc. From Xiang Xiao.
  21371. - apps/Application.mk: Support the ability to change the CFLAGS for
  21372. the compilation of a single file. Set special compiler options as
  21373. follows the rule: sourcefile + fixed suffix "_[A|C|CPP|CXX]FLAGS"
  21374. As an example in apps/examples/hello/Makefile:
  21375. $(SRCDIR)/hello_main.c_CFLAGS = -DTEST
  21376. From Xiang Xiao.
  21377. - apps/Application.mk and main.c files: Change builtin's entry point
  21378. from main to xxx_main by macro expansion. This change make the
  21379. entry point fully compliant with POSIX/ANSI standard. From Xiang
  21380. Xiao.
  21381. * Examples/Tests: apps/examples:
  21382. - apps/examples/audio_rttl: Add a simple RTTL player demo that is
  21383. able to play tunes according to an RTTL song. From Alin Jerpelea.
  21384. - apps/examples/bmi160: Add bmi160 example app. This app will read
  21385. the BM160 data and list it on the NSH console. From Alin Jerpelea.
  21386. - apps/examples/charger: Simple charger example that will display on
  21387. the console voltage and current values. From Alin Jerpelea.
  21388. - apps/examples/netlink_route: Add test/example of NETLINK_ROUTE
  21389. 'get' operations. From Gregory Nutt.
  21390. * NuttShell: apps/nshlib:
  21391. - apps/nshlib/: Add rptun cmd for boot remote core. From ligd.
  21392. - apps.nshlib/: Add a -t option to the arp command which will enable
  21393. printing the entire ARP table. From Gregory Nutt.
  21394. - apps/nshlib/: Add new NSH command, 'pmconfig'. From ligd.
  21395. * System Utilities: apps/system:
  21396. - apps/system/cle: Add basic color support to the CLE editor.
  21397. From Dave Marples.
  21398. - apps/system/i2c: While many I2C slave devices have multiple
  21399. indexed registers, some have only one register and it's not indexed.
  21400. For example, the I2C bus switch TCA9548A has only a Control
  21401. Register, attempting to index to "Reg[0]" alters its contents to
  21402. 0x00 disabling all subordinate buses. This change fixes that
  21403. problem by simply trying to read something/anything from the slave.
  21404. This also helps coax out slaves with register files that start from
  21405. a higher index, i.e. the AT24CS0x, FLASH chips with a UUID that
  21406. appears as a 2nd I2C slave at (address+8), report their serial
  21407. number at Reg[80]-Reg[8F] and will NAK a read of Reg[0]. Modified
  21408. get/set to prevent write of reg index if not specified.
  21409. - apps/system/i2c: Added a 'dump' command to issue a single
  21410. transaction to retrieve multiple bytes from an I2C slave and
  21411. register/offset. From David Alessio.
  21412. - apps/system/spi: Add options to specify devtype, id for chip
  21413. select. From David S. Alessio.
  21414. - apps/system/symtab: Remove system/symtab since the same
  21415. functionality exist in nuttx now. From Gregory Nutt.
  21416. - apps/system/usrsock_rpmsg: Add rpmsg based usrsock implementation.
  21417. From Jianli Dong.
  21418. * Network Utilities: apps/netutils:
  21419. - apps/netutils/cjson/: Update default version to 1.7.12. Previous
  21420. releases raise compilation warnings about redefined true/false.
  21421. From raiden00pl.
  21422. - apps/netutils/netlib/: Add a function to read the entire ARP table
  21423. using NETLINK_ROUTE protocol. From Gregory Nutt.
  21424. - apps/netutils/netlib/: Add support for retrieving a snapshot of the
  21425. IPv6 neighbor table using Netlink sockets. From Gregory Nutt.
  21426. - apps/netutils/netlib/: Add a utility function that will return a
  21427. list of all network devices in the UP state. From Gregory Nutt.
  21428. - apps/netutils/netlib/: Add function to retrieve routing tables
  21429. using Netlink. From Gregory Nutt.
  21430. Bugfixes:
  21431. ---------
  21432. Only the most critical bugfixes are listed here (see the ChangeLog for a
  21433. more complete list of bugfixes and for additional, more detailed bugfix
  21434. information):
  21435. * Core OS:
  21436. - Signals: Fix undefined reference from sig_default.c to
  21437. sched_suspend() if CONFIG_SIG_SIGSTOP_ACTION is not defined. From
  21438. raiden00pl.
  21439. - waitpid(): Fix a NULL pointer dereference on race without
  21440. DEBUG_ASSERT. From David Alessio.
  21441. - WD Timers: Back out a kludge-workaround in wd_start for an SDCC
  21442. compiler problem fix back in Feb 2017. That workaround now appears
  21443. to conflict with newer GCC versions using (unsupported) warning
  21444. options and SDCC no longer needs the work-around. From Gregory
  21445. Nutt.
  21446. - clock_systimespec(): Fix early timespec overflow if using 32 bit
  21447. system timer. From Jens Gräf.
  21448. - Spinlocks: spin_trylock handle memory barrier and instrumentation
  21449. correctly. From Xiang Xiao.
  21450. - Power Management: Fix a problem where a timer cannot start when it
  21451. encounters a very small pmtick. From ligd.
  21452. - boardctl(BOARDIOC_MKRD): This change corrects a problem with NSH:
  21453. NSH was calling the OS internal function ramdisk_register() in
  21454. violation of the portable POSIX interface. This change solves the
  21455. problem by introducing a new boardctl() function BOARDIOC_MKRD
  21456. which moves the RAM disk creation into the OS. From Gregory Nutt.
  21457. - boardctl(BOARDIOC_ROMDISK): Add support for the new
  21458. BOARDIOC_ROMDISK command. This allows applications to create ROMFS
  21459. block drivers without illegal direct calls to romdisk_register.
  21460. * File System/Block and MTD Drivers:
  21461. - SmartFS: Fix O_CREAT without O_TRUNC truncating existing file.
  21462. Also nothing in POSIX says that O_APPEND should prevent O_TRUNC.
  21463. From Juha Niskanen.
  21464. - SmartFS: Honor O_APPEND on writes. Also document pwrite() bug/
  21465. limitation. From Juha Niskanen.
  21466. - GD25: spi_devid argument was not used in initialization. GD25
  21467. driver was always using priv->spi_devid initialized to zero by
  21468. kmm_zalloc(). This change initializes it from the supplied function
  21469. argument. From Juha Niskanen.
  21470. - MMC/SD: Set wrbusy after success of all the operations. Any
  21471. failure could leave wrbusy set when it should not be if the
  21472. operation failed. From David Sidrane.
  21473. - MMC/SD: Enter a removed card state On a failure. If we fail to
  21474. read cardstatus in mmcsd_transferready consider this a hard error
  21475. and set the card to removed. From David Sidrane.
  21476. - MMC/SD (SDIO): Align DMA buffer for MBURST size. From David S.
  21477. Alessio.
  21478. * Networking/Network Drivers:
  21479. - Socket close(): Fixed problems noted by Bernd Walter: Eliminate an
  21480. incomplete test when a disconnection event happens. When a
  21481. disconnection event occurs, the close logic MUST always terminate
  21482. the wait. The conditional test was not incorrect, however, it
  21483. lacked 'else' logic and would simply ignore that disconnection event
  21484. in some cases. That is bad because there may not be another
  21485. disconnection event and that can lead to hangs (or at least very,
  21486. very long delays). From Gregory Nutt.
  21487. - ICMPv6: Dispatch ICMP_POLL to device's callback list too since
  21488. icmpv6_neighbor stills append the callback into this list. From
  21489. Gregory Nutt.
  21490. - ICMPv6: Decouple autoconfig and ICMPv6 socket to avoid an invalid
  21491. Kconfig combination. From Xiang Xiao.
  21492. - ICMPv6: cmpv6_autoconfig() error handling must not overwrite
  21493. overwrite the error code. From Xiang Xiao.
  21494. - TCP/UDP: Fix a chicken and egg problem by eliminating the check of
  21495. the arp/neighbor tables before packet transmission:
  21496. 1. For buffered TCP/UDP case, if CONFIG_NET_ARP_SEND /
  21497. CONFIG_NET_ARP_IPIN / CONFIG_NET_ICMPv6_NEIGHBOR isn't enabled
  21498. and the table doesn't contain the Ethernet address for the
  21499. destination IP address yet, then the logic will skip the real
  21500. transmission and then ARP/neighbor logic can't steal the final
  21501. buffer to generate the ARP/ICMPV6 packet.
  21502. 2. For all other case, the TCP layer or user program should already
  21503. contain the retransmit logic, the check is redundant and may
  21504. generate many duplicated packets if ARP/ICMPV6 response is too
  21505. slow because the cursor stop forward. If user is still concerned
  21506. about the very first packet lost, he could fix the issue by
  21507. enabling CONFIG_NET_ARP_SEND / CONFIG_NET_ICMPv6_NEIGHBOR.
  21508. From Xiang Xiao.
  21509. - UDP sendto(): Add a check for the device that is polling. In the
  21510. multiple network device case, this check is necessary to prevent
  21511. sending the UDP packet to the wrong device. From Gregory Nutt.
  21512. * Wireless/Wireless Drivers:
  21513. - MRF24J40: Correct erroneous isolation of address mode field and
  21514. subsequent bad comparison. From Gregory Nutt.
  21515. - GS2200M: Add SPI_SELECT() to _read/write_data() in gs2200m.c
  21516. - BCM43xx Wireless: In the SDIO interface, the behavior of the DMA
  21517. setup differs, depending on the hardware capability
  21518. SDIO_CAPS_DMABEFOREWRITE. If this capability is set, then the DMA
  21519. setup much be done before the transfer setup. Dave Marples
  21520. modified this file for the i.MXRT USDHC which does have the
  21521. SDIO_CAPS_DMABEFOREWRITE. Xiao Xiang reports that this change
  21522. breaks the Wifi on the Photon which does not report the
  21523. SDIO_CAPS_DMABEFOREWRITE and suggests reverting the change. In
  21524. reality both changes are correct but must be conditioned on the
  21525. DMA capability of the underlying SDIO device. From Gregory Nutt.
  21526. * Common Drivers:
  21527. - Various drivers (Cloned logic): On error, memory was freed, but
  21528. the error was not returned. It just continued as though no error
  21529. happened. From Petro Karashchenko.
  21530. - Serial: Fix data corruption when outputting data in SMP mode From
  21531. Masayuki Ishikawa.
  21532. - Serial: serial_io.c used signal numbers, but did not include
  21533. signal.h. This has no problems but missing signal definitions have
  21534. been seen in certain cases. From David Sidrane.
  21535. - Serial DMA: Avoid uart_xmitchars_done() move the tail bigger then
  21536. head. If ioctl(TCOFLUSH) occurs between uart_xmitchars_dma() and
  21537. uart_xmitchars_done(), TCOFLUSH will reset xmit buffer, then
  21538. uart_xmitchars_done() will move the 'tail' ahead of 'head', then
  21539. sends lots of wrong data. From ligd.
  21540. - mkfifo(): mkfifo() should return -1 and set errno on failure From
  21541. raiden00pl.
  21542. - RAMLog: Fix ramlog readers never awakened up when using ramlog as
  21543. syslog or console. We also make an attempt to avoid the thundering
  21544. herd problem if there are multiple readers/pollers. This change also
  21545. removes forcing CONFIG_RAMLOG_CRLF in nuttx/syslog/ramlog.h as there
  21546. is no point of wasting precious RAM for useless characters. From
  21547. Juha Niskanen.
  21548. - USB CDC/ACM: Fix memory leak of RX failsafe timer. From Juha
  21549. Niskanen.
  21550. - USB HID Keyboard device: Fix keyboard debounce algorithm used when
  21551. CONFIG_HIDKBD_NODEBOUNCE is undefined. From Jeff Theusch.
  21552. - USB HID Keyboard: Change default for CONFIG_HIDKBD_POLLUSEC per
  21553. recommendation of Jeff Theusch. From Gregory Nutt.
  21554. - VL53L1X IOCTLs: IOCTL commands for the VL53L1X did not follow the
  21555. sequence. Noted by Daniel Pereira de Carvalho. From Gregory Nutt.
  21556. - syslog: syslog_force does not set errno so do not test against it.
  21557. From Juha Niskanen.
  21558. - syslog: Fix assertion that assumes re-opened syslog file is the
  21559. same. Logic in syslog_file_channel() is calling syslog_initialize()
  21560. for the default syslog device as a recovery action after failed
  21561. syslog_dev_initialize(). From Juha Niskanen.
  21562. * Simulator:
  21563. - Simulator HostFS: Skip '.' and '..' in readdir' From Xiang Xiao.
  21564. - Simulator HostFS: Fix warning: 'mapflags' may be used uninitialized
  21565. in this function. From Xiang Xiao.
  21566. - Simulator Tickless: Correct the calculation of the Tickless timer
  21567. period. Fix some missing initialization of globals and missing
  21568. return values. From Matias N.
  21569. - Simulator: Add -m32 to HOSTLDFLAGS if enable CONFIG_SIM_M32. From
  21570. Xiang Xiao.
  21571. - Simulator PM: Fixes compilation for sim target when enabling power
  21572. management. From Matias N.
  21573. - Simulator Build: Fixes missing recursion into sim board directory
  21574. for dependency generation. From Matias N.
  21575. - Simulator SIMUART: Remove CONFIG_SIM_UART_DATAPOST for arch/sim.
  21576. It's very dangerous to call NuttX API from simuart_thread. From
  21577. Xiang Xiao.
  21578. * ARMv7-A
  21579. - ARMv7-A: Apply Masayuki Ishakawa's change for ARMv7-M to this SMP
  21580. architecture as well. From Gregory Nutt.
  21581. * ARMv7-M
  21582. - ARMv7-M: Fix a deadlock in up_sigdeliver() in SMP mode. In
  21583. previous implementation, up_disable_irq() was called before
  21584. recovering local context. However, I noticed a deadlock happens in
  21585. the following situation. For example, if up_sigdevliver() is in
  21586. progress on CPU0 and CPU1 has called up_cpu_paused to CPU0, hence
  21587. g_cpu_irqlock has been locked by CPU1, in this case, we would see a
  21588. deadlock in later call of enter_critical_section() to restore
  21589. irqcount. To avoid this situation, we need to call
  21590. enter_critical_section() to break the deadlock. From Masayuki
  21591. Ishikawa.
  21592. * Atmel SAM3/4 Boards:
  21593. - SAM4CM: Fix cpustart() implementation. In Cortex-M, offset 0 in
  21594. vector table stores initial stack pointer and offset 4 stores reset
  21595. vector. From Masayuki Ishikawa.
  21596. * Atmel SAMA5Dx Boards:
  21597. - SAMA5D4-EK: Fix bad conditional compilation for
  21598. board_app_initialize(). Should depend only on CONFIG_LIB_BOARDCTL,
  21599. CONFIG_BUILD_KERNEL is irrelevant. From Gregory Nutt.
  21600. * Microchip i.MXRT:
  21601. - i.MXRT WFI: WFI needs to be disabled on i.MXRT. We found the
  21602. reason: The imxrt1050 is configured to use SYSTICK for the kernel
  21603. timer, but SYSTICK cannot wake up the MCU from low-power modes.
  21604. Disable low-power modes on this MCU until we have support for an
  21605. alternative timer. Earlier versions of the board (EVK, not EVKB),
  21606. had A0 silicon which by default did not enter low-power mode on a
  21607. WFI. With this change in place together with the previous one my
  21608. system is stable, just using more power than it should. From Dave
  21609. Marples.
  21610. * Microchip i.MXRT Drivers:
  21611. - i.MXRT Serial: TC (Transmission complete) and TDRE (TX Buffer
  21612. Empty) were transposed in imxrt_serial.c. The end result was that
  21613. for unoptimized code everything worked fine, but optimized code got
  21614. itself into a real mess and continually fired interrupts. From Dave
  21615. Marples.
  21616. * Microchip i.MXRT Boards:
  21617. - IMXRT1020-EVK: Make naming of the LED consistent. In most places
  21618. it is referred to as LED1. In board.h it is referred to as
  21619. USERLED1. The i.MXRT1020-EVK hardware user guide (HUG) uses the
  21620. name USERLED. This command makes all names internally consistent
  21621. and consistent with the HUG. Noted by Alin Jerpelea. From Gregory
  21622. Nutt.
  21623. * NXP/Freescale Kinetis Boards:
  21624. - TWR-K60N512: Suppress errors related to card detect GPIO
  21625. configuration if SDHC support is not enabled. From Gregory Nutt.
  21626. * NXP LPC17xx/40xx Drivers:
  21627. - lpc17xx/40xx I2C: Respect the I2C_M_NOSTART flag. Sending a
  21628. restart condition when not requested will break other drivers that
  21629. depend on this behavior. From Augusto Fraga Giachero.
  21630. - LPC17xx/40xx Ethernet: Use usleep() instead of up_delay() for large
  21631. wait times. From Augusto Fraga Giachero.
  21632. * NXP LPC54xx:
  21633. - LPC54 Clocking: Fix PLL settings. For the lpc54628 Rev. E board
  21634. the PLL was not configured properly and the board would not boot
  21635. correctly. I checked the startup files from the official IDE and
  21636. inspected the assembly instructions for the libraries used. From
  21637. Andrei Stefanescu.
  21638. * NXP i.MXRT Boards:
  21639. - IMXRT1060-EVK: Fix FT5X06 CTRSTn pin configuration, increased
  21640. number of pollwaiters for the FT5X06, tuned resolution during
  21641. pointer dragging. From Fabio Balzano.
  21642. * On Semiconductor Boards:
  21643. - LC823450: Fix cpustart() implementation. In Cortex-M, offset 0 in
  21644. vector table stores initial stack pointer and offset 4 stores reset
  21645. vector. From Masayuki Ishikawa.
  21646. - LC823450-XGEVK: Fix build error for posix_spawn. From Masayuki
  21647. Ishikawa.
  21648. * Sony CXD56xx:
  21649. - CXD56xx Assertions: Replace some assertions with error return
  21650. values. From Alin Jerpelea.
  21651. - CXD56xx Interrupts: Fix hang-up when error interrupt occurs. From
  21652. Alin Jerpelea.
  21653. - CXD56xx Pin Configuration: PIN_AP_CLK is used as a port selector of
  21654. SDIO expander on the extension board, and is set output low in
  21655. initialization. Therefore, this pin cannot be used by the other
  21656. board. To avoid this restriction, remove this initial operation
  21657. because this pin is pulled down by default on the extension board.
  21658. From Alin Jerpelea.
  21659. - CXD56xx: Remove duplicate NVIC_SYSH redefinitions. The NVIC_SYSH
  21660. is already defined in nvicpri.h From Alin Jerpelea.
  21661. * Sony CXD56xx Drivers:
  21662. - CXD56xx SDHCI: Fix initial value of semaphore in sdhci driver.
  21663. From Alin Jerpelea.
  21664. * Sony CXD56xx Boards:
  21665. - Spresense: The SD Card TXS02612 port expander is hosted on the
  21666. Extension board and should not be enabled if the extension board is
  21667. not present. From Alin Jerpelea.
  21668. * STMicro STM32:
  21669. - STM32 F4 Pin Multiplex: Ethernet pin ETH_RMII_REF_CLK is an input.
  21670. From Gregory Nutt.
  21671. - STM32 H7 ADC: Fix typos in ADC register definitions. From Markus
  21672. Bernet.
  21673. - STM32 H7: Heap allocation, SRAM and SRAM1 are not continuous From
  21674. David Sidrane.
  21675. - STM32 H7 CRC: Add the CRC option in KConfig. From Eduard Niesner.
  21676. - STM32 H7 RCC: Add PLL3 Support and only enable PLLs if used. From
  21677. David Sidrane.
  21678. - STM32 L4x6xx RCC: This fix is needed if HSI clock is selected.
  21679. Otherwise when waking up from STOP mode, the MSI clock is selected
  21680. instead of the HSI clock. From Matias N.
  21681. * STMicro STM32 Drivers:
  21682. - STM32 USB Host: There was no relationship between
  21683. CONFIG_STM32_USBHOST and CONFIG_USBHOST, yet they they were used
  21684. interchangeably. This means that can (and did) get out of synch
  21685. causing link time failures. This change adds logic to select
  21686. CONFIG_USBHOST when CONFIG_STM32_USBHOST is selected, keeping the
  21687. two settings synchronized. Furthermore, since CONFIG_STM32_USBHOST
  21688. is the authoritative setting, all occurrences of CONFIG_USBHOST were
  21689. replaced with CONFIG_STM32_USBHOST. From Gregory Nutt.
  21690. - STM32 SDIO: SDIO Fix system hang on card eject. From David Sidrane.
  21691. - STM32 F7 Ethernet: Large Ethernet packet can leads network halt.
  21692. From Bazooka Joe.
  21693. - STM32F7 OTGHOST: OTGFS_EPTYPE_INTR should be OTG_EPTYPE_INTR. From
  21694. Gregory Nutt.
  21695. - STM32 F7 SDMMC: SDMMC Fix system hang on card eject. From David
  21696. Sidrane.
  21697. - STM32 L4 Firewall: Correct a test to determine if an address lies
  21698. in FLASH or not. Improper mask caused test to always fail. From
  21699. Gregory Nutt.
  21700. - STM32 H7 Ethernet: Bazooka Joe's fix to the STM32 F7 Ethernet
  21701. driver should be applied to the H7 as well. The other STM32
  21702. Ethernet drivers already have the change. From Gregory Nutt.
  21703. - STM32 H7 Ethernet: Fix ETH_MACMDIOAR_CR_MASK bit mask. From Markus
  21704. Bernet.
  21705. - STM32 H7 SDMMC: SDMMC Fix system hang on card eject. From Gregory
  21706. Nutt.
  21707. - STM32 H7 FLASH: Flash driver BUG fixes. From David Sidrane.
  21708. - STM32 H7 TIM: Correct register bit definitions and alternate
  21709. functions. Fix other copy-paste definitions. From Daniel Pereira
  21710. Volpato.
  21711. - STM32 L4 SDMMC: SDMMC Fix system hang on card eject. From David
  21712. Sidrane.
  21713. * STMicro STM32 Boards:
  21714. - STM32F4-Discovery: Fix build error for posix_spawn. From Masayuki
  21715. Ishikawa.
  21716. * TI Tiva:
  21717. - TIVA IRQs: Fix wrong IRQ vector number. From Nathan Hartman.
  21718. - Tiva FLASH: Fix several mistakes in tiva_write(). (1) Fix wrong
  21719. use of && when & was intended. (2) Add compile- time warning
  21720. directive because according to this function's interface, it is
  21721. supposed to support unaligned writes and/or writes of arbitrary
  21722. numbers of bytes to FLASH. However, this function does NOT support
  21723. that at this time. This needs to be fixed. (3) Fix wrong
  21724. preprocessor conditional. Was written to use the 32-word write
  21725. buffer only for TM4C1294NCPDT. This buffer is available on all
  21726. M4C123 and TM4C129 parts. Now conditioned upon
  21727. CONFIG_ARCH_CHIP_TM4C123 or CONFIG_ARCH_CHIP_TM4C129. (4) Add
  21728. comments to document the intent of the above preprocessor logic.
  21729. From Nathan Hartman.
  21730. * Xtensa
  21731. - Xtensa: Apply Masayuki Ishakawa's change for ARMv7-M to this SMP
  21732. architecture as well. From Gregory Nutt.
  21733. * Build System:
  21734. - Makefiles: Change ${shell pwd} to $(CURDIR) since pwd doesn't exist
  21735. on Windows From Xiang Xiao.
  21736. - tools/Makefile.unix: Fix build error when issue 'make -B': "mkdir:
  21737. cannot create directory 'staging': File exists:
  21738. tools/Makefile.unix:269: recipe for target 'staging' failed". From
  21739. Xiang Xiao.
  21740. - All ARM linker scripts: Preface all _ebss definitions with '. =
  21741. ALIGN(4)'. Otherwise, the following .bss section may not be aligned
  21742. properly. From Gregory Nutt.
  21743. - MIPS Linker Scripts: The PIC32M* start-up code initializes .bss by
  21744. writing 16 bytes at a time in a loop. The start (_sbss) alignment
  21745. is only required to be 4 bytes since the write is done with 4 store
  21746. instructions. From Gregory Nutt.
  21747. - Top-level Kconfig: Add some protection so that you cannot select an
  21748. architecture-specific header file if the architecture does not
  21749. provide the header file. From Gregory Nutt.
  21750. - libc Kconfig: Should select the NuttX float.h file automatically
  21751. if the NuttX math library is selected. From Gregory Nutt.
  21752. - tools/Makefile.unix: Make COMMON_DIR work with
  21753. CONFIG_ARCH_BOARD_CUSTOM. From Xiang Xiao.
  21754. - tools/ Make fragments: Fix the various minor issue for NUTTXLIBS /
  21755. USERLIBS: (1) Remove libcxx duplication in FlatLibs.mk and from
  21756. kernel space, (2) Remove libpass1 from KernelLibs.mk since kernel
  21757. build doesn't support the two pass mode, and (3) Remove FSDIR
  21758. related comment since file system cannot be disabled now From Xiang
  21759. Xiao.
  21760. * C Library/Header Files:
  21761. - getcwd(): Remove stray sched_unlock(). Also fixes several typos.
  21762. From Juha Niskanen.
  21763. - date(), hostname(): Fix portability issue with date, hostname From
  21764. David Alessio.
  21765. - libs/libxx/Kconfig: Automatically select CONFIG_CLOCK_MONOTONIC when
  21766. CONFIG_LIBCXX is selected. Removed hardcoded -DCLOCK_MONOTONIC from
  21767. CFLAGS in Make.defs of several configurations. That definition is
  21768. now automatically adding this define when CONFIG_LIBCXX=y. From
  21769. Daniel Pereira Volpato.
  21770. - libs/libxx/Kconfig: CONFIG_LIBC_LOCALE is needed to build libcxx.
  21771. A math library is also needed, however, there are various ways to
  21772. provide a math library so CONFIG_LIBM is not now set. From Matias
  21773. N.
  21774. - libs/libc/symtab: Move symbol table generation into libc since the
  21775. address in symbol table should come from userspace binary for
  21776. PROTECTED build, not kernel binary. From Xiang Xiao.
  21777. - libs/libc/ Kconfig files: Disable EXECFUNCS_HAVE_SYMTAB for kernel
  21778. build. The symbol table doesn't have any meaning for kernel build
  21779. since all executable binary should be self contained. From Xiang
  21780. Xiao.
  21781. - include/sys/time.h: According to earlier standards, usage of
  21782. select(), FD_CLR, FD_ISSET, FD_SET and FD_ZERO just need include
  21783. headers: sys/time.h, sys/types.h and unistd.h. So include
  21784. sys/select.h in time.h to compatible with it. Or mbedtls library
  21785. would build break in calling select() and FD_* related functions.
  21786. From liuhaitao.
  21787. * Tools:
  21788. - tools/configure.sh and configure.c: Do not remove CONFIG_SIM_M32 if
  21789. host is specified. From anchao.
  21790. - tools/Directories.mk: Remove FSDIRS/NOFSDIRS related logic/comments
  21791. since the file system can no longer be disabled now. From Xiang
  21792. Xiao.
  21793. - tools/Makefile.host: Add missing binaries from clean target. From
  21794. Gregory Nutt.
  21795. - tools/mkromfsimg.sh: Use sed to add const to ROMFS declarations so
  21796. that they lie in FLASH not RAM. From Bernd Walter.
  21797. - tools/nxstyle.c: Correct detection of missing blank line following
  21798. a block comment. From Gregory Nutt.
  21799. * apps/ Build System:
  21800. - Makefiles: Change ${shell pwd} to $(CURDIR) since pwd doesn't exist
  21801. on Windows From Xiang Xiao.
  21802. - Makefile: Fix warning: jobserver unavailable: using -j1. Add '+' to
  21803. parent make rule. From Xiang Xiao.
  21804. - apps/Application.mk: Correct an error in PATH usage. Use of
  21805. toolchain path causes make errors. From Gregory Nutt.
  21806. * apps/tools:
  21807. - tools/mkromfsimg.sh: Use sed to add const to ROMFS declarations so
  21808. that they like in FLASH not RAM. From Bernd Walter.
  21809. * Examples: apps/examples:
  21810. - apps/examples/mount: Replace illegal call to ramdisk_register()
  21811. with a call to boardctl(BOARDIOC_MKRD). From Gregory Nutt.
  21812. - apps/examples/nxlines/: Correct nxlines example program name. From
  21813. Gregory Nutt.
  21814. - apps/examples/nxterm/: PROGNAME, PRIORITY, STACKSIZE variable
  21815. names did not match declarations in Kconfig file. From Gregory
  21816. Nutt.
  21817. - apps/examples/romfs: Remove romfs_testdir.h. That file is
  21818. regenerated whenever the example is built and so should not be in
  21819. the repository. From Gregory Nutt.
  21820. * Testing: apps/testing:
  21821. - apps/testing/cxxtest/: Fix typo error in testing/cxxtest. From
  21822. Xiang Xiao.
  21823. - apps/testing/unity/: Fix the error when creating Make.dep. From
  21824. raiden00pl.
  21825. * NSH Library: apps/nshlib:
  21826. - apps/nshlib: Remove the inappropriate NSH_BUILTIN_APPS coupling.
  21827. From Xiang Xiao.
  21828. - apps/nshlib/: The NSH mkrd command was in violation of the NuttX
  21829. portable POSIX interface. It was calling the internal OS function
  21830. ramdisk_register() directly. Not only is this a violation of the
  21831. interface specification, but also prevents use of mkrd in PROTECTED
  21832. or KERNEL builds. With this change, the NSH mkrd command now uses
  21833. the BOARDIOC_MKRD boardctl() command. This command is available in
  21834. all build modes. The effect of this change is to move the heart of
  21835. the NSH mkrd command into to OS and provide user-space access via
  21836. boardctl(). From Gregory Nutt.
  21837. - apps/nshlib/: Replace direct calls to romdisk_register() with
  21838. indirect calls via boardioctl(BOARDIOC_ROMDISK). This not only
  21839. fixes the violation of the portable POSIX OS interface, but also
  21840. permits use of ROM disks in PROTECTED and KERNEL modes. From
  21841. Gregory Nutt.
  21842. - apps/nshlib/: Add missing NSH_DISABLE_DMESG from Kconfig. From
  21843. Juha Niskanen.
  21844. * System Utilities: apps/system:
  21845. - apps/system/cle/: This change modifies the cle to use the streams
  21846. file interface more consistently and has removed the observed race
  21847. conditions. It was previously a mix of streams and fileio. It
  21848. also simplifies the VT100 cursor position handling. From Dave
  21849. Marples.
  21850. - apps/system/composite: Remove usb serial loopback test code we can
  21851. achieve the same effect by cat or dd command. From Xiang Xiao.
  21852. - apps/system/cu/: (1) Fix early exit. getc(stdin) can return 0 the
  21853. first time around. (2) Set optind to zero. getopt() was being
  21854. left in a bad state, causing parsing errors on second use. (3) Fix
  21855. priority of cu_listen(). (4) Add support for -h. From David
  21856. Alessio.
  21857. - apps/system/lzf/: Check the protection by CONFIG_SYSTEM_LZF !=
  21858. CONFIG_m (not elf binary) instead of CONFIG_KERNEL_BUILD. From
  21859. Xiang Xiao.
  21860. - apps/system/spi: Correctly parse exch txdata args, if any. Should
  21861. always call the board's deselect From David Alessio.
  21862. * File System Utilities: apps/fsutils:
  21863. - apps/fsutils/passwd/: Use named semaphore by checking
  21864. CONFIG_FS_NAMED_SEMAPHORES instead of CONFIG_KERNEL_BUILD. From
  21865. Xiang Xiao.
  21866. * Network Utilities: apps/netutils:
  21867. - apps/netutils/cjson/Makefile: Fix the error when creating
  21868. Make.dep. From raiden00pl.
  21869. * Graphics: apps/graphics:
  21870. - apps/graphics/twm4nx/: Fix a recently introduced error that broke
  21871. all Twm4Nx configurations. From Gregory Nutt.
  21872. - apps/graphics/traveler/: Replace direct calls to romdisk_register()
  21873. with indirect calls via boardioctl(BOARDIOC_ROMDISK). This not only
  21874. fixes the violation of the portable POSIX OS interface, but also
  21875. permits use of ROM disks in PROTECTED and KERNEL modes. From
  21876. Gregory Nutt.
  21877. NuttX-9.0.0 Release Notes
  21878. -------------------------
  21879. This is the first release of NuttX as Apache NuttX (Incubating) and represents our first major milestone as a Podling of the Apache Software Foundation's Incubator. This release is the culmination of nearly 6 months of hard work and includes several new architectures and drivers, and numerous improvements and bug fixes to the core RTOS, drivers, and networking subsystems.
  21880. * Major Changes to Core OS
  21881. * Bugfixes
  21882. - nxsem_wait_uninterruptible() now returns if the task is canceled.
  21883. - Fix a bug in pthread_condwait() that was improperly re-initializing the mutex.
  21884. - In sched_setpriority(), fix functions called inside a DEBUGASSERT that were eliminated when assertions are disable
  21885. * Compatibility Concerns
  21886. - The configuration option CONFIG_CAN_PASS_STRUCT is now removed. Previously, it was used (at the cost of breaking standards support) to support older versions of the SDCC compiler that couldn't pass structs/unions as functions' parameters. A newer version of the compiler has resolved the issue.
  21887. * Major Changes to Build System
  21888. - Add a post-build function that allows extending the build with CPU/board-specific logic.
  21889. - Add build tools to simplify ZDS-II tool usage.
  21890. - mkexport.sh: Deal with ARCHSCRIPT containing multiple files.
  21891. - Various nxstyle improvements.
  21892. * Architectural Support
  21893. * New architecture support
  21894. - Add support for RISCV-64
  21895. - Add support for x86_64 (tested on QEMU)
  21896. - Add support for ELF64
  21897. - Add a port to the NUCLEO-F429ZI board
  21898. - Add support for the STM32H747I-DISCO board
  21899. - Add Z20X board support and bootloader to upload code from the W25 flash to SRAM
  21900. - Add initial support for Litex with softcore CPU VexRiscV SoC
  21901. - Add support for the Digilent ARTY_A7 board to test the Litex port
  21902. - Added initial support for Sipeed Maix Bit board with Kendryte K210 processor
  21903. - New architectural support: ez80f92
  21904. - Flat address x86_64 port of NuttX
  21905. - Support to run NuttX on ESP32 QEMU
  21906. - Initial support for Sipeed Maix Bit board with Kendryte K210 processor
  21907. - Add initial support for Kendryte K210 processor in SMP mode
  21908. - NXP S32K11x (Cortex-M0+) and S32K14x (Cortext-M4F): Add support for NXP automotive boards.
  21909. - XMC 4700 (Cortex-M4F)
  21910. * Architectures with significant improvements
  21911. - ESP32 loadable modules support
  21912. - i.MX RT: FLEXIO clock config logic.
  21913. - Fix the clock configuration for the i.MX RT family
  21914. - i.MX RT: Add ability to run from OCRAM
  21915. - SAMA5D27 peripheral support - USB Host working
  21916. - z20x: Add W25 bootloader
  21917. - i.MX RT: Add USB Device support
  21918. - STM32, STM32F7, STM32H7 add SPI DMATHRESHOLD
  21919. - Improve the simulator timer
  21920. - 64-bit modules on macOS simulator
  21921. - z20x: Add XTP2046 SPI support; add timer support
  21922. - RX65N RTC Driver added
  21923. - NXP Freedom K28F Board SD-Card support
  21924. - STM32H7: support SDRAM via FMC peripheral
  21925. - LM3S6965-ek: Add PROTECTED build support
  21926. - STM32H7: Added IWDG and WWDG, power management (sleep/stop/standby), WKUP pin configuration
  21927. - SAMV71: Add read UID implementation and move flash functions to RAM
  21928. - i.MX RT: Fix interrupts storm (serial & I2C)
  21929. - Various fixes and cosmetic changes to the CxD56xx architecture
  21930. - Fix SiFive FE310 related code (comments, improve serial irq handling, initial int status)
  21931. - Implement QSPI for STM32H7
  21932. - Improvements for the nRF52 port: I2C, SPI, GPIO support
  21933. - Updates for LPC17xx/40xx serial
  21934. - Adds basic support for Microchip SAM E54 Xplained Pro board
  21935. - Adds an Ethernet driver for the SAME5x family (based on the SAMA5 GMAC driver)
  21936. - Add CDC ECM Ethernet over USB 2.0 High Speed (tested on SAMA5D36-Xplained board)
  21937. - Simulator: Reimplement simulator uart on top of serial driver framework
  21938. - NXP S32K1XX peripheral clock fixes
  21939. - Fix syscall stack alignment on armv7-m
  21940. - Fix flash_erase(page) when page >= 256 for STM32L4 family
  21941. - Add partial support for the NETLINK poll() operation.
  21942. - Add serial DMA support for STM32F7
  21943. - Add AM335x Clock Configuration
  21944. - Add I2C support for AM335x
  21945. - Add configuration to fine tune LPI2C Timeout for iMXRT
  21946. - Add CAN support to AM335x
  21947. - Add I2C support to STM32F0/L0/G0
  21948. - Kinetis LPC SDCard improvements
  21949. - Replace the busy polling with work_queue in the ethernet driver of simulator
  21950. - Fix Xtensa's SMP support to follow same logic from other SMP archs
  21951. - PIC32MZ: SPI transfers can be configured to use DMA.
  21952. - PIC32MZ: Implement cache operations.
  21953. * Driver Support
  21954. * New drivers
  21955. - New driver for the ADS7828 I2C analog to digital converter
  21956. - driver/ioexpander: New driver for PCA9538 I2C I/O expander
  21957. - New driver type for battery monitor ICs.
  21958. - Driver for the BQ769x0 battery monitor IC.
  21959. - Add Support for Quectel EC20 4G LTE Module USB CDC/ACM
  21960. - Add QSPI-based Winbond NOR FLASH driver
  21961. * Drivers with significant improvements
  21962. - Update all the drivers to check return value of nxsem_wait_uninterruptible().
  21963. - MCP9844 shutdown mode support
  21964. - fcntl: add O_CLOEXEC flag, add O_CLOEXEC/FD_CLOEXEC support
  21965. - CDC-ECM Ethernet over USB 2.0 HS
  21966. - smartfs improvements: Handling of duplicate sectors, support fsck to check and repair the smartfs file system, and recover SPI Flash from initial error state.
  21967. - Various fixes for USBDEV driver: Remove unnecessary reset logic, fix descriptor type mismatch when dual speed is enabled, fix invalid/unsupported command processing, and fix string ID calculation.
  21968. - Handle size zero in umm_malloc.c and umm_realloc.c, which causes a system freeze in kernel mode.
  21969. - Fixed compilation issue with poll fds notification.
  21970. - Report POLLHUP and POLLERR in 'revents' regardless the requested 'events' set.
  21971. * Networking
  21972. - Telnet: Fix/Refine CTRL+C to work on telnet
  21973. - TCP: Fix of faulty TCP sequence increments
  21974. - netdb: Fix netdb to query IPv4 and IPv6 addresses regardless the server address type
  21975. - Netlink sockets may be set to non-blocking
  21976. - Improve TUN and SLIP, refine Control+C Handling in Telnet
  21977. - Sockets: Add socket MSG_DONTWAIT support
  21978. - Network Loopback Driver: Add a configuration option to control packet size
  21979. - Network IOCTLs: Add FIONBIO network IOCTL support
  21980. - NFS: Support IPv4 and TCP
  21981. - Sockets: Add IP and TCP socket options needed by iperf3
  21982. - Netlink: Add support for asynchronous Netlink responses
  21983. - TCP: Monitor TCP_POLL/TCP_NEWDATA/TCP_BACKLOG per the request like UDP counterpart
  21984. - TCP: Minor design improvement to TCP delayed ACKs
  21985. - DNS IPv4/IPv6 Dual Host Support: When IPv4/IPv6 Dual Stack is enabled, queries both types of addresses regardless of whether the DNS server is accessed via IPv4 or IPv6. As a result, getaddrinfo() may return a mixed (IPv4/IPv6) address list.
  21986. * Applications
  21987. * Improvements
  21988. - Extend netutils and netinit to work with only Netlink sockets enabled
  21989. - Add getprime program to check multi-thread performance
  21990. - Improve zmodem send performance
  21991. - Add simple HTS221, LSM303 and LSM6DSL examples
  21992. - Improve to gs2200m wiki performance
  21993. - Improve telnet server and enable it to listen on both IPv4 and IPv6
  21994. - Improve ntpclient logic
  21995. - Improve wapi to save configuration to file system
  21996. - Improve wapi to skip associate if ssid is invalid
  21997. - Improve cmd_nfsmount to use IPv4 and IPv6
  21998. - Improve ostest for SMP and non-SMP configurations
  21999. - Improve UDP to avoid using standard symbols
  22000. - Improve dhcpd to include configurable timeout and retry count
  22001. * Bugfixes
  22002. - Correct format when printing ARP tablet entries
  22003. - Ensure /bin/ping and ping work at the same time
  22004. - Correct backward conditional logic in dhcpd_leaseexpired()
  22005. - Fix several problems on ftpd
  22006. - Fix dhcpd issue reported on Issue #17
  22007. - Fix sendmail example to run on a local SMTP server
  22008. - Fix buffer overflow on netlib
  22009. - Fix compile errors in loopback mode of the tcpblaster
  22010. - Fix stack corruption in ELF task test
  22011. - Fix errors in NoBlockRecv and BlockRecv tests of usrsocktest
  22012. - Fix ipforward IP Header issue for IPv4
  22013. - Fix wrongly swapped parity options of CU program
  22014. - Fix slcd to avoid using priv->fd before initializing it
  22015. - Fix (tcp, udp)blaster to build on macOS
  22016. - Correct the buffer type of base64 program
  22017. NuttX-9.1.0 Release Notes -------------------------
  22018. * Major Changes to Core OS:
  22019. * New Features:
  22020. - PR-977 PR-987 PR-998 PR-995 PR-997 PR-1007 Thread Local Storage (TLS)
  22021. is now a required feature and used by all architectures
  22022. There is detailed information on the implementation and how this
  22023. impacts errno specifically in the Wiki article: Userspace errno and
  22024. TLS
  22025. - PR-957 PR-947 PR-963 PR-969 Provide nx_ versions of many functions
  22026. that are used internally to avoid disrupting errno in userspace
  22027. - PR-965 PR-980 PR-984 ioctl is now always in the variadic form.
  22028. Syscalls in KERNEL builds are also more efficient with this as well now.
  22029. Previously the ioctl prototype was normally defined as:
  22030. int ioctl(int fd, int cmd, unsigned long arg);
  22031. unless the CONFIG_LIBC_IOCTL_VARIADIC was enabled in which case it was
  22032. int ioctl(int fd, int cmd, ...); This form is now the form defined by
  22033. opengroup and is also inline with Linux. Prior to this change there
  22034. were issues with making ioctl calls on 64-bit arch since the
  22035. implementation assumed that (void *) would be of size long. There is
  22036. more discussion of this issue in the GitHub issue ticket here:
  22037. https://github.com/apache/incubator-nuttx/issues/959
  22038. - PR-962 PR-964 Add new interface sched_get_stackinfo that simplifies
  22039. interfaces for things like TLS
  22040. There are some security imposed rules for using this interface
  22041. Any thread may query its own stack, A kernel thread may query the
  22042. stack of any other thread Application threads, however, may query
  22043. only the stacks of threads within the same task group, i.e., the
  22044. main thread and any of the child pthreads created with the main
  22045. thread as a parent or grandparent or great-grandparent.
  22046. - PR-1104 Internal function fs_fsopen() no longer affects errno -
  22047. - PR-1123 Move task_init() and task_activate() to be internal functions -
  22048. - PR-1140 Add nxtask_uninit() interface
  22049. This function will undo all operations on a TCB performed by
  22050. task_init() and release the TCB by calling kmm_free(). This is
  22051. intended primarily to support error recovery operations after a
  22052. successful call to task_init() such was when a subsequent call to
  22053. task_activate fails.
  22054. - PR-1134 Add typedef for max_align_t
  22055. - PR-1141 Handle custom stack allocations
  22056. sched_releasetcb() will normally free the stack allocated for a task.
  22057. However, a task with a custom, user-managed stack may be created using
  22058. nxtask_init() followed by nxtask_activate(). If such a custom stack is
  22059. used then it must not be freed in this manner or a crash will most
  22060. likely result.
  22061. This change adds a flag call TCB_FLAG_CUSTOM_STACK that may be passed
  22062. in the the pre-allocated TCB to nxtask_init(). This flag is not used
  22063. internally anywhere in the OS except that if set, it will prevent
  22064. sched_releasetcb() from attempting to free that custom stack.
  22065. * Bug Fixes:
  22066. - Many private architecture interfaces were using 'up_' instead of the
  22067. arch name 'arm_'
  22068. This fix is carried over many PRs such as PR-924. Many files also
  22069. carried this same error in naming convention and were converted as
  22070. well.
  22071. - PR-1018 PR-1017 PR-1021 PR-1022 PR-1057 PR-1060 PR-1194 Clean up
  22072. internal APIs that were not using the properly naming conventions -
  22073. - PR-857 Wrong value for it_interval field in timespec returned by
  22074. timer_gettime - PR-902 SMP: On task creation do not clone
  22075. uninitialized descriptors
  22076. In SMP mode, there is a possibility that a pthread executing one CPU
  22077. may create a new task while a pthread on another CPU has allocated
  22078. the socket but not yet initialized it. This commit updates the
  22079. socket clone test to assure that the socket is both allocated and
  22080. initialized before it is cloned.
  22081. - PR-911 Use OS signal functions internally to not reset errno that
  22082. applications are using
  22083. - PR-925 sys/stat.h Change the xtime fields to align with POSIX
  22084. standard. Starting from Issue 7 of the POSIX standard the fields
  22085. st_atime, st_mtime and st_ctime have a type of strcut timespec instead
  22086. of time_t.
  22087. - PR-939 openamp: Update to 2020.04.0 - PR-953 lib_vsprintf: Fix issue
  22088. where stack would become corrupt on x86_64
  22089. This function requires traversing the VA_LIST twice. For some
  22090. architectures like x86 and x86_64 this needs to be cloned first.
  22091. * Major Changes to the Build System:
  22092. Parts of the build system have been refactored to reduce duplication and
  22093. simplify Makefile and Make.defs files across many directories. These changes
  22094. are particularly beneficial for boards.
  22095. Please note that if you develop your own custom boards, you may need to make
  22096. some modifications to keep your board's build scripts up-to-date with the
  22097. rest of NuttX and avoid a broken or defective build. For details, see
  22098. Compatibility Concerns, Changes to Build System, in these release notes.
  22099. * New Features:
  22100. - PR-894 openamp and libmetal can now be downloaded and configured by
  22101. build system - PR-941 Remove 'u' prefix from userspace library in FLAT
  22102. Build so it is the same for all build types - PR-1044 ARM: Remove
  22103. support for old redundant gcc toolchains
  22104. This removes support for the Codesourcery, Atollic, DevKitArm,
  22105. Raisonance, and CodeRed toolchains. Not only are these tools old and
  22106. no longer used but they are all equivalent to the standard ARM EABI
  22107. toolchains. Retaining specific support was not meaningful (and they
  22108. are still supported, but now just as generic EABI toolchains).
  22109. - PR-1148 PR-1149 Improve build time especially on non-Linux platforms
  22110. by providing a C version of incdir.sh
  22111. * Bug Fixes:
  22112. Many small changes to resolve dependency resolution issues that would
  22113. sometimes appear during parallel builds. Parallel builds should be much
  22114. more reliable now and bugs filed against any issues found.
  22115. - PR-1000 Fix broken support of ZDS-II Toolchain with MSYS
  22116. * Architectural Support:
  22117. * New Architecture Support:
  22118. - PR-879 ARMv8-M support - PR-1051 STM32G474 support
  22119. - Initial architectural support for the STM32G474 family of
  22120. microcontrollers. In terms of peripherals, currently there is basic
  22121. support for the RCC and UART, allowing NuttX to boot to a functional
  22122. NSH prompt on this family. Other peripherals on the SoC are not yet
  22123. supported and/or not tested yet. Contributions to enable other
  22124. peripherals are welcome. This adds support for these variants:
  22125. STM32G474C STM32G474M STM32G474R STM32G474Q STM32G474V
  22126. * Architectures With Significant Improvements:
  22127. - PR-745 The full line of STM32H7 chips are now defined
  22128. This adds support for these variants:
  22129. STM32H743AG STM32H743AI STM32H743BG STM32H743BI STM32H743IG
  22130. STM32H743II STM32H743VG STM32H743VI STM32H743XG STM32H743XI
  22131. STM32H743ZG STM32H753AI STM32H753BI STM32H753VI STM32H753XI
  22132. STM32H753ZI
  22133. - PR-811 i486: Fix corruption of esp register on full context restore
  22134. This resolves a long standing issue with running the x86 port under
  22135. QEMU where it would crash shortly after boot.
  22136. - PR-837 rx65n: Add crashdump support using standby RAM - PR-862
  22137. STM32L4: Expose LPTIM timers - PR-868 STM32L4: Extend clock options and
  22138. power regulation for based on clock settings
  22139. Interface to select the core regulator voltage according to clock
  22140. frequency range Usage of this interface during clock configuration
  22141. according to chosen clock frequency Option to choose a different
  22142. system clock than the main PLL (there is HSI, MSI, HSE and LSE
  22143. available to use) Option to not enable the main PLL which allows for
  22144. reduced power usage when setting one of the above options as system
  22145. clock, to do this you should define STM32L4_BOARD_NOPLL on your
  22146. board header.
  22147. - PR-960 STM32: Add support for ADC features EXTSEL and JEXTSEL
  22148. - PR-1041 STM32H7: Improve IDMA transfer and cache handling
  22149. This resolves an issue where the sdmmc driver crashes at boot when
  22150. using writeback cache.
  22151. This also simplifies the sdmmc driver when the IDMA is in use. There
  22152. is no need to mix IDMA and interrupt based transfers; instead, when
  22153. making unaligned data tranfers, just make IDMA into an internal
  22154. aligned buffer and then copy the data. This method also enables
  22155. multiblock transfers, and transfers from/to data buffers which are not
  22156. aligned on cache boundary.
  22157. - PR-1042 STM32H7: Resolve multiple limitations and bugs with progmem
  22158. especailly for partial memory writes
  22159. - PR-1045 STM32H7: This gives possibility to send arbitrary number of
  22160. bytes from memory to peripheral using DMA also when using write-back
  22161. cache
  22162. It was not possible to DMA to/from AXI sram if
  22163. CONFIG_STM32H7_DMACAPABLE=y When doing TX DMA (e.g. in SPI driver in
  22164. simplex-tx mode), it should not be necessary to align the data
  22165. buffers to the cache line.
  22166. - PR-1103 STM32H7: Resolve clocking and pin configurations bugs that
  22167. could cause SDMMC and ETH to fail in some configurations
  22168. - PR-1104 STM32H7: Use UUID for Ethernet MAC. This is inline with the
  22169. behaviour of STM32F7
  22170. - PR-1110 STM32H7: Use FDCANSEL to determin FDCAN clock source if
  22171. possible - PR-1165 STM32H7: SPI transaction appears to be completed
  22172. before the data has actually been flushed
  22173. TX DMA completes before the data has been actually sent out from the
  22174. SPI fifo. This is expected, but the exchange should actually wait for
  22175. spi tx to finish instead of dma to the fifo to finish. This replaces
  22176. the dma completion event with the SPI TXC event for detecting end of
  22177. transmission.
  22178. - PR-1203 PR-1204 STM32H7: Enable support for BDMA and enable it for
  22179. SPI6
  22180. - PR-905 x86_64: Resolve linking issue when building with gcc 7 and 9.
  22181. - PR-904 x86_64: Resolve compiler aliasing warnings and RNG
  22182. pointer cast bug - PR-944 x86_64: Change entrypoint to standard
  22183. location 1M
  22184. - PR-971 x86_64: Fix bug in rng implementation using intrinsics
  22185. - PR-973 x86_64: Fix crash on boot when XSAVE and SSE/AVX is enabled
  22186. - PR-974 x86_64: Add support booting NuttX as a Jailhouse Cell
  22187. - PR-919 sim: Add host mmap and perror to allow use of LIBC_MODLIB
  22188. and BINFMT_LOADABLE
  22189. - PR-1198 sim: Use correct errno sign with hostfs interface
  22190. - PR-932 z16: Updated toolchain to ZDS-II 5.2.2
  22191. - PR-970 K210: Add PLL support
  22192. - PR-988 K210: Resolve occasional lock in early boot caused by waiting
  22193. forserial driver to initialize
  22194. - PR-1205 K210: Add basic GPIOHS support - PR-1112 tiva: Add up_idle
  22195. support - PR-1116 NRF52832: Work around chip eratta for SPI Master 1
  22196. Byte transfer anomaly - PR-1130 imxrt: Resolve WFI issue by setting
  22197. the low power mode to remain in run mode
  22198. - PR-1197 cxd56: Fix locking issue in Spresense audio driver causes by
  22199. using semaphore in DMA buffer handling code
  22200. - PR-1221 Add INTx_C macro defintion
  22201. * Driver Support:
  22202. * Bug Fixes:
  22203. - PR-1206 PR-1207 PR-1210 ioctl function should retun ENOTTY when the
  22204. command is not recognized.
  22205. * New Driver Support:
  22206. - PR-795 PR-1001 Initial NuttX audio driver supporting the Spresense
  22207. CXD56
  22208. - PR-975 Support for HDC1008 temperature and humidity sensor
  22209. - PR-1201 Support for the CS4344 stereo audio DAC
  22210. - PR-1145 Support for the FTDI FT232R USB to Serial converter
  22211. - PR-1052 gs2200m: Add max payload size to prevent crashing when
  22212. sending large packets
  22213. - PR-1090 gs2200m: Fix possible packet queue count overflow seen during
  22214. streaming - PR-1127 gs2200m: Resolve possible buffer overrun in packet
  22215. parsing - PR-1167 pty: Return correct number of bytes when
  22216. CONFIG_SERIAL_TERMIOS and OPOST|ONLCR are enabled
  22217. * Drivers With Significant Improvements:
  22218. - PR-887 PR-888 rptun: Add control for independent control of rx and tx
  22219. buffer size
  22220. - PR-917 gs2200m: Receive performance improvement for TCP/UDP
  22221. - PR-1032 gs2200m: Add SPI-DMA support to spresense
  22222. - PR-1046 gs2200m: Add getsockname() support
  22223. - PR-1094 PR-1163 gs2200m: Add flow control support to prevent memory
  22224. starvation in changing network environments
  22225. - PR-1101 gs2200m: Add WPA2-PSK AP mode support, this is now the default
  22226. instead of WEP
  22227. - PR-1115 SPI slave: Improve interface
  22228. Enable enqueue and receive full buffers of data with single call, to
  22229. avoid call overhead when sending / receiving large amounts of data.
  22230. Enable the slave device to leave received data in the controller
  22231. receive buffers and retrieve it from there by polling
  22232. - PR-1196 Audio: Add support for using ap_buffer_info without
  22233. CONFIG_AUDIO_DRIVER_SPECIFIC_BUFFERS and return ENOTTY if provided ioctl
  22234. is not supported
  22235. - PR-1222 audio/cxd56: Add audio buffering feature.
  22236. * Board Support:
  22237. * Significant Improvements:
  22238. - PR-1200 The boards_button_initialize and boards_userled_initialize
  22239. functions now return the number of buttons and leds, thus their
  22240. prototypes have changed from:
  22241. void board_button_initialize(void)
  22242. void board_userled_initialize(void)
  22243. to
  22244. uint32_t board_button_initialize(void)
  22245. uint32_t board_userled_initialize(void).
  22246. * New Board Support:
  22247. - PR-1051 ST Micro B-G474E-DPOW1 Discovery Kit
  22248. Initial support for the ST Micro B-G474E-DPOW1 Discovery Kit with
  22249. STM32G474RE MCU. Currently there is basic support for booting NuttX to
  22250. a functional NSH prompt. Other peripherals on the board are not yet
  22251. supported or not tested yet. Contributions to enable other peripherals
  22252. are welcome. The NSH prompt can be accessed from a host computer via a
  22253. Virtual COM Port over the same Micro-USB Type B connection used for
  22254. programming/debugging.
  22255. - PR-1211 STM32F411-Minimum board (a.k.a. BlackPill)
  22256. Initial support for the BlackPill board which is a low cost STM32F411
  22257. board. The current support boots NuttX to a functional NSH prompt.
  22258. * Boards With Significant Improvements:
  22259. - PR-949 qemu-intel64: Add nsh configuration for testing QEMU
  22260. virtualization
  22261. - PR-966 qemu-i486: Fix issue where console would not accept input
  22262. because of wrong IRQ number
  22263. - PR-993 stm32h747i-disco: Add support for FMC SDRAM - PR-1029 maix-bit:
  22264. Add knsh configuration for testing Kernel mode under QEMU virtualization
  22265. - PR-1056 stm32h747i-disco: Add support for FAT and SD Card via SDMMC
  22266. - PR-1070 PR-1086 spresense: Add ftpd/ftpc and nxplayer to wifi and rndis
  22267. configurations
  22268. - PR-1084 imxrt1060-evk: Add dns client and renew command to netnsh
  22269. configuration
  22270. - PR-1113 lm3s6965ek: Use proper sysclock for QEMU
  22271. configuration
  22272. - PR-1229 Add support for the inboard joystick
  22273. - PR-1232 Architectural re-organization to the initialization of the
  22274. video stream driver to comply with other NuttX drivers
  22275. * File System:
  22276. * Bug Fixes:
  22277. - PR-918 tmpfs: Calling statfs could cause files to be removed
  22278. recursively - PR-1142 NFS: Use of uint64_t causes issues with gaps in
  22279. data since it must be on a 8 byte boundary
  22280. - PR-1143 Report correct stats for proxied block and MTD drivers
  22281. * Significant Improvements:
  22282. - PR-793 Allow use of genromfs to geneate ROMFS
  22283. - PR-851 Upgrade littlefs to v2.2.1
  22284. - PR-1154 FATFS: Do not rewrite the root directory if it has not been
  22285. changed.
  22286. - PR-1120 PR-1118 Fill in file size for mtd and block inode
  22287. * Networking:
  22288. - PR-807 Netlink: Broadcast link status changes to userspace via
  22289. RTNLGRP_LINK
  22290. - PR-892 Netdb: Multiple DNS Servers
  22291. Adds capability to add multiple nameservers on run-time even when not
  22292. using resolv.conf and reset the list of nameservers back to default
  22293. setting (no nameserver at all or single predefined nameserver in Kconfig).
  22294. This is useful for applications that change their cellular network
  22295. frequently.
  22296. - PR-1015 tcp/conn: Request ARP before 3-way handshake
  22297. * Applications:
  22298. * Improvements:
  22299. - PR-185 PR-828 nshlib
  22300. Add the source command. Avoid use of sh where it is not needed since
  22301. it pollutes the parent environment including the working directory and
  22302. variables.
  22303. - PR-236 littlevgl: Add additional config mappings to the library
  22304. - PR-264 nxplayer: Add max host and filename for http url
  22305. - PR-260 nshlib: Add wget buffer size control with
  22306. CONFIG_NSH_WGET_BUFF_SIZE
  22307. - PR-243 dhcpd: Add ability for daemon to be cancelled
  22308. - PR-238 Remove use the set_errno this is now properly handled by the
  22309. libc and OS
  22310. - PR-233 hdc1008: Add example application for this driver
  22311. * Bug Fixes:
  22312. - PR-282 netlib: Fix pathlen computation for netlib_parseurl and
  22313. netlib_parsehttpurl
  22314. - PR-281 webclient: Check return value of netlib_parseurl correctly
  22315. - PR-278 webclient: Handle http/https redirection correctly
  22316. - PR-277 webclient: Limit the number of http redirects
  22317. - PR-198 webclient: Use getaddrinfo() to get IPv4 address on
  22318. dual stack systems
  22319. - PR-268 ftpd: Fix EPSV mode for IPv4
  22320. - PR-258 nsh: Always try FILE_APPS even if the command is builtin,
  22321. this is a regression introduced in 9.0.0
  22322. - PR-257 gs2200m: Handle packets over 1500 Bytes, previously would
  22323. overflow buffer
  22324. - PR-221 gs2200m: Server sockets were not properly being released by
  22325. the daemon when close was called
  22326. - PR-248 dhcpd: Correct option header check length
  22327. - PR-176 cu: Handle NULL character correctly
  22328. - PR-287 PR-290 examples: Update nxflat and thttpd Makefile's to fix
  22329. a build breakage.
  22330. * Compatibility Concerns -- Changes to Build System:
  22331. If you are building NuttX for a custom board, you may need to make
  22332. some of the following changes in build-related files for your board:
  22333. * Rename EXTRADEFINES to EXTRAFLAGS
  22334. In your custom board's scripts/Make.defs file, rename EXTRADEFINES to
  22335. EXTRAFLAGS.
  22336. For example, these lines:
  22337. ```
  22338. CFLAGS = $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
  22339. ...
  22340. CXXFLAGS = $(ARCHCXXFLAGS) $(ARCHWARNINGSXX) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
  22341. ...
  22342. CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES)
  22343. ```
  22344. would change as follows:
  22345. ```
  22346. CFLAGS = $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) -pipe
  22347. ...
  22348. CXXFLAGS = $(ARCHCXXFLAGS) $(ARCHWARNINGSXX) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) -pipe
  22349. ...
  22350. CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
  22351. ```
  22352. See git commit # 459ad9937377a42785692098ff0d73baaa9551e6 in the main
  22353. NuttX repository.
  22354. If you forget to do this, memory allocations on the heap probably won't
  22355. work and your user tasks won't start.
  22356. To see why, tools/Config.mk assigns a value to KDEFINE such that the
  22357. preprocessor symbol __KERNEL__ will be defined when certain source
  22358. files are compiled. KDEFINE is passed to nested invocations of 'make'
  22359. as EXTRAFLAGS. If your board's scripts/Make.defs still attempts to use
  22360. EXTRADEFINES, the preprocessor symbol __KERNEL__ will not be defined in
  22361. some of the places that it should be. Suppose you're building a FLAT
  22362. build. In this case, include/nuttx/mm/mm.h will not define
  22363. MM_KERNEL_USRHEAP_INIT like it should, which will cause nx_start.c not
  22364. to call up_allocate_heap() at startup. Therefore, any attempt to
  22365. allocate memory on the heap will fail.
  22366. * Rename src/Makefile to src/Make.defs and Modify
  22367. This item pertains only to custom boards that are developed in- tree,
  22368. meaning under the NuttX boards/ subdirectory. Out-of-tree boards are
  22369. not affected.
  22370. If your custom board directory is in-tree and in a board family that
  22371. uses a 'boards/ARCH/FAMILY/common' directory (such as
  22372. boards/arm/stm32/common, boards/arm/cxd56xx/common, etc), then you'll
  22373. need to make two minor changes to your custom board's src/Makefile:
  22374. (1) Rename it from src/Makefile to src/Make.defs, and
  22375. (2) Near the end of that file, replace this line, which usually
  22376. appears at the end:
  22377. ```
  22378. include $(TOPDIR)/boards/Board.mk
  22379. ```
  22380. with these three lines:
  22381. ```
  22382. DEPPATH += --dep-path board
  22383. VPATH += :board
  22384. CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board)
  22385. ```
  22386. See git commit # 6ca46520df38854bf660f9be54957cceede39ded in the main
  22387. NuttX repository.
  22388. If you forget to do this, 'make' will report an error, "no rule to make
  22389. libboard.a," and the build will fail.
  22390. * Rename WINTOOL to CONFIG_CYGWIN_WINTOOL
  22391. In your custom board's scripts/Make.defs file, rename any instances of
  22392. WINTOOL to CONFIG_CYGWIN_WINTOOL.
  22393. For example, change this line:
  22394. ```
  22395. ifeq ($(WINTOOL),y)
  22396. ```
  22397. to this:
  22398. ```
  22399. ifeq ($(CONFIG_CYGWIN_WINTOOL),y)
  22400. ```
  22401. See git commit # bd656888f26c92e8832f0e76b395a5ece7704530 in the main
  22402. NuttX repository.
  22403. * Remove INCDIROPT
  22404. In your custom board's src/Make.defs file, remove INCDIROPT from CFLAGS.
  22405. For example, change this line:
  22406. ```
  22407. CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board)
  22408. ```
  22409. to this:
  22410. ```
  22411. CFLAGS += $(shell $(INCDIR) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board)
  22412. ```
  22413. This option, which resolves to -w when CONFIG_CYGWIN_WINTOOL is
  22414. configured, is now appended to INCDIR in tools/Config.mk.
  22415. See git commit # 5eae32577e5d5226e5d3027c169eeb369f83f77d in the main
  22416. NuttX repository.
  22417. * Remove Unnecessary Variables
  22418. In your custom board's scripts/Make.defs file, It is no longer
  22419. necessary to define the following variables unless your build requires
  22420. that you assign special values to them:
  22421. - DIRLINK
  22422. - DIRUNLINK
  22423. - MKDEP
  22424. - ASMEXT
  22425. - OBJEXT
  22426. - LIBEXT
  22427. - EXEEXT
  22428. These variables have been refactored into tools/Config.mk.
  22429. See these git commits in the main NuttX repository:
  22430. 9ec9431706fd0eb7c4c4410d84dafff68ff31366 (DIRLINK and DIRUNLINK),
  22431. 8b42ee421a41214093c0238e479d73a1099b0e82 (MKDEP), and
  22432. 567962bd6263bf8809fb63c739f6ec668c69c416 (ASMEXT, OBJEXT, LIBEXT, EXEEXT)
  22433. * Change ${TOPDIR} to $(TOPDIR)
  22434. In your custom board's scripts/Make.defs file, it is recommended to
  22435. change ${TOPDIR} to $(TOPDIR) for consistency (change curly braces to
  22436. parenthesis).
  22437. See git commit # faf3c0254bb63af89f9eb59beefacb4cba26dd9 in the main
  22438. NuttX repository.
  22439. * Remove Workaround For Missing $(TOPDIR)/Make.defs
  22440. In src/Make.defs or src/Makefile for your custom board or custom apps,
  22441. the workaround for missing $(TOPDIR)/.config and/or
  22442. $(TOPDIR)/Make.defs is no longer needed. To remove the workaround,
  22443. delete the minus sign in front of include .config. This is now handled
  22444. in the main Makefile and, if those files are missing, will print an
  22445. error message with hint to run tools/configure.sh <target>.
  22446. Change this line, located near the top of the file:
  22447. ```
  22448. -include $(TOPDIR)/Make.defs
  22449. ```
  22450. to this:
  22451. ```
  22452. include $(TOPDIR)/Make.defs
  22453. ```
  22454. See git commit # 1a95cce1a3c3ed8b04d1d86b7bd744352cca45a2 in the main
  22455. NuttX repository, and git commit
  22456. # ead498a7883a654b1d542da94a5fab3ce163361e in the apps repository.
  22457. * Simplify ARCHINCLUDES and ARCHXXINCLUDES
  22458. In your custom board's scripts/Make.defs, ARCHINCLUDES and
  22459. ARCHXXINCLUDES can be defined without maintaining two different
  22460. versions conditioned upon CONFIG_CYGWIN_WINTOOL (renamed from WINTOOL).
  22461. Replace syntax similar to the following:
  22462. ```
  22463. ifeq ($(CONFIG_CYGWIN_WINTOOL),y)
  22464. # Windows-native toolchains
  22465. ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)$(DELIM)include}"
  22466. ARCHXXINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)$(DELIM)include}" -isystem "${shell cygpath -w $(TOPDIR)$(DELIM)include$(DELIM)cxx}"
  22467. else
  22468. # Linux/Cygwin-native toolchain
  22469. ARCHINCLUDES = -I. -isystem $(TOPDIR)$(DELIM)include
  22470. ARCHXXINCLUDES = -I. -isystem $(TOPDIR)$(DELIM)include -isystem $(TOPDIR)$(DELIM)include$(DELIM)cxx
  22471. endif
  22472. ```
  22473. with syntax similar to:
  22474. ```
  22475. ARCHINCLUDES += ${shell $(INCDIR) -s "$(CC)" $(TOPDIR)$(DELIM)include}
  22476. ARCHXXINCLUDES += ${shell $(INCDIR) -s "$(CC)" $(TOPDIR)$(DELIM)include}
  22477. ARCHXXINCLUDES += ${shell $(INCDIR) -s "$(CC)" $(TOPDIR)$(DELIM)include$(DELIM)cxx}
  22478. INCDIR is defined in tools/Config.mk and resolves to a shell script or batch file that constructs the appropriate command line argument string to specify include directories for your compiler.
  22479. ```
  22480. See git commit # 7e5b0f81e93c7e879ce8434d57e8bf4e2319c1c0 in the main
  22481. NuttX repository.
  22482. * Simplify Board Directory Handling With BOARD_DIR
  22483. In your custom board's Make.defs or Makefile, when setting up build
  22484. variables containing paths inside your board directory, a new variable
  22485. BOARD_DIR has been introduced that simplifies the syntax:
  22486. Replace syntax like this:
  22487. ```
  22488. $(TOPDIR)$(DELIM)boards$(DELIM)$(CONFIG_ARCH)$(DELIM)$(CONFIG_ARCH_CHIP)$(DELIM)$(CONFIG_ARCH_BOARD)
  22489. ```
  22490. with this variable:
  22491. ```
  22492. $(BOARD_DIR)
  22493. ```
  22494. For example, change this:
  22495. ```
  22496. ARCHSCRIPT = -T$(TOPDIR)$(DELIM)boards$(DELIM)$(CONFIG_ARCH)$(DELIM)$(CONFIG_ARCH_CHIP)$(DELIM)$(CONFIG_ARCH_BOARD)$(DELIM)scripts$(DELIM)$(LDSCRIPT)
  22497. ```
  22498. to this much simpler syntax:
  22499. ```
  22500. ARCHSCRIPT = -T$(BOARD_DIR)$(DELIM)scripts$(DELIM)$(LDSCRIPT)
  22501. ```
  22502. You may find the old syntax being used for variables like ARCHSCRIPT,
  22503. LDELFFLAGS, LINKCMDTEMPLATE, SCRIPTDIR, USER_LDSCRIPT, or others.
  22504. BOARD_DIR is defined in tools/Config.mk.
  22505. See git commit # e83c1400b65c65cbdf59c5abcf2ae368f540faef in the main
  22506. NuttX repository.
  22507. NuttX-10.0.0 Release Notes
  22508. ------------------------
  22509. ## Major Changes to Core OS
  22510. ### New Features
  22511. Major changes to the internal, OS timer (wdog) interfaces. The change includes:
  22512. * The wdog timer call backs used to support a variable number of arguments.
  22513. Now they support only a single argument ([PR
  22514. #1565](https://github.com/apache/incubator-nuttx/pull/1565)). This eliminates
  22515. (1) the configuration option `CONFIG_MAX_WDOGPARMS` and the OS interfaces
  22516. `wd_create()` and `wd_delete()` *   wdog timer data structures are no longer
  22517. pre-allocated. Now they are allocated by the caller of `wd_start()`. This (1)
  22518. eliminates the configuration options `CONFIG_PREALLOC_WDOGS` and
  22519. `CONFIG_WDOG_INTRESERVE`, (2) eliminates the type `WDOG_ID` which was a pointer
  22520. type to `struct wdog_s`, and (3) change the type of the first argument of all
  22521. remaining wdog interfaces functions from `WDOG_ID` to `FAR struct wdog_s *`.
  22522. Because of these changes, all proprietary drivers maintained by all NuttX users
  22523. will require modification. The following summaries the required modifications:
  22524. * Most drivers have a field in structure like `WDOG_ID wdog`; That must be
  22525. changed to `struct wdog_s wdog`; That changes the field from a pointer to a
  22526. `struct wdog_s` to the `struct wdog_s` storage itself. *   Eliminate all calls
  22527. to `wd_create()`. The `WDOG_ID` is not longer managed by the timing subsystem
  22528. and the `wd_create()` interface has been removed. *   The `wd_delete()`
  22529. interface has also been removed, but more care will need to be exercised:
  22530. `wd_delete()` also cancels any running timer so, in many case, calls to
  22531. `wd_delete()` should be replaced with calls to `wd_cancel()`. If you are certain
  22532. that the timer has never been started, then you must remove the call to
  22533. `wd_delete()` altogether. Calling `wd_cancel()` with an un-initialized s`truct
  22534. wdog_s` instance may well cause a fatal crash. *   Replace the first parameter
  22535. of all remaining wdog function calls from. For example, replace a call like `ret
  22536. = wd_cancel(priv->wdog)` where `priv->wdog` was type `WDOG_ID` with the call
  22537. `ret = wd_cancel(&priv->wdog)`where `priv->wdog` is now type `struct wdog_s`.
  22538. * [PR-1877](https://github.com/apache/incubator-nuttx/pull/1877) libc:
  22539. Implement "j" modifier for scanf
  22540. * [PR-1864](https://github.com/apache/incubator-nuttx/pull/1864) libc: fs: Add
  22541. relative path support
  22542. * [PR-1863](https://github.com/apache/incubator-nuttx/pull/1863) libc:
  22543. Implement `access()`
  22544. * [PR-1866](https://github.com/apache/incubator-nuttx/pull/1866) libc: uio:
  22545. enable `writev()` for sockets
  22546. * [PR-1853](https://github.com/apache/incubator-nuttx/pull/1853) libc:
  22547. Implement `popcount/popcountl/popcountll`
  22548. * [PR-1850](https://github.com/apache/incubator-nuttx/pull/1850) Add tool for
  22549. parsing the callstack for Trace32
  22550. * [PR-1840](https://github.com/apache/incubator-nuttx/pull/1840) Add POLLPRI
  22551. for exception condition on the file descriptor
  22552. * [PR-1828](https://github.com/apache/incubator-nuttx/pull/1828) Implement
  22553. mkdtemp syscall
  22554. * [PR-1826](https://github.com/apache/incubator-nuttx/pull/1826) libc: Add
  22555. "tm\_zone" member to tm
  22556. * [PR-1824](https://github.com/apache/incubator-nuttx/pull/1824) Implement
  22557. etpriority syscall
  22558. * [PR-1821](https://github.com/apache/incubator-nuttx/pull/1821) Implement
  22559. gettid syscall
  22560. * [PR-1818](https://github.com/apache/incubator-nuttx/pull/1818) Implement
  22561. pipe2 syscall
  22562. * [PR-1779](https://github.com/apache/incubator-nuttx/pull/1779) libc: Minimal
  22563. umask implementation
  22564. * [PR-1758](https://github.com/apache/incubator-nuttx/pull/1758) mm: Add lock
  22565. to protect call to mm\_addregion
  22566. * [PR-1756](https://github.com/apache/incubator-nuttx/pull/1756) libc:
  22567. Implement gethrtime, getrlimit, setrlimit
  22568. * [PR-1658](https://github.com/apache/incubator-nuttx/pull/1658) libc: Add
  22569. stubs for utimes
  22570. * [PR-1615](https://github.com/apache/incubator-nuttx/pull/1615) libc:
  22571. Implement tm::tm\_gmtoff field
  22572. * [PR-1611](https://github.com/apache/incubator-nuttx/pull/1611) libc: Allocate
  22573. file\_struct dynamically
  22574. * [PR-1684](https://github.com/apache/incubator-nuttx/pull/1684) Add gdb script
  22575. for NuttX thread debugging
  22576. * [PR-1607](https://github.com/apache/incubator-nuttx/pull/1607) mm: Implement
  22577. malloc\_usable\_size
  22578. * [PR-1606](https://github.com/apache/incubator-nuttx/pull/1606) sched/pthread:
  22579. Implement pthread\_attr\_detachstate
  22580. * [PR-1600](https://github.com/apache/incubator-nuttx/pull/1600) Implement
  22581. epol\_pwait and EPOLLONESHOT flag
  22582. * [PR-1597](https://github.com/apache/incubator-nuttx/pull/1597) sched: Support
  22583. passing non empty argument to init task
  22584. * [PR-1596](https://github.com/apache/incubator-nuttx/pull/1596) libc: Replace
  22585. all sem\_xxx with \_SEM\_XXX. This insures the correct semaphore interface is
  22586. used by userspace and the kernel.
  22587. * [PR-1517](https://github.com/apache/incubator-nuttx/pull/1517) sched/wdog:
  22588. Change the default value of MAX\_WDOGPARMS from 4 to 2 as wd\_start is two every
  22589. where in the code base. Also bump CONFIG\_MAX\_WDOGPARAMS from 1 to 2 in
  22590. defconfigs to support pthread\_condclockwait()
  22591. * [PR-1486](https://github.com/apache/incubator-nuttx/pull/1486) libc:
  22592. Implement ftw and nftw functions
  22593. * [PR-1567](https://github.com/apache/incubator-nuttx/pull/1567) libc:
  22594. Implement proposed POSIX \_clockwait variants of \_timedwait functions
  22595. * [PR-1411](https://github.com/apache/incubator-nuttx/pull/1411) libxx:
  22596. Integrate latest uclibcxx 0.2.5
  22597. * [PR-1586](https://github.com/apache/incubator-nuttx/pull/1586) libc: Add open
  22598. for text (translated) access support
  22599. * [PR-1584](https://github.com/apache/incubator-nuttx/pull/1584) libc:
  22600. Implement strlcpy function
  22601. * [PR-1580](https://github.com/apache/incubator-nuttx/pull/1580) libc:
  22602. Implement pthread\_conattr\_etclock
  22603. * [PR-1545](https://github.com/apache/incubator-nuttx/pull/1545) sched/wdog: Do
  22604. not dynamically allocate wdog\_s. Reduces overhead and brings it inline with
  22605. work\_s
  22606. * [PR-1534](https://github.com/apache/incubator-nuttx/pull/1534) sched/wdog:
  22607. Replace all callback arguments from uint32\_t to wdparm\_t
  22608. * [PR-1420](https://github.com/apache/incubator-nuttx/pull/1420) libc: Do not
  22609. define localtime\[\_r\] to macro with CONFIG\_LIBC\_LOCALTIME is not defined.
  22610. * [PR-1375](https://github.com/apache/incubator-nuttx/pull/1375) libc: Always
  22611. declare getenv, link/symlink and atexist/on\_exit. Many C++ libraries reference
  22612. these but dont use them
  22613. * [PR-1371](https://github.com/apache/incubator-nuttx/pull/1371) libc: Improve
  22614. stat/readdir to be more POSIX compliant with S\_xxx macro definition as with
  22615. Linux
  22616. * [PR-1369](https://github.com/apache/incubator-nuttx/pull/1369) Initialize the
  22617. idle stack at the arch layer to better support stack coloring and also make it
  22618. compatible with new TLS implementation
  22619. * [PR-1292](https://github.com/apache/incubator-nuttx/pull/1292) pthread/mutex:
  22620. Add PTHREAD\_RECURSIVE\_MUTEX\_INITIALIZER\_NP support
  22621. * [PR-1280](https://github.com/apache/incubator-nuttx/pull/1280) libc:
  22622. Implement fseeko and ftello
  22623. * [PR-1279](https://github.com/apache/incubator-nuttx/pull/1279) libc:
  22624. Implement lstat and realpath
  22625. * [PR-1278](https://github.com/apache/incubator-nuttx/pull/1278) libc:
  22626. Implement pathconf and fpathconf
  22627. * [PR-1269](https://github.com/apache/incubator-nuttx/pull/1269) cstdlib: Add
  22628. missing atox to std namespace
  22629. * [PR-1264](https://github.com/apache/incubator-nuttx/pull/1264) sched/pthread:
  22630. Prohibit the use of pthread\_cleanup API's by kernel threads
  22631. * [PR-1440](https://github.com/apache/incubator-nuttx/pull/1440) libc: Add the
  22632. UUID libc functions
  22633. * [PR-1308](https://github.com/apache/incubator-nuttx/pull/1308) libc: Add
  22634. support for \_SC\_NPROCESSORS\_CONF/\_SC\_NPROCESSORS\_ONLN to sysconf
  22635. * [PR-1305](https://github.com/apache/incubator-nuttx/pull/1305) libc:
  22636. Implement WNOHANG for waitpid and waitid
  22637. * [PR-1237](https://github.com/apache/incubator-nuttx/pull/1237) libc: Add
  22638. minimal support for locale\_t operation: suplocale, freelocale, newlocale,
  22639. userlocale
  22640. * [PR-1317](https://github.com/apache/incubator-nuttx/pull/1317) sched/task:
  22641. Unify task initialization
  22642. * [PR-1187](https://github.com/apache/incubator-nuttx/pull/1187) sched: Unify
  22643. main thread and pthread behavior
  22644. * [PR-2263](https://github.com/apache/incubator-nuttx/pull/2263) libc/stdio:
  22645. Preallocate stdin, stdout, stderr
  22646. * [PR-2053](https://github.com/apache/incubator-nuttx/pull/2053) *
  22647. [PR-2040](https://github.com/apache/incubator-nuttx/pull/2040) serial/termios:
  22648. Support custom baudrate setting
  22649. ### Bug Fixes
  22650. * [PR-1911](https://github.com/apache/incubator-nuttx/pull/1911) init\_section
  22651. was not being emitted resulting in C++ static constructors not being called.
  22652. * [PR-1889](https://github.com/apache/incubator-nuttx/pull/1889) Fix build
  22653. error for ::setbuf if CONFIG\_STDIO\_DISABLE\_BUFFERING is set
  22654. * [PR-1619](https://github.com/apache/incubator-nuttx/pull/1619) Fix inverted
  22655. errno in mq\_open
  22656. * [PR-1595](https://github.com/apache/incubator-nuttx/pull/1595) epoll\_wait()
  22657. must loop until "maxevents" to fille output evs array
  22658. * [PR-1519](https://github.com/apache/incubator-nuttx/pull/1519) libc: Replace
  22659. index/rindex from macro to function to protect against side effects with
  22660. conflicting local variables
  22661. * [PR-1514](https://github.com/apache/incubator-nuttx/pull/1514) Remove usage
  22662. for user-space memalign() from kernel/driver code. Instead use the proper
  22663. kernel memory interface.
  22664. * [PR-1512](https://github.com/apache/incubator-nuttx/pull/1512) / *
  22665. [PR-1510](https://github.com/apache/incubator-nuttx/pull/1510) / *
  22666. [PR-1507](https://github.com/apache/incubator-nuttx/pull/1507) Remove usage for
  22667. user-space malloc()/zalloc()/free() from kernel/driver code. Instead use the
  22668. proper kernel memory interface.
  22669. * [PR-1496](https://github.com/apache/incubator-nuttx/pull/1496) libc: Change
  22670. ctype macro to normal function to resolve macro evaluation side effects
  22671. * [PR-1463](https://github.com/apache/incubator-nuttx/pull/146) libc: Replace
  22672. all malloc/free with lib\_malloc/lib\_free inside libc
  22673. * [PR-1365](https://github.com/apache/incubator-nuttx/pull/1365) up\_assert
  22674. should not call exit() directly because it is only callable from userspace
  22675. * [PR-1336](https://github.com/apache/incubator-nuttx/pull/1336) syscall: Fix
  22676. prctl PR\_SET\_NAME failure if called without pid argument
  22677. * [PR-1289](https://github.com/apache/incubator-nuttx/pull/1289) Clear the
  22678. error indicator with rewind()
  22679. * [PR-1254](https://github.com/apache/incubator-nuttx/pull/1254) libc: mkstemp
  22680. only look at the trailing X's instead of the first X
  22681. * [PR-1311](https://github.com/apache/incubator-nuttx/pull/1311) libc: Move
  22682. double\_t typedef from sys/types.h to math.h
  22683. * [PR-1328](https://github.com/apache/incubator-nuttx/pull/1328) Make sure that
  22684. pthread\_cleanup functions are only called from userspace
  22685. * [PR-1318](https://github.com/apache/incubator-nuttx/pull/1318)
  22686. nxsched\_release\_tcb should release stack in kernel build, fixes memory leak
  22687. * [PR-2951](https://github.com/apache/incubator-nuttx/pull/2951) sched: Fix
  22688. deadlock in nxtask\_exit() for SMP
  22689. * [PR-2229](https://github.com/apache/incubator-nuttx/pulls/2229) *
  22690. [PR-2298](https://github.com/apache/incubator-nuttx/pulls/2298) *
  22691. [PR-2279](https://github.com/apache/incubator-nuttx/pulls/2279) *
  22692. [PR-2272](https://github.com/apache/incubator-nuttx/pulls/2272) *
  22693. [PR-2264](https://github.com/apache/incubator-nuttx/pulls/2264) *
  22694. [PR-1992](https://github.com/apache/incubator-nuttx/pulls/1992) *
  22695. [PR-2022](https://github.com/apache/incubator-nuttx/pulls/2022) sched: SMP
  22696. fixups that caused locking and removal of some no longer required workarounds
  22697. * [PR-1993](https://github.com/apache/incubator-nuttx/pull/1993) libc: Skip
  22698. close stdin/stdout/stderr in fclose
  22699. * [PR-1997](https://github.com/apache/incubator-nuttx/pull/1997) libc: Remove
  22700. all calls to fclose with stdin/stdout/stderr with fclose
  22701. ## Major Changes to Documentation
  22702. * [PR-1763](https://github.com/apache/incubator-nuttx/pulls/1763) Add
  22703. quickstart documentation
  22704. * [PR-1677](https://github.com/apache/incubator-nuttx/pull/1677) Add simulator,
  22705. drivers, and contributing instructions for new users
  22706. * [PR-1675](https://github.com/apache/incubator-nuttx/pull/1675) Add quickstart
  22707. documentation from NuttX Companion
  22708. * [PR-1673](https://github.com/apache/incubator-nuttx/pull/1673) Update all the
  22709. links in the documentation to point to nuttx.apache.org or the Apache NuttX
  22710. wiki instead of old nuttx.org resources
  22711. * [PR-1501](https://github.com/apache/incubator-nuttx/pull/1501) Port all the
  22712. existing documentation from HTML files to Sphinx based documentation along with
  22713. a bunch of updates and improvments
  22714. * [PR-1433](https://github.com/apache/incubator-nuttx/pull/1433) Convert README
  22715. documentation to Markdown
  22716. ## Major Changes to the Build System
  22717. ### New Features
  22718. * [PR-1786](https://github.com/apache/incubator-nuttx/pull/1786) Support
  22719. building external code into the OS
  22720. * [PR-1396](https://github.com/apache/incubator-nuttx/pull/1396) Make C/C++
  22721. search path common so all boards support uClibc++/libc++ automatically
  22722. * [PR-1682](https://github.com/apache/incubator-nuttx/pull/1682) configure.sh
  22723. can now list configurations with "-L" option
  22724. * [PR-2023](https://github.com/apache/incubator-nuttx/pull/2023) tools: Remove
  22725. WSL configuration. This is just Linux now.
  22726. ### Bug Fixes
  22727. * [PR-1713](https://github.com/apache/incubator-nuttx/pull/1713) Fix export
  22728. target: libboard was missing KERNEL flag.
  22729. * [PR-1470](https://github.com/apache/incubator-nuttx/pull/1470) Fix Make.dep
  22730. not updated by .config changes
  22731. * [PR-1345](https://github.com/apache/incubator-nuttx/pull/1786) Enhance export
  22732. target: make BIN directory configurable, export post build script, use LDNAME
  22733. instead of LDSCRIPT
  22734. * [PR-1332](https://github.com/apache/incubator-nuttx/pull/1332) Include
  22735. incdir.c in the export target
  22736. * [PR-1995](https://github.com/apache/incubator-nuttx/pull/1995) Fix issue
  22737. where wrong extension was generated for mkconfig in WSL builds
  22738. * [PR-1949](https://github.com/apache/incubator-nuttx/pull/1949) Fix issue in
  22739. make export where nuttx-names.dat was not being generated
  22740. * [PR-1682](https://github.com/apache/incubator-nuttx/pull/1682): Fix issue
  22741. where windows style paths might not be handled correctly breaking Cygwin builds
  22742. ## Architectural Support
  22743. ### New Architecture Support
  22744. * [PR-1847](https://github.com/apache/incubator-nuttx/pull/1847) ARM: Initial
  22745. support for ARMV6M to support CortexM0+
  22746. * [PR-1397](https://github.com/apache/incubator-nuttx/pull/1379): EOSS3:
  22747. Initial support for the QuickLogic EOS S3 SoC
  22748. ### Architectures With Significant Improvements
  22749. #### cxd56xx
  22750. * [PR-1753](https://github.com/apache/incubator-nuttx/pull/1753) cxd56xx: Use
  22751. spinlock in gpioint to improve SMP performance
  22752. * [PR-1650](https://github.com/apache/incubator-nuttx/pull/1650) cxd56xx: Use
  22753. spinlock in rtc to improve SMP performance
  22754. * [PR-1621](https://github.com/apache/incubator-nuttx/pull/1621) cxd56xx: Use
  22755. spinlock in serial to improve SMP performance
  22756. * [PR-1569](https://github.com/apache/incubator-nuttx/pull/1569) cxd56xx: Add
  22757. SMP support to cxd56\_farapi.c
  22758. * [PR-1689](https://github.com/apache/incubator-nuttx/pull/1689) cxd56xx: Use
  22759. spinlock in uart to improve SMP performance
  22760. #### ESP32
  22761. * [PR-1422](https://github.com/apache/incubator-nuttx/pull/1422) ESP32: Add SPI
  22762. driver (Master & Slave)
  22763. * [PR-1435](https://github.com/apache/incubator-nuttx/pull/1435) ESP32: Add I2C
  22764. driver
  22765. * [PR-1491](https://github.com/apache/incubator-nuttx/pull/1491) ESP32: Add SPI
  22766. Flash driver
  22767. * [PR-1525](https://github.com/apache/incubator-nuttx/pull/1525) ESP32: Add
  22768. Ethernet driver
  22769. * [PR-1610](https://github.com/apache/incubator-nuttx/pull/1610) ESP32: Improve
  22770. SPI transmision (DMA, IOMUX, software CS)
  22771. * [PR-1630](https://github.com/apache/incubator-nuttx/pull/1630) ESP32: Add
  22772. support for HW RNG
  22773. * [PR-1830](https://github.com/apache/incubator-nuttx/pull/1830) ESP32: Add
  22774. Power Management of Force-Sleep
  22775. * [PR-1754](https://github.com/apache/incubator-nuttx/pull/1754) ESP32: Add
  22776. support for external SPIFLASH
  22777. * [PR-1613](https://github.com/apache/incubator-nuttx/pull/1613) ESP32: Add
  22778. function for switching CPU from 80MHz to 240MHz
  22779. PR-1712 ESP32: Add support for external MMCSD card over SPI
  22780. #### IMXRT
  22781. * [PR-1868](https://github.com/apache/incubator-nuttx/pull/1868) IMXRT: Add ADC
  22782. driver
  22783. #### Kinetis
  22784. * [PR-1624](https://github.com/apache/incubator-nuttx/pull/1624) Kinetis:
  22785. USBHOST improvements to avoid race condition durring freeing for queue head
  22786. structure by using Async Advance Doorbell.
  22787. PR-1516 Kinetis K28: Add support for USB High Speed Host
  22788. PR-1531 Kinetis K28: Add USB state change notifiers in notifier work queue
  22789. PR-1456 Kinetis K28: Reworked USB driver for setup out data phase
  22790. #### NRF52
  22791. * [PR-1418](https://github.com/apache/incubator-nuttx/pull/1418) NRF52: Add
  22792. Timer and RTC drivers
  22793. * [PR-1432](https://github.com/apache/incubator-nuttx/pull/1422) NRF52: Add
  22794. timer lowerhalf
  22795. * [PR-1635](https://github.com/apache/incubator-nuttx/pull/1635) NRF52: Add
  22796. support for RTC event handling
  22797. * [PR-1636](https://github.com/apache/incubator-nuttx/pull/1636) NRF52: Add
  22798. support for PPI peripheral
  22799. * [PR-1681](https://github.com/apache/incubator-nuttx/pull/1681) NRF52: Add
  22800. support for GPIOTE task mode
  22801. * [PR-1726](https://github.com/apache/incubator-nuttx/pull/1726) NRF52: Extend
  22802. systimer support
  22803. * [PR-1773](https://github.com/apache/incubator-nuttx/pull/1773) NRF52: Add ADC
  22804. and PWM support
  22805. * [PR-1915](https://github.com/apache/incubator-nuttx/pull/1915) NRF52: Add
  22806. serial termios support (no flow control)
  22807. * [PR-1907](https://github.com/apache/incubator-nuttx/pull/1907) NRF52: Add
  22808. basic error handing for i2c in polling mode to support i2ctool. Still not
  22809. handled in DMA mode.
  22810. * [PR-1839](https://github.com/apache/incubator-nuttx/pull/1839) NRF52: Add
  22811. missing SPI callback register hooks to support drivers like mmcsd
  22812. * [PR-1646](https://github.com/apache/incubator-nuttx/pull/1646) NRF52: Better
  22813. differentiation between NRF52840 and NRF52832
  22814. PR-1685 NRF52: Add ARM system reset support. Add UID support.
  22815. PR-1674 NRF52: Add LFCLK/HFCLK support for selecting oscillator sources.
  22816. #### RISCV
  22817. * [PR-1858](https://github.com/apache/incubator-nuttx/pull/1858) RISCV: Add
  22818. missing CSR macros listed in RISC-V spec V1.10.
  22819. PR-1314 rv32im: Add schedulesigaction.c, SYS\_save\_context handling, skip ECALL
  22820. instruction when calling up\_swint()
  22821. #### RX65N
  22822. * [PR-1622](https://github.com/apache/incubator-nuttx/pull/1622) RX65N: Add
  22823. I2C(RIIC) support
  22824. * [PR-1894](https://github.com/apache/incubator-nuttx/pull/1894) RX65N: Add USB
  22825. device support
  22826. * [PR-1899](https://github.com/apache/incubator-nuttx/pull/1899) RX65N: Add DTC
  22827. driver
  22828. PR-1910 RX65N: Add SPI driver support
  22829. #### SAMD5E5
  22830. * [PR-1515](https://github.com/apache/incubator-nuttx/pull/1515) SAMD5E5: Add
  22831. Watchdog timer support
  22832. * [PR-1574](https://github.com/apache/incubator-nuttx/pull/1574) SAMD5E5: Add
  22833. USB host support
  22834. * [PR-1594](https://github.com/apache/incubator-nuttx/pull/1594) SAMD5E5:
  22835. Freerun timer, oneshot timer and tickless support
  22836. * [PR-1816](https://github.com/apache/incubator-nuttx/pull/1816) SAMD5E5: Add
  22837. MTD progmem support and NVM USER PAGE IOTCLs
  22838. #### SAMA5D2
  22839. PR-1412 SAMA5D27: Implement system reset to support nsh reboot command
  22840. PR-1393 SAMA5D2x: Implement SDMMC peripheral support
  22841. #### S32K
  22842. PR-1339 S32K: Extend FlexTimer support and add support for PWM
  22843. PR-1337 S32K: Allow FlexCAN to use to NETDEV\_LATEINIT to handle the case where
  22844. both FlexCAN and ENET are used
  22845. #### SIM
  22846. * [PR-1914](https://github.com/apache/incubator-nuttx/pull/1914) SIM: SIGUSR1
  22847. handling now uses NuttX interrupt logic
  22848. * [PR-1859](https://github.com/apache/incubator-nuttx/pull/1859) ESIM: Add
  22849. host timer and improve the oneshot timer logic
  22850. * [PR-1767](https://github.com/apache/incubator-nuttx/pull/1767) SIM: Allow
  22851. access to tty interfaces for better termios support
  22852. * [PR-1655](https://github.com/apache/incubator-nuttx/pull/1655) SIM: Add
  22853. support for Linux HCI Socket as a NuttX BLE adapter. Full NuttX BLE stack can
  22854. be run against any Linux Bluetooth adapter in sim.
  22855. * [PR-1558](https://github.com/apache/incubator-nuttx/pull/1558) SIM: Add
  22856. support for Stack Smashing Protector.
  22857. * [PR-1392](https://github.com/apache/incubator-nuttx/pull/1392) SIM: Make
  22858. uClibc++ and libcxx work on sim platform
  22859. * [PR-1460](https://github.com/apache/incubator-nuttx/pull/1460) SIM: Call
  22860. sched\_note\_cpu\_\* when scheduler instrumentation is enabled
  22861. #### STM32
  22862. * [PR-1865](https://github.com/apache/incubator-nuttx/pull/1865) STM32F4: Add
  22863. support for STM32F412CE fixing I2C2/I2C3 and USART1 alt
  22864. * [PR-1506](https://github.com/apache/incubator-nuttx/pull/1506) STM32: Add
  22865. support for single wire UART push/pull mode
  22866. * [PR-1572](https://github.com/apache/incubator-nuttx/pull/1572) STM32F2/F4:
  22867. Add options for I-Cache and D-Cache to be enabled/disable. Previously they were
  22868. always enabled.
  22869. * [PR-1287](https://github.com/apache/incubator-nuttx/pull/1286) STM32F7:
  22870. Refactor the FMC driver to support STM32F7 family and add support to the
  22871. STM32F46G-DISCO board
  22872. * [PR-1275](https://github.com/apache/incubator-nuttx/pull/1275) STM32: Allow
  22873. SysTick to be a tickless clock source option
  22874. * [PR-1268](https://github.com/apache/incubator-nuttx/pull/1268) STM32: Add
  22875. support for STM32F412 with UART / SPI / CAN / I2C / DMA
  22876. * [PR-1250](https://github.com/apache/incubator-nuttx/pull/1250) STM32L4: Add
  22877. support for booting into DFU mode
  22878. ### Bug Fixes
  22879. #### ARM
  22880. * [PR-1562](https://github.com/apache/incubator-nuttx/pull/1562) ARM: Save
  22881. tcb-adj\_stack\_size should be saved without tls overhead
  22882. * [PR-1900](https://github.com/apache/incubator-nuttx/pull/1900) ARM: Fix false
  22883. reporting for stack usage for unaligned stacks
  22884. #### AVR
  22885. * [PR-1410](https://github.com/apache/incubator-nuttx/pull/1410) avr: Implement
  22886. missing double\_t type, CONFIG\_STACK\_ALIGNMENT, linker emulation flags
  22887. #### CXD56xx
  22888. * [PR-1930](https://github.com/apache/incubator-nuttx/pull/1930) cxd56xx: Fix
  22889. handle\_irqreq() in cxd56\_cpupause.c
  22890. * [PR-1789](https://github.com/apache/incubator-nuttx/pull/1789) cxd56xx: Fix
  22891. deadlock issue in up\_txinit() in SMP mode.
  22892. * [PR-1620](https://github.com/apache/incubator-nuttx/pull/1620) cxd56xx: Fix
  22893. IRQ control in cxd56\_dmac.c
  22894. * [PR-1253](https://github.com/apache/incubator-nuttx/pull/1253) cxd56xx: Fix
  22895. audio cxd56\_stop where a deadlock could be hit if the worker thread took too
  22896. long to turn on AMP
  22897. * [PR-1950](https://github.com/apache/incubator-nuttx/pull/1950) cxd56xx: Fix
  22898. deadlock and tcb corruption in SMP mode
  22899. #### ESP32
  22900. * [PR-1908](https://github.com/apache/incubator-nuttx/pull/1908) ESP32: Fix
  22901. task signal process preemption
  22902. * [PR-1941](https://github.com/apache/incubator-nuttx/pull/1941) ESP32: Fix
  22903. interrupt clearing of edge interrupt due to issuing in masking interrupt state
  22904. #### IMXRT
  22905. * [PR-1527](https://github.com/apache/incubator-nuttx/pull/1527) IMXRT: Fix
  22906. kconfig so that IMXRT\_ENET\_NRXBUFFERS can be set
  22907. * [PR-1455](https://github.com/apache/incubator-nuttx/pull/1455) IMXRT: Fix
  22908. auto-negotiation for KSZ8081 PHY
  22909. #### Kinetis
  22910. * [PR-1273](https://github.com/apache/incubator-nuttx/pull/1273) Kinetis: Fix
  22911. issue in ethernet driver where buffers were blindly initialized and could cause
  22912. the TX of the MAC to be in a bad state. Also resolves an issue with interrupts
  22913. being throttled in the NVIC.
  22914. #### NRF52
  22915. * [PR-1928](https://github.com/apache/incubator-nuttx/pull/1928) NRF52: Fix PPI
  22916. group disable and add group clear
  22917. * [PR-1885](https://github.com/apache/incubator-nuttx/pull/1885) NRF52: Fix SPI
  22918. driver structures when SPI\_EXCHANGE is not set
  22919. * [PR-1799](https://github.com/apache/incubator-nuttx/pull/1799) NRF52: Fix
  22920. SPI\_MASTER entry in kconfig
  22921. * [PR-1787](https://github.com/apache/incubator-nuttx/pull/1787) NRF52: Fix
  22922. base address for SPIM{1,2,3}
  22923. * [PR-1777](https://github.com/apache/incubator-nuttx/pull/1777) NRF52: Handle
  22924. case where rx or tx buffer could be 0 but data would still be transferred. Also
  22925. error if more than max data is requested.
  22926. * [PR-1770](https://github.com/apache/incubator-nuttx/pull/1770) NRF52: Fix bug
  22927. where SPI cmddata was not properly mapped for SPIM 0,2,3
  22928. #### RISC-V
  22929. * [PR-1909](https://github.com/apache/incubator-nuttx/pull/1909) RISC-V: MIE
  22930. instead of MPIE register was being used in up\_schedule\_sigaction for storing
  22931. interrupt state
  22932. #### SIM
  22933. * [PR-1903](https://github.com/apache/incubator-nuttx/pull/1903) SIM: Fix
  22934. complication issue for WPCAP in Cygwin build
  22935. * [PR-1888](https://github.com/apache/incubator-nuttx/pull/1888) SIM: Fix
  22936. EOVERFLOW returned when CONFIG\_SIM\_M32 is set
  22937. * [PR-1709](https://github.com/apache/incubator-nuttx/pull/1709) SIM: Fix
  22938. up\_cpu\_start initialization for macOS with SMP enabled
  22939. #### STM32
  22940. * [PR-1898](https://github.com/apache/incubator-nuttx/pull/1898) STM32F7: Fixes
  22941. data loss bug in UART5 with TX DMA
  22942. * [PR-1841](https://github.com/apache/incubator-nuttx/pull/1841) STM32: Remove
  22943. broken overdriver support
  22944. * [PR-1719](https://github.com/apache/incubator-nuttx/pull/1719) STM32:
  22945. Lowputc: Ensure USART is disabled before attempting to configuring it
  22946. * [PR-1714](https://github.com/apache/incubator-nuttx/pull/1714) STM32H7: Fix
  22947. I2C driver interrupt storm
  22948. * [PR-1556](https://github.com/apache/incubator-nuttx/pull/1556) STM32: Fix IO
  22949. compentation support in STM32F7 and remove incorrect reference in STM32F0/L0/G0
  22950. * [PR-1529](https://github.com/apache/incubator-nuttx/pull/1529) STM32: Fix
  22951. initialization bug in ADC that prevented adc\_reset() from working correctly
  22952. * [PR-1561](https://github.com/apache/incubator-nuttx/pull/1561) STM32: Make
  22953. sure that core over-drive is enabled for all chips that support it and operating
  22954. at 180MHz. Some were enabled at 180MHz but may have not been stable without
  22955. over-drive not configured.
  22956. * [PR-1553](https://github.com/apache/incubator-nuttx/pull/1553) STM32F7: Fix
  22957. possible interrupt blocking in serial TXDMA ISR
  22958. * [PR-1544](https://github.com/apache/incubator-nuttx/pull/1544) STM32: Make
  22959. sure IO compensation cell is configured prior to call to
  22960. rcc\_enableperipherals() causing syscfg is accessed before it is enabled
  22961. * [PR-1380](https://github.com/apache/incubator-nuttx/pull/1380) STM32F7: Fix
  22962. tickless driver where th compare register could be set to a value that has
  22963. just passed preventing expiration
  22964. * [PR-1252](https://github.com/apache/incubator-nuttx/pull/1252) STM32L4: Fix
  22965. 48MHz MSI clock selection that could cause boot to hang
  22966. * [PR-1310](https://github.com/apache/incubator-nuttx/pull/1310) STM32L4:
  22967. Configure flash wait states earlier to prevent corruption of execution state
  22968. * [PR-1248](https://github.com/apache/incubator-nuttx/pull/1248) STM32L4: Fix
  22969. oneshot timer so that a minimum period is set otherwise it will never be
  22970. triggered.
  22971. * [PR-1247](https://github.com/apache/incubator-nuttx/pull/1247) STM32L47x/8x:
  22972. Set additional registers required to place a pin in analog mode
  22973. * [PR-1246](https://github.com/apache/incubator-nuttx/pull/1246) STM32L4: Fix
  22974. issue where clock divider for serial baud rate was not set correctly
  22975. #### Miscellaneous
  22976. * [PR-1912](https://github.com/apache/incubator-nuttx/pull/1912) Fix
  22977. up\_interrupt\_contex() in case of SMP - Make sure the operation is atomic in
  22978. case of SMP
  22979. ## Driver Support
  22980. ### Bug Fixes
  22981. * [PR-1896](https://github.com/apache/incubator-nuttx/pull/1896) spi\_xx25xx
  22982. EEPROM: return the number of bytes written instead of 0 or error
  22983. * [PR-1891](https://github.com/apache/incubator-nuttx/pull/1891) serial: Don't
  22984. mangle PID when ISIG is changed
  22985. * [PR-1856](https://github.com/apache/incubator-nuttx/pull/1856) pipe: In case
  22986. of empty pipe with no writers, return EOF instead of EAGAIN
  22987. * [PR-1836](https://github.com/apache/incubator-nuttx/pull/1836) stmpe811: Fix
  22988. incorrect GPIO interrupt register logic
  22989. * [PR-1741](https://github.com/apache/incubator-nuttx/pull/1741) mmcsd\_sdio:
  22990. Properly arm the write completion detection
  22991. * [PR-1370](https://github.com/apache/incubator-nuttx/pull/1370) can: Fix
  22992. incorrect usage of nxsem\_getvalue which caused fifo->rx\_sem to increase with
  22993. teach received msg
  22994. * [PR-1452](https://github.com/apache/incubator-nuttx/pull/1452) lcd: Fix
  22995. memory leak when board\_graphics\_setup fail
  22996. ### New Driver Support
  22997. * [PR-1797](https://github.com/apache/incubator-nuttx/pull/1797) leds: WS2812
  22998. LED controller (aka Adafruit NeoPixel)
  22999. * [PR-1851](https://github.com/apache/incubator-nuttx/pull/1851) kbd: Add
  23000. support for SolderParty BlackBerry Q10 Keyboard
  23001. * [PR-1618](https://github.com/apache/incubator-nuttx/pull/1618) BQ27426 fuel
  23002. gauge
  23003. * [PR-1276](https://github.com/apache/incubator-nuttx/pull/1276) Add support
  23004. for the ST7735 TFT Controller
  23005. * [PR-1233](https://github.com/apache/incubator-nuttx/pull/1233) usbhost: Add
  23006. support for CDC-MBIM USB host driver
  23007. ### Drivers With Significant Improvements
  23008. * [PR-1816](https://github.com/apache/incubator-nuttx/pull/1816) stmpe811: Add
  23009. SPI support for touch screen controller
  23010. * [PR-1800](https://github.com/apache/incubator-nuttx/pull/1800) vfs: Add
  23011. `FIOCLEX/FIONCLEX` ioctl support
  23012. * [PR-1798](https://github.com/apache/incubator-nuttx/pull/1798) mmcsd: Allow
  23013. setting `IDMODE_CLOCK` via kconfig
  23014. * [PR-1587](https://github.com/apache/incubator-nuttx/pull/1587) BCH: Delay the
  23015. sector flush to avoid multiple erase/write operations in sequence write
  23016. * [PR-1577](https://github.com/apache/incubator-nuttx/pull/1577) rwbuffer:
  23017. Avoid allocating memory for the temporary erase buffer by the FTL driver
  23018. * [PR-1466](https://github.com/apache/incubator-nuttx/pull/1466) Altair Modem:
  23019. Add board specific logic, Fix issue that SPI4 RX frequency violated AC Spec,
  23020. Fix priority of SPI transfer task is too low, Modify timeout value for RX ready
  23021. * [PR-1471](https://github.com/apache/incubator-nuttx/pull/1471) ramlog: Add
  23022. option to overwrite buffer
  23023. * [PR-1547](https://github.com/apache/incubator-nuttx/pull/1547) usbhub: Make
  23024. sure to enumerate hubs that report protocol = 1 (High Speed Hub)
  23025. * [PR-1374](https://github.com/apache/incubator-nuttx/pull/1374) gpio: Extend
  23026. gpio\_pintype\_e for pulldown/up and opendrain
  23027. * [PR-1249](https://github.com/apache/incubator-nuttx/pull/1249) bmp280: Add
  23028. support for reading temperature
  23029. * [PR-1299](https://github.com/apache/incubator-nuttx/pull/1299) mpu60x0: Add
  23030. I2C support for the MPU60x0 sensor driver
  23031. * [PR-1325](https://github.com/apache/incubator-nuttx/pull/1325) can: expose
  23032. NART/ABOM and RTR settings via ioctls
  23033. * [PR-1520](https://github.com/apache/incubator-nuttx/pull/1520) note: Move
  23034. note driver from syslog to drivers/note
  23035. * [PR-1288](https://github.com/apache/incubator-nuttx/pull/1288) / PR-1449
  23036. note: Add sched\_note\_syscall\_enter/leave hooks for syscall instrumentation
  23037. * [PR-1259](https://github.com/apache/incubator-nuttx/pull/1259) note: Add
  23038. buffering support for syscall instrumentation
  23039. * [PR-1256](https://github.com/apache/incubator-nuttx/pull/1256) note: Add
  23040. hooks for note driver for interrupt instrumentation
  23041. Board Support -------------
  23042. ### **Significant Improvements**
  23043. * [PR-1618](https://github.com/apache/incubator-nuttx/pull/1618) metro-m4: Add
  23044. support for: SmartFS initialization, AT24 EEPROM, GPIO dev, BQ27426 gauge
  23045. initialization
  23046. * [PR-1727](https://github.com/apache/incubator-nuttx/pull/1729) b-g474e-dpow1:
  23047. Add support for FLASH bootloader
  23048. * [PR-1683](https://github.com/apache/incubator-nuttx/pull/1683) cxd56xx: Add
  23049. wifi\_smp configuration
  23050. * [PR-1668](https://github.com/apache/incubator-nuttx/pull/1668) sim: Add new
  23051. configuration for SMP
  23052. * [PR-1644](https://github.com/apache/incubator-nuttx/pull/1644)
  23053. stm32f746g-disco: Move serial console from USART6 to USART1 which is attached
  23054. to the USB virtual COM port.
  23055. * [PR-1464](https://github.com/apache/incubator-nuttx/pull/1464) cxd56xx: Add
  23056. new GNSS functions, support for lower PWM frequency,
  23057. CONFIG\_CPUFREQ\_RELEASE\_LOCK, high speed ADC, HPADC input gain configuration,
  23058. eMMC device, frame buffer support
  23059. * [PR-1405](https://github.com/apache/incubator-nuttx/pull/1405)
  23060. stm32f4discovery: Add ELF support to wifi configuration
  23061. * [PR-1402](https://github.com/apache/incubator-nuttx/pull/1402) imxrt1060: Add
  23062. buttons support to iMXRT1060
  23063. * [PR-1590](https://github.com/apache/incubator-nuttx/pull/1590) sim: Add
  23064. duktape configuration
  23065. * [PR-1532](https://github.com/apache/incubator-nuttx/pull/1532) sim: Add
  23066. cromfs configuration
  23067. * [PR-1335](https://github.com/apache/incubator-nuttx/pull/1335) cxd56xx:
  23068. Enable basic snapshop camera example
  23069. ### New Board Support
  23070. * [PR-1664](https://github.com/apache/incubator-nuttx/pull/1664) NRF52: Add
  23071. support for NRF52832 MakerDiary MDK board
  23072. * [PR-1633](https://github.com/apache/incubator-nuttx/pull/1633) NRF52: Add
  23073. support for Sparkfun NRF52832 Breakout Board
  23074. * [PR-1728](https://github.com/apache/incubator-nuttx/pull/1728) SAMA5D27: Add
  23075. support for Giant Board
  23076. * [PR-1397](https://github.com/apache/incubator-nuttx/pull/1397) EOSS3: Initial
  23077. support for the QuickLogic EOS S3 SoC QuickFeather board
  23078. * [PR-1268](https://github.com/apache/incubator-nuttx/pull/1268) STM32: Add
  23079. support for nucleo-f412zg board
  23080. File System -----------
  23081. ### **Bug Fixes**
  23082. * [PR-1796](https://github.com/apache/incubator-nuttx/pull/1796) vfs: Fix
  23083. memory leak calling `pseudorename`
  23084. * [PR-1794](https://github.com/apache/incubator-nuttx/pull/1794) vfs: Fix issue
  23085. where opendir would remove the trailing whitespace or /
  23086. * [PR-1793](https://github.com/apache/incubator-nuttx/pull/1793) vfs: Make sure
  23087. that rename of mount point uses pseudorename. Previously mv on a mountpoint
  23088. would return err 88.
  23089. * [PR-1737](https://github.com/apache/incubator-nuttx/pull/1737) vfs: reuse
  23090. file\_dup2 direction in file\_dup to prevent segfault issue
  23091. * [PR-1490](https://github.com/apache/incubator-nuttx/pull/1490) Ensure that
  23092. filesystems can all support paths that end with '/'
  23093. * [PR-1546](https://github.com/apache/incubator-nuttx/pull/1546) ROMFS: Fix
  23094. issue with how hard links are followed for ROMFS
  23095. * [PR-1442](https://github.com/apache/incubator-nuttx/pull/1442) SmartFS: Fix
  23096. file size corruption when opening with overwriting mode
  23097. * [PR-1431](https://github.com/apache/incubator-nuttx/pull/1431) nxffs: Fix
  23098. scan good block slowly and scan an invalid block
  23099. PR-1295 fs: for setfd correct the return value
  23100. ### **Significant Improvements**
  23101. * [PR-1554](https://github.com/apache/incubator-nuttx/pull/1554) CROMFS: Add
  23102. support for hard links
  23103. * [PR-1499](https://github.com/apache/incubator-nuttx/pull/1499) FAT: Add
  23104. support for UTF8 long filename
  23105. * [PR-1479](https://github.com/apache/incubator-nuttx/pull/1479) vfs: Add file
  23106. descriptor based events support eventfd()
  23107. * [PR-1582](https://github.com/apache/incubator-nuttx/pull/1482) vfs: Add
  23108. epoll\_create1() support
  23109. * [PR-1579](https://github.com/apache/incubator-nuttx/pull/1579) vfs: Do not
  23110. check CONFIG\_NFILE\_STREAMS for mkdir/rename/rmdir/fs\_unlink
  23111. * [PR-1355](https://github.com/apache/incubator-nuttx/pull/1355) vfs: Implement
  23112. statvfs and fstatvfs
  23113. * [PR-1323](https://github.com/apache/incubator-nuttx/pull/1323) vfs: Add
  23114. chmod/fchmod/utimes function prototypes
  23115. Networking ----------
  23116. ### **Bug Fixes**
  23117. * [PR-1267](https://github.com/apache/incubator-nuttx/pull/1267) SocketCAN:
  23118. When timestamped frame was received while in CAN2.0B mode the frame got dropped.
  23119. * [PR-1446](https://github.com/apache/incubator-nuttx/pull/1446) usrsock: Fix
  23120. recv() cannot peek data
  23121. ### **Significant Improvements**
  23122. * [PR-1666](https://github.com/apache/incubator-nuttx/pull/1666) Bluetooth:
  23123. Bluetooth sockets now use Linux sockaddr types of sockaddr\_l2 sockaddr\_hci
  23124. sockaddr\_rc. There are slight breaking changes here that may require
  23125. applications to be updated, but this brings the interface inline with Linux.
  23126. * [PR-1581](https://github.com/apache/incubator-nuttx/pull/1581) Socket: Add
  23127. SOCK\_CLOEXEC/SOCK\_NONBLOCK support
  23128. * [PR-1443](https://github.com/apache/incubator-nuttx/pull/1443) usrsock: Add
  23129. flag argument to sendto/recvfrom interface in usrsock
  23130. * [PR-1238](https://github.com/apache/incubator-nuttx/pull/1238) SocketCAN: Add
  23131. support for SocketCAN interface API
  23132. Applications ------------
  23133. ### **Significant Improvements**
  23134. * [PR-409](https://github.com/apache/incubator-nuttx-apps/pull/409) wamr:
  23135. Update version to 09-29-2020 that supports NuttX directly and remove patches
  23136. * [PR-407](https://github.com/apache/incubator-nuttx-apps/pull/407) ipcfg: Add
  23137. IPv4 configuration file access helper
  23138. * [PR-406](https://github.com/apache/incubator-nuttx-apps/pull/406) wamr: Add
  23139. configs for heap pool and custom name sections
  23140. * [PR-404](https://github.com/apache/incubator-nuttx-apps/pull/404) timer: Add
  23141. supplying timer dev path to example
  23142. * [PR-403](https://github.com/apache/incubator-nuttx-apps/pull/402)
  23143. nxplayer/nxrecorder: Add channel map support
  23144. * [PR-396](https://github.com/apache/incubator-nuttx-apps/pull/396) wamr: Add
  23145. missing options to kconfig
  23146. * [PR-395](https://github.com/apache/incubator-nuttx-apps/pull/395) dhcpc: Try
  23147. to get hostname via syscall first
  23148. * [PR-391](https://github.com/apache/incubator-nuttx-apps/pull/391) wapi: Add
  23149. option to assocated directly via bssid
  23150. * [PR-390](https://github.com/apache/incubator-nuttx-apps/pull/390) wapi: App
  23151. option to scan partial channel
  23152. * [PR-387](https://github.com/apache/incubator-nuttx-apps/pull/387) wamr: Add
  23153. support for WAMR web assembly interpreter
  23154. * [PR-337](https://github.com/apache/incubator-nuttx-apps/pull/337) docs:
  23155. Convert all README files to markdown
  23156. * [PR-333](https://github.com/apache/incubator-nuttx-apps/pull/333) webclient:
  23157. Add hooks for TLS, extra request headers, PUT method, report status code,
  23158. improved error handling
  23159. * [PR-329](https://github.com/apache/incubator-nuttx-apps/pull/329) gpio: Add
  23160. support for new GPIO pin types
  23161. * [PR-317](https://github.com/apache/incubator-nuttx-apps/pull/317) nshlib:
  23162. Call symlink if user pass -s for ln command
  23163. * [PR-315](https://github.com/apache/incubator-nuttx-apps/pull/315) c++:
  23164. Support uClibc++ and libcxx in examples/testing
  23165. * [PR-314](https://github.com/apache/incubator-nuttx-apps/pull/314) camera: Add
  23166. a simple camera snapshot example
  23167. * [PR-378](https://github.com/apache/incubator-nuttx-apps/pull/378) wasm3:
  23168. Initial WebAssembly runtime support
  23169. * [PR-374](https://github.com/apache/incubator-nuttx-apps/pull/374) bluetooth:
  23170. Use the new l2cap socket address type
  23171. * [PR-373](https://github.com/apache/incubator-nuttx-apps/pull/373) duktape:
  23172. Add duktape to global search path so it can be used as a library
  23173. * [PR-372](https://github.com/apache/incubator-nuttx-apps/pull/372) quickjs:
  23174. Add support for QuickJS interpreter
  23175. * [PR-367](https://github.com/apache/incubator-nuttx-apps/pull/367) nsh: Accept
  23176. the command line arguments like sh
  23177. * [PR-365](https://github.com/apache/incubator-nuttx-apps/pull/365) duktape:
  23178. Add console, print, alert support
  23179. * [PR-364](https://github.com/apache/incubator-nuttx-apps/pull/364) cu:
  23180. Refactor cu and add support for "-c" to disable \\n to \\r\\n conversion
  23181. * [PR-362](https://github.com/apache/incubator-nuttx-apps/pull/362) libuv: Add
  23182. support for libuv library
  23183. * [PR-352](https://github.com/apache/incubator-nuttx-apps/pull/352) duktape:
  23184. Add initial support for duktape
  23185. * [PR-346](https://github.com/apache/incubator-nuttx-apps/pull/364) wget:
  23186. Enable URL from command line, can be used with ifup, hooks for HTTPS
  23187. * [PR-302](https://github.com/apache/incubator-nuttx-apps/pull/302) lvgl: Use
  23188. the latest version 7.0.2
  23189. * [PR-300](https://github.com/apache/incubator-nuttx-apps/pull/300) note: Add
  23190. support for decoding interrupt and syscall instrumentation
  23191. * [PR-299](https://github.com/apache/incubator-nuttx-apps/pull/299) nxrecorder:
  23192. Add O\_TRUNC when creating a file
  23193. * [PR-296](https://github.com/apache/incubator-nuttx-apps/pull/296) bmp280: Add
  23194. support for BMP180 to BMP280 application
  23195. * [PR-294](https://github.com/apache/incubator-nuttx-apps/pull/294) can: Add
  23196. cansend and candump utilities for interacting with SocketCAN
  23197. ### Bug Fixes
  23198. * [PR-411](https://github.com/apache/incubator-nuttx-apps/pull/411) wgetjson:
  23199. Fix build breakage
  23200. * [PR-405](https://github.com/apache/incubator-nuttx-apps/pull/405) nxplayer:
  23201. Fix missing "%d" in a sscanf call
  23202. * [PR-400](https://github.com/apache/incubator-nuttx-apps/pull/400) dhcpc:
  23203. Handle case where gethostname() might be empty
  23204. * [PR-399](https://github.com/apache/incubator-nuttx-apps/pull/399) build: Fix
  23205. build system issue where compiler would only compile first assembly file
  23206. * [PR-393](https://github.com/apache/incubator-nuttx-apps/pull/393) build: Fix
  23207. build system issue where ARCHCPUFLAGS in cxx command was lost
  23208. * [PR-392](https://github.com/apache/incubator-nuttx-apps/pull/392) wapi: Make
  23209. wapi more robust in failure cases
  23210. * [PR-383](https://github.com/apache/incubator-nuttx-apps/pull/383) ntpclient:
  23211. Fix NTP daemon state in case of DNS failure
  23212. * [PR-344](https://github.com/apache/incubator-nuttx-apps/pull/344) gs2200m:
  23213. Fix freeing of uninitialized memory
  23214. * [PR-335](https://github.com/apache/incubator-nuttx-apps/pull/335) ntp: Fix
  23215. malformated authentication headers in NTP packet
  23216. * [PR-331](https://github.com/apache/incubator-nuttx-apps/pull/331) telnetd:
  23217. Fix buffer overflow issue clearing socket address
  23218. * [PR-312](https://github.com/apache/incubator-nuttx-apps/pull/312) build: Make
  23219. sure to include incdir when running make export
  23220. * [PR-377](https://github.com/apache/incubator-nuttx-apps/pull/377) readline:
  23221. Fix stack overflow when application name is too long
  23222. * [PR-359](https://github.com/apache/incubator-nuttx-apps/pull/259) nshlib: Fix
  23223. memory corrupt in nsh\_parse if pthread\_create() failed
  23224. * [PR-354](https://github.com/apache/incubator-nuttx-apps/pull/354) dhcpd: Fix
  23225. member name for "ds\_pid"
  23226. ## Security Issues Fixed In This Release
  23227. ## Compatibility Concerns
  23228. ## Changes to Build System
  23229. ### In Apps, Change `$(TOPDIR)` to `$(APPDIR)`
  23230. In the 'apps' repo, Makefiles are now using `$(APPDIR)` instead of `$(TOPDIR)`.
  23231. In your custom app's Makefile, it is recommended to change `$(TOPDIR)` to
  23232. `$(APPDIR)`.
  23233. Replace this line:
  23234. include $(TOPDIR)/Make.defs
  23235. With this:
  23236. include $(APPDIR)/Make.defs
  23237. See * [PR-326](https://github.com/apache/incubator-nuttx-apps/pull/326), git
  23238. commit #
  23239. `[deaa6c5b7bf8445b4a300691525f60aa506be0d7](https://github.com/apache/incubator-nuttx-apps/commit/deaa6c5b7bf8445b4a300691525f60aa506be0d7)`
  23240. in the NuttX 'apps' repository.
  23241. ### Custom Boards Don't Need `ARCHINCLUDES` and `ARCHXXINCLUDES` Definitions
  23242. As part of an effort to unify support for uClibc++ and libc++, the C/C++ include
  23243. search path definitions `ARCHINCLUDES` and `ARCHXXINCLUDES` are now defined in
  23244. one central place in `tools/Config.mk`. It is no longer necessary to define
  23245. these in every board's `scripts/Make.defs`. Boards included in the NuttX
  23246. repository have been updated, but if you are building NuttX for a custom board
  23247. and are using C++, you may want to make the following changes:
  23248. In your board's configuration, ensure that you have enabled either
  23249. `CONFIG_UCLIBCXX` or `CONFIG_LIBCXX` as appropriate.
  23250. In your custom board's `scripts/Make.defs` file, remove lines like these:
  23251. CINCPATH := ${shell $(INCDIR) -s "$(CC)" $(TOPDIR)$(DELIM)include} CXXINCPATH :=
  23252. ${shell $(INCDIR) -s "$(CC)" $(TOPDIR)$(DELIM)include$(DELIM)cxx} ARCHINCLUDES
  23253. += $(CINCPATH) ARCHXXINCLUDES += $(CINCPATH) $(CXXINCPATH)
  23254. In case your `scripts/Make.defs` uses different names, such as `ARCHINCLUDESXX`
  23255. instead of `ARCHXXINCLUDES`, you'll need to find all uses of that variable and
  23256. update them to use `ARCHXXINCLUDES`.
  23257. See * [PR-1396](https://github.com/apache/incubator-nuttx/pull/1396), git
  23258. commit
  23259. #[d32e9c38dfb0659a7f3c0cf586ba1584cd7eb3d6](https://github.com/apache/incubator-nuttx/commit/d32e9c38dfb0659a7f3c0cf586ba1584cd7eb3d6)
  23260. in the main NuttX repository.
  23261. See also * [PR-1399](https://github.com/apache/incubator-nuttx/pull/1399), git
  23262. commit
  23263. #[6abd03d53ff9164fb17ea4aca701a49fbbf751c0](https://github.com/apache/incubator-nuttx/commit/6abd03d53ff9164fb17ea4aca701a49fbbf751c0).
  23264. ### Custom Boards Don't Need `HOSTCC` and `HOSTCFLAGS` Definitions
  23265. The NuttX build system uses several binary utilities that it compiles and runs
  23266. on the host computer. To build these binaries, it needs to know the host C
  23267. compiler and C flags. Previously, every board's `scripts/Make.defs` file had to
  23268. provide this information via `HOSTCC` and `HOSTCFLAGS` Definitions. As part of
  23269. an effort to simplify the build system, these definitions are now automatically
  23270. provided by logic in `tools/Config.mk`. Boards included in the NuttX repository
  23271. have been updated, but if you are building NuttX for a custom board, you may
  23272. want to make the following changes:
  23273. In your custom board's `scripts/Make.defs` file, remove lines like these:
  23274. HOSTCC = gcc HOSTCFLAGS = -Wall -Wstrict-prototypes -Wshadow -Wundef -g -pipe
  23275. Sometimes they may look like this:
  23276. ifeq ($(CONFIG\_WINDOWS\_NATIVE),y)
  23277.   HOSTCC = mingw32-gcc.exe
  23278. else
  23279.   HOSTCC = gcc
  23280. endif
  23281. Note: These changes are OPTIONAL.
  23282. You may still set these definitions in your board's scripts/Make.defs, and your
  23283. definitions will override the ones in tools/Config.mk.
  23284. Also, you may override these definitions for a single run by providing them on
  23285. the make command line. This is useful if, for example, you wish to build debug
  23286. versions of these host binaries: define HOSTCFLAGS with -g on the command line.
  23287. See * [PR-1398](https://github.com/apache/incubator-nuttx/pull/1398), git
  23288. commit
  23289. #[ee875b2a260cb4cc532b8ca303c2515e24c39b4e](https://github.com/apache/incubator-nuttx/commit/ee875b2a260cb4cc532b8ca303c2515e24c39b4e)
  23290. in the main NuttX repository.
  23291. ### Removal of Unused `ARCHCCVERSION` and `ARCHCCMAJOR`
  23292. The ARCHCCVERSION and ARCHCCMAJOR variables are unused. Historically they were
  23293. defined in many boards' scripts/Make.defs. These were removed from all boards in
  23294. the NuttX repository, but if you are building NuttX for a custom board, you may
  23295. want to remove this unnecessary boilerplate.
  23296. In your custom board's `scripts/Make.defs` file, remove lines like these:
  23297. ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e
  23298. 's/^gcc version \\(\[0-9\\.\]\\)/\\1/g' -e 's/\[-\\ \].\*//g' -e '1q'}
  23299. ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1}
  23300. See * [PR-1344](https://github.com/apache/incubator-nuttx/pull/1344), git
  23301. commit
  23302. #[f5311de6b42466ab5c6ef299dab0ecc417131bbe](https://github.com/apache/incubator-nuttx/commit/f5311de6b42466ab5c6ef299dab0ecc417131bbe)
  23303. in the main NuttX repository.
  23304. ### Custom Boards May Not Need `EXTRA_LIBS` and `EXTRA_LIBPATHS` Definitions
  23305. The `EXTRA_LIBS` and `EXTRA_LIBPATHS` make variables were previously defined in
  23306. many boards' `scripts/Make.defs` files. These are now defined in a more central
  23307. location: `arch/*/src/*/Toolchain.defs`. Your board's `scripts/Make.defs`
  23308. usually includes this file. Boards included in NuttX have been updated, but if
  23309. you are building NuttX for a custom board, you may need to update your board's
  23310. `scripts/Make.defs` file to ensure you build with the correct definitions.
  23311. If you have lines like these:
  23312. EXTRA\_LIBPATHS = -L "${shell dirname "$(LIBSUPXX)"}" EXTRA\_LIBS = -lsupc++
  23313. You may want to do one of the following:
  23314. *   If they are redundant to the definitions provided in the included
  23315. `arch/*/src/*/Toolchain.defs`, remove these lines, or *   If they contain
  23316. additional needed libraries and paths not present in
  23317. `arch/*/src/*/Toolchain.defs`, remove any redundant definitions and change the
  23318. assignment '`=`' to '`+=`'.
  23319. See * [PR-1404](https://github.com/apache/incubator-nuttx/pull/1404), git
  23320. commit
  23321. #[4910d43ab0fc360dbddb1f8a31db2a3ee383b46d](https://github.com/apache/incubator-nuttx/commit/4910d43ab0fc360dbddb1f8a31db2a3ee383b46d)
  23322. in the main NuttX repository.
  23323. ### Custom Boards May Not Need CC, CXX, CPP, LD, STRIP, AR, NM, OBJCOPY, and
  23324. OBJDUMP Definitions
  23325. These `make` variables were previously defined in many boards' scripts/Make.defs
  23326. files with copy-paste duplication spanning many hundreds of files. These are now
  23327. defined in a more central location: `arch/*/src/*/Toolchain.defs`. Your board's
  23328. `scripts/Make.defs` usually includes this file. Boards included in NuttX have
  23329. been updated, but if you are building NuttX for a custom board, you may need to
  23330. update your board's `scripts/Make.defs` file to ensure you build with the
  23331. correct definitions.
  23332. If you have lines that define `CC`, `CXX`, `CPP`, `LD`, `STRIP`, `AR`, `NM`,
  23333. `OBJCOPY`, and `OBJDUMP`, such as these:
  23334. CC = $(CROSSDEV)gcc CXX = $(CROSSDEV)g++ CPP = $(CROSSDEV)gcc -E -P -x c LD =
  23335. $(CROSSDEV)ld STRIP = $(CROSSDEV)strip --strip-unneeded AR = $(ARCROSSDEV)ar rcs
  23336. NM = $(ARCROSSDEV)nm OBJCOPY = $(CROSSDEV)objcopy OBJDUMP = $(CROSSDEV)objdump
  23337. You may want to do one of the following:
  23338. *   If they are redundant to the definitions provided in the included
  23339. `arch/*/src/*/Toolchain.defs`, remove these lines, or *   If they are different
  23340. from the definitions in `arch/*/src/*/Toolchain.defs`, leave them as-is and they
  23341. will take precedence.
  23342. See * [PR-1426](https://github.com/apache/incubator-nuttx/pull/1426), git
  23343. commit
  23344. #[b329e2377dd8816f37ad0408279926829efdf85d](https://github.com/apache/incubator-nuttx/commit/b329e2377dd8816f37ad0408279926829efdf85d)
  23345. in the main NuttX repository.
  23346. ### Consolidated ARCROSSDEV and CROSSDEV
  23347. The `ARCROSSDEV` and `CROSSDEV` variables always had identical values. Therefore
  23348. `ARCROSSDEV` has been removed and `CROSSDEV` is used instead. Boards included in
  23349. NuttX have been updated, but if you are building NuttX for a custom board, you
  23350. may need to update your board's build scripts to use the `CROSSDEV` variable.
  23351. See * [PR-1439](https://github.com/apache/incubator-nuttx/pull/1439), git
  23352. commit
  23353. #[5efa93ec26fd8a3fd85b24a2008bb743f96027fb](https://github.com/apache/incubator-nuttx/commit/5efa93ec26fd8a3fd85b24a2008bb743f96027fb)
  23354. in the main NuttX repository.
  23355. NuttX-10.1.0 Release Notes
  23356. ------------------------
  23357. # What's New In This Release
  23358. ## Highlights
  23359. * Better separation between kernel and userspace.
  23360. * Heap and stack management improvements.
  23361. * More closely follow POSIX and Linux interfaces.
  23362. * Symmetric Multi-Processing (SMP) performance improvements and bug fixes.
  23363. * Networking improvements and bug fixes.
  23364. * Added support for many microcontrollers and boards, and improved support for many existing ones.
  23365. * Many added and improved drivers.
  23366. * Build system improvements to deliver faster builds.
  23367. * Thousands of NuttX files converted to Apache 2.0 License with permission of their authors.
  23368. * Improved listing of 3rd party licenses used in NuttX (see LICENSE, NOTICE, and DISCLAIMER-WIP files).
  23369. ## Major Changes to Core OS
  23370. ### New Features
  23371. * [#2324](https://github.com/apache/incubator-nuttx/pull/2324) audio: libsamplerate: add initial audio Sample Rate Converter
  23372. * [#2820](https://github.com/apache/incubator-nuttx/pull/2820) arch, boards, drivers, include, sched, wireless: Change spinlock APIs.
  23373. * [#2885](https://github.com/apache/incubator-nuttx/pull/2885) Ensure the kernel component don't call userspace API
  23374. ### Bug Fixes
  23375. * [#1852](https://github.com/apache/incubator-nuttx/pull/1852) sysconf: add _SC_PAGESIZE sysconf support
  23376. * [#1922](https://github.com/apache/incubator-nuttx/pull/1922) sched: nxtask_start should call entry point directly for kernel thread
  23377. * [#1994](https://github.com/apache/incubator-nuttx/pull/1994) libc: Don't fclose and fopen file in freopen
  23378. * [#2005](https://github.com/apache/incubator-nuttx/pull/2005) Fix note_syscall_leave_s to avoid unaligned access
  23379. * [#2043](https://github.com/apache/incubator-nuttx/pull/2043) sched: Add SCHED_INSTRUMENTATION_HIRES support
  23380. * [#2044](https://github.com/apache/incubator-nuttx/pull/2044) sched: Add note_syscall args support
  23381. * [#2071](https://github.com/apache/incubator-nuttx/pull/2071) pollnotify: we should send poll events before semaphore incrementes.
  23382. * [#2076](https://github.com/apache/incubator-nuttx/pull/2076) libc: math: Make this friendly with libcxx
  23383. * [#2111](https://github.com/apache/incubator-nuttx/pull/2111) LIBCXX related fixes
  23384. * [#2147](https://github.com/apache/incubator-nuttx/pull/2147) sched: Use nx_close() inside OS
  23385. * [#2176](https://github.com/apache/incubator-nuttx/pull/2176) syscall/syscall.csv: Increase number of arguments for prctl()
  23386. * [#2204](https://github.com/apache/incubator-nuttx/pull/2204) sched: irq: Fix enter_critical_section() in an irq handler for SMP
  23387. * [#2218](https://github.com/apache/incubator-nuttx/pull/2218) sched: signal.h: fix compile failed when open TTY_SIGINT
  23388. * [#2229](https://github.com/apache/incubator-nuttx/pull/2229) sched/sched/sched_waitid.c: Allow WNOHANG
  23389. * [#2236](https://github.com/apache/incubator-nuttx/pull/2236) sched/task/task_exithook.c: Remove a redundant assignment
  23390. * [#2243](https://github.com/apache/incubator-nuttx/pull/2243) libcxx: Update [0001-libcxx-Port-to-NuttX-https-nuttx.apache.org](http://0001-libcxx-Port-to-NuttX-https-nuttx.apache.org)-RTOS.patch
  23391. * [#2255](https://github.com/apache/incubator-nuttx/pull/2255) sys/epoll: sync the epoll define with linux
  23392. * [#2256](https://github.com/apache/incubator-nuttx/pull/2256) unistd/sched_sporadic: correct the disable value
  23393. * [#2261](https://github.com/apache/incubator-nuttx/pull/2261) sched/timer: add support of CLOCK_MONOTONIC
  23394. * [#2262](https://github.com/apache/incubator-nuttx/pull/2262) sched/init: init the default home directory to environment
  23395. * [#2285](https://github.com/apache/incubator-nuttx/pull/2285) libc/stdlib: Fix range check in strtoul(l)
  23396. * [#2326](https://github.com/apache/incubator-nuttx/pull/2326) libc: Enhance getopt function
  23397. * [#2407](https://github.com/apache/incubator-nuttx/pull/2407) libc: machine: arch: Support armv8-m relocation
  23398. * [#2418](https://github.com/apache/incubator-nuttx/pull/3447) libc: Change OK/ERROR from macro to enum
  23399. * [#2420](https://github.com/apache/incubator-nuttx/pull/2420) sched/signal: Remove redundant checks
  23400. * [#2437](https://github.com/apache/incubator-nuttx/pull/2765) sched/sched/sched_waitpid.c: Fix return value
  23401. * [#2449](https://github.com/apache/incubator-nuttx/pull/2449) mm/circbuf: fix the problem of dividing by zero
  23402. * [#2450](https://github.com/apache/incubator-nuttx/pull/2450) unistd/getopt: remove number of arguments limit
  23403. * [#2451](https://github.com/apache/incubator-nuttx/pull/2451) libc: pthread_mutexattr_getprotocol: modify prototype
  23404. * [#2455](https://github.com/apache/incubator-nuttx/pull/2455) sched/sched/sched_waitpid.c: Discard the correct child entry
  23405. * [#2475](https://github.com/apache/incubator-nuttx/pull/2475) sched/sched_waitid.c: Fix two bugs when CONFIG_SCHED_CHILD_STATUS is enabled
  23406. * [#2487](https://github.com/apache/incubator-nuttx/pull/2487) sched: clock/time: add CLOCK_BOOTTIME definition
  23407. * [#2492](https://github.com/apache/incubator-nuttx/pull/2492) procfs: make array const to reduce memory use
  23408. * [#2494](https://github.com/apache/incubator-nuttx/pull/2494) sched: Fix SMP
  23409. * [#2509](https://github.com/apache/incubator-nuttx/pull/2509) libc: net: implement ether_aton/ether_aton_r
  23410. * [#2517](https://github.com/apache/incubator-nuttx/pull/2517) sched: spinlock: Introduce SP_WFE() and SP_SEV()
  23411. * [#2518](https://github.com/apache/incubator-nuttx/pull/2518) sched: Don't forward gettid to getpid directly
  23412. * [#2530](https://github.com/apache/incubator-nuttx/pull/2530) libc: Implement posix_fallocate
  23413. * [#2533](https://github.com/apache/incubator-nuttx/pull/2533) sched: Make the number of queue/signal used by irq handler configurable
  23414. * [#2534](https://github.com/apache/incubator-nuttx/pull/2534) libc: Implement getppid
  23415. * [#2538](https://github.com/apache/incubator-nuttx/pull/2538) sched: pthread: Fix potential bugs in pthread_condclockwait.c
  23416. * [#2574](https://github.com/apache/incubator-nuttx/pull/2574) libc: dumpbuffer: dump buffer enhancement
  23417. * [#2580](https://github.com/apache/incubator-nuttx/pull/2580) sched: arch & sched: task: Fix up_exit() and nxtask_exit() for SMP
  23418. * [#2585](https://github.com/apache/incubator-nuttx/pull/2585) libc: netdb: Move hostbuffer out of the stack
  23419. * [#2602](https://github.com/apache/incubator-nuttx/pull/2740) sched: Add include/sys/poll.h
  23420. * [#2604](https://github.com/apache/incubator-nuttx/pull/2604) libc: Add b64_ntop and b64_pton implementation
  23421. * [#2616](https://github.com/apache/incubator-nuttx/pull/2616) libc/dumpvbuffer: update the vector ptr correctly
  23422. * [#2624](https://github.com/apache/incubator-nuttx/pull/2624) sched: implement the default test-and-set semantics
  23423. * [#2627](https://github.com/apache/incubator-nuttx/pull/2627) OS internal function should indicate the error by return negative value
  23424. * [#2630](https://github.com/apache/incubator-nuttx/pull/2630) libc: net: implement socketpair
  23425. * [#2631](https://github.com/apache/incubator-nuttx/pull/2631) sched: mqueue: simplify the mqueue reailize
  23426. * [#2650](https://github.com/apache/incubator-nuttx/pull/2650) libc: ctype/iscntrl: correct the control character function
  23427. * [#2653](https://github.com/apache/incubator-nuttx/pull/2653) sched: Don't call sched_lock()/unlock() in nx_waitid()/waitpid() for SMP
  23428. * [#2668](https://github.com/apache/incubator-nuttx/pull/2668) Kernel module should prefer functions with nx/kmm prefix
  23429. * [#2675](https://github.com/apache/incubator-nuttx/pull/2675) libc: Add placement new and new[] function
  23430. * [#2693](https://github.com/apache/incubator-nuttx/pull/2693) libxx: use built-in __aeabi_atexit() if LIBSUPCXX is enabled
  23431. * [#2694](https://github.com/apache/incubator-nuttx/pull/2694) libc/machine/arch: fix build break if enable armv8 ELF
  23432. * [#2719](https://github.com/apache/incubator-nuttx/pull/2719) sched/task: setup the scheduling policy to task
  23433. * [#2726](https://github.com/apache/incubator-nuttx/pull/2726) sched: sched: Remove sched_lock/unlock from nxsched_set_affinity()
  23434. * [#2737](https://github.com/apache/incubator-nuttx/pull/2737) sched: task: Fix a potential bug in nxtask_assign_pid()
  23435. * [#2740](https://github.com/apache/incubator-nuttx/pull/2740) sched/timer: get the previous reload value correctly
  23436. * [#2741](https://github.com/apache/incubator-nuttx/pull/2741) libc: unistd/fpathconf: enhance fpathconf
  23437. * [#2742](https://github.com/apache/incubator-nuttx/pull/2742) libc: pthread/cond: enhance pthread_cond_destroy
  23438. * [#2744](https://github.com/apache/incubator-nuttx/pull/2744) sched: task: Fix comments and label in nxtask_assign_pid()
  23439. * [#2765](https://github.com/apache/incubator-nuttx/pull/2765) sched: pthread: Return get_errno instead the hardcode value
  23440. * [#2767](https://github.com/apache/incubator-nuttx/pull/2767) sched/wqueue/notifier: protect the work notifier with critical section
  23441. * [#2797](https://github.com/apache/incubator-nuttx/pull/2797) sched: group: Fix group_kill_children() for SMP
  23442. * [#2849](https://github.com/apache/incubator-nuttx/pull/2849) mqueue: Add _MQ_OPEN, _MQ_CLOSE and _MQ_UNLINK macro
  23443. * [#2855](https://github.com/apache/incubator-nuttx/pull/2855) libs: Remove the duplicated _NX_ and _MQ_ macro
  23444. * [#2865](https://github.com/apache/incubator-nuttx/pull/2865) libc: :machine:risc-v:unifying elf relocation code
  23445. * [#2872](https://github.com/apache/incubator-nuttx/pull/2872) sched: pthread: Fix pthread cmdline issue
  23446. * [#2881](https://github.com/apache/incubator-nuttx/pull/2881) libc: Move stack check stuff from libc/stdlib/ to libc/assert/
  23447. * [#2904](https://github.com/apache/incubator-nuttx/pull/2904) libc: unistd/getcwd: enhance getcwd when buf is NULL
  23448. * [#2906](https://github.com/apache/incubator-nuttx/pull/2906) mm: umm_heap: valloc: support valloc (LEGACY)
  23449. * [#2910](https://github.com/apache/incubator-nuttx/pull/2910) libc/hex2bin: fix handling of segment offsets
  23450. * [#2919](https://github.com/apache/incubator-nuttx/pull/2919) sched: fix fd leak in dlopen
  23451. * [#2938](https://github.com/apache/incubator-nuttx/pull/2938) libs: misc: Remove critical section in lib_filesem.c for SMP
  23452. * [#2942](https://github.com/apache/incubator-nuttx/pull/2492) mtd: progmem: Add up_progmem_read callback guarded by ARCH_HAVE_PROGMEM_READ
  23453. * [#2946](https://github.com/apache/incubator-nuttx/pull/2946) sched: task: Call nxtask_flushstreams() without critical section
  23454. * [#2960](https://github.com/apache/incubator-nuttx/pull/2960) sched: signal: sigdeliver: fix system block when kill signal to idle in SMP
  23455. * [#2980](https://github.com/apache/incubator-nuttx/pull/2980) include: Add iso646.h for alternative spellings
  23456. * [#2981](https://github.com/apache/incubator-nuttx/pull/2981) sched: Remove all group id related stuff
  23457. * [#3033](https://github.com/apache/incubator-nuttx/pull/3033) unistd: Fix getpriority not handling invalid input value
  23458. * [#3080](https://github.com/apache/incubator-nuttx/pull/3080) sched: semaphore: Remove a redundant critical section in nxsem
  23459. * [#3083](https://github.com/apache/incubator-nuttx/pull/3083) libc: stdio/lib_clearerr: Did not clear stream buffer flags in clearerr
  23460. * [#3086](https://github.com/apache/incubator-nuttx/pull/3086) mm: improve the memory manager modularity and reduce the information explosion
  23461. * [#3111](https://github.com/apache/incubator-nuttx/pull/3111) sched: Sporadic scheduler: Fix time calculation and compile errors when assertions are enabled:
  23462. * [#3115](https://github.com/apache/incubator-nuttx/pull/3115) libc: time: localtime: fix race condition
  23463. * [#3121](https://github.com/apache/incubator-nuttx/pull/3121) mm/heap: Move semaphore related declaration to private header
  23464. * [#3123](https://github.com/apache/incubator-nuttx/pull/3123) sched: pthread: Remove a redundant critical section in pthread_condclockwait.c
  23465. * [#3131](https://github.com/apache/incubator-nuttx/pull/3131) mm: Minor fix for heap manager
  23466. * [#3159](https://github.com/apache/incubator-nuttx/pull/3159) mm: mm_heap: Remove critical section in mm_sem.c
  23467. * [#3170](https://github.com/apache/incubator-nuttx/pull/3170) libc: Move getopt() variables into TLS
  23468. * [#3196](https://github.com/apache/incubator-nuttx/pull/3196) sched/signal: Implement SA_NODEFER
  23469. * [#3228](https://github.com/apache/incubator-nuttx/pull/3228) mm/mm_heap: fix compile failed when open DEBUG_MM
  23470. * [#3244](https://github.com/apache/incubator-nuttx/pull/3244) libdsp: Improvements for libdsp and support for fixed16 libdsp implementation
  23471. * [#3247](https://github.com/apache/incubator-nuttx/pull/3247) sched: Move the default Task Stack size to Stack menu
  23472. * [#3251](https://github.com/apache/incubator-nuttx/pull/3251) libc: update pthread_once according to the specification
  23473. * [#3253](https://github.com/apache/incubator-nuttx/pull/3253) libc pthread: Fix pthread_rwlock_init return error
  23474. * [#3268](https://github.com/apache/incubator-nuttx/pull/3268) libdsp/fixed16: add open-loop handler
  23475. * [#3272](https://github.com/apache/incubator-nuttx/pull/3272) libc: Implement getopt_long() and getopt_long_only()
  23476. * [#3280](https://github.com/apache/incubator-nuttx/pull/3280) libc: Correct some getopt() logic
  23477. * [#3289](https://github.com/apache/incubator-nuttx/pull/3289) sched: task: Fix to initialize the task-specific data
  23478. * [#3294](https://github.com/apache/incubator-nuttx/pull/2418) libc: getopt(): Fix Use of Pointer before NULL check
  23479. * [#3299](https://github.com/apache/incubator-nuttx/pull/3299) libc: getopt_common(): Correct handling of unsupported long options.
  23480. * [#3308](https://github.com/apache/incubator-nuttx/pull/3308) libc: getopt_long(): Add support for required argument format
  23481. * [#3445](https://github.com/apache/incubator-nuttx/pull/3445) libc: update stream getoffset to handle write case
  23482. * [#3447](https://github.com/apache/incubator-nuttx/pull/2450) libc: correct zoneinfo genromfs source directory
  23483. ## Major Changes to the Build System
  23484. ### New Features
  23485. * [#1834](https://github.com/apache/incubator-nuttx/pull/1834) License/authorship handling scripts
  23486. * [#2107](https://github.com/apache/incubator-nuttx/pull/2107) build: Makefile should reference CONFIG_HOST_xxx
  23487. * [#2392](https://github.com/apache/incubator-nuttx/pull/2392) configure.sh: support custom board build config with absolute path
  23488. * [#2824](https://github.com/apache/incubator-nuttx/pull/2824) build/esp32: Create Flash size configuration and a new DOWNLOAD make target
  23489. * [#3317](https://github.com/apache/incubator-nuttx/pull/3317) tols: Update python scripts to py3 and lint all of them againt Black
  23490. ### Bug Fixes
  23491. * [#1890](https://github.com/apache/incubator-nuttx/pull/1890) make/expression: improving up asm/C/C++ compile times(make with multi-jobs only)
  23492. * [#1940](https://github.com/apache/incubator-nuttx/pull/1940) cygwin build - path issue fix for Renesas arch
  23493. * [#2032](https://github.com/apache/incubator-nuttx/pull/2032) build: Change .external_dummy to dummy
  23494. * [#2101](https://github.com/apache/incubator-nuttx/pull/2101) build: Add $(OBJS) and $(BIN) to CLEAN macro to clean objects also in subdirectories
  23495. * [#2192](https://github.com/apache/incubator-nuttx/pull/2192) build: Move __NuttX__ definition to tools/[Config.mk](http://Config.mk)
  23496. * [#2221](https://github.com/apache/incubator-nuttx/pull/2221) tools: Avoid messing the final binary nuttx.(bin,hex,...) compilation msg
  23497. * [#2335](https://github.com/apache/incubator-nuttx/pull/2335) build: Parallelize depend file generation
  23498. * [#2380](https://github.com/apache/incubator-nuttx/pull/2380) tools: Fix nuttx-gdbinit for armv7-m with FPU
  23499. * [#2404](https://github.com/apache/incubator-nuttx/pull/2404) Update checkrelease script to check [readme.md](http://readme.md) instead of .txt
  23500. * [#2411](https://github.com/apache/incubator-nuttx/pull/2411) tools: Add 'handle SIGUSR1' to nuttx-gdbinit for the NuttX sim SMP
  23501. * [#2432](https://github.com/apache/incubator-nuttx/pull/2432) build system: add missing --obj-path to MKDEP
  23502. * [#2557](https://github.com/apache/incubator-nuttx/pull/2557) tools/version.sh: Fix the version retrieved from GIT
  23503. * [#2561](https://github.com/apache/incubator-nuttx/pull/2561) tools: Fix version.sh
  23504. * [#2642](https://github.com/apache/incubator-nuttx/pull/2642) tools/version.sh: Fix the version retrieved from git-tag
  23505. * [#2673](https://github.com/apache/incubator-nuttx/pull/2673) tools: esp32: add a gdb script to show backtrace
  23506. * [#2679](https://github.com/apache/incubator-nuttx/pull/2679) tools: esp32: btdecode.sh: Script to decode the Xtensa backtrace.
  23507. * [#2701](https://github.com/apache/incubator-nuttx/pull/2701) tools: gdbinit: add support for reporting total and used stack size
  23508. * [#2729](https://github.com/apache/incubator-nuttx/pull/2729) tools: esp32: backtrace.gdbscript: Add comments
  23509. * [#2803](https://github.com/apache/incubator-nuttx/pull/2803) tools: esp32: Remove some duplicated output
  23510. * [#2882](https://github.com/apache/incubator-nuttx/pull/2882) tools: esp32: refine the QEMU image generation.
  23511. * [#2895](https://github.com/apache/incubator-nuttx/pull/2895) tools: esp32: fix warnings from ShellCheck
  23512. * [#2930](https://github.com/apache/incubator-nuttx/pull/2930) tools: version.sh: If the version is not available, use 0.0.0
  23513. * [#2982](https://github.com/apache/incubator-nuttx/pull/2982) tools: nxstyle: Verify relative path in the file header
  23514. * [#3004](https://github.com/apache/incubator-nuttx/pull/3004) tools: esp32XX: Delete the Makefile that downloads IDF.
  23515. * [#3012](https://github.com/apache/incubator-nuttx/pull/3012) tools: esp32xx: Few fixes/improvements to the post build scripts
  23516. * [#3017](https://github.com/apache/incubator-nuttx/pull/3017) tools: esp32: [Config.mk](http://Config.mk): Revert part of "Don't abort make when QEMU script fails"
  23517. * [#3094](https://github.com/apache/incubator-nuttx/pull/3094) tools: version.sh: Fix PATCH including extra version
  23518. ## Architectural Support
  23519. ### New Architectures
  23520. * [#1995](https://github.com/apache/incubator-nuttx/pull/1995) arch: Add custom arch chip build support
  23521. * [#2161](https://github.com/apache/incubator-nuttx/pull/2161) Added Support for more TI Tiva Microcontrollers: TM4C123GH6PZ, TM4C123GH6PGE, TM4C129ENCPDT, and TM4C129ENCZAD.
  23522. * [#2566](https://github.com/apache/incubator-nuttx/pull/2566) arch/risc-v: Add BL602 support
  23523. * [#2974](https://github.com/apache/incubator-nuttx/pull/2974) STM32L5 Architecture Support
  23524. * [#3001](https://github.com/apache/incubator-nuttx/pull/3001) arch:riscv64:basic porting for C906
  23525. * [#3023](https://github.com/apache/incubator-nuttx/pull/3023) Remove nr5m100 and gap8 support
  23526. ### Architectures with significant improvements
  23527. #### ARM
  23528. * [#2042](https://github.com/apache/incubator-nuttx/pull/2042) Fix interrupt stack handlings for ARM SMP
  23529. * [#2061](https://github.com/apache/incubator-nuttx/pull/2061) Refactor arm interrupt stack related code
  23530. * [#2309](https://github.com/apache/incubator-nuttx/pull/2309) Fix armv7-a L2CC and apply the code to the sabre-6quad board
  23531. * [#2876](https://github.com/apache/incubator-nuttx/pull/2876) arm: ARMv6-M vector table offset register support
  23532. * [#2932](https://github.com/apache/incubator-nuttx/pull/2932) arch: armv6-m: Apply armv7-m signal handling logic
  23533. * [#2944](https://github.com/apache/incubator-nuttx/pull/2944) armv8-m: Fix EXC_RETURN for non-secure usage
  23534. * [#2990](https://github.com/apache/incubator-nuttx/pull/2990) arch/armv7-m: Adds dwt helper functions for controlling watchpoints i…
  23535. #### BL602
  23536. * [#2614](https://github.com/apache/incubator-nuttx/pull/2614) bl602: Update register maps and lower half drivers
  23537. * [#2633](https://github.com/apache/incubator-nuttx/pull/2633) BL602: Add support for system reset modes
  23538. * [#2655](https://github.com/apache/incubator-nuttx/pull/2655) arch/risc-v/bl602 : add pwm onshot watchdog driver
  23539. * [#2659](https://github.com/apache/incubator-nuttx/pull/2659) arch/risc-v/bl602 : add spiflash(hardware sf controller)
  23540. * [#2669](https://github.com/apache/incubator-nuttx/pull/2669) risc-v/bl602 : add gpioirq、 i2c(master) driver.
  23541. * [#2804](https://github.com/apache/incubator-nuttx/pull/2804) arch/risc-v/bl602: spi_master support.
  23542. * [#2809](https://github.com/apache/incubator-nuttx/pull/2809) arch:risc-v:bl602: enable FPU for this target.
  23543. * [#2836](https://github.com/apache/incubator-nuttx/pull/2836) :risc-v:bl602:add support for elf file apps
  23544. * [#2991](https://github.com/apache/incubator-nuttx/pull/2991) risc-v/bl602: Add wifi and ble support
  23545. #### CXD56XX
  23546. * [#2750](https://github.com/apache/incubator-nuttx/pull/2750) arch: cxd56xx: Add i2c bitbang lower driver
  23547. * [#2830](https://github.com/apache/incubator-nuttx/pull/2830) Driver-specific spinlock for cxd56_serial.c
  23548. #### ESP32
  23549. * [#1893](https://github.com/apache/incubator-nuttx/pull/1893) Add ESP32 WiFi adapter and driver
  23550. * [#1942](https://github.com/apache/incubator-nuttx/pull/1942) Implement BASIC reset logic
  23551. * [#1945](https://github.com/apache/incubator-nuttx/pull/1945) Added Timer Support
  23552. * [#1958](https://github.com/apache/incubator-nuttx/pull/1958) When PSRAM is enabled allow drivers and tasks to allocate memory from a separate internal memory
  23553. * [#1978](https://github.com/apache/incubator-nuttx/pull/1978) Add power management of deep-sleep
  23554. * [#2074](https://github.com/apache/incubator-nuttx/pull/2074) Add real-time timer support for WiFi
  23555. * [#2138](https://github.com/apache/incubator-nuttx/pull/2138) Add Partition and OTA device
  23556. * [#2199](https://github.com/apache/incubator-nuttx/pull/2199) SPI Flash driver uses global sem for all MTD
  23557. * [#2224](https://github.com/apache/incubator-nuttx/pull/2224) Add SPI Flash hardware encryption I/O support
  23558. * [#2234](https://github.com/apache/incubator-nuttx/pull/2234) Include cache workaround to PSRAM
  23559. * [#2242](https://github.com/apache/incubator-nuttx/pull/2242) Watchdog support (MWDTs)
  23560. * [#2269](https://github.com/apache/incubator-nuttx/pull/2269) Add high memory support to work with PSRAM
  23561. * [#2294](https://github.com/apache/incubator-nuttx/pull/2294) Refactor ESP32 Wi-Fi driver
  23562. * [#2296](https://github.com/apache/incubator-nuttx/pull/2296) added support to automonitor by capture
  23563. * [#2474](https://github.com/apache/incubator-nuttx/pull/2474) Optimize IRAM usage based on esp-idf
  23564. * [#2514](https://github.com/apache/incubator-nuttx/pull/2514) allows the rtc wdt to be configured in bootloader and used later
  23565. * [#2515](https://github.com/apache/incubator-nuttx/pull/2515) Added support for RTC WDT
  23566. * [#2550](https://github.com/apache/incubator-nuttx/pull/2550) enables started flag if the wdt was turned on in bootloader
  23567. * [#2613](https://github.com/apache/incubator-nuttx/pull/2613) Added driver api to reload counter instantly
  23568. * [#2716](https://github.com/apache/incubator-nuttx/pull/2716) Add AES hardware accelerator driver
  23569. * [#2721](https://github.com/apache/incubator-nuttx/pull/2613) Add efuse driver
  23570. * [#2831](https://github.com/apache/incubator-nuttx/pull/2831) Writeback PSRAM data when mapping SPI Flash address to ESP32's address bus
  23571. * [#2840](https://github.com/apache/incubator-nuttx/pull/2840) Add esp32_gpio_matrix_in/out to replace ROM functions
  23572. * [#2858](https://github.com/apache/incubator-nuttx/pull/2858) Fix a memory leak when discarding a large packet.
  23573. * [#2939](https://github.com/apache/incubator-nuttx/pull/2939) Refactor ESP32 WiFi driver to support station and softAP coexistence
  23574. * [#2947](https://github.com/apache/incubator-nuttx/pull/2947) esp32_ummap: write back spiram cache before calling Cache_Flush
  23575. * [#2965](https://github.com/apache/incubator-nuttx/pull/2965) Add more flash options to esptool
  23576. * [#2979](https://github.com/apache/incubator-nuttx/pull/2979) Add support for I2C tracing
  23577. * [#2983](https://github.com/apache/incubator-nuttx/pull/2983) Extract memory layout definitions to a separate header
  23578. * [#2999](https://github.com/apache/incubator-nuttx/pull/2999) Add WPA2 Enterprise and WPA3 support
  23579. * [#3003](https://github.com/apache/incubator-nuttx/pull/3003) Re-organise the different heap regions
  23580. * [#3048](https://github.com/apache/incubator-nuttx/pull/3048) timer driver refactor
  23581. * [#3233](https://github.com/apache/incubator-nuttx/pull/3233) Bugfixes and Improvements for SPI DMA Exchange function
  23582. #### ESP32C3
  23583. * [#2870](https://github.com/apache/incubator-nuttx/pull/2870) Support for ESP32-C3 GPIO Driver
  23584. * [#2875](https://github.com/apache/incubator-nuttx/pull/2875) risc-v/esp32c3: Add support for Main System Watchdog Timer
  23585. * [#2901](https://github.com/apache/incubator-nuttx/pull/2901) esp32c3: Add system reset.
  23586. * [#2965](https://github.com/apache/incubator-nuttx/pull/2965) ESP32XX: Add more flash options to esptool
  23587. * [#3006](https://github.com/apache/incubator-nuttx/pull/3006) esp32-c3: Adds timer driver
  23588. * [#3007](https://github.com/apache/incubator-nuttx/pull/3007) risc-v/esp32-c3: complements serial driver
  23589. * [#3028](https://github.com/apache/incubator-nuttx/pull/3028) ESP32-C3: Add I2C drive
  23590. * [#3029](https://github.com/apache/incubator-nuttx/pull/3029) esp32-c3: Adds termios support
  23591. * [#3040](https://github.com/apache/incubator-nuttx/pull/3040) riscv/esp32c3: Add ESP32-C3 WLAN netcard driver
  23592. * [#3126](https://github.com/apache/incubator-nuttx/pull/3126) risc-v/esp32-c3: Add support to SPI Flash
  23593. * [#3160](https://github.com/apache/incubator-nuttx/pull/3160) riscv/esp32c3: Add standard C atomic function
  23594. #### IMX6
  23595. * [#2595](https://github.com/apache/incubator-nuttx/pull/2595) Add imx_enet driver
  23596. #### IMXRT
  23597. * [#2212](https://github.com/apache/incubator-nuttx/pull/2212) imxrt: adds support for WDOG1
  23598. * [#2354](https://github.com/apache/incubator-nuttx/pull/2354) imxrt: Added support for DP83825I PHY
  23599. * [#2461](https://github.com/apache/incubator-nuttx/pull/2461) imxrt: Added NETDEV_LATEINIT option for Ethernet
  23600. * [#2471](https://github.com/apache/incubator-nuttx/pull/2471) imxrt: Support serial single-wire mode and fix parity settings
  23601. * [#2929](https://github.com/apache/incubator-nuttx/pull/2929) imxrt: changes to FlexCAN driver support
  23602. #### NRF52
  23603. * [#2148](https://github.com/apache/incubator-nuttx/pull/2148) nrf52_wdt: split into low-level API and watchdog driver lower-half
  23604. * [#2149](https://github.com/apache/incubator-nuttx/pull/2149) nrf52832: add errata mitigation code for various RADIO issues
  23605. * [#2182](https://github.com/apache/incubator-nuttx/pull/2182) nrf52: support configuring no console/serial
  23606. * [#2189](https://github.com/apache/incubator-nuttx/pull/2189) nrf52_spi: support unconnected MISO/MOSI pins
  23607. * [#2207](https://github.com/apache/incubator-nuttx/pull/2207) nrf52: add POWER register definitions; support enabling DC/DC regulator
  23608. * [#2270](https://github.com/apache/incubator-nuttx/pull/2270) nRF52 SPI improvements
  23609. * [#2440](https://github.com/apache/incubator-nuttx/pull/2440) nrf52 ADC: minor fixes
  23610. * [#2674](https://github.com/apache/incubator-nuttx/pull/2674) nrf52_i2c: add support for I2C_M_NOSTOP and I2C_M_NOSTART flags
  23611. * [#2705](https://github.com/apache/incubator-nuttx/pull/2705) nrf52: Add a static copy buffer for i2c NOSTART transfers
  23612. * [#2712](https://github.com/apache/incubator-nuttx/pull/2712) nRF52: support stack coloration
  23613. * [#2717](https://github.com/apache/incubator-nuttx/pull/2717) I2C bitbang driver (and nRF52 implementation)
  23614. * [#2735](https://github.com/apache/incubator-nuttx/pull/2735) nRF52: add support for building SoftDevice BLE controller
  23615. * [#2756](https://github.com/apache/incubator-nuttx/pull/2756) nrf52: add stackcheck support
  23616. #### RP2040
  23617. * [#2916](https://github.com/apache/incubator-nuttx/pull/2916) rp2040: Raspberry Pi Pico SMP support
  23618. * [#2927](https://github.com/apache/incubator-nuttx/pull/2927) rp2040: Fix LDFLAGS for boot stage2
  23619. * [#2952](https://github.com/apache/incubator-nuttx/pull/2952) rp2040: Add I2C driver support
  23620. * [#2986](https://github.com/apache/incubator-nuttx/pull/2986) rp2040: Add SPI driver support
  23621. * [#3002](https://github.com/apache/incubator-nuttx/pull/3002) rp2040: SPI driver DMA transfer support
  23622. * [#3057](https://github.com/apache/incubator-nuttx/pull/3057) rp2040: Fix SPI halfword DMA transfer
  23623. #### S32K1XX
  23624. * [#2900](https://github.com/apache/incubator-nuttx/pull/2900) s32k1xx: Support ramfunc
  23625. #### STM32
  23626. * [#2010](https://github.com/apache/incubator-nuttx/pull/2010) arch/arm/src/stm32h7/stm32_spi.c: fixed build issue when SPI is configured
  23627. * [#2095](https://github.com/apache/incubator-nuttx/pull/2095) arch: stm32: fix otghs logic to support interface requests
  23628. * [#2177](https://github.com/apache/incubator-nuttx/pull/2177) FLASH waiting cycles are configured based on HCLK.
  23629. * [#2180](https://github.com/apache/incubator-nuttx/pull/2180) stm32 - Add register mappings for STM32G474 VREFBUF
  23630. * [#2194](https://github.com/apache/incubator-nuttx/pull/2194) stm32 - Add register mappings for STM32Gxxxxx-family DAC
  23631. * [#2273](https://github.com/apache/incubator-nuttx/pull/2273) stm32/stm32_spi: Add SPI register definitions for STM32G47xxx
  23632. * [#2288](https://github.com/apache/incubator-nuttx/pull/2288) stm32: Add DMAMUX register mappings and request IDs
  23633. * [#2325](https://github.com/apache/incubator-nuttx/pull/2325) arch/arm/src/stm32/stm32_serial.c: for flowcontrol use common idiom for enabling/disabling RX interrupts
  23634. * [#2473](https://github.com/apache/incubator-nuttx/pull/2473) STM32 - Add ADC register definitions for STM32G4 family
  23635. * [#2477](https://github.com/apache/incubator-nuttx/pull/2477) STM32 FLASH latency is calculated based on Vin
  23636. * [#2985](https://github.com/apache/incubator-nuttx/pull/2985) stm32 Ethernet hardening
  23637. #### STM32F7
  23638. * [#2209](https://github.com/apache/incubator-nuttx/pull/2209) stm32f7/stm32_serial.c: fix console re-initialisation if DMA enabled
  23639. * [#3489](https://github.com/apache/incubator-nuttx/pull/3489) stm32f7: Freeze tickless timer during debug halt.
  23640. #### STM32H7
  23641. * [#2880](https://github.com/apache/incubator-nuttx/pull/2880) stm32h7: add definitions for DAC
  23642. * [#2955](https://github.com/apache/incubator-nuttx/pull/2955) stm32h7:Add DBGMCU missing from master
  23643. * [#2994](https://github.com/apache/incubator-nuttx/pull/2994) stm32h7: Allow custom clock configuration to use stdclockconfig
  23644. * [#3143](https://github.com/apache/incubator-nuttx/pull/3143) stm32h7: DMA BDMA does not auto disabled on completion
  23645. * [#3207](https://github.com/apache/incubator-nuttx/pull/3207) usbhost: Add usb host tracing strings to stm32h7
  23646. * [#3458](https://github.com/apache/incubator-nuttx/pull/3458) stm32h7: Adds stm32_dbgmcu.h to match stm32f7 port
  23647. * [#3461](https://github.com/apache/incubator-nuttx/pull/3461) stm32h7: Expose flash lock, unlock, and write protect functions to boards
  23648. #### STM32L4
  23649. * [#2068](https://github.com/apache/incubator-nuttx/pull/2068) STM32L4: Improvements on ADC driver
  23650. * [#2178](https://github.com/apache/incubator-nuttx/pull/2178) STM32L4 ADC driver: extenal event configuration
  23651. * [#2220](https://github.com/apache/incubator-nuttx/pull/2220) STM32L4 TIMER: Add some helper functions
  23652. * [#2232](https://github.com/apache/incubator-nuttx/pull/2232) STM32L4 ADC: Add injected channel support.
  23653. #### STM32L5
  23654. * [#3090](https://github.com/apache/incubator-nuttx/pull/3090) stm32l5: Optional LSE xtal drive strength ramp-up
  23655. #### Renesas RX65N
  23656. * [#2469](https://github.com/apache/incubator-nuttx/pull/2469) USB Host Driver Support
  23657. #### Risc-V
  23658. * [#2470](https://github.com/apache/incubator-nuttx/pull/2470) risc-v: Introduce basic setjmp support
  23659. * [#2918](https://github.com/apache/incubator-nuttx/pull/2918) risc-v: up_sigdeliver missing fpu contexts.
  23660. #### RV64
  23661. * [#2928](https://github.com/apache/incubator-nuttx/pull/2928) rv64:add API up_copyfullstate for later FPU support
  23662. * [#3018](https://github.com/apache/incubator-nuttx/pull/3018) rv64:c906:enable DP FPU support
  23663. * [#3073](https://github.com/apache/incubator-nuttx/pull/3073) rv64:c906:demo protect build without the PMP
  23664. * [#3087](https://github.com/apache/incubator-nuttx/pull/3087) rv64: keep the stack to be 16bytes aligned
  23665. * [#3098](https://github.com/apache/incubator-nuttx/pull/3098) rv64:fix 64bit data type and instruction for FPU handlers
  23666. * [#3203](https://github.com/apache/incubator-nuttx/pull/3203) rv64:c906:add risc-v PMP and change mem map for protect build.
  23667. #### Xtensa
  23668. * [#1933](https://github.com/apache/incubator-nuttx/pull/1933) Add support to PSRAM using SPIRAM interface
  23669. * [#2014](https://github.com/apache/incubator-nuttx/pull/2014) Add the optional interrupt stack to the Xtensa architecture
  23670. * [#2352](https://github.com/apache/incubator-nuttx/pull/2352) Print the bakctrace on assertions
  23671. * [#2504](https://github.com/apache/incubator-nuttx/pull/2504) Get full backtrace from interrupts.
  23672. * [#3015](https://github.com/apache/incubator-nuttx/pull/3015) hostfs: Make host_stat populate st_size
  23673. ### Minor changes
  23674. * [#1904](https://github.com/apache/incubator-nuttx/pull/1904) xtensa: ESP32: Fixed the type of cpuint variables in esp32_emac.c
  23675. * [#1943](https://github.com/apache/incubator-nuttx/pull/1943) xtensa: ESP32: Fix and clean some corners of GPIOs configuration.
  23676. * [#1947](https://github.com/apache/incubator-nuttx/pull/1947) xtensa: esp32: Fix crash on startup
  23677. * [#1948](https://github.com/apache/incubator-nuttx/pull/1948) xtensa: ESP32: Fixes the GPIO's function mask test
  23678. * [#1960](https://github.com/apache/incubator-nuttx/pull/1960) xtensa: xtensa.h: Include sys/types.h needed if STACK_COLORATON is enabled
  23679. * [#1968](https://github.com/apache/incubator-nuttx/pull/1968) arm: kinetis: freedom-k64f: Declare missing NUM_BUTTONS
  23680. * [#1990](https://github.com/apache/incubator-nuttx/pull/1990) arm: kinetis: flexcan fixed compile error
  23681. * [#2120](https://github.com/apache/incubator-nuttx/pull/2120) arm: stm32h7: Fix missing 'ret' reported by Frank-Christian Kruegel
  23682. * [#2159](https://github.com/apache/incubator-nuttx/pull/2159) xtensa: esp32: Fix SPI master DMA RX buffer memcpy size erro
  23683. * [#2160](https://github.com/apache/incubator-nuttx/pull/2160) arm: stm32l4/stm32l4_adc.c: fix copy-paste mistake with CONFI
  23684. * [#2210](https://github.com/apache/incubator-nuttx/pull/2210) arm: stm32/stm32_adc.c: do not allow negative ref count
  23685. * [#2214](https://github.com/apache/incubator-nuttx/pull/2214) xtensa: esp32: Fix rt-timer issues
  23686. * [#2233](https://github.com/apache/incubator-nuttx/pull/2233) xtensa: esp32: Fix the memory regions with regards to the range used by the ROM
  23687. * [#2240](https://github.com/apache/incubator-nuttx/pull/2240) arm: nrf52 GPIO/GPIOTE: better expose pin interrupt capability
  23688. * [#2284](https://github.com/apache/incubator-nuttx/pull/2284) arm: stm32h7/stm32_dmamux.h: Fix errors in bitfield definitions
  23689. * [#2286](https://github.com/apache/incubator-nuttx/pull/2286) arm: stm32f0l0g0/stm32_dmamux.h: Fix errors in bitfield definitions
  23690. * [#2287](https://github.com/apache/incubator-nuttx/pull/2287) arm: stm32h7/stm32_dmamux.h: Add missing CCR SPOL defines
  23691. * [#2300](https://github.com/apache/incubator-nuttx/pull/2300) arm: sam34: compile error on SAM34 TWI
  23692. * [#2316](https://github.com/apache/incubator-nuttx/pull/2844) risc-v: minor fix
  23693. * [#2330](https://github.com/apache/incubator-nuttx/pull/2330) xtensa: esp32/esp32_tim.c: Fix build when debug is enabled.
  23694. * [#2336](https://github.com/apache/incubator-nuttx/pull/2336) arm: stm32l4: correct macros STM32L4_CAN_MCR_OFFSET, etc... to match defines
  23695. * [#2344](https://github.com/apache/incubator-nuttx/pull/2344) xtensa: esp32/esp32_gpio.c: Fix GPIO IRQ assert condition
  23696. * [#2351](https://github.com/apache/incubator-nuttx/pull/2351) xtensa: esp32: Fix issues of force-sleep
  23697. * [#2355](https://github.com/apache/incubator-nuttx/pull/2355) xtensa: esp32_himem: Fix issue that was preventing to map all free memory
  23698. * [#2361](https://github.com/apache/incubator-nuttx/pull/2361) arm: nrf52 GPIO: minor fixes
  23699. * [#2364](https://github.com/apache/incubator-nuttx/pull/2364) arm: stm32h7: Fix bug where more than CONFIG_MM_REGIONS would be allocated
  23700. * [#2372](https://github.com/apache/incubator-nuttx/pull/2372) rv64: Fix SCN/PRI.PTR definitions
  23701. * [#2373](https://github.com/apache/incubator-nuttx/pull/2373) risc-v: Don't use non existent "saved_status"
  23702. * [#2423](https://github.com/apache/incubator-nuttx/pull/2423) xetnsa: Couple of Xtensa fixes
  23703. * [#2448](https://github.com/apache/incubator-nuttx/pull/2448) arm: stm32/stm32h7: fix the configuration of PWM outputs when subsequent channels are not enabled
  23704. * [#2454](https://github.com/apache/incubator-nuttx/pull/2454) xtensa: esp32/esp32-core: Fix #ifdef warning and update MM_SECTIONS
  23705. * [#2483](https://github.com/apache/incubator-nuttx/pull/2483) arm: stm32: convert all STM32G47X specific code to generic STM32G4 series code
  23706. * [#2519](https://github.com/apache/incubator-nuttx/pull/2519) arm: imxrt: replace clock_systimespec with clock_systime_timespec
  23707. * [#2536](https://github.com/apache/incubator-nuttx/pull/2536) xtensa: esp32: fixes enable int function and gets apb clk frequency through function
  23708. * [#2546](https://github.com/apache/incubator-nuttx/pull/2546) arm: imxrt: imxrt_usdhc.c: fixed no DMA build error
  23709. * [#2551](https://github.com/apache/incubator-nuttx/pull/2551) arm: stm32h7x3xx_memorymap.h invalid address map for fdcan
  23710. * [#2554](https://github.com/apache/incubator-nuttx/pull/2554) xtensa: Esp32 wifi fixes
  23711. * [#2555](https://github.com/apache/incubator-nuttx/pull/2555) xtensa: esp32/esp32_spiflash.c: Writeback PSRAM data before invalidating the cache
  23712. * [#2559](https://github.com/apache/incubator-nuttx/pull/2559) risc-v: Remove duplicated declaration for up_irq_save and up_irq_restore
  23713. * [#2560](https://github.com/apache/incubator-nuttx/pull/2560) risc-v: Move csr.h to common place
  23714. * [#2568](https://github.com/apache/incubator-nuttx/pull/2568) risc-v: Move CSR register bit definition to csr.h
  23715. * [#2569](https://github.com/apache/incubator-nuttx/pull/2569) risc-v: Reuse the common up_schedule_sigaction implementation
  23716. * [#2570](https://github.com/apache/incubator-nuttx/pull/2570) arm: stm32g4: Fix incorrect FLASH wait states
  23717. * [#2573](https://github.com/apache/incubator-nuttx/pull/2573) xtensa: esp32: Bump NAME_MAX where CONFIG_ESP32_WIFI_SAVE_PARAM=y
  23718. * [#2584](https://github.com/apache/incubator-nuttx/pull/2584) xtensa: esp32_wifi_adapter.c: file mode for open doesn't make sense for O_RDONLY
  23719. * [#2589](https://github.com/apache/incubator-nuttx/pull/2589) risc-v: fix redefined CSR_INSTRET
  23720. * [#2612](https://github.com/apache/incubator-nuttx/pull/2612) arm: kinetis: S32K/Kinetis: Fix RTC settime prescaler
  23721. * [#2612](https://github.com/apache/incubator-nuttx/pull/2612) arm: S32K/Kinetis: Fix RTC settime prescaler
  23722. * [#2647](https://github.com/apache/incubator-nuttx/pull/2647) xtensa: esp32: Fix ESP32 serial UART tx ready check error
  23723. * [#2666](https://github.com/apache/incubator-nuttx/pull/2666) xtensa: esp32: Fix ESP32 SPI3 slave ops data error
  23724. * [#2676](https://github.com/apache/incubator-nuttx/pull/2676) arm: stm32412: Fixes pinmap CAN1
  23725. * [#2689](https://github.com/apache/incubator-nuttx/pull/2689) arm: tiva: Fix lm3s_ethernet.c with DEBUGASSERT
  23726. * [#2700](https://github.com/apache/incubator-nuttx/pull/2700) arm: nRF52 various minor fixes
  23727. * [#2708](https://github.com/apache/incubator-nuttx/pull/2708) xtensa: esp32: Fix ESP32 I2C driver issues
  23728. * [#2709](https://github.com/apache/incubator-nuttx/pull/2709) xtensa: esp32: Fix ESP32 SPI driver issues
  23729. * [#2722](https://github.com/apache/incubator-nuttx/pull/2722) arm: stm32f412:Replaced Kludged pinmap with one for SoC.
  23730. * [#2725](https://github.com/apache/incubator-nuttx/pull/2725) arm: nRF52: FIX wrong bitmask for DRIVE setting
  23731. * [#2727](https://github.com/apache/incubator-nuttx/pull/2727) xtensa: esp32_free_cpuint: Fix an assertion
  23732. * [#2728](https://github.com/apache/incubator-nuttx/pull/2728) xtensa: esp32_dma_init: Fix a dubious assertion
  23733. * [#2731](https://github.com/apache/incubator-nuttx/pull/2731) xtensa: esp_allocateheap.c: Correct ROM memory boundaries in SMP case
  23734. * [#2752](https://github.com/apache/incubator-nuttx/pull/2752) xtensa: esp32/esp32_spiflash.c: Fix the value of the page start address when invalidating the cache
  23735. * [#2755](https://github.com/apache/incubator-nuttx/pull/2755) xtensa: esp32: Fix compile errors with CONFIG_SMP=y
  23736. * [#2757](https://github.com/apache/incubator-nuttx/pull/2757) xtensa: esp32/esp32_wifi_adapter.c: Print debug output only when DEBUG_WIRLESS* are enabled
  23737. * [#2758](https://github.com/apache/incubator-nuttx/pull/2758) xtensa: Kconfig: Reduce the default value of the internal memory
  23738. * [#2759](https://github.com/apache/incubator-nuttx/pull/2759) xtensa: esp32/psram: Fix missing configs
  23739. * [#2761](https://github.com/apache/incubator-nuttx/pull/2761) risc-v: Remove unused and undefined file section "Public Variables"
  23740. * [#2763](https://github.com/apache/incubator-nuttx/pull/2763) arm: imx6: Apply the latest imxrt/imxrt_enet.c to imx6/imx_enet.c
  23741. * [#2771](https://github.com/apache/incubator-nuttx/pull/2771) arm: imx6: Update imx6 enet
  23742. * [#2772](https://github.com/apache/incubator-nuttx/pull/2771) arm: imx6 enet with TCP_WRITE_BUFFERS
  23743. * [#2777](https://github.com/apache/incubator-nuttx/pull/2777) arm: imx6: Fix a compile error with CONFIG_DEBUG_ASSERTIONS=y
  23744. * [#2779](https://github.com/apache/incubator-nuttx/pull/2779) arm: samv7/sam_mcan.c: fix some mismatches caused by renaming
  23745. * [#2782](https://github.com/apache/incubator-nuttx/pull/2782) arm: nRF52 fixes
  23746. * [#2788](https://github.com/apache/incubator-nuttx/pull/2788) risc-v: Don't declare riscv_addregion if CONFIG_MM_REGIONS is < 1.
  23747. * [#2791](https://github.com/apache/incubator-nuttx/pull/2791) arm: stm32f7/stm32_qspi.c: Fix warning of format strings
  23748. * [#2792](https://github.com/apache/incubator-nuttx/pull/2792) arm: [imxrt] Fix FlexCAN tx dropping frames
  23749. * [#2793](https://github.com/apache/incubator-nuttx/pull/2316) risc-v: Remove nx_start prototype from riscv_internal.h
  23750. * [#2795](https://github.com/apache/incubator-nuttx/pull/2795) arm: stm32f412:Corrected Pin count
  23751. * [#2796](https://github.com/apache/incubator-nuttx/pull/2796) xtensa: esp32: Fix cache issue detected by DEBUG_ASSERTION
  23752. * [#2799](https://github.com/apache/incubator-nuttx/pull/2799) RV64: handle relocation type R_RISCV_CALL_PLT in PIC build.
  23753. * [#2805](https://github.com/apache/incubator-nuttx/pull/2805) arm: imxrt1060 iperf
  23754. * [#2812](https://github.com/apache/incubator-nuttx/pull/2812) xtensa: esp32_spiflash.c: Fix preprocessor condition
  23755. * [#2813](https://github.com/apache/incubator-nuttx/pull/2813) xtensa: esp32: Add extern modifier to ROM function declaration
  23756. * [#2815](https://github.com/apache/incubator-nuttx/pull/2815) riscv: Fix files names in headers that were still using the old 'up_' prefix
  23757. * [#2832](https://github.com/apache/incubator-nuttx/pull/2832) xtensa: esp32: Fix the issue of WiFi internal malloc from PSRAM
  23758. * [#2844](https://github.com/apache/incubator-nuttx/pull/2844) risc-v: LiteX: Make Arty-A7 example work
  23759. * [#2867](https://github.com/apache/incubator-nuttx/pull/2867) arm: lpc17xx_40xx/lpc17_40_i2c.c: Propagate I2C I/O errors
  23760. * [#2886](https://github.com/apache/incubator-nuttx/pull/2886) arm: pic32mz: Chip does not have ANSEL register on port K
  23761. * [#2889](https://github.com/apache/incubator-nuttx/pull/2889) arm: pic32mx7 cannot perform context switch
  23762. * [#2892](https://github.com/apache/incubator-nuttx/pull/2892) risc-v: esp32-c3: Don't reserve any vectors for any special use.
  23763. * [#2893](https://github.com/apache/incubator-nuttx/pull/2893) risc-v: esp32-c3: Build serial driver only when selected
  23764. * [#2903](https://github.com/apache/incubator-nuttx/pull/2903) xtensa: esp32: xtensa_user: Implement a few more instructions
  23765. * [#2912](https://github.com/apache/incubator-nuttx/pull/2912) risc-v: esp32-c3: Fix CPU interrupts freeing on WDT driver
  23766. * [#2917](https://github.com/apache/incubator-nuttx/pull/2917) arm: Add 'select ARM_HAVE_WFE_SEV' to ARCH_CHIP_RP2040
  23767. * [#2920](https://github.com/apache/incubator-nuttx/pull/2920) risc-v: esp32-c3: Configure clock and call board initialize at startup
  23768. * [#2923](https://github.com/apache/incubator-nuttx/pull/2923) ez80: fix several bugs in emac driver
  23769. * [#2931](https://github.com/apache/incubator-nuttx/pull/2931) arm: kinetis: [FlexCAN] Fix TX drop #2792 and correctly set CAN timings to non-zero
  23770. * [#2931](https://github.com/apache/incubator-nuttx/pull/2931) arm: s32k1xx: [FlexCAN] Fix TX drop #2792 and correctly set CAN timings to non-zero
  23771. * [#2943](https://github.com/apache/incubator-nuttx/pull/2943) arm: stm32x7:lse ensure it is started
  23772. * [#2951](https://github.com/apache/incubator-nuttx/pull/2951) arm: stm32_wwdg debug log formatting
  23773. * [#2967](https://github.com/apache/incubator-nuttx/pull/2967) arm: STM32F7 lse static values directly from Kconfig
  23774. * [#2968](https://github.com/apache/incubator-nuttx/pull/2968) xtensa: esp32: Change I2C SCL default pin to a valid one
  23775. * [#2972](https://github.com/apache/incubator-nuttx/pull/2972) risc-v: esp32-c3: Fix GPIO pin function configuration
  23776. * [#2976](https://github.com/apache/incubator-nuttx/pull/2976) xtensa: ESP32: Fix I2C Kconfig bringing the character driver as a dependency
  23777. * [#2977](https://github.com/apache/incubator-nuttx/pull/2977) xtensa: ESP32: Fix GPIO pin function configuration
  23778. * [#2996](https://github.com/apache/incubator-nuttx/pull/2996) arm: stm32h747xi: Fix missing IO_CONFIG setting
  23779. * [#3008](https://github.com/apache/incubator-nuttx/pull/3008) risc-v: esp32-c3: free cpu in case it was preallocated in wdt driver
  23780. * [#3013](https://github.com/apache/incubator-nuttx/pull/3013) risc-v: bl602:fix bl602_flash_erase to erase the wrong block
  23781. * [#3034](https://github.com/apache/incubator-nuttx/pull/3034) arm: imx6: Fix an error message in imx_enet.c
  23782. * [#3051](https://github.com/apache/incubator-nuttx/pull/3051) risc-v: Internal functions should be prefixed with riscv_ not up
  23783. * [#3075](https://github.com/apache/incubator-nuttx/pull/3075) arm: Fix syscall number out of swi range in thumb mode
  23784. * [#3079](https://github.com/apache/incubator-nuttx/pull/3079) arm: kinetis: [FlexCAN] Correct reset state for CTRL1 register
  23785. * [#3079](https://github.com/apache/incubator-nuttx/pull/3079) arm: s32k1xx: [FlexCAN] Correct reset state for CTRL1 register
  23786. * [#3088](https://github.com/apache/incubator-nuttx/pull/3088) arm: samv7: Fix sam_putreg() parameter type
  23787. * [#3092](https://github.com/apache/incubator-nuttx/pull/3092) xtensa: xtensa: esp32_allocateheap.c: Don't allocate ROM regions when running in QEMU.
  23788. * [#3116](https://github.com/apache/incubator-nuttx/pull/3116) arm: stm32l5: Enable SPI support and license clearing
  23789. * [#3119](https://github.com/apache/incubator-nuttx/pull/2976) xtensa: sp32: Fix buffer size word-alignment for DMA transfers
  23790. * [#3125](https://github.com/apache/incubator-nuttx/pull/3125) risc-v: Internal functions should be prefixed with "riscv_"
  23791. * [#3130](https://github.com/apache/incubator-nuttx/pull/3145) xtensa: esp32: Fix SPI polling mode when DMA is also enabled.
  23792. * [#3135](https://github.com/apache/incubator-nuttx/pull/3135) rv64:c906:colorize the idle stack area;minor fixes.
  23793. * [#3145](https://github.com/apache/incubator-nuttx/pull/3145) xtensa: esp32_part_ioctl: Return -ENOTTY for unknown commands
  23794. * [#3162](https://github.com/apache/incubator-nuttx/pull/3162) arm: STM32 USB OTGFSDEV: Fix handling of SETUP OUT longer than 64 bytes
  23795. * [#3167](https://github.com/apache/incubator-nuttx/pull/3167) arm: stm32h7:SPI Fix 16 bit SPI mode
  23796. * [#3174](https://github.com/apache/incubator-nuttx/pull/3174) arm: Use macro defined swi range in dispatch_syscall
  23797. * [#3178](https://github.com/apache/incubator-nuttx/pull/3178) arm: tiva:cc13x0_adi3_refsys fix typo
  23798. * [#3198](https://github.com/apache/incubator-nuttx/pull/3198) arm: Stm32h7 fix heap clobber
  23799. * [#3199](https://github.com/apache/incubator-nuttx/pull/3199) xtensa: ESP32: Fix math for DMA buffer length rounding
  23800. * [#3200](https://github.com/apache/incubator-nuttx/pull/3200) xtensa: esp32: Fix DMA burst mode being unintendedly disabled
  23801. * [#3219](https://github.com/apache/incubator-nuttx/pull/3219) risc-v: bl602: fix _heap_start not word aligned
  23802. * [#3220](https://github.com/apache/incubator-nuttx/pull/3220) arm: Fix indexing for stm32h7 usbhost tracing
  23803. * [#3248](https://github.com/apache/incubator-nuttx/pull/3248) xtensa: esp32: remove extra initial newline on syslog call
  23804. * [#3283](https://github.com/apache/incubator-nuttx/pull/3283) rv64:add memory clobber to inline asm for syscall.
  23805. * [#3285](https://github.com/apache/incubator-nuttx/pull/3285) arm: Remove .cpu directive from assemble file
  23806. * [#3293](https://github.com/apache/incubator-nuttx/pull/3293) arm: armv6-m: Remove cpsid and cpsie from exception_common
  23807. * [#3307](https://github.com/apache/incubator-nuttx/pull/3307) arm: Replace the hardcode syscall number with macro
  23808. * [#3310](https://github.com/apache/incubator-nuttx/pull/3310) arm: armv8-m: Merge ite instruction to the previous one
  23809. * [#3311](https://github.com/apache/incubator-nuttx/pull/3311) arm: fix the potential corruption in initialization
  23810. * [#3313](https://github.com/apache/incubator-nuttx/pull/3313) arm: Replace "b lr" or "mov pc, lr" with "bx lr"
  23811. * [#3315](https://github.com/apache/incubator-nuttx/pull/3315) arm: Move setjmp/longjmp to libc/machine
  23812. * [#3326](https://github.com/apache/incubator-nuttx/pull/3326) arm: Update the old arm architecture with the recent fix
  23813. * [#3440](https://github.com/apache/incubator-nuttx/pull/3440) arm: Change all spsr_cxsf to spsr
  23814. * [#3448](https://github.com/apache/incubator-nuttx/pull/3448) arm: armv7-a: Remove the special process of the nest level
  23815. * [#3451](https://github.com/apache/incubator-nuttx/pull/3451) arm: Remove g_irqtmp, g_undeftmp and g_aborttmp
  23816. * [#3452](https://github.com/apache/incubator-nuttx/pull/3452) risc-v: esp32-c3: Refactors and fixes issues on serial driver.
  23817. * [#3457](https://github.com/apache/incubator-nuttx/pull/3457) arm: stm32h7: Actually use the AXI SRAM as the main heap as the documentation describes in PROTECTED mode.
  23818. * [#3459](https://github.com/apache/incubator-nuttx/pull/3459) arm: stm32h7: Fixes build error in stm32_sdmmc.c without DCACHE
  23819. * [#3473](https://github.com/apache/incubator-nuttx/pull/3473) xtensa: esp32: move common XTAL and RUN_IRAM configs to ESP32 KConfig
  23820. * [#3486](https://github.com/apache/incubator-nuttx/pull/3486) xtensa: esp32: Improve SPI polling to use the entire HW buffer
  23821. * [#3492](https://github.com/apache/incubator-nuttx/pull/3492) risc-v: riscv_initialize.c: Add telnet_initialize to riscv's up_initialize
  23822. * [#2868](https://github.com/apache/incubator-nuttx/pull/2868) xtensa: Fix xtensa stack coloring
  23823. ## Simulator
  23824. ### New Features
  23825. * [#2129](https://github.com/apache/incubator-nuttx/pull/2129) add "nimble" config, to test nimBLE on top of bthcisock
  23826. * [#2130](https://github.com/apache/incubator-nuttx/pull/2130) rpproxy/rpserver: force use 'CONFIG_SIM_M32' for 64bit system.
  23827. * [#2158](https://github.com/apache/incubator-nuttx/pull/2158) linux I2C bus support in sim
  23828. * [#2164](https://github.com/apache/incubator-nuttx/pull/2164) add LVGL configuration which uses the X11 framebuffer and mouse
  23829. * [#2198](https://github.com/apache/incubator-nuttx/pull/2198) support LCD emulation over X11; correctly decouple LCD/FB from X11/NX
  23830. * [#2579](https://github.com/apache/incubator-nuttx/pull/2579) make it conditional with FS_FAT
  23831. * [#2599](https://github.com/apache/incubator-nuttx/pull/2599) names: add writev/readv into name list
  23832. * [#2619](https://github.com/apache/incubator-nuttx/pull/2619) hci: reuse the reserved fields of hci buffer
  23833. * [#2690](https://github.com/apache/incubator-nuttx/pull/2690) support sim vfork
  23834. * [#2696](https://github.com/apache/incubator-nuttx/pull/2696) hcitty: add hcitty adapter
  23835. * [#2720](https://github.com/apache/incubator-nuttx/pull/2720) board/sim: Support NuttX BLE stack through uart shim driver
  23836. * [#3093](https://github.com/apache/incubator-nuttx/pull/3093) add heap policy and asan logic to support mm debug on sim platform
  23837. * [#3152](https://github.com/apache/incubator-nuttx/pull/3152) add dlsym to [nuttx-names.in](http://nuttx-names.in)
  23838. * [#3224](https://github.com/apache/incubator-nuttx/pull/3224) boards/sim: remove dsptest configuration
  23839. * [#3231](https://github.com/apache/incubator-nuttx/pull/3231) add the simulated lower-half FOC device
  23840. * [#3478](https://github.com/apache/incubator-nuttx/pull/3478) refactor signal handling
  23841. ### Bug Fixes
  23842. * [#2109](https://github.com/apache/incubator-nuttx/pull/2109) Revert "arch/sim: Make the SIGUSR1 host signal use the NuttX irq logic"
  23843. * [#2246](https://github.com/apache/incubator-nuttx/pull/2246) boards/sim/sim/sim/src/sim_touchscreen.c: add missing nx_disconnect
  23844. * [#2259](https://github.com/apache/incubator-nuttx/pull/2259) boards/sim: add atexit(2) into naming list
  23845. * [#2441](https://github.com/apache/incubator-nuttx/pull/2441) sim: fix input handling and add simulated buttons support from mouse
  23846. * [#2597](https://github.com/apache/incubator-nuttx/pull/2597) Revert "board/sim: Remove the too strict warning"
  23847. * [#3176](https://github.com/apache/incubator-nuttx/pull/3176) sim: fix signal deliver calling error on sim platform
  23848. * [#3205](https://github.com/apache/incubator-nuttx/pull/3205) sim: do not exit simulator on up_assert (just let the task exit)
  23849. ## Documentation
  23850. ### New Features
  23851. * [#1955](https://github.com/apache/incubator-nuttx/pull/1955) Add documentation for note filters and task trace guides
  23852. * [#1959](https://github.com/apache/incubator-nuttx/pull/1959) Documentation for the Timer Driver
  23853. * [#2268](https://github.com/apache/incubator-nuttx/pull/2268) Documentation for Watchdog Timer Driver
  23854. * [#2334](https://github.com/apache/incubator-nuttx/pull/2334) [CONTRIBUTING.md](http://CONTRIBUTING.md): talk about preferred commit message format
  23855. * [#2408](https://github.com/apache/incubator-nuttx/pull/2408) Documentation: support versioned docs
  23856. * [#2543](https://github.com/apache/incubator-nuttx/pull/2543) Documentation: how to use auto monitor feature to keep the chip alive
  23857. * [#2818](https://github.com/apache/incubator-nuttx/pull/2818) Documentation: introduce hardware platforms documentation
  23858. * [#2819](https://github.com/apache/incubator-nuttx/pull/2819) Documentation: document nRF52832 Sparkfun board (improve MDK board a bit)
  23859. * [#3022](https://github.com/apache/incubator-nuttx/pull/3022) hostfs: Document the backends and restrictions
  23860. * [#3127](https://github.com/apache/incubator-nuttx/pull/3127) Documentation: add ESP32 and DevKitC docs
  23861. * [#3138](https://github.com/apache/incubator-nuttx/pull/3138) Addind CMake based C++ project example in documentation
  23862. * [#3490](https://github.com/apache/incubator-nuttx/pull/3490) Documentation/esp32: Add supported peripherals
  23863. ### Improvements
  23864. * [#2021](https://github.com/apache/incubator-nuttx/pull/2021) Correct the links in Documentation folder
  23865. * [#2024](https://github.com/apache/incubator-nuttx/pull/2024) Fix broken documentation links
  23866. * [#2026](https://github.com/apache/incubator-nuttx/pull/2026) Documentation: Remove all tail spaces from *.rst and *.html
  23867. * [#2027](https://github.com/apache/incubator-nuttx/pull/2027) Documentation: Reorganize some section
  23868. * [#2031](https://github.com/apache/incubator-nuttx/pull/2031) Documentation/quickstart/debugging.rst: rewrite JTAG/OpenOCD section
  23869. * [#2045](https://github.com/apache/incubator-nuttx/pull/2045) Documentation: Misc fixups for broken links, errors, warnings
  23870. * [#2051](https://github.com/apache/incubator-nuttx/pull/2051) Documentation/quickstart/debugging: rewrite SWD sentence
  23871. * [#2106](https://github.com/apache/incubator-nuttx/pull/2106) documentation: change non-working URL
  23872. * [#2329](https://github.com/apache/incubator-nuttx/pull/2329) Documentation/components/drivers/character/pwm: fix pwm.c location
  23873. * [#2362](https://github.com/apache/incubator-nuttx/pull/2362) Documentation improvements
  23874. * [#2390](https://github.com/apache/incubator-nuttx/pull/2390) Documentation: improve debugging section
  23875. * [#2485](https://github.com/apache/incubator-nuttx/pull/2485) Documentaiton: merge quickstart to getting started
  23876. * [#2563](https://github.com/apache/incubator-nuttx/pull/2563) update Documentation/components/drivers/character/watchdog.rst
  23877. * [#3144](https://github.com/apache/incubator-nuttx/pull/3144) CI: remove linkcheck when building docs
  23878. * [#3180](https://github.com/apache/incubator-nuttx/pull/3180) documentation: improve boardctl() docs
  23879. * [#3194](https://github.com/apache/incubator-nuttx/pull/3194) Documentation: add syslog user API and other minor improvements
  23880. * [#3271](https://github.com/apache/incubator-nuttx/pull/3271) docs and comments: Update stale references to COPYING
  23881. * [#3470](https://github.com/apache/incubator-nuttx/pull/3470) Documentation: migrate ESP32 README to docs
  23882. ## Driver Support
  23883. ### New Driver Support
  23884. * [#1936](https://github.com/apache/incubator-nuttx/pull/1936) note: Add task trace support
  23885. * [#1989](https://github.com/apache/incubator-nuttx/pull/1989) sensors: Support fxos8700cq motion I2C sensor
  23886. * [#2091](https://github.com/apache/incubator-nuttx/pull/2091) usbdev: add Android Debug Bridge driver
  23887. * [#2166](https://github.com/apache/incubator-nuttx/pull/2166) lcd: Add LCD character driver: allows interacting with LCD directly from userspace
  23888. * [#2216](https://github.com/apache/incubator-nuttx/pull/2216) rc: support infrared remote control
  23889. * [#2282](https://github.com/apache/incubator-nuttx/pull/2282) audio: cxd56: add initial audio SRC implementation
  23890. * [#2301](https://github.com/apache/incubator-nuttx/pull/2301) analog: support for MAX1161X family of I2C 12 bit ADC chips
  23891. * [#2429](https://github.com/apache/incubator-nuttx/pull/2429) audio: add simple wm8994 codec driver
  23892. * [#2628](https://github.com/apache/incubator-nuttx/pull/2628) efuse: Add generic efuse driver for NuttX
  23893. * [#2736](https://github.com/apache/incubator-nuttx/pull/2736) console: Add generic support to LWL Console
  23894. * [#2829](https://github.com/apache/incubator-nuttx/pull/2829) sensor: add fakesensor driver
  23895. * [#3230](https://github.com/apache/incubator-nuttx/pull/3230) motor: add generic upper-half driver for Field Oriented Control (FOC)
  23896. * [#3474](https://github.com/apache/incubator-nuttx/pull/3474) sensors: Adds driver for hyt271 sensore module
  23897. ### Bug Fixes
  23898. * [#2036](https://github.com/apache/incubator-nuttx/pull/2036) serial: break from read after closing
  23899. * [#2039](https://github.com/apache/incubator-nuttx/pull/2039) sensors: add unified management for sensor
  23900. * [#2070](https://github.com/apache/incubator-nuttx/pull/2070) bluetooth: support HCI/L2CAP sockets, support HCI RAW channel
  23901. * [#2139](https://github.com/apache/incubator-nuttx/pull/2139) lcd: Ssd1306 cleanup
  23902. * [#2142](https://github.com/apache/incubator-nuttx/pull/2776) note: Add task name record for task trace
  23903. * [#2146](https://github.com/apache/incubator-nuttx/pull/2146) pipes: nx_pipe syscall takes three params, also use nx_close
  23904. * [#2175](https://github.com/apache/incubator-nuttx/pull/2175) wireless: gs2200m: Check disassociation from AP and enable rejoin
  23905. * [#2188](https://github.com/apache/incubator-nuttx/pull/2200) lcd_dev: put header in correct location; fix missing const
  23906. * [#2200](https://github.com/apache/incubator-nuttx/pull/2200) lcd: Minor fixes to ssd1306 i2c driver
  23907. * [#2201](https://github.com/apache/incubator-nuttx/pull/2512) wireless: gs2200m: Add function to get IWNWID / IWFREQ / IWSENS information
  23908. * [#2208](https://github.com/apache/incubator-nuttx/pull/2208) lcd: add optional putarea()/getarea() operations
  23909. * [#2215](https://github.com/apache/incubator-nuttx/pull/2215) sensors: add new feature about sensor driver model
  23910. * [#2223](https://github.com/apache/incubator-nuttx/pull/2223) audio: cxd56: cleanup for the spresense audio implementation
  23911. * [#2315](https://github.com/apache/incubator-nuttx/pull/2370) sensors: add common circular buffer management
  23912. * [#2318](https://github.com/apache/incubator-nuttx/pull/2318) sensors: update l3gd20 sensor driver with new sensor driver model
  23913. * [#2343](https://github.com/apache/incubator-nuttx/pull/2343) serial: Prevent RX stall
  23914. * [#2345](https://github.com/apache/incubator-nuttx/pull/2345) mtd/mtd_progmem.c: fix progmem_log2 parameter type to match prototype
  23915. * [#2369](https://github.com/apache/incubator-nuttx/pull/2369) sensors: support custom types of sensor
  23916. * [#2370](https://github.com/apache/incubator-nuttx/pull/2370) rc: fix bug about lirc_read
  23917. * [#2383](https://github.com/apache/incubator-nuttx/pull/2383) USB: Do not try to print NULL format strings for verbose trace messages when disabled
  23918. * [#2398](https://github.com/apache/incubator-nuttx/pull/2398) rptun: fix rptun rpmsg_unregister_callback fault
  23919. * [#2445](https://github.com/apache/incubator-nuttx/pull/2445) audio: Make audio_null play at real speed
  23920. * [#2488](https://github.com/apache/incubator-nuttx/pull/2488) crypto/arc4random: rename getrandom to arc4random_buf
  23921. * [#2490](https://github.com/apache/incubator-nuttx/pull/3482) leds: ws2812: make frequency selection more flexible
  23922. * [#2497](https://github.com/apache/incubator-nuttx/pull/2497) crypto/random_pool.c: fix getrandom() when thread calling it gets can…
  23923. * [#2508](https://github.com/apache/incubator-nuttx/pull/2508) leds/ws2812: optimize reset bytes
  23924. * [#2512](https://github.com/apache/incubator-nuttx/pull/2488) wireless/bluetooth: change the tx thread stack size to DEFAULT_TASK_STACKSIZE
  23925. * [#2564](https://github.com/apache/incubator-nuttx/pull/2564) audio: uninitialize usermq to NULL when the device has not
  23926. * [#2571](https://github.com/apache/incubator-nuttx/pull/2571) bluetooth: Fix bt_buff lifecycle
  23927. * [#2607](https://github.com/apache/incubator-nuttx/pull/2607) wireless: bluetooth: minor fix to bluetooth stack
  23928. * [#2609](https://github.com/apache/incubator-nuttx/pull/2609) wireless: bluetooth: fix minor issue in bt uart driver
  23929. * [#2611](https://github.com/apache/incubator-nuttx/pull/2611) wireless/bluetooth: Fix vairous issues found in bt uart shim driver
  23930. * [#2617](https://github.com/apache/incubator-nuttx/pull/2617) serial: should include <signal.h> explicitly
  23931. * [#2621](https://github.com/apache/incubator-nuttx/pull/2621) syslog: Added formatted timestamps in syslog.
  23932. * [#2636](https://github.com/apache/incubator-nuttx/pull/2636) pipes: pty shouldn't call nx_pipe and then file_detach in kernel space
  23933. * [#2664](https://github.com/apache/incubator-nuttx/pull/2664) can: fix RTR ioctl and support timeout
  23934. * [#2691](https://github.com/apache/incubator-nuttx/pull/2383) wireless: bluetooth: add more hci event definitions
  23935. * [#2692](https://github.com/apache/incubator-nuttx/pull/2692) syslog: Prepend Process ID to syslog message
  23936. * [#2697](https://github.com/apache/incubator-nuttx/pull/2697) syslog: Added printing of log priority in syslog
  23937. * [#2698](https://github.com/apache/incubator-nuttx/pull/2698) syslog: Added color output to syslog.
  23938. * [#2704](https://github.com/apache/incubator-nuttx/pull/2704) wireless: bluetooth: minor fix for bluetooth driver
  23939. * [#2707](https://github.com/apache/incubator-nuttx/pull/2707) drivers: wireless: Fix ASSERT() in _read_data_len() in gs2200m.c
  23940. * [#2710](https://github.com/apache/incubator-nuttx/pull/2710) syslog: Re-arranged syslog fields.
  23941. * [#2711](https://github.com/apache/incubator-nuttx/pull/2711) sensors: bmp280: minor fixes
  23942. * [#2715](https://github.com/apache/incubator-nuttx/pull/2715) sensors: bmp280: convert to sensor interface (and minor sensor change)
  23943. * [#2738](https://github.com/apache/incubator-nuttx/pull/2738) wireless: gs2200m: Print error massages with wlerr()
  23944. * [#2747](https://github.com/apache/incubator-nuttx/pull/2747) wireless: gs2200m: Fix _read_data()
  23945. * [#2775](https://github.com/apache/incubator-nuttx/pull/2775) mtd: w25qxxxjv.c : W25Q256's sector count is 8192
  23946. * [#2776](https://github.com/apache/incubator-nuttx/pull/2776) net/encx24j600.c: Correct setting of ifstate
  23947. * [#2798](https://github.com/apache/incubator-nuttx/pull/2798) wireless: gs2200m: Change retry condition in gs2200m_hal_write()
  23948. * [#2801](https://github.com/apache/incubator-nuttx/pull/2801) mtd:w25qxxxjv.c: use different protect bits and address lengts
  23949. * [#2850](https://github.com/apache/incubator-nuttx/pull/2850) audio: Introduce a driver-specific spinlock to cxd56.c
  23950. * [#2907](https://github.com/apache/incubator-nuttx/pull/2711) sensors: driver model update
  23951. * [#2950](https://github.com/apache/incubator-nuttx/pull/2950) audio: pcm_decode: add RAW format support
  23952. * [#2961](https://github.com/apache/incubator-nuttx/pull/2961) syslog_rpmsg: fix system crash when open CONFIG_SCHED_HAVE_PARENT
  23953. * [#2989](https://github.com/apache/incubator-nuttx/pull/2989) mmcsd: Fixes race condition in event wait logic of SDMMC driver
  23954. * [#3000](https://github.com/apache/incubator-nuttx/pull/3000) sensors: fakesensor support batch
  23955. * [#3020](https://github.com/apache/incubator-nuttx/pull/3020) syslog: add option to prefix process name
  23956. * [#3047](https://github.com/apache/incubator-nuttx/pull/3047) mmcsd: Stuck in 1-bit mode, Removed CONFIG_ARCH_HAVE_SDIO_DELAYED_INVLDT
  23957. * [#3050](https://github.com/apache/incubator-nuttx/pull/3050) syslog: Added support for multiple syslog channels.
  23958. * [#3110](https://github.com/apache/incubator-nuttx/pull/3110) can: Add CAN FD flags to CAN header
  23959. * [#3118](https://github.com/apache/incubator-nuttx/pull/3118) sensors: qencoder.c - Remove bad sninfo() format string
  23960. * [#3163](https://github.com/apache/incubator-nuttx/pull/3163) USBDEV: RNDIS: Fix occasional disconnections due to race condition
  23961. * [#3185](https://github.com/apache/incubator-nuttx/pull/3185) USBDEV RNDIS: Fix unaligned access caused by 4f66624
  23962. * [#3195](https://github.com/apache/incubator-nuttx/pull/3195) serial: Don't comment out ws_[x|y]pixel field from winsize struct
  23963. * [#3201](https://github.com/apache/incubator-nuttx/pull/3201) timers: rtc/rpmsg: support server and client to set time each other
  23964. * [#3214](https://github.com/apache/incubator-nuttx/pull/3214) can: Fix TX ID bits 18-20 of mcp2515 can driver
  23965. * [#3215](https://github.com/apache/incubator-nuttx/pull/3215) syslog: Drop extra carriage return from syslog calls
  23966. * [#3226](https://github.com/apache/incubator-nuttx/pull/3226) syslog: Added multi device support in syslog_device.
  23967. * [#3269](https://github.com/apache/incubator-nuttx/pull/3269) motor: Add support for motor debug messages
  23968. * [#3453](https://github.com/apache/incubator-nuttx/pull/3453) syslog: Fix in syslog_intbuffer flushing
  23969. * [#3454](https://github.com/apache/incubator-nuttx/pull/3454) syslog: Proper uninit of syslog_device.
  23970. * [#3475](https://github.com/apache/incubator-nuttx/pull/3214) input: Add INPUT_TOUCHSCREEN config
  23971. * [#3482](https://github.com/apache/incubator-nuttx/pull/3482) input: Rename config from INPUT classes
  23972. ## Board Support
  23973. ### New Board Support
  23974. * [#2054](https://github.com/apache/incubator-nuttx/pull/2054) configure.sh: update custom board config build support
  23975. * [#2463](https://github.com/apache/incubator-nuttx/pull/2463) boards: Added Teensy-4.x BSP
  23976. * [#2503](https://github.com/apache/incubator-nuttx/pull/2503) Re-organise ESP32 boards and introduce two more(ESP-WROVER-KIT and the ESP32-Ethernet-Kit)
  23977. * [#2506](https://github.com/apache/incubator-nuttx/pull/2506) stm32: add stm32g43x support and nucleo-g431rb board
  23978. * [#2838](https://github.com/apache/incubator-nuttx/pull/2838) Add initial support for ESP32-C3 and ESP32-C3 DevKit board
  23979. * [#2877](https://github.com/apache/incubator-nuttx/pull/2877) Support for Raspberry Pi Pico
  23980. * [#3129](https://github.com/apache/incubator-nuttx/pull/3129) boards/stm32: add initial support for b-g431b-esc1 board
  23981. * [#3217](https://github.com/apache/incubator-nuttx/pull/3217) board: Add support for nucleo-h743i2
  23982. * [#3234](https://github.com/apache/incubator-nuttx/pull/3234) boards/stm32/common: add support for IHM07M1 and IHM08M1 boards
  23983. ### Boards With Significant Improvements
  23984. #### ARM
  23985. #### BL602
  23986. * [#2764](https://github.com/apache/incubator-nuttx/pull/2764) boards: bl602evb flash and debug notes
  23987. #### C906
  23988. * [#3027](https://github.com/apache/incubator-nuttx/pull/3027) board:rv64:c906:support the ELF apps
  23989. #### CXD56
  23990. * [#1939](https://github.com/apache/incubator-nuttx/pull/1939) Add cxd56xx intstack for SMP
  23991. * [#3016](https://github.com/apache/incubator-nuttx/pull/3016) spresense:rndis_smp
  23992. * [#3024](https://github.com/apache/incubator-nuttx/pull/3024) Spesense CPU activity LED support
  23993. * [#3084](https://github.com/apache/incubator-nuttx/pull/3084) cxd56_gnss: Add missing include header for cxd56_gnss.c
  23994. * [#3085](https://github.com/apache/incubator-nuttx/pull/3085) cxd56_cpu1signal: Fix an issue that gnss does not work
  23995. #### ESP32
  23996. * [#2507](https://github.com/apache/incubator-nuttx/pull/2507) boards/arm/stm32: add common and stm32f103-minimum support for WS2812
  23997. * [#2753](https://github.com/apache/incubator-nuttx/pull/2753) esp32: Enable renew for "wapi" configs
  23998. * [#2864](https://github.com/apache/incubator-nuttx/pull/2864) Add wapi_smp to test Wi-Fi in SMP mode
  23999. * [#2883](https://github.com/apache/incubator-nuttx/pull/2883) This commit implements I2C support for ESP32 (wrover kit)
  24000. * [#2888](https://github.com/apache/incubator-nuttx/pull/2888) This commit enables BMP180 suport for ESP32
  24001. * [#2971](https://github.com/apache/incubator-nuttx/pull/2971) esp32: Add board config to support MCP2515
  24002. * [#3071](https://github.com/apache/incubator-nuttx/pull/3071) ESP32: Mount TMPFS on board bring up
  24003. * [#3095](https://github.com/apache/incubator-nuttx/pull/3095) ESP32: Allow a BSS section to reside in external memory
  24004. * [#3117](https://github.com/apache/incubator-nuttx/pull/3117) xtensa/esp32: Use Polling instead of DMA for transfers below threshold
  24005. * [#3139](https://github.com/apache/incubator-nuttx/pull/3139) xtensa/esp32: Support esp32 wireless ioctl cmd
  24006. * [#3154](https://github.com/apache/incubator-nuttx/pull/3154) ESP32: Add Button support via BOOT button on GPIO0
  24007. * [#3164](https://github.com/apache/incubator-nuttx/pull/3164) xtensa/esp32: Adds oneshot timer driver.
  24008. * [#3190](https://github.com/apache/incubator-nuttx/pull/3190) risc-v/esp32c3: Support ESP32-C3 wireless ioctl cmd
  24009. * [#3192](https://github.com/apache/incubator-nuttx/pull/3192) esp32-devkitc: Make nsh the entry-point of the ostest config
  24010. * [#3211](https://github.com/apache/incubator-nuttx/pull/3211) esp32-devkitc: Add GPIO board support
  24011. * [#3270](https://github.com/apache/incubator-nuttx/pull/3270) xtensa/esp32: Refactor register access functions on SPI driver
  24012. * [#3303](https://github.com/apache/incubator-nuttx/pull/3303) esp32-devkitc: Add BMP180 sensor support
  24013. #### ESP32C3
  24014. * [#2879](https://github.com/apache/incubator-nuttx/pull/2879) risc-v/esp32c3: Enable stdio buffering for esp32c3-devkit NSH config
  24015. * [#2897](https://github.com/apache/incubator-nuttx/pull/2897) boards/esp32c3: Add tmpfs mounting when bringing up
  24016. * [#3074](https://github.com/apache/incubator-nuttx/pull/3074) esp32c3-devkit: Use nx_mount to avoid overriding errno
  24017. * [#3261](https://github.com/apache/incubator-nuttx/pull/3261) esp32-c3: Add support to RNG peripheral
  24018. #### IMX6
  24019. * [#2997](https://github.com/apache/incubator-nuttx/pull/2997) boards: sabre-6quad: Add netnsh_smp configuration
  24020. #### IMXRT
  24021. * [#2004](https://github.com/apache/incubator-nuttx/pull/2004) FlexCAN driver for i.MX RT1060 MCU
  24022. * [#2526](https://github.com/apache/incubator-nuttx/pull/2526) boards/arm/imxrt/teensy-4.x: CDC-ACM console support
  24023. * [#2588](https://github.com/apache/incubator-nuttx/pull/2588) teensy-4.x Support for ST7789 controller
  24024. #### KINETIS
  24025. * [#1969](https://github.com/apache/incubator-nuttx/pull/1969) freedom-k64f: Init PWM only if enabled
  24026. * [#1977](https://github.com/apache/incubator-nuttx/pull/1977) freedom-k64f: Support raw binary firmware format
  24027. * [#1980](https://github.com/apache/incubator-nuttx/pull/1980) freedom-k64f: Add renew DHCP client for netnsh
  24028. * [#1982](https://github.com/apache/incubator-nuttx/pull/1982) freedom-k64f: Add I2C initial support
  24029. * [#1999](https://github.com/apache/incubator-nuttx/pull/1999) freedom-k64f: Register on board sensor driver
  24030. * [#2020](https://github.com/apache/incubator-nuttx/pull/2020) freedom-k64f: Declare k64_i2cdev_initialize function
  24031. * [#2030](https://github.com/apache/incubator-nuttx/pull/2030) freedom-k64f: Fix k64_buttons.c
  24032. * [#2037](https://github.com/apache/incubator-nuttx/pull/2037) freedom-k64f: Add demo configuration
  24033. * [#2047](https://github.com/apache/incubator-nuttx/pull/2047) freedom-k64f: Add I2C to demo image
  24034. * [#2847](https://github.com/apache/incubator-nuttx/pull/2847) board/freedom-k64f: Add usbdev support with cdcacm example
  24035. #### LPC17XX_40XX
  24036. * [#3239](https://github.com/apache/incubator-nuttx/pull/3239) board/arm/lpc17xx_40xx/mbed: Add userleds driver support
  24037. #### NRF52
  24038. * [#2706](https://github.com/apache/incubator-nuttx/pull/2706) board/nrf52-feather: Add simple i2c test configuration
  24039. #### RP2040
  24040. * [#2884](https://github.com/apache/incubator-nuttx/pull/2884) Update raspi-pico
  24041. * [#2894](https://github.com/apache/incubator-nuttx/pull/2894) boards: raspberrypi-pico: Add nshsram defconfig for SRAM build
  24042. * [#3014](https://github.com/apache/incubator-nuttx/pull/3014) BMP180 sensor support to RP2040
  24043. * [#3021](https://github.com/apache/incubator-nuttx/pull/3021) add INA219 support
  24044. * [#3030](https://github.com/apache/incubator-nuttx/pull/3030) boards/raspberrypi-pico: Support ENC28J60 SPI ethernet board
  24045. * [#3067](https://github.com/apache/incubator-nuttx/pull/3067) boards/raspberrypi-pico: Pico Display Pack (ST7789 LCD) support
  24046. #### SAM34
  24047. * [#2464](https://github.com/apache/incubator-nuttx/pull/2464) Added: MT29F2G Nand Flash block driver for sam4s-xplained-pro
  24048. #### STM32
  24049. * [#2433](https://github.com/apache/incubator-nuttx/pull/2433) Add 2.4 Inch TFT LCD Shield ILI9341 for nucleo-l152re, 8080 MCU 8-bit
  24050. * [#2505](https://github.com/apache/incubator-nuttx/pull/2505) boards/arm/stm32/stm32f103-minimum: cleanup
  24051. * [#3053](https://github.com/apache/incubator-nuttx/pull/3053) Nucleo-F446RE: added support for CAN driver
  24052. * [#3064](https://github.com/apache/incubator-nuttx/pull/3064) boards: refactor for nucleo-f446re and nucleo-f302r8 boards
  24053. * [#3097](https://github.com/apache/incubator-nuttx/pull/3097) Add configuration for testing the Sporadic Scheduler.
  24054. * [#3222](https://github.com/apache/incubator-nuttx/pull/3222) stm32/stm32_serial: add support for TX DMA and some improvements
  24055. * [#3223](https://github.com/apache/incubator-nuttx/pull/3223) stm32/stm32_pwm: add interfaces to access RCR register and TRGO
  24056. * [#3225](https://github.com/apache/incubator-nuttx/pull/3225) stm32/stm32_adc: various improvements for ADC
  24057. * [#3232](https://github.com/apache/incubator-nuttx/pull/3232) stm32/stm32_foc.c: add the lower-half FOC device support
  24058. #### STM32F4
  24059. * [#2553](https://github.com/apache/incubator-nuttx/pull/2553) boards: stm32f4discovery: Add adb configuration
  24060. * [#2699](https://github.com/apache/incubator-nuttx/pull/2699) boards/stm32f4discovery: Add a LWL board profile and improve the README.txt
  24061. * [#3052](https://github.com/apache/incubator-nuttx/pull/3052) Add support to LCD ST7789 on STM32F4Discovery
  24062. * [#3056](https://github.com/apache/incubator-nuttx/pull/3056) Add LCD1602 Backpack to common board
  24063. #### STM32F7
  24064. * [#3218](https://github.com/apache/incubator-nuttx/pull/3218) Integration of pysimCoder with NUTTX
  24065. #### STM32H7
  24066. * [#2353](https://github.com/apache/incubator-nuttx/pull/2353) Fix of the OTG FS HOST for nucleo-h743zi
  24067. #### STM32L4
  24068. * [#2009](https://github.com/apache/incubator-nuttx/pull/2842) Added STM32L432KC DAC support
  24069. * [#2837](https://github.com/apache/incubator-nuttx/pull/2837) Add missing I2C3 support on nucleo-l432kc board
  24070. * [#2842](https://github.com/apache/incubator-nuttx/pull/2842) board: nucleo-l432kc: Add missing i2c_master_s definition
  24071. #### TIVA
  24072. * [#2684](https://github.com/apache/incubator-nuttx/pull/2684) boards: lm3s6965-ek: Add iperf to discover/defconfig
  24073. #### XTENSA
  24074. ### **Minor Board Changes**
  24075. * [#2558](https://github.com/apache/incubator-nuttx/pull/2558) boards: Remove CINCPATH and CXXINCPATH
  24076. #### ARM
  24077. * [#2079](https://github.com/apache/incubator-nuttx/pull/2079) Stm32 oled fixes pr
  24078. * [#2360](https://github.com/apache/incubator-nuttx/pull/2360) stm32/stm32ldiscovery: modernize board init little bit
  24079. * [#2500](https://github.com/apache/incubator-nuttx/pull/2500) stm32/common: devpath not long enough for apa102 and veml6070
  24080. #### CXD56
  24081. * [#2193](https://github.com/apache/incubator-nuttx/pull/2193) cxd56xx: Remove HOSTCC and HOSTCFLAGS from Make.defs
  24082. #### Xtensa
  24083. * [#2127](https://github.com/apache/incubator-nuttx/pull/2127) esp32: Added Userled support
  24084. * [#2802](https://github.com/apache/incubator-nuttx/pull/2802) ESP32: Refactor of POSTBUILD action
  24085. * [#3263](https://github.com/apache/incubator-nuttx/pull/3263) esp32: Move the WLAN initialisation to the common directory.
  24086. * [#3288](https://github.com/apache/incubator-nuttx/pull/3288) esp32-wrover-kit: Don't use User GPIO Subsystem to control LED
  24087. * [#3442](https://github.com/apache/incubator-nuttx/pull/3442) esp32 boards: BUTTON_BOOT should use PULLUP instead PULLDOWN
  24088. ## File System
  24089. ### Significant Improvements
  24090. * [#2598](https://github.com/apache/incubator-nuttx/pull/2598) fs/epoll: add asynchronous epoll control support
  24091. * [#2841](https://github.com/apache/incubator-nuttx/pull/2841) fs: procfs meminfo improvements
  24092. * [#2957](https://github.com/apache/incubator-nuttx/pull/2957) fs: mqueue: add poll support
  24093. * [#3045](https://github.com/apache/incubator-nuttx/pull/3045) fs: Allocate file/socket dynamically
  24094. * [#3212](https://github.com/apache/incubator-nuttx/pull/3212) fs/lfs: Update version to 2.4.0
  24095. ### Bug Fixes
  24096. * [#2073](https://github.com/apache/incubator-nuttx/pull/2073) fs: epoll_create: modify return value for epoll_create1
  24097. * [#2260](https://github.com/apache/incubator-nuttx/pull/2260) fs: eventfd: remove the unique minor limit
  24098. * [#2317](https://github.com/apache/incubator-nuttx/pull/2317) fs: flashback to release all file descriptors in group to increase debugging time.
  24099. * [#2339](https://github.com/apache/incubator-nuttx/pull/2339) Revert "fs/nxffs: Fix scan good block slowly and scan an invalid block"
  24100. * [#2532](https://github.com/apache/incubator-nuttx/pull/2532) fs/unionfs: remove excessive protection to avoid deadlock
  24101. * [#2540](https://github.com/apache/incubator-nuttx/pull/2540) fs: Skip call fs_checkfd if fd < 3 in fs_fdopen
  24102. * [#2572](https://github.com/apache/incubator-nuttx/pull/2572) fs: spiffs fixes
  24103. * [#2606](https://github.com/apache/incubator-nuttx/pull/2606) fs: Fix inode lock at umount2
  24104. * [#2618](https://github.com/apache/incubator-nuttx/pull/2618) fs: remove INODE_IS_SPECIAL() use INODE_IS_PSEUDODIR instead
  24105. * [#2638](https://github.com/apache/incubator-nuttx/pull/2618) fs: fs_dupfd2 should return OK if fd1 equals fd2
  24106. * [#2639](https://github.com/apache/incubator-nuttx/pull/2639) fs: Let files_allocate return -EMFILE instead ERROR
  24107. * [#2640](https://github.com/apache/incubator-nuttx/pull/2640) fs: Remove _files_close and reuse file_close
  24108. * [#2643](https://github.com/apache/incubator-nuttx/pull/2643) fs: Fix the race condition in file_dup
  24109. * [#2648](https://github.com/apache/incubator-nuttx/pull/2648) fs: Remove the special hack for pty in nx_vopen
  24110. * [#2660](https://github.com/apache/incubator-nuttx/pull/2660) fs: Reimplement file_open to not depend on nx_open
  24111. * [#2661](https://github.com/apache/incubator-nuttx/pull/2661) fs: file_dup2 shouldn't hold the file list lock
  24112. * [#2662](https://github.com/apache/incubator-nuttx/pull/2662) fs/inode/fs_files.c: fix DEBUGASSERT in romfs
  24113. * [#2667](https://github.com/apache/incubator-nuttx/pull/2667) fs: Make nx_vxxx and file_vxxx as internal functions
  24114. * [#2724](https://github.com/apache/incubator-nuttx/pull/2724) fs/tmpfs: Iterate the entry reversely in readdir
  24115. * [#2739](https://github.com/apache/incubator-nuttx/pull/2739) fs/readdir: Must reserve a byte for the NUL terminator
  24116. * [#2810](https://github.com/apache/incubator-nuttx/pull/2810) fs: eventfd: Convert the indent under EVENT_FD_VFS_PATH option to tab
  24117. * [#2852](https://github.com/apache/incubator-nuttx/pull/2852) fs: Merge fs_poll into poll_fdsetup
  24118. * [#2854](https://github.com/apache/incubator-nuttx/pull/2854) fs: Don't call _NX_SETERRNO in fopen and fdopen
  24119. * [#2861](https://github.com/apache/incubator-nuttx/pull/2861) fs: change geometry sizes from size_t to uint32_t
  24120. * [#2913](https://github.com/apache/incubator-nuttx/pull/2913) fs/lfs: lfs_file_sync() when littlefs_open
  24121. * [#2956](https://github.com/apache/incubator-nuttx/pull/2956) fs/mount: fix mount cmd break out when meet stat error
  24122. * [#3042](https://github.com/apache/incubator-nuttx/pull/3042) fs: vfs : Do some adjustments for epoll
  24123. * [#3060](https://github.com/apache/incubator-nuttx/pull/3060) fs: find_blockdriver: Don't ferr() on MTDs
  24124. * [#3069](https://github.com/apache/incubator-nuttx/pull/3069) fs/mmap: Clarify MAP_PRIVATE dependency on CONFIG_FS_RAMMAP
  24125. * [#3070](https://github.com/apache/incubator-nuttx/pull/3070) fs/mmap: Return EACCES for incompatible file descriptors
  24126. * [#3105](https://github.com/apache/incubator-nuttx/pull/3105) fs/epoll: correct the return value of epoll_ctl(2)
  24127. * [#3137](https://github.com/apache/incubator-nuttx/pull/3137) fs/littlefs: Suppport the duplication function
  24128. * [#3444](https://github.com/apache/incubator-nuttx/pull/3444) fs/romfs: fix open zero-byte file fail issue
  24129. * [#3491](https://github.com/apache/incubator-nuttx/pull/3491) fs: vfs: adjust the error code of write to be consistent with read
  24130. ## Networking
  24131. ### Significant Improvements
  24132. * [#2414](https://github.com/apache/incubator-nuttx/pull/2414) net: tcp: implement the fast retransmit
  24133. * [#2415](https://github.com/apache/incubator-nuttx/pull/2415) net: gmp: add MULTICAST_TTL support
  24134. * [#2417](https://github.com/apache/incubator-nuttx/pull/2417) net: wireless: add country code control support
  24135. * [#2548](https://github.com/apache/incubator-nuttx/pull/2548) net: tcp: optimize TCP handshake performance
  24136. * [#2695](https://github.com/apache/incubator-nuttx/pull/2695) netpacket: if_addr: add interface address header
  24137. * [#2899](https://github.com/apache/incubator-nuttx/pull/2899) net: socket: Unify socket into file system to avoid the code duplication
  24138. * [#2964](https://github.com/apache/incubator-nuttx/pull/2964) net: socket_rpmsg: add socket rpmsg support
  24139. * [#3025](https://github.com/apache/incubator-nuttx/pull/3025) net: Add sendmsg and recvmsg to syscall list
  24140. * [#3081](https://github.com/apache/incubator-nuttx/pull/3081) tcp_send_buffered.c: improve tcp write buffering
  24141. * [#3113](https://github.com/apache/incubator-nuttx/pull/3113) net: usrsock: add send multi-elements support
  24142. * [#3257](https://github.com/apache/incubator-nuttx/pull/3257) net: tcp: support bind the same port with different domain
  24143. ### Bug Fixes
  24144. * [#1589](https://github.com/apache/incubator-nuttx/pull/1589) net: tcp: fix tcp socket close timeout if loss wireless connection
  24145. * [#2075](https://github.com/apache/incubator-nuttx/pull/2075) net: TCP-stack fix for stalled tcp sockets due to broken keepalive
  24146. * [#2121](https://github.com/apache/incubator-nuttx/pull/2121) net: devif: devif_callback.c: remove harmful debug check
  24147. * [#2257](https://github.com/apache/incubator-nuttx/pull/2257) net: callback: remove the assert check of conn instance
  24148. * [#2332](https://github.com/apache/incubator-nuttx/pull/2332) net/tcp: Rectified keepalive fix
  24149. * [#2412](https://github.com/apache/incubator-nuttx/pull/2413) net/icmp: add sanity check to avoid wild data length
  24150. * [#2413](https://github.com/apache/incubator-nuttx/pull/2413) net/tcp: correct the available iobs count if throttle is enabled
  24151. * [#2416](https://github.com/apache/incubator-nuttx/pull/2416) net/tcp: fallback to unthrottle pool to avoid deadlock
  24152. * [#2421](https://github.com/apache/incubator-nuttx/pull/2421) net/neighbor/neighbor_ethernet_out.c: fix build error without ICMPv6
  24153. * [#2465](https://github.com/apache/incubator-nuttx/pull/2465) net/procfs: handle opendir("/proc/net/") correctly
  24154. * [#2466](https://github.com/apache/incubator-nuttx/pull/2466) net/igmp: add sanity check to handle allocate fail
  24155. * [#2467](https://github.com/apache/incubator-nuttx/pull/2467) net/sockopt: Try usrsock further if the protocol not available
  24156. * [#2489](https://github.com/apache/incubator-nuttx/pull/2489) net: tcp: send the ACK in time after obtain ahead buffer from iobs
  24157. * [#2688](https://github.com/apache/incubator-nuttx/pull/2688) net: Remove duplicate forward references
  24158. * [#2774](https://github.com/apache/incubator-nuttx/pull/2774) net/ip: do not drop the udp packet from IP layer
  24159. * [#2811](https://github.com/apache/incubator-nuttx/pull/2811) net/local: Add an option to specify the prefix of named pipe
  24160. * [#2869](https://github.com/apache/incubator-nuttx/pull/2869) netdb.h: Add NI_MAXHOST and NI_MAXSERV
  24161. * [#2911](https://github.com/apache/incubator-nuttx/pull/2911) net: fix a few DP83848C and DP83825I constants
  24162. * [#2959](https://github.com/apache/incubator-nuttx/pull/2959) net: socket: move si_send/recv into sendmsg/recvmsg
  24163. * [#2978](https://github.com/apache/incubator-nuttx/pull/2978) telnet: fix crash about telnet client connect
  24164. * [#3037](https://github.com/apache/incubator-nuttx/pull/3037) Revert "net: tcp: Add DEBUGASSERT() in psock_tcp_send()"
  24165. * [#3043](https://github.com/apache/incubator-nuttx/pull/3043) net: local: Remove local_send.c since nobody use it now
  24166. * [#3044](https://github.com/apache/incubator-nuttx/pull/3044) net: fix local_sendmsg return length
  24167. * [#3062](https://github.com/apache/incubator-nuttx/pull/3062) net: tcp_sendfile.c: Remove an unused copy of CONFIG_NET_TCP_SPLIT_SIZE
  24168. * [#3099](https://github.com/apache/incubator-nuttx/pull/3099) net: tcp: dup: do not start the tcp monitor if unestablished
  24169. * [#3100](https://github.com/apache/incubator-nuttx/pull/3100) net: tcp: correct the port byte order
  24170. * [#3101](https://github.com/apache/incubator-nuttx/pull/3101) net: arp: add timeout to avoid infinite send wait
  24171. * [#3103](https://github.com/apache/incubator-nuttx/pull/3103) net: tcp: reset the connection ref count before tcp_free()
  24172. * [#3104](https://github.com/apache/incubator-nuttx/pull/3104) net: dev: check the available address further
  24173. * [#3106](https://github.com/apache/incubator-nuttx/pull/3106) net: if: remove the macro expansion of the public structure
  24174. * [#3221](https://github.com/apache/incubator-nuttx/pull/3221) net: tcp: tcp_send_buffered.c: Fix non-blocking I/O
  24175. * [#3254](https://github.com/apache/incubator-nuttx/pull/3254) net: arp: Fix arp
  24176. * [#3319](https://github.com/apache/incubator-nuttx/pull/3319) tcp_netpoll.c: Fix a performance issue with CONFIG_NET_TCP_WRITE_BUFFERS
  24177. # Security Issues Fixed In This Release
  24178. # Compatibility Concerns
  24179. ## Changes to Build System
  24180. ### Change CFLAGS, CPPFLAGS, CXXFLAGS, and AFLAGS from Recursive to Simple Assignment
  24181. [PR-1890](https://github.com/apache/incubator-nuttx/pull/1890)
  24182. (commit [2caf3a69e3d60ec550980f7ba897c732e7a39df7](https://github.com/apache/incubator-nuttx/pull/1890/commits/2caf3a69e3d60ec550980f7ba897c732e7a39df7))
  24183. attempts to speed up compilation time for concurrent builds by changing
  24184. assignment to makefile variables `*CFLAGS*`, `*CPPFLAGS*`, `*CXXFLAGS*`, and
  24185. `*AFLAGS*` from recursive `=` to simple `:=`. This causes these compile
  24186. options to be expanded only once during the build.
  24187. If you are using NuttX on a custom board not in the NuttX repository, you may
  24188. want to make a similar change to your `Make.defs` files. Change these
  24189. recursive assignments:
  24190. ```
  24191. CFLAGS = $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) -pipe
  24192. CXXFLAGS = $(ARCHCXXFLAGS) $(ARCHWARNINGSXX) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) -pipe
  24193. CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
  24194. AFLAGS = $(CFLAGS) -D__ASSEMBLY__
  24195. ```
  24196. to simple assignments:
  24197. ```
  24198. CFLAGS := $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) -pipe
  24199. CXXFLAGS := $(ARCHCXXFLAGS) $(ARCHWARNINGSXX) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) -pipe
  24200. CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
  24201. AFLAGS := $(CFLAGS) -D__ASSEMBLY__
  24202. ```
  24203. ### Not Necessary to Define `__NuttX__` in Make.defs
  24204. [PR-2192](https://github.com/apache/incubator-nuttx/pull/2192)
  24205. (commit [9208176f600d0d04446531909bf05710716a5ee4](https://github.com/apache/incubator-nuttx/commit/9208176f600d0d04446531909bf05710716a5ee4))
  24206. refactors definition of the `__NuttX__` preprocessor symbol to
  24207. `tools/Config.mk`, so it is no longer necessary to define it in each board's
  24208. `Make.defs` file.
  24209. If you are using NuttX on a custom board not in the NuttX repository, you may
  24210. want to make a similar change to your Make.defs files.
  24211. Remove lines like this:
  24212. ```
  24213. ARCHDEFINES = -D__NuttX__
  24214. ```
  24215. Or remove -D__NuttX__ from lines like this:
  24216. ```
  24217. CXXFLAGS += $(ARCHDEFINES) $(EXTRAFLAGS) -pipe -std=c++11 -D__NuttX__
  24218. ```