Re: [apache/incubator-nuttx] tools/configure.sh: Update USAGE for custom out-of-tree boards (PR #7103)

2022-10-11 Thread Tim Hardisty
I have walked through the custom apps guide from the cwiki and find that it is explaining how to replace the ENTIRE Nuttx Apps directory with a custom alternative. That seems to me to be perhaps of minority interest but I'll include it in the documentation I'm writing anyway for completeness.

Re: [apache/incubator-nuttx] tools/configure.sh: Update USAGE for custom out-of-tree boards (PR #7103)

2022-10-11 Thread Tim Hardisty
If external is historic, what is the preferred way to include a custom out-of-tree (i.e. non-public) App in a build, in a way that won't get trashed if a distclean or Nuttx upgrade merge is done? On 11/10/2022, 20:08, "Gregory Nutt" wrote: > Did you check the "external" directory or are

Re: Anna-b112 Bluetooth module support

2022-10-15 Thread Tim Hardisty
With apologies for joining in - at only a slight tangent I hope - but is the advantage to a NuttX app that uses the NuttX Bluetooth stack with the radio device in H4 API mode, compared to using the Bluetooth SoC device as a coprocessor using its own stack, that it becomes a simple device that ca

RE: ADC device close and IRQ

2022-10-24 Thread Tim Hardisty
Now I am very much more familiar with the SAMA5Dx ADC and Touch Screen Controller (TSC) driver code, the more I think it is making life really difficult having the TSD code separate to the ADC code - they are just too closely related especially given all the combinations of ADC channels and/or

Bluetooth+WiFi+NuttX

2022-10-28 Thread Tim Hardisty
right? Is an Espressif module a good choice (email me direct if you want to !!)? Thanks, Tim. -- t...@jti.uk.com

Re: Bluetooth+WiFi+NuttX

2022-10-29 Thread Tim Hardisty
01:06, "Disruptive Solutions" wrote: I tried some Wifi and Bluetooth but know that some MCUs cannot handle them very well at the same time. Op za 29 okt. 2022 1:20 a.m. schreef Alan C. Assis : > Hi Tim, > > On 10/28/22, Tim Hardisty wrote:

Re: Bluetooth+WiFi+NuttX

2022-10-29 Thread Tim Hardisty
vs. SiLabs, plus getting WiFi for free that appeals. SAMA5D2 has Ethernet - unused on my board so it is not an idea that is completely out of the question: writing USRSOCK for the Espressif module is probably beyond me at this time! On 29/10/2022, 00:20, "Alan C. Assis" wrote: H

Re: Bluetooth+WiFi+NuttX

2022-10-29 Thread Tim Hardisty
-between-two-devices Same TI guy who said it was impossible latter talk internally and discovered that there was a customer already using it. BTW, you will need to have RMII supported by both MCUs (yes, ESP32 has RMII). BR, Alan On 10/29/22, Alan C. Assis wrote: >

Re: write-only interrupt registers

2022-11-04 Thread Tim Hardisty
I had a brain-splat. This is a non-issue. 40 years doing software and I randomly still get the basics wrong! On 03/11/2022, 18:19, "TimH" wrote:

lsof/crefs/somethings else?

2022-11-12 Thread Tim Hardisty
I have pretty much ironed out all the issues with the SAMA5 touchscreen (TSD) and ADC drivers, making sure they actually work correctly for the D2 variant and look like they should work for the D3 and D4 variants, and fixed bugs along the way. I will do a PR in due course but still have one high

Will a PR be ignored if it fails checks?

2022-11-15 Thread Tim Hardisty
As subject really. My (first real) PR failed some checks due to an unused variable. An easy fix, but I wanted to wait for any other feedback before resubmittingbut not much point waiting if the fail will mean no one reviews it lol. What's the process?

Re: Will a PR be ignored if it fails checks?

2022-11-16 Thread Tim Hardisty
Hi Alin, Ok - will do. I ran the checkpatch script as per guides - should I have done something else as well before submitting a PR? Thanks, Tim. On 16/11/2022, 08:00, "alin.jerpe...@sony.com" wrote: Hi Tim, Please fix the warning / error without waiting for someone to

Re: Will a PR be ignored if it fails checks?

2022-11-16 Thread Tim Hardisty
Thanks Nathan - I have already left such a comment on the PR. On 15/11/2022, 22:14, "Nathan Hartman" wrote: On Tue, Nov 15, 2022 at 2:25 PM Tim Hardisty wrote: > As subject really. My (first real) PR failed some checks due to an unused > variable. An easy fix,

Github check/Ubuntu version

2022-11-19 Thread Tim Hardisty
The checks on the few PRs I've done give an error " The ubuntu-18.04 environment is deprecated, consider switching to ubuntu-20.04(ubuntu-latest), or ubuntu-22.04 instead." Is that me (my machine is on 22.04 though) or a script/github problem?

Re: New names of repositories

2022-11-20 Thread Tim Hardisty
Might I humbly suggest that "if it isn't broken, don't fix it"? Just stick with the names already in use (minus the incubator, as will happen anyway). Just tried searching the Apache website for "RTOS" and NuttX is top of the list; searching the Apache GitHub repositories similarly and NuttX is

Apologies

2022-11-25 Thread Tim Hardisty
Some may have seen I've been attempting multiple times to submit PRs for 2 issues (SAMA5D2 related) and have closed/cancelled/retried numerous times. Bottom line - I am struggling with the whole rebase/squash/merge cycle...as I'm a complete numpty. Code I can mostly do, but this is the first tim

Re: Apologies

2022-11-26 Thread Tim Hardisty
That's a great reference - now bookmarked. Thank you!! On 25/11/2022, 19:59, "Fotis Panagiotopoulos" wrote: Hi Tim, Someone told me about this: https://github.com/k88hudson/git-flight-rules I haven't read it myself, but they say it is good. I hope

Re: Apologies

2022-11-26 Thread Tim Hardisty
; failed with status: 503 Service Unavailable" > > Do I need to do anything to get the tests to rerun and hopefully pass? > >>-Original Message- >>From: Tim Hardisty >>Sent: 25 November 2022 14:46 >>To: dev@nuttx.apache.org &g

Re: Debugging a specific application

2022-11-30 Thread Tim Hardisty
Not sure if it helps, but the built-in apps can be easily debugged, so could you perhaps include your application as a custom app, selected via the NuttX Kconfig so it gets built in, then start it from the nsh? A workaround maybe, but might help? On 30/11/2022, 05:40, "Roberto Bucher" wrote:

Re: Code donation

2022-12-04 Thread Tim Hardisty
I have interest in your settings storage, with the probability of adding yaml output since I was going to do something similar for my current project (once I get over the pain of getting NuttX fixed for the arch I'm using). As have been suggested, maybe push it to github and I/we can clone what'

USB host - HID keyboard and other things

2023-01-19 Thread Tim Hardisty
Hi all, I have finally got the USB interfaces working on my custom board (SAMA5D27) and, as a host, can see USB memory sticks, mount them and read/write to them. Also working as a USB device, using USB-C instead of OTG with an FUSB302 controller to auto switch between the 2 modes. To say I’m ve

Re: USB host - HID keyboard and other things

2023-01-19 Thread Tim Hardisty
Thanks – now I know what the likely issue is I can happily put this on the back-burner as it’s “only software” lol. Next battle is to get RNDIS working – so many random Kconfig settings needed it seems. From: Gregory Nutt Date: Thursday, 19 January 2023 at 19:18 To: dev@nuttx.apache.org Subje

Re: USB host - HID keyboard and other things

2023-01-19 Thread Tim Hardisty
Subject: Re: USB host - HID keyboard and other things Hi Tim, Look at page 85 here: https://www.usb.org/sites/default/files/documents/hid1_11.pdf "F.5 Keyboard: Using the Keyboard Boot Protocol This section explains some of the detail behind the requirements listed in Appendix G.4. To us

USB host - HID keyboard and other things

2023-01-19 Thread Tim Hardisty
Hi all, I have finally got the USB interfaces working on my custom board (SAMA5D27) and, as a host, can see USB memory sticks, mount them and read/write to them. Also working as a USB device, using USB-C instead of OTG with an FUSB302 controller to auto switch between the 2 modes. To say I'm ve

PING

2023-01-25 Thread Tim Hardisty
board instead, so enabled the built-in ping example app. It compiles OK but the app is not available from the shell: typing "?" at the nsh prompt, and the app isn't listed whereas others that I've enabled are there. Any ideas? Thanks, Tim.

Re: PING

2023-01-25 Thread Tim Hardisty
last tried this, years ago. > On 25/01/2023, 19:11, "Gregory Nutt" mailto:spudan...@gmail.com>> wrote: > The windows firewall usually blocks pings (at least incoming pings). > May sure that you configure the firewall to permit this operation. >On 1/25/2023 1:01 P

Re: PING

2023-01-26 Thread Tim Hardisty
u had double about your configuration, the best option is > looking some working board config example. > In this case take a look at boards/stm32f4discovery/configs/rndis/defconfig > On 1/25/23, Tim Hardisty mailto:t...@hardisty.co.uk>> > wrote: >> I did turn the firewa

RE: PING

2023-01-26 Thread Tim Hardisty
, so I will dig deeper and continue my comparison of defconfigs. >-Original Message- >From: Alan C. Assis >Sent: 26 January 2023 12:21 >To: dev@nuttx.apache.org >Subject: Re: PING > >Hi Tim, > >Did you enable ICMP protocol? > >Basically you need these

RE: PING

2023-01-26 Thread Tim Hardisty
failing for some reason but I have no idea, despite having compared defconfig files that have RNDIS enabled :( >-Original Message- >From: Alan C. Assis >Sent: 26 January 2023 12:21 >To: dev@nuttx.apache.org >Subject: Re: PING > >Hi Tim, > >Did you enable ICMP prot

Re: PING

2023-01-26 Thread Tim Hardisty
I've been through 3 different Windows RNDIS drivers and they all behave the same. One more variant to try tomorrow from some searching. As you saw RNDIS is a Microsoft thing, and supposedly should just work. There's probably a change that Windows made that has broken thingsjust for a change!

Re: PING

2023-01-26 Thread Tim Hardisty
needs something installed away from the dreaded Apple Store but that is usual! Arp failing is a pretty fundamental problem! On 26/01/2023, 19:47, "Alan C. Assis" mailto:acas...@gmail.com>> wrote: Hi Tim, I think someone already commented of this issue using RNDIS on Windows. It

Re: USB host - HID keyboard and other things

2023-01-26 Thread Tim Hardisty
I have traced the USB communication and it gets as far as it polling for new data, but never gets any. It is all detected, instantiated properly, and so forth – just doesn’t get data. So, as suggested, a protocol issue. The keyboard I’m using reports itself as subclass BOOTIF and protocol KEYBO

RE: [OT] Who is contribution with NuttX?

2023-01-27 Thread Tim Hardisty
>Tim Hardisty = 15 That be me :) JT Innovations Ltd Or JTi for short.

RNDIS

2023-01-27 Thread Tim Hardisty
Seems that RNDIS on Linux is deprecated as it's deemed insecure, so I need to use CDC-ECM for Linux (which works), but there's no generic driver for that in Windows (unless anyone knows differently?). So I am still trying to get RNDIS working...2 days of prodding and poking so far and no luck

RE: RNDIS

2023-01-27 Thread Tim Hardisty
t;Subject: Re: RNDIS > >Strange, it still available here: > >$ sudo modprobe rndis_host > >BR, > >Alan > >On 1/27/23, Tim Hardisty wrote: >> Seems that RNDIS on Linux is deprecated as it's deemed insecure, so I >> need to use CDC-ECM for Linux (which w

Pass interrupt status to handler

2023-01-27 Thread Tim Hardisty
Think this is an easy one but it's stumped me so far... I am setting up the USB Overcurrent interrupt and can't find any fully implemented examples. The interrupt is set to both edges as I want to know when the over current state is first set and later hopefully cleared. I can obviously read t

RE: Pass interrupt status to handler

2023-01-27 Thread Tim Hardisty
ry 2023 18:15 >To: dev@nuttx.apache.org >Subject: Re: Pass interrupt status to handler > >Is there a global structure where you retain state information where it >would be appropriate to save the most refent known state in a volatile >variable? > >On Fri, Jan 27, 2023 at 1:00

Re: RNDIS

2023-01-28 Thread Tim Hardisty
> On 28/01/2023, 00:09, "Masayuki Ishikawa"wrote: > Shall we move the discussions to the github issues? https://github.com/apache/nuttx/issues/8325 :)

Re: Lua fails to build

2023-01-28 Thread Tim Hardisty
> On 28/01/2023, 08:51, "Russell Haley" wrote: > I am not receiving emails on this email account. I believe that the apache mail reflector is the root cause of this, if emails are sent with a DKIM signature. The reflector adds new headers which cause the DKIM signature to fail. Any email servi

Re: RNDIS

2023-01-28 Thread Tim Hardisty
"Alan C. Assis" mailto:acas...@gmail.com>> wrote: Hi Tim, I just confirmed that it still working fine and I'll close your issue. This is a step-by-step process that everyone can follow to get it working: Configure your board: = $ ./tools/configure

Re: RNDIS

2023-01-28 Thread Tim Hardisty
plementation of other architectures. BTW, since RNDIS is deprecated it doesn't make sense to invest more time on it. Like Michael said, it is time to look for a better alternative that works on all OS. BR, Alan On 1/28/23, Tim Hardisty mailto:t...@hardisty.co.uk>> wrote: > Please don&#

Re: Lua fails to build

2023-01-28 Thread Tim Hardisty
I can't fully explain it...I think DKIM might be a clue. I am coming to the conclusion that email is a broken communication medium these days! On 28/01/2023, 18:14, "Russell Haley" mailto:russ.ha...@gmail.com>> wrote: On Sat, Jan 28, 2023 at 3:18 AM Tim Hardisty mailt

Custom SAMA5 dual-role ("OTG") usb

2023-02-03 Thread Tim Hardisty
I am implementing non-standard dual-role USB support for my SAMA5D27 board, using an external usb-c controller (FUSB302) to determine the required role and then set things up as necessary. Nearly there and, although it is mostly board-specific, it does need some minor changes to one or more cor

RE: Custom SAMA5 dual-role ("OTG") usb

2023-02-03 Thread Tim Hardisty
>-Original Message- >From: Tim Hardisty >Sent: 03 February 2023 11:13 >1) to have a CONFIG_SAMA5_USB_DRP option in the SAMA5 Kconfig. Actually - I just found of course I can put that option in my board's Kconfig which would be better and much safer.

Re: RNDIS

2023-02-11 Thread Tim Hardisty
> On 28/01/2023, 14:11, "Alan C. Assis" wrote: > If there are inconsistencies, they are not specify of RNDIS driver by > itself, but could be in the USB implementation of other architectures. Just for completeness, there was indeed a fix needed in the SAMA5 sam_udphs.c code. This is now done a

Ioctl numbering

2023-02-12 Thread Tim Hardisty
I just completed a driver for a usb misc driver. I created my own sequential list of ioctl numbers (albeit based on a list from a similar driver), declared in the driver's header file. I'm now doing a driver for an ambient light and proximity sensor and I see there is a dedicated sensors ioctl

Byte to int32/big and little endian

2023-02-25 Thread Tim Hardisty
As is so often the case, I need to pack an array of 4x uint8_t into a uint32_t. Obviously there are many ways to do this and we all have our favourite. For NuttX: 1) have I missed a library function that does this already? 2) to cope with big and little end is there a NuttX CONFIG or other para

Re: Byte to int32/big and little endian

2023-02-26 Thread Tim Hardisty
On 25/02/2023, 11:47, "Karel Kočí" mailto:cyn...@email.cz>> wrote: >I would use union (that is host ordering) and to convert to specific ordering >you can use functions like htobe32 (big endian) and htole32 (little endian), > those are available. > Excerpts fr

Re: Byte to int32/big and little endian

2023-02-26 Thread Tim Hardisty
On 26/02/2023, 12:37, "spudaneco" mailto:spudan...@gmail.com>> wrote: > I can find no references in the NuttX code base to changing > endian-ness?Search for CONFIG_ENDIAN_BIG Could have sworn I searched for that as had come across that CONFIG option. Search fail...sorry. I will look at what th

RE: Byte to int32/big and little endian

2023-02-27 Thread Tim Hardisty
>From: Karel Kočí >Sent: 26 February 2023 20:05 > >Excerpts from Tim Hardisty's message of February 26, 2023 12:17 pm: >> >> On 25/02/2023, 11:47, "Karel Kočí" <mailto:cyn...@email.cz>> wrote: >> >>>I would use union (that is ho

VS Code debugging

2023-03-02 Thread Tim Hardisty
I have been using VS code with a Segger Jlink for debugging so far but am struggling to find the cause of a problem in a driver I'm writing and I think the VS Code debug setup may be lacking. Before I spend time getting openOCD installed and following the various guides for that, with NuttX, th

RE: VS Code debugging

2023-03-03 Thread Tim Hardisty
nerating some >files from cmake so take a look at platforms/nuttx directory and >CMakeLists files inside and add .svd files for your mcu and everything >should work. >Best regards, >Bartek > >czw., 2 mar 2023, 20:24 użytkownik Tim Hardisty >napisał: > >> I have been

Help me understand file open/close behaviours?

2023-03-03 Thread Tim Hardisty
Hi all, The bug I thought I had in a driver I'm developing (well, one of them!) appears to be related to file closing. - I have a related example-type app I'm using to exercise and check the driver. It opens 2 "files" (O-RDONLY) to read data from the device driver - I have enabled CONFIG_SIGKIL

RE: Help me understand file open/close behaviours?

2023-03-03 Thread Tim Hardisty
>From: Nathan Hartman >Sent: 03 March 2023 18:36 >To: dev@nuttx.apache.org >Subject: Re: Help me understand file open/close behaviours? > >On Fri, Mar 3, 2023 at 1:07 PM Tim Hardisty wrote: >> The bug I thought I had in a driver I'm developing (well, one of them!) &

RE: Help me understand file open/close behaviours?

2023-03-03 Thread Tim Hardisty
>From: Gregory Nutt >Sent: 03 March 2023 19:03 >To: dev@nuttx.apache.org >Subject: Re: Help me understand file open/close behaviours? > >On 3/3/2023 12:56 PM, Gregory Nutt wrote: >> On 3/3/2023 12:36 PM, Nathan Hartman wrote: >>> On Fri, Mar 3, 2023 at 1:07 PM Ti

CONFIG_DEBUG_ASSERTIONS

2023-03-06 Thread Tim Hardisty
Am I being dumb again? With CONFIG_DEBUG_ASSERTIONS set, the system doesn't halt with a DEBUGASSERT (in a driver), and ends up in a while(true) type loop and I have to pause the debug session and hope that the call stack helps (a 50:50 chance for reasons I am yet to understand). The assert is i

RE: CONFIG_DEBUG_ASSERTIONS

2023-03-07 Thread Tim Hardisty
>Sent: 06 March 2023 21:35 >To: dev@nuttx.apache.org > >Put a breakpoint on up_assert. > >You can also then set the PC and SP to the saved value to see the context >of the assertion. > >On 3/6/2023 1:01 PM, Tim Hardisty wrote: >> >> I would really like it to

RE: NuttX is broken

2023-03-07 Thread Tim Hardisty
FWIW, I saw this yesterday on a new branch from Master. Bizarrely not with my first distclean and make but with a subsequent rebuild. Then it disappeared again: I tracked it down to a duplicate signal value with a random table having appeared in Kconfig. That branch was short lived so I’m not ha

RE: Build system is broken

2023-03-07 Thread Tim Hardisty
I have been frustrated at times by changes to master and it’s a conundrum: - If you're developing code and base it on a stable release there's a good chance that by the time your own code is "done" it will be incompatible with latest and/or the current release. - if you develop based on current,

RE: Help me understand file open/close behaviours?

2023-03-08 Thread Tim Hardisty
>From: Gregory Nutt >Sent: 03 March 2023 19:03 > >On 3/3/2023 12:56 PM, Gregory Nutt wrote: >> On 3/3/2023 12:36 PM, Nathan Hartman wrote: >>> On Fri, Mar 3, 2023 at 1:07 PM Tim Hardisty wrote: >>>> - I have enabled CONFIG_SIGKILL_ACTION to allow me to ctr

RE: Help me understand file open/close behaviours?

2023-03-09 Thread Tim Hardisty
age- >From: Tim Hardisty >Sent: 08 March 2023 17:37 >To: dev@nuttx.apache.org >Subject: RE: Help me understand file open/close behaviours? > >>From: Gregory Nutt >>Sent: 03 March 2023 19:03 >> >>On 3/3/2023 12:56 PM, Gregory Nutt wrote: >>> On 3/3/20

RE: Help me understand file open/close behaviours?

2023-03-09 Thread Tim Hardisty
I was wrong. My app was mishandling console input :( >-Original Message- >From: Tim Hardisty >Sent: 09 March 2023 15:34 >To: dev@nuttx.apache.org >Subject: RE: Help me understand file open/close behaviours? > >Guess what - this behaviour is only on Master. Spent an h

Sensor implementation

2023-03-11 Thread Tim Hardisty
I submitted a PR for a driver for the Broadcom APDS-9922 ambient light and proximity sensor, written with what one might call the "traditional" method of setting up the device via ioctl, then reading data when available according to the device setup, via poll notify. The reviewer (Hi Alan - I'

Re: Sensor implementation

2023-03-12 Thread Tim Hardisty
. In the future someone - or I - can revisit it should there ever be a wish for the APDS-9922 to follow the uORB/rpmsg approach. Discuss! Guide me! On 11/03/2023, 23:31, "Alan C. Assis" mailto:acas...@gmail.com>> wrote: On 3/11/23, Xiang Xiao mailto:xiaoxiang781...@gmail.

NXplayer, null audio

2023-03-15 Thread Tim Hardisty
Hi all, I am investigating but someone may have seen this already? Developing a custom audio driver but getting started with the null audio device and NXplayer. I have saved a WAV file to the smartfs and it appears to be valid. In case relevant I did this by saving the wav file to a header file

RE: NXplayer, null audio

2023-03-15 Thread Tim Hardisty
>From: Tim Hardisty > >Hi all, > >I am investigating but someone may have seen this already? > > >When I try and play it with NXplayer, it fails while trying to enqueue >the buffer and behaves as if the file is not open (EBADF) After comparing audio_null.c to (for exa

RE: [VOTE] Apache NuttX 12.1.0 RC0 release

2023-04-12 Thread Tim Hardisty
Since my custom board still relies on a lot of out-of-tree stuff, I don't think I can yet check this RC in the approved manner. But, in the interests of trying to do my bit, I have rebased a new branch of my current WIP fork of the upstream master to the upstream releases/12.1 branch, and can c

Re: MCU/Board with WiFi, BT and USB Host

2023-04-20 Thread Tim Hardisty
What sort processing power? Memory? Peripherals? SAMA5D27 (not that I’m biased lol) perhaps? ATSAMA5D27-WLSOM1 eval board has what you need but might be over the top? USB host/device works and you can do OTG/DRP on a custom board and it should be more than capable of doing CDC-ACM I would have

Re: MCU/Board with WiFi, BT and USB Host

2023-04-20 Thread Tim Hardisty
accreditation and fees. Don’t quote me on that! From: "Alan C. Assis" Reply to: "dev@nuttx.apache.org" Date: Thursday, 20 April 2023 at 20:08 To: "dev@nuttx.apache.org" Subject: Re: MCU/Board with WiFi, BT and USB Host Hi Tim, Really nice board! Do you know i

Re: MCU/Board with WiFi, BT and USB Host

2023-04-20 Thread Tim Hardisty
20, 2023 at 9:15 PM Tim Hardisty wrote: >> My longer term plan is to work on USB support for Bluetooth dongles rather >> than dedicated module support as that – should – avoid the need for >> Bluetooth SIG accreditation and fees. Don’t quote me on that! > > Blu

RE: MCU/Board with WiFi, BT and USB Host

2023-04-21 Thread Tim Hardisty
10k for "registering" a product with >certified module. So no measurements, only paperwork. > >I would be glad to hear that's wrong! It feels wrong definitely... > >-- >Ingenieurbüro-Filgis >USt-IdNr.: DE305343278 >-- >sent by mobile phone > >Tomek CEDRO schri

SAMA5 secure fuse controller driver

2023-04-25 Thread Tim Hardisty
The SAMA5 support has no driver for the secure fuse peripheral. Kconfig allows you to “enable” it but there’s no underlying code. Before I go ahead and create a character driver for this, is the omission for a “good” reason? The driver would handle the relatively straightforward management of

SAMA5(D2) SPI speed is restricted by the driver

2023-04-27 Thread Tim Hardisty
Just posted this same text on GitHub: https://github.com/apache/nuttx/issues/9127#issue-1687069010. Content copied here for those that don't go there. --- I have been investigating poor MTD performance with a GD25 memory on SPI0 of a SAMA5D27 processor. Using LittleFS, dd was

RE: SAMA5 secure fuse controller driver

2023-04-28 Thread Tim Hardisty
, but this arch has 32 bit "fields". Should I just stick with 8 bit "fields" and have 4 times as many? Or have I missed the point of "fields"? Thank you! >-Original Message- >From: Tim Hardisty >Sent: Tuesday, April 25, 2023 7:33 PM >To: dev@nut

critical_section vs mutex

2023-05-07 Thread Tim Hardisty
I am making use of the efuse driver code to create a driver for the sama5 secure fuse peripheral. There are not many drivers I can use as examplars but there is code that follows this for the esp32 family of processors. Those drivers protect fuse writes by encapsulating the entire write procedur

Odd DMA issue

2023-05-17 Thread Tim Hardisty
other timing/sequence problem but if anyone by any chance has encountered anything similar, clues or suggestions would be most welcome! Thx, Tim

Re: Odd DMA issue

2023-05-17 Thread Tim Hardisty
processors, though. From: Simon Filgis D-Cache flush? -- Ingenieurbüro-Filgis USt-IdNr.: DE305343278 -- sent by mobile phone Tim Hardisty mailto:t...@hardisty.co.uk>> schrieb am Mi., 17. Mai 2023, 20:05: I am working on getting DMA working on the SPI peripheral of the SAMA5D2. DMA rea

Re: Odd DMA issue

2023-05-17 Thread Tim Hardisty
if there are obvious differences. BR, Petro On Wed, May 17, 2023, 9:18 PM Simon Filgis mailto:si...@ingenieurbuero-filgis.de>> wrote: D-Cache flush? -- Ingenieurbüro-Filgis USt-IdNr.: DE305343278 -- sent by mobile phone Tim Hardisty mailto:t...@hardisty.co.uk>> schrieb am Mi., 17. Mai

RE: Odd DMA issue

2023-05-18 Thread Tim Hardisty
round 600KB/s (using dd to read from GD25 to /dev/null) and write at 79KB/s (dd from FAT formatted ramdrv to GD25 memory clocked at 103MHz). I think it should go faster, and I will probably keep plugging away at it, but 20x faster than it was last week. >-Original Message- >From: T

Re: esp32 custom board gpio and ws2812 problem

2023-05-20 Thread Tim Hardisty
Maybe OTG is superseded? USB C dual role port is the way to go, but needs a 25c chip and software support to make it work. FUSB30x FTW :) From: "Alan C. Assis" Reply to: "dev@nuttx.apache.org" Date: Saturday, 20 May 2023 at 20:10 To: "dev@nuttx.apache.org" Subject: Re: esp32 custom board gpio

Touchscreen scaling/LVGL

2023-05-23 Thread Tim Hardisty
Hi, This is perhaps more a POSIX/general programming question than NuttX but you are all, so often, so very helpful :) A touchscreen peripheral (SAMA5D2 as it happens) delivers X and Y coordinates scaled 0-4095. LVGL wants them scaled to the actual size of the display (800x480 in my case). I'

Re: Touchscreen scaling/LVGL

2023-05-23 Thread Tim Hardisty
Thanks Greg – I’ll take a look at those links, and take on board what you’re saying. From: Gregory Nutt Reply to: "dev@nuttx.apache.org" Date: Tuesday, 23 May 2023 at 19:52 To: "dev@nuttx.apache.org" Subject: Re: Touchscreen scaling/LVGL On 5/23/2023 12:11 PM, Tim Hardi

SPI EEPROM

2023-05-25 Thread Tim Hardisty
Could have sworn I had this working a year or 2 ago but it's stumped me today... I have an SPI EEPROM device on my board, and use "ee25xx_initialize" to register it as /dev/at25. That works fine. But I can't do anything with it. Unlike at25_initialize, the ee25xx_initialize doesn't return mtd_d

Re: SPI EEPROM

2023-05-25 Thread Tim Hardisty
to allow access via USB from PCs etc., probably using YAML formatting. Still thinking this all through. From: Tim Hardisty Reply to: Date: Thursday, 25 May 2023 at 17:35 To: "dev@nuttx.apache.org" Subject: SPI EEPROM Could have sworn I had this working a year or 2 ago but it

Thank you!

2023-05-25 Thread Tim Hardisty
My NuttX journey started in earnest about a year ago, after an enforced pause for personal reasons. The processor on my board is ATSAMA5D2. In the last year I have submitted (nearly all) merged PRs for this processor: - mcan - flexcom SPI - ClassD audio - SPI DMA - flexcom USART - efuse support

Audio Tone to /dev/audio driver, or via NXPlayer

2023-05-26 Thread Tim Hardisty
NXPlayer has an audio tone option to play tones, but no underlaying code hooks for it. Prompted by someone else's question today, I was thinking of looking at the Audio Tone Generator in "Device Drivers | Audio Device Support" to see if it could be adapted to output to a /dev/audio/pcm driver,

Re: Thank you!

2023-05-26 Thread Tim Hardisty
I have been tinkering with a blog/AboutMe thingy, also using it as a way to learn markdown. Although I've not updated it for a short while, I decided to add it to my GitHub profile if anyone is at all interested: https://github.com/TimJTi

Re: STM32 and GDB - How do I generate the ELF file?

2023-06-11 Thread Tim Hardisty
Where should that be in the (current) documentation? I’ll go and add it as I didn’t know this. From: Gregory Nutt Reply to: "dev@nuttx.apache.org" Date: Sunday, 11 June 2023 at 18:16 To: "dev@nuttx.apache.org" Subject: Re: STM32 and GDB - How do I generate the ELF file? On 6/11/2023 11:07 AM,

Bootloaders other than u-boot?

2023-07-01 Thread Tim Hardisty
Not directly related to NuttX but I hope you don't mind me asking here. Bottom line: has anyone used any bootloader other than u-boot to allow usb dfu or RNDIS-type firmware updates, and that easily boot NuttX? My board uses the usual SAMA5 methodology of AT91 bootstrap->u-boot->NuttX. It all w

Re: Bootloaders other than u-boot?

2023-07-01 Thread Tim Hardisty
Thanks Alan - I am spending just a few more hours on u-boot, and then I think Tomek's suggestion of MCUboot looks most promising :) On 01/07/2023 13:43, Alan C. Assis wrote: > Hi Tim, > > I think everybody already cited all main bootloader used with embedded > systems. > &g

Re: Bootloaders other than u-boot?

2023-07-01 Thread Tim Hardisty
ons in the different phases(bootloader, ota, gui app), cores(sensor hub, audio dsp), even security mode(tee). The benefit of this approach include: 1. You just need write driver once and reuse in all possible scenario 2. Don't need learn and switch the development environment On Sat, J

Re: Bootloaders other than u-boot?

2023-07-01 Thread Tim Hardisty
f :-) Its a really nice idea but probably really lots of work :-) -- CeDeROM, SQ7MHZ,http://www.tomek.cedro.info -- Regards, Tim Hardisty A picture containing text, clipart Description automatically generated +44 (0) 1305 534535 <http://www.jti.uk.com/>

Re: Bootloaders other than u-boot?

2023-07-01 Thread Tim Hardisty
to write a PC app and go through all the signing malarkey etc. On 01/07/2023 17:41, Gregory Nutt wrote: On 7/1/2023 10:27 AM, Tim Hardisty wrote: Lots of work to do a full u-boot replacement, yes. But a basic one using existing NuttX stuff such as RNDIS, dfu, mtd etc. - for MY board at least -

Re: Bootloaders other than u-boot?

2023-07-01 Thread Tim Hardisty
ith this and perhaps have developed some better solutions. -- Regards, Tim Hardisty A picture containing text, clipart Description automatically generated +44 (0) 1305 534535 <http://www.jti.uk.com/> JTi.uk.com <https://www.jti.uk.com/>

App crashes if entrypoint but not from nsh

2023-07-05 Thread Tim Hardisty
Having got u-boot to actually do something, I now have a board that powers up autonomously and runs nsh with no intervention from me. Quite relieved! As a step towards it booting my own (barely started) app I thought I'd play around with booting other example apps, and went for lvgldemo. This

Re: App crashes if entrypoint but not from nsh

2023-07-05 Thread Tim Hardisty
Yes - both that and the lvgldemo stack size (up to 65535 each). On 05/07/2023 18:21, Xiang Xiao wrote: Do you try CONFIG_INIT_STACKSIZE instead? On Thu, Jul 6, 2023 at 1:01 AM Tim Hardisty <mailto:t...@hardisty.co.uk> wrote: Having got u-boot to actually do something, I now have a

Re: App crashes if entrypoint but not from nsh

2023-07-05 Thread Tim Hardisty
LE_CMD_HISTORY=y CONFIG_SYSTEM_COLOR_CLE=y CONFIG_SYSTEM_NSH=y CONFIG_SYSTEM_NSH_STACKSIZE=2048 CONFIG_SYSTEM_UNIQUEID=y CONFIG_TTY_SIGINT=y CONFIG_UART1_SERIAL_CONSOLE=y CONFIG_USART2_BAUD=38400 CONFIG_USART3_BAUD=10 CONFIG_VIDEO_FB=y CONFIG_WATCHDOG=y CONFIG_WQUEUE_NOTIFIER=y On 05/07/2023 18:45, Petro Karash

Re: App crashes if entrypoint but not from nsh

2023-07-05 Thread Tim Hardisty
nt, right? On Wed, Jul 5, 2023, 8:54 PM Tim Hardisty <mailto:t...@hardisty.co.uk> wrote: Sure. I think attachements get stripped out so I have pasted the contents (I've "xxx"d references to the board name) # # This file is autogenerated: PLEASE DO NOT EDIT IT. # # You can use

Re: App crashes if entrypoint but not from nsh

2023-07-05 Thread Tim Hardisty
odify lvgldemo_main and place print some message to console + sleep(1); in a loop just after it is entered? Not sure if that will give us much, but worth of trying to get some information. Best regards, Petro On Wed, Jul 5, 2023, 9:30 PM Tim Hardisty <mailto:t...@hardisty.co.uk> wrote: Yes

Re: App crashes if entrypoint but not from nsh

2023-07-06 Thread Tim Hardisty
in a loop just after it is entered? Not sure if that will give us much, but worth of trying to get some information. Best regards, Petro On Wed, Jul 5, 2023, 9:30 PM Tim Hardisty wrote: Yes (or "music") - so called by nsh: lvgldemo music It's a memory-type problem of some sor

<    1   2   3   4   >