tty philosophy

2021-04-28 Thread Tim Hardisty
I am sorting out flexcom support for the SAMA5D2 as there are issues with the arch files as well as Kconfig. In doing so, I would like to do it “right”. If flexcoms are assigned as USARTs is the correct philosophy to register them sequentially or as per flexcom port number? For example, if (o

Re: CAN example crashes

2021-05-07 Thread Tim Hardisty
Thanks Alan - those are already set but don't seem to produce any output on the console so may be the error output itself isn't configured right. I'll take a look. On 07/05/2021, 18:49, "Alan Carvalho de Assis" wrote: >Hi Tim, >Try to enable the debug in the menuconfig: > Build Se

Re: CAN example crashes

2021-05-08 Thread Tim Hardisty
>> Is there any description somewhere about this example ? >> >There is some in apps/examples/README.md, but not a lot of info. Not much, no, but the example code is pretty self-explanatory!

Re: Dev environment

2021-05-11 Thread Tim Hardisty
Thanks Alan. Compiling is no problem it is debugging that is my issue. I see from your process that you copied the elf from the WSL environment to the Windows /mnt/c ...I haven't tried that but I am not sure it will help eclipse find the source code...unless I also replicate the source tree on t

Re: Dev environment

2021-05-11 Thread Tim Hardisty
Thanks Flavio - I hadn't thought about using a VM; that would avoid yet another lump of PC hardware cluttering up the place if I can't get the WSL or MAC approach to work. I am really hating Window at the moment (1 machine can connect to my Mac, the other can't...many hours wasted NOT fixing it

Re: Dev environment

2021-05-11 Thread Tim Hardisty
I have the board booting from AT91bootstrap and Uboot, from QSPI no problem. Downloading code using JLink from Windows/eclipse is fine, but the debugging is broken/mis-configured. I will probably have another go at a Windows-hosted development environment and have the arm cross compilers install

Re: Dev environment

2021-05-11 Thread Tim Hardisty
Hmm...do need Windows for my schematic capture and 3D design applications, but Mac little used as yet...I'm thinking dual boot Mac/Ubuntu is probably the way to go! On 11/05/2021, 20:30, "Alan Carvalho de Assis" wrote: Also, if you are not dependent on Windows, just install Linux on your

Re: Dev environment

2021-05-11 Thread Tim Hardisty
I see from https://www.mail-archive.com/dev@nuttx.apache.org/ that others have replied. These have not got through to me so apologies for not yet taking up the offers of assistance. I will try and sort whatever the email issue is and then reply!

RE: Dev environment

2021-05-12 Thread Tim Hardisty
>From: Alan Carvalho de Assis > >Did you enable CONFIG_DEBUG_CAN_INFO in your menuconfig? > > │ -> Build Setup > │ > │ -> Debug Options > │ > │ -> Enable Debug Features (DEBUG_FEATURES [=y]) > │ > │ -> CAN Debug Features (DE

RE: Dev environment

2021-05-12 Thread Tim Hardisty
>On 5/12/21, Tim Hardisty wrote: >>>From: Alan Carvalho de Assis >>> >>>Did you enable CONFIG_DEBUG_CAN_INFO in your menuconfig? >>> >>> │ -> Build Setup >>> │ >>> │ -> Debug Options >>

RE: Assert and Debug issues

2021-05-13 Thread Tim Hardisty
>>From: disruptivesolution...@gmail.com >1) If I enable Debug Assertions the build will not run at all as it halts very >very >early on. Debugger suggests the system is in up_idle(). >> Mostly this is caused by a "fault" somewhere down the line. >> Does it "print" ABCDE? Nope, nothing. It simp

Re: Dev environment

2021-05-24 Thread Tim Hardisty
he board is crashing in can_hwinitialize when it calls can_putreg(priv, SAM_PMC_PCR, regval)...so next week's task is to find out what's up with this (it's not my code). On 5/12/21, Tim Hardisty wrote: From: Alan Carvalho de Assis Did you enable CONFI

Re: CAN example crashes

2021-05-25 Thread Tim Hardisty
On 07/05/2021 17:48, Tim wrote: Hi, SAMA5D27 (custom board) - trying to complete the port and also check that the CAN interface works on the board, so I'm trying to use the CAN example app As per my other thread, Linux+VS Code+Segger all up and running so I can see what's going on n

Re: Memory locations

2021-06-08 Thread Tim Hardisty
On 07/06/2021 20:45, Gregory Nutt wrote: I will, I believe, need to declare - place - MCAN related structures such that they (or at least some elements of them) are in SRAM. You will need to exercise care.  SRAM (called isram in the linker scripts) is already used for other things including

Re: Memory locations

2021-06-08 Thread Tim Hardisty
On 07/06/2021 19:06, Nathan Hartman wrote: On Mon, Jun 7, 2021 at 12:24 PM Tim wrote: I will, I believe, need to declare - place - MCAN related structures such that they (or at least some elements of them) are in SRAM. Yes. It is possible. It is done by adding attributes in the code which tel

Re: Memory locations

2021-06-08 Thread Tim Hardisty
lash.ld#L179-L184 You can check it the arm-none-eabi-nm -C nuttx.elf | grep g_mcan0_msgram David -Original Message- From: Tim Hardisty [mailto:t...@jti.uk.com] Sent: Tuesday, June 08, 2021 4:23 AM To: dev@nuttx.apache.org Subject: Re: Memory locations On 07/06/2021 19:06, Nathan Har

Re: Memory locations

2021-06-08 Thread Tim Hardisty
lash.ld#L179-L184 You can check it the arm-none-eabi-nm -C nuttx.elf | grep g_mcan0_msgram David -Original Message- From: Tim Hardisty [mailto:t...@jti.uk.com] Sent: Tuesday, June 08, 2021 4:23 AM To: dev@nuttx.apache.org Subject: Re: Memory locations On 07/06/2021 19:06, Nathan Har

Re: Memory locations

2021-06-08 Thread Tim Hardisty
On 08/06/2021 14:18, Sebastien Lorquet wrote: what I would check here (just a live thought process) * check that the ld file is actually used (ld file is pointed by main Make.defs IIRC) (easy: just add garbage in it and verify build actually breaks) You, sir, have earned the cigar! Garbage

Re: Lin

2021-08-14 Thread Tim Hardisty
My custom board has a Lin/K-Line interface using a TJA1021 transceiver, but software support is low on the priority/roadmap at this time. Nevertheless, I would be happy to be involved in testing (I have a CAN/LIN analyzer/stream generator) if it helps. -Original Message- From: Pavel Pi

sama5D2 class D audio

2021-08-19 Thread Tim Hardisty
Working through the remaining driver support I need for my custom board and I can’t find anything related to audio for the sama5d2 devices (they have Class D capability, with lots of modes). Before I dive in and find some time to create a driver from scratch, have I missed something? Documen

Re: sama5D2 class D audio

2021-08-19 Thread Tim Hardisty
=y ./sama5d4-ek/configs/nsh/defconfig:CONFIG_DRIVERS_AUDIO=y ./sama5d4-ek/configs/nxwm/defconfig:CONFIG_DRIVERS_AUDIO=y These, however, used I2S for interface to an WM8904 DAC. On 8/19/2021 12:41 PM, Tim Hardisty wrote: Working through the remaining driver support I need for my custom

Re: SPI EEPROM

2021-08-24 Thread Tim Hardisty
That’s AT24 I2C not AT25 SPI EEPROM unfortunatel,  and from a quick look it “just worked” ☹ From: Alan Carvalho de Assis Reply to: Date: Tuesday, 24 August 2021 at 18:01 To: Subject: Re: SPI EEPROM Hi Tim, You are right, Documentation is one of our "Achilles tendon". But,

Re: SPI EEPROM

2021-08-24 Thread Tim Hardisty
example. BR, Alan On 8/24/21, Tim Hardisty wrote: That’s AT24 I2C not AT25 SPI EEPROM unfortunatel, and from a quick look it “just worked” ☹ From: Alan Carvalho de Assis Reply to: Date: Tuesday, 24 August 2021 at 18:01 To: Subject: Re: SPI EEPROM

Re: SPI EEPROM

2021-08-24 Thread Tim Hardisty
AT24 is I2C and this is well supported in NuttX. AT25 is SPI and is what I have (AT25128) and it is not well supported, with no example code or boards that support it (that I can find) From: Gregory Nutt Reply to: Date: Tuesday, 24 August 2021 at 20:11 To: Subject: Re: SPI EEPROM

Re: Re[2]: SPI EEPROM

2021-08-24 Thread Tim Hardisty
Thanks Vadim – that’s pretty much the conclusion I had come to. Tim. Subject: Re[2]: SPI EEPROM Hi Tim, You could search for any spi device being initialized. Search for spi_dev_s being declared in boards folder for some board, use it as an example and do the same initia

Re: SPI EEPROM

2021-08-24 Thread Tim Hardisty
of course, if you don't know how to configure the SPI pins (including the GPIO pin CS), nothing will work. For Atmel/Microchip SAMxx family SPI, I think boards/arm/samv7/samv71-xult/src/sam_st7789.c could be a good reference. BR, Alan On 8/24/21, Tim Hardisty wrote: AT24 i

Re: SPI EEPROM

2021-08-25 Thread Tim Hardisty
f you don't know how to configure the SPI pins (including the GPIO pin CS), nothing will work. For Atmel/Microchip SAMxx family SPI, I think boards/arm/samv7/samv71-xult/src/sam_st7789.c could be a good reference. BR, Alan On 8/24/21, Tim Hardisty wrote: AT24 is I2C and this is well su

Re: nxfss on MT25Q nor flash

2021-08-25 Thread Tim Hardisty
My board is now correctly registering the SPI instance and binding the relevant SPI and CS to the SPI Flash driver. It was an uphill struggle, but thanks to all your various suggestions I have got there and learned more than I wanted to! Next hurdle is to trawl through other boards to learn

Re: which filesystem?

2021-08-25 Thread Tim Hardisty
Hi Ken, You fell for my 100% unintentional trap…thread title didn’t match content! I’d started one message, saved it as a draft, then changed my mind on what to ask but didn’t change the title. Doh! I did try SmartFS and really like the sound of it, but it didn’t work “out of the box”. I

Re: which filesystem?

2021-08-25 Thread Tim Hardisty
Thanks Greg – and apologies for the wrong thread subject. I have seen references in the code to FTL but stupidly thought it was some other kind of FS. A non-Linux/Posix/Unix background means I am not totally across the mtd/block driver terminology etc. I did use Unix, but that was around 45

Re: which filesystem?

2021-08-25 Thread Tim Hardisty
I am only just getting the point of having the luxury to think about what FS to use lol. My 1st thought was indeed FAT and USB MSD for sure…but I made the randome decision to put a USB-C connector and FUSB controller on the board and haven’t got that working yet. The beauty of NuttX is it gi

Re: which filesystem?

2021-08-25 Thread Tim Hardisty
Thanks Sara – I’m having a problem with your emails…via my work server they are rejected, and my personal email marks them as spam, but delivers them and messes up the formatting. I can see you have some good suggestions so I will try and unravel it all and reply tomorrow. From: Sara da

Naffs - format?

2021-08-26 Thread Tim Hardisty
Today's dumb question! Having got a mounted nxffs spi flash "drive", I had a quick try earlier today to store some data. If I did: nsh> ls > /mnt/flash/file1.txt there was a major crash. If I enabled the startup scan it sat there for 20+ minutes before I gave up and halted it (it was still d

Re: Naffs - format?

2021-08-26 Thread Tim Hardisty
(no insult intended…naffs was a typo!) From: Tim Hardisty Today's dumb question! Having got a mounted nxffs spi flash "drive", I had a quick try earlier today to store some data. If I did: nsh> ls > /mnt/flash/file1.txt there was a major crash.

Re: NuttX Monthly Meetup

2021-09-22 Thread Tim Hardisty
What sort of agenda, or purpose, Alan? Sounds like a good idea but some suggestion of what to expect would be good :) On 22/09/2021, 18:20, "Alan Carvalho de Assis" wrote: Dear NuttXers, We want to do monthly meets with our developers and users. The first online meet will be t

Re: Poll: Which OS are you using to compile NuttX?

2021-09-24 Thread Tim Hardisty
Needs a LinkedIn login? From: Alan Carvalho de Assis Reply to: "dev@nuttx.apache.org" Date: Friday, 24 September 2021 at 20:20 To: dev Subject: Poll: Which OS are you using to compile NuttX? Hi Everyone, Please help us to discover which OS people are using most to compile NuttX: https://ww

Re: Poll: Which OS are you using to compile NuttX?

2021-09-24 Thread Tim Hardisty
nding. BR, Alan On 9/24/21, Russell Haley wrote: > The link gives me “This post cannot be displayed”. I am logged into the > Microsoft data collection site known as LinkedIn. > > Sent from Mail for Windows > > From: Tim Hardisty > Sent

Re: USB MSD problem

2021-12-22 Thread Tim Hardisty
On 22/12/2021, 20:15, "Alan Carvalho de Assis" wrote: >On 12/22/21, TimH wrote: >> On 22/12/2021 15:55, Alan Carvalho de Assis wrote >> If I want to share what I'm doing with the details of the project etc, >> where might you suggest I do this? >If you want share your progres

Re: USB MSD problem

2021-12-27 Thread Tim Hardisty
Yes, I now think so. I know I looked at stack settings but (without benefit of access to my Linux work machine from home) if I recall they are spread around the place and I suspect - from other advise here - that it is the app stack size that is inadequate. Hopefully a break from it all will ma

Re: MT25P vs MT25Q bulk erase difference - how to fix?

2022-01-18 Thread Tim Hardisty
Thanks - makes sense. I am still not 100% convinced the M25P code is actually correct for the M25Q. It's a work-in-progress. This is what I have added, and all other things being equal, I will use it in the driver where there are subtle differences needed. structm25p_dev_s { structmtd_dev_s

Re: RNDIS

2022-01-21 Thread Tim Hardisty
Thanks Alanm - my lack on Linux knowledge failed me again. Never used dmesg...luckily I like learning lol. From Linux machine: [ 3399.181365] usb 1-2: new high-speed USB device number 21 using xhci_hcd [ 3399.337980] usb 1-2: New USB device found, idVendor=584e, idProduct=5342, bcdDevice= 0.0

Re: SPI problem

2022-03-06 Thread Tim Hardisty
>From my own struggles to get a board (custom board as it happens, but like >others that were there) I found: Board support was often incomplete. Look at other boards to see where and how SPI is initialised and registered. You may find something basic is missing. Stack size. Random errors occu

Re: 10.3 merge issues

2022-08-17 Thread Tim Hardisty
I realise, now, I compared mine against 10.2 variants not 10.3...not sure why, but there you go. I'll give that a try tomorrow - thanks! On 17/08/2022, 20:19, "Nathan Hartman" wrote: On Wed, Aug 17, 2022 at 3:15 PM Nathan Hartman wrote: > > On Wed, Aug 17, 2022 at 2:38 PM TimH w

Re: Driver for combined battery charger and regulator

2022-09-07 Thread Tim Hardisty
>>> Please correct me if I'm still missing something, as there are zero >>> clues I can find as to what each ops function (for example) is >>> actually supposed to do. >> >> >> >>Here is two examples: >>https://github.com/apache/incubator- >>nuttx/blob/master/d

Re: Driver for combined battery charger and regulator

2022-09-07 Thread Tim Hardisty
>> Please: what are the purpose of: >> >> set_voltage_sel >> get_voltage_sel >> >FYI: https://www.kernel.org/doc/html/v4.12/driver-api/regulator.html Alan to the rescue again :-) Perhaps Nuttx needs a warning to newcomers: "enter without Linux knowledge at your peril" LO

Re: Driver for combined battery charger and regulator

2022-09-07 Thread Tim Hardisty
On Wed, Sep 7, 2022 at 1:03 PM Tim Hardisty wrote: >> >> >> >>> Please correct me if I'm still missing something, as there are zero >> >>> clues I can find as to what each ops function (for exa

Re: Driver for combined battery charger and regulator

2022-09-08 Thread Tim Hardisty
On 08/09/2022, 18:07, "Xiang Xiao" wrote: On Fri, Sep 9, 2022 at 12:19 AM TimH wrote: >> unsigned int apply_uv;/* ?? SEE BELOW [1] */ >Yes, bool is more suitable than int for apply_uv. Thanks for confirming/agreeing - once 11.0 is released and I rebase my own

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
Bit of a tangential question this, but I know there are folk on here who are much more conversant with the way NuttX can be used with WiFi and Bluetooth modules than I am. I may have an opportunity forced on me to have to respin my custom board which currently has a SiLabs Bluetooth SoC as wel

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
i Tim, On 10/28/22, Tim Hardisty wrote: > Bit of a tangential question this, but I know there are folk on here who > are much more conversant with the way NuttX can be used with WiFi and > Bluetooth modules than I am. > I think these are important quest

Re: Bluetooth+WiFi+NuttX

2022-10-29 Thread Tim Hardisty
tly-without-going-thru-phy > > BR, > > Alan > > On 10/29/22, Tim Hardisty wrote: >> Thanks for your clarifications Alan - I have messaged Espressif (your >> reply >> ended up in SPAM otherwise I might not have needed to) so I gu

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
review it. Best regards Alin -Original Message- From: Tim Hardisty Sent: den 15 november 2022 20:25 To: dev@nuttx.apache.org Subject: Will a PR be ignored if it fails checks? As subject really. My (first real) PR failed some checks due to an unused va

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 you find it helpful.

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
uld see it: bInterfaceClass 3 Human Interface Device bInterfaceSubClass 1 Boot Interface Subclass bInterfaceProtocol 1 Keyboard BR, Alan On 1/19/23, Tim Hardisty wrote: > Thanks – now I know what the likely issue is I can happily put this on the > back-burn

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
Hi all, I'm trying to get RNDIS working. It nearly does - Windows sees the "gadget" and it has the right IP address etc. But I can't ping my board. Probably some buried config setting that I'm yet to find, so I thought I'd try pinging the Windows (11) PC from my board instead, so enabled the b

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
flags: > >CONFIG_NET_ICMP >CONFIG_NETUTILS_PING >CONFIG_SYSTEM_PING > >BR, > >Alan > >On 1/26/23, Tim Hardisty wrote: >> Hi Alan - yes, I'm doing that to check what I missed for RNDIS >> (followed your video guide btw), but I can't explain why t

RE: PING

2023-01-26 Thread Tim Hardisty
ocol? > >Basically you need these flags: > >CONFIG_NET_ICMP >CONFIG_NETUTILS_PING >CONFIG_SYSTEM_PING > >BR, > >Alan > >On 1/26/23, Tim Hardisty wrote: >> Hi Alan - yes, I'm doing that to check what I missed for RNDIS >> (followed your video guide

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
works fine with Linux (not sure about MacOS). So it will requires some investigation to understand what is going on. Try to use it connected to some Linux machine to confirm. BR, Alan On 1/26/23, Tim Hardisty mailto:t...@hardisty.co.uk>> wrote: > I have CDC-ECM working just fine

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
ms Connect to your board over telnet: == alan@dev:~/nuttxspace/nuttx$ telnet 10.42.0.86 Trying 10.42.0.86... Connected to 10.42.0.86. Escape character is '^]'. NuttShell (NSH) NuttX-12.0.0 nsh> BR, Alan On 1/28/23, Tim Hardisty mailto:t...

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 from Tim Hardisty's message of Febr

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čí" > wrote: >> >>>I would use union (that is host ordering) and to convert to specific >>>ordering you can use functi

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

  1   2   3   >