grblHAL / RP2040

grblHAL driver for RP2040 (Pi Pico)
Other
103 stars 44 forks source link

Enable Macros cause crash #86

Closed fireup924 closed 1 month ago

fireup924 commented 2 months ago

When I enable SDCard/Macros, ioSender would not run and locks up.

When I connect to a terminal program and send a $I, it will cause the board to lock up.

terjeio commented 2 months ago

Does not happen for me so need more details.

fireup924 commented 2 months ago

Might be due to SDCard not working for me. When I remove macros feature and just have SDCard enabled, I can't get the card to mount, I get and error:60 when I issue a $FM command. Do I have to format the card a certain way? or use a certain card?

terjeio commented 2 months ago

Which board? Is it ethernet enabled - but grblHAL compiled without ethernet support? Asking since mounting the SD card fails for me when there is an ethernet chip on the SPI bus.

Do I have to format the card a certain way? or use a certain card?

Fat32 formatted, size <= 32GB. Some makes/models of SD cards may fail to mount.

fireup924 commented 2 months ago

It's a custom board that has almost the same pin-out as PicoCNC except I'm using IO8, IO9 for Modbus instead of Start/Door for those pins.

I'm not using ethernet chip on the SPI.

I scope the SPI pins and it's outputting something when I send the mount command, buy just comes back with a mount error.

I tried both a 2G and 32G SD card and formatted for Fat32 and exFat and still won't mount.

terjeio commented 2 months ago

You have pull-up resistors on the SPI lines?

fireup924 commented 2 months ago

The board does not have pull-up resistors but I'm using it with this SD Card module that has pull-up resistors:

SDCardModule_

fireup924 commented 2 months ago

I will try a Web Build with just a bare Pi Pico module and this SD Module and see if it works on that...

fireup924 commented 1 month ago

Turn out my SD Card was not formatted correctly.