You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/11/22 23:49:59 UTC

[GitHub] [incubator-nuttx] masayuki2009 opened a new pull request #2380: tools: Fix nuttx-gdbinit for armv7-m with FPU

masayuki2009 opened a new pull request #2380:
URL: https://github.com/apache/incubator-nuttx/pull/2380


   ## Summary
   
   - Brennan reported the script does not work with nucleo-h743zi:otg_fs_host
   - Actually, the config uses FPU but the script did not detect it
   - The script assumed that the nuttx contains fpuconfig symbol
   - However, this assumption was incorrect
   - This commit fixes this issue by detecting FPU with tcb->xcp.regs
   
   ## Impact
   
   - Cortex-M targets
   
   ## Testing
   
   - Tested with lm3s6965-ek:discover (Cortex-M3)
   - Tested with spresense:wifi_smp (Cortex-M4F)
   - Tested with sim:smp (x86_64)
   


----------------------------------------------------------------
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.

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



[GitHub] [incubator-nuttx] btashton merged pull request #2380: tools: Fix nuttx-gdbinit for armv7-m with FPU

Posted by GitBox <gi...@apache.org>.
btashton merged pull request #2380:
URL: https://github.com/apache/incubator-nuttx/pull/2380


   


----------------------------------------------------------------
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.

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



[GitHub] [incubator-nuttx] masayuki2009 commented on pull request #2380: tools: Fix nuttx-gdbinit for armv7-m with FPU

Posted by GitBox <gi...@apache.org>.
masayuki2009 commented on pull request #2380:
URL: https://github.com/apache/incubator-nuttx/pull/2380#issuecomment-731868342


   @btashton 
   Please try this PR.
   


----------------------------------------------------------------
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.

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



[GitHub] [incubator-nuttx] masayuki2009 commented on pull request #2380: tools: Fix nuttx-gdbinit for armv7-m with FPU

Posted by GitBox <gi...@apache.org>.
masayuki2009 commented on pull request #2380:
URL: https://github.com/apache/incubator-nuttx/pull/2380#issuecomment-731868275


   See https://github.com/apache/incubator-nuttx/issues/2366
   


----------------------------------------------------------------
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.

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



[GitHub] [incubator-nuttx] masayuki2009 commented on pull request #2380: tools: Fix nuttx-gdbinit for armv7-m with FPU

Posted by GitBox <gi...@apache.org>.
masayuki2009 commented on pull request #2380:
URL: https://github.com/apache/incubator-nuttx/pull/2380#issuecomment-731870644


   > Thanks! I just tested this on the stm32h7 with FP and it worked.
   
   @btashton 
   Thanks for testing!
   


----------------------------------------------------------------
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.

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



[GitHub] [incubator-nuttx] btashton commented on pull request #2380: tools: Fix nuttx-gdbinit for armv7-m with FPU

Posted by GitBox <gi...@apache.org>.
btashton commented on pull request #2380:
URL: https://github.com/apache/incubator-nuttx/pull/2380#issuecomment-731870463


   Thanks! I just tested this on the stm32h7 with FP and it worked.
   ```
   (gdb) info_nxthreads 
   target examined 
   _target_arch.name=armv7e-m
   $_target_has_fpu : 1 
   $_target_has_smp : 0 
   saved current_tcb (pid=0) 
   * 0 Thread 0x24000358  (Name: Idle Task, State: Running, Priority: 0) 0x80091bc in arm_switchcontext()
     1 Thread 0x380002f0  (Name: hpwork, State: Waiting,Signal, Priority: 224) 0x80091bc in arm_switchcontext()
     2 Thread 0x38000ec0  (Name: lpwork, State: Waiting,Signal, Priority: 100) 0x80091bc in arm_switchcontext()
     3 Thread 0x38001a90  (Name: init, State: Waiting,Semaphore, Priority: 100) 0x80091bc in arm_switchcontext()
     4 Thread 0x38002710  (Name: usbhost, State: Waiting,Semaphore, Priority: 100) 0x80091bc in arm_switchcontext()
   ```


----------------------------------------------------------------
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.

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