Re: qencoder / long / float / double / maximum values
> Thanks Raiden! Can you hint a complete implementation that I can base > on the ESP32 work? :-) You can look at https://github.com/apache/nuttx/blob/master/arch/arm/src/stm32/stm32_qencoder.c and search for CONFIG_STM32_QENCODER_INDEX_PIN. sob., 10 cze 2023 o 02:53 Tomek CEDRO napisał(a): > On Fri, Jun 9, 2023 at 3:24 AM Nathan Hartman wrote: > > I know it is sometimes unpopular to suggest adding more Kconfigs but > maybe > > this is something that should be configurable, allowing developers to > > choose if they need a 64-bit count for range or a 32- (or even 16-) bit > > count for efficiency. The needed speed and counter size really depends on > > how the application is going to use the qencoder. > > I am wondering on something more universal than #ifdef CONFIG and > wrapping the whole lines of duplicated code.. > > Maybe a void pointer that would be then casted to a type based on a CONFIG? > > Any hints welcome :-) > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info >
STM32 and GDB - How do I generate the ELF file?
So I’m admitting defeat on this problem and I need some help please. I’m trying to work out the magic incantations I need to weave to create a NuttX ELF file that I can use with GDB. To be clear this is the OS ELF file that I can use on the host computer. I am currently targeting the Pico boards but I have also had this problem with the STM32F767 Discovery board as well. I have opened connect to the boards in both cases and I am now trying to debug the OS on the board. Can anyone point me in the right direction - I’m sure it is going to be simple, I just need pointing in the right direction. Thanks in advance, Mark _ Blog: blog.thepcsite.co.uk Twitter: @nevynuk
Re: STM32 and GDB - How do I generate the ELF file?
Hi Mark, Could you please try these magical steps: $ make distclean $ ./tools/configure.sh stm32f777zit6-meadow:nsh $ make menuconfig Build Setup ---> Debug Options ---> [*] Generate Debug Symbols $ make -j Flash nuttx.bin Connect to the board using OpenOCD + STLink-V2: $ sudo openocd -f interface/stlink-v2.cfg -f target/stm32f7x.cfg In another terminal: $ gdb nuttx (gdb) target remote localhost: (gdb) monitor reset (gdb) load nuttx (gdb) b nx_start (gdb) c BR, Alan On 6/10/23, Mark Stevens wrote: > So I’m admitting defeat on this problem and I need some help please. > > I’m trying to work out the magic incantations I need to weave to create a > NuttX ELF file that I can use with GDB. To be clear this is the OS ELF file > that I can use on the host computer. > > I am currently targeting the Pico boards but I have also had this problem > with the STM32F767 Discovery board as well. I have opened connect to the > boards in both cases and I am now trying to debug the OS on the board. > > Can anyone point me in the right direction - I’m sure it is going to be > simple, I just need pointing in the right direction. > > Thanks in advance, > Mark > _ > Blog: blog.thepcsite.co.uk > Twitter: @nevynuk > > > > > >
Re: STM32 and GDB - How do I generate the ELF file?
We have a more detailed documentation here: https://nuttx.apache.org/docs/latest/quickstart/debugging.html#debugging-with-openocd-and-gdb Any issue, please let us to know. BR, Alan On 6/10/23, Alan C. Assis wrote: > Hi Mark, > > Could you please try these magical steps: > > $ make distclean > > $ ./tools/configure.sh stm32f777zit6-meadow:nsh > > $ make menuconfig > > Build Setup ---> > Debug Options ---> > [*] Generate Debug Symbols > > $ make -j > > Flash nuttx.bin > > Connect to the board using OpenOCD + STLink-V2: > > $ sudo openocd -f interface/stlink-v2.cfg -f target/stm32f7x.cfg > > In another terminal: > > $ gdb nuttx > (gdb) target remote localhost: > (gdb) monitor reset > (gdb) load nuttx > (gdb) b nx_start > (gdb) c > > BR, > > Alan > > On 6/10/23, Mark Stevens wrote: >> So I’m admitting defeat on this problem and I need some help please. >> >> I’m trying to work out the magic incantations I need to weave to create a >> NuttX ELF file that I can use with GDB. To be clear this is the OS ELF >> file >> that I can use on the host computer. >> >> I am currently targeting the Pico boards but I have also had this problem >> with the STM32F767 Discovery board as well. I have opened connect to the >> boards in both cases and I am now trying to debug the OS on the board. >> >> Can anyone point me in the right direction - I’m sure it is going to be >> simple, I just need pointing in the right direction. >> >> Thanks in advance, >> Mark >> _ >> Blog: blog.thepcsite.co.uk >> Twitter: @nevynuk >> >> >> >> >> >> >