Issues with PIC32

2021-02-21 Thread Robert Middleton
early boot problems? * Is there a better compiler to use? -Robert Middleton [1]: https://github.com/MajenkoProjects/crosstool-ng-pic32

Re: Issues with PIC32

2021-02-21 Thread Robert Middleton
quot;. Nothing else is happening though - I was expecting to get some kind of shell, as USER_ENTRYPOINT is set to "nsh_main". Are there some other options that need to be set to switch nsh to use the correct UART? -Robert Middleton On Sun, Feb 21, 2021 at 11:18 AM Gregory Nutt wrote:

Re: Issues with PIC32

2021-02-21 Thread Robert Middleton
uld be able to get the proper configuration by doing ./tools/configure.sh -E -l pic32mx-explorer16:nsh. Note that the explorer16 has the output on UART2 - I don't remember if you can switch which UART qemu is using to see that output. Switching it to UART1 for the simulator should be fine though. -Robert Middleton

Re: Issues with PIC32

2021-02-22 Thread Robert Middleton
The patch for the context switching works perfectly, thanks! I do now have it working on the actual hardware as well, so I can start messing around with some stuff. -Robert Middleton

Unable to mount SD card

2021-02-27 Thread Robert Middleton
sh> mount -t vfat /dev/mmcsd0 /foo find_blockdriver: pathname="/dev/mmcsd0" mmcsd_open: Entry mmcsd_sendcmd: CMD9[] R1=7f mmcsd_getcardinfo: ERROR: CMD9/10 failed: R1=7f mmcsd_geometry: ERROR: mmcsd_getcsd returned -5 nx_mount: ERROR: Bind method failed: -19 nsh: mount:

PIC32: disabling JTAG

2022-08-07 Thread Robert Middleton
pins to be LEDs(using pic32mx_configgpio). It seems like it shouldn't matter if this is done before or after the TRIS/ODC registers are set. I didn't notice anything about this in the datasheet or in the errata, has anybody seen this before? Is there something that I'm missing? -Robert Middleton

Re: PIC32: disabling JTAG

2022-08-08 Thread Robert Middleton
onfig, it only seems to do that once you exit menuconfig. So I think I was sometimes doing it and sometimes not, leading to very strange behavior. Anyway it's fixed now, PR incoming shortly. -Robert Middleton On Mon, Aug 8, 2022 at 8:32 AM Alan Carvalho de Assis wrote: > > Hi Robert,

STM32F405RG and NuttX

2023-08-13 Thread Robert Middleton
nix.mk:684: menuconfig] Error 2 Any thoughts as to what to look into to try and fix the problem? Trying to build on Debian 11, with ARM GCC 8.3.1 from apt. -Robert Middleton

Re: STM32F405RG and NuttX

2023-08-14 Thread Robert Middleton
Thanks for the tip Alan! I modified that config slightly(reconfigure the clocks) and got it to boot and output information on the serial port. Now I just need to configure the applications appropriately. -Robert Middleton On Sun, Aug 13, 2023 at 2:19 PM Alan C. Assis wrote: > > Hi

STM32 and ttyACM device

2023-10-21 Thread Robert Middleton
ible? I am only testing this with the terminal at the moment, but if I need to use a special ioctl or something like that, that would be fine too. -Robert Middleton

Re: STM32 and ttyACM device

2023-10-22 Thread Robert Middleton
fine. Sample code(no error checking): int get_val; ioctl(fd, CAIOC_GETCTRLLINE, &get_val); printf("get val: 0x%02X. RTS: %d DTR: %d\n", get_val, (get_val & CDCACM_UART_RTS) > 0, (get_val & CDCACM_UART_DTR) > 0); -Robert Middleton

ID page of EEPROM

2023-11-03 Thread Robert Middleton
to access this page? -Robert Middleton

Re: ID page of EEPROM

2023-11-04 Thread Robert Middleton
n the MTD folder and the EEPROM folder. It seems that both folders have support for the at24xx and at25xx series of chips, so it's not obvious which one is better. I was planning to add it to the drivers/eeprom/spi_xx25xx.c. -Robert Middleton On Fri, Nov 3, 2023 at 8:17 PM Gregory Nutt wrote

Trouble adding a new board

2023-11-05 Thread Robert Middleton
x27;ve missed something here, but what? I've done everything that should be done according to the porting guide on Confluence(cwiki), but I'm not sure if that's up to date. What might I be missing? -Robert Middleton

Re: Trouble adding a new board

2023-11-08 Thread Robert Middleton
nt board. Arduino Feather compatible board -Robert Middleton On Mon, Nov 6, 2023 at 9:34 AM Mark Stevens wrote: > > Robert, > > There was a YouTube video posted a few weeks ago and the 2+ hour session > which covered porting to a new STM32F4 board. Maybe that can help. > > h