yangsong8-a1 commented on issue #15960:
URL: https://github.com/apache/nuttx/issues/15960#issuecomment-2717021806

   > [@yangsong8-a1](https://github.com/yangsong8-a1) Thanks for your support.
   > 
   > I found this issue in our application with Spresense SDK. Here is the 
procedure to reproduce it in the NuttX-only environment on a Spresense board.
   > 
   > * defconfig configuration
   >   
[defconfig.txt](https://github.com/user-attachments/files/19203075/defconfig.txt)
   > * It's necessary to patch for boot.
   > 
   > diff --git a/sched/clock/clock_systime_ticks.c 
b/sched/clock/clock_systime_ticks.c
   > index a99d8e1040..46d9b5cba2 100644
   > --- a/sched/clock/clock_systime_ticks.c
   > +++ b/sched/clock/clock_systime_ticks.c
   > @@ -77,7 +77,7 @@
   > 
   >  clock_t clock_systime_ticks(void)
   >  {
   > -#ifdef CONFIG_RTC_HIRES
   > +#if defined(CONFIG_RTC_HIRES) && !defined(CONFIG_CXD56_RTC_LATEINIT)
   >    struct timespec ts =
   >      {
   >        0
   > * Run `usbserial`
   > 
   > ```
   > nsh> usbserial
   > ```
   > 
   > * This is the result that your python script executed.
   > 
   > ```
   > Line 1: The Spanish Armada a Speech by Queen Elizabeth I of England
   > Line 2: Addressed to the English army at Tilbury Fort - 1588
   > Line 3: My loving people, we have been persuaded by some, that are careful 
of our safety, to take heed how we commit ourselves to armed multitudes, or 
fear of treachery; but I assure you, I do not desire to live to distrust my 
faithful and loving people.
   > Line 4: Let tyrants fear; I have always so behaved myself that, under God, 
I have placed my chiefest strength and safeguard in the loyal hearts and good 
will of my subjects. And therefore I am come amongst you at this time, not as 
for my recreation or sport, but being resolved, in the midst and heat of the 
battle, to live or die amongst you all; to lay down, for my God, and for my 
kingdom, and for my people, my honour and my blood, even the dust.
   > Line 5: I know I have but the body of a weak and feeble woman; but I have 
the heart of a king, and of a king of England, too; and think foul scorn hat 
Parma or Spain, or any prince of Europe, should dare to invade the borders of 
my realms: to which, rather than any dishonour should grow by me, I myself will 
take up arms; I myself will be your general, judge, and rewarder of every one 
of your virtues in the field.
   > Line 6: I know already, by your forwardness, that you have deserved 
rewards and crowns; and we do assure you, on the word of a prince, they shall 
be duly paid you. In the mean my lieutenant general shall be in my stead, than 
whom never prince commanded a more noble and worthy subject; not doubting by 
your obedience to my general, by your concord in the camp, and by your valour 
in the field, we shall shortly have a famous victory over the enemies of my 
God, of my kingdom, and of my people.
   > Line 223: port, but being resolved, in the midst and heat of the battle, 
to live or die amongst you all; to lay down, for my God, and for my kingdom, 
and for my people, my honour and my blood, even the dust.
   > ```
   
   @SPRESENSE  I try, but the PC still can't recognize the cdcacm device. Form 
your result, Line 223 error indeed.
   ```
   1. I copy this defconfig.txt in to nuttx dir 
boards/arm/cxd56xx/spresense/configs/usbcdcacm/
   2. apply this patch
   3.  ./tools/configure.sh spresense:usbcdcacm
   4. make
   5. ./tools/flash_writer.py -s -c /dev/ttyUSB0 -d -b 115200 -n nuttx.spk
   6. sudo minicom -D /dev/ttyUSB0 -b 115200
   7. $ nsh> ls /dev         # no ttyACM0
   8. $ nsh> usbserial
   usbserial_main: Registering USB serial driver
   usbserial_main: Successfully registered the serial driver
   usbserial_main: Opening USB serial driver
   **usbserial_main: ERROR: Failed to open /dev/ttyACM0 for writing: 107**
   usbserial_main: Not connected. Wait and try again.
   usbserial_main: Opening USB serial driver
   usbserial_main: Successfully opened the serial driver
   usbserial_main: Reciting QEI's speech of 1588
   usbserial_main: 1699 bytes sent
   usbserial_main: Waiting
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to