Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
4 years 8 months ago #235877 by scotta
Hi cakeslob, 

I think that maintaining the JSON config file format would be the more straight forward approach. Less to rework on the firmware side. The JSON parsing and module loading would not need to be modified, just where the JSON file is being fetched from . This could be from the EEPROM for example.

But how to get it over to the board? I'll need to investigate how to send a text file via SPI. For Ethernet I'd need to establish a TCP connection I think.

For the NVEM board I'm working on it would be neat to be able to send over the config to allow for customisation by the user. It's currently hard coded at the moment, which would be ok for 99% of people.

Please Log in or Create an account to join the conversation.

More
4 years 8 months ago #235886 by cakeslob

Hi cakeslob, 

I think that maintaining the JSON config file format would be the more straight forward approach. Less to rework on the firmware side. The JSON parsing and module loading would not need to be modified, just where the JSON file is being fetched from . This could be from the EEPROM for example.


Yeah thats what I was going for as well, Im just unclear as to how it would be stored in eeprom , like if it needed to be converted to like a binary file or something, and then converted to ascii to edit

But how to get it over to the board? I'll need to investigate how to send a text file via SPI. For Ethernet I'd need to establish a TCP connection I think.

For the NVEM board I'm working on it would be neat to be able to send over the config to allow for customisation by the user. It's currently hard coded at the moment, which would be ok for 99% of people.


since that was way over my head, I opted for direct i2c to i2c from raspberry pi, since it has an i2c interface and all of these 3d printer boards have i2c broken out already, which connect to the eeprom. Its 2 additional wires. For these kind of boards, I figured we could just dump/edit/write config using the linux i2c api or python i2c api (I figured it could just piggy back onto Aarons config program with a write/dump options, but i havent looked into it yet)


for boards like the NVEM, I was thinking it loads a default config into the eeprom when it loads the firmware for the first time, and then edit it the same way 3dprinters seem to do already. I think 3dprinters use mdi commands to do that, so my idea was either remap some gcodes with .....stuff.... or use serial to edit (similar to what mhel was doing). its pretty easy to add a serial terminal tab into axis gui ( forum.linuxcnc.org/18-computer/42276-rem...spi?start=130#214971 ) , so it could be done there if needed.

Please Log in or Create an account to join the conversation.

More
4 years 8 months ago #236006 by Zuo99
hi, cakeslob, I have an octopus pro 429 and  glad to see that remora can run on it, my question is which firmware.bin file should I use, Is it 429firmware on the official website of bigtreetech, and the example config for this board .txt

Thanks again for your creative work

Please Log in or Create an account to join the conversation.

More
4 years 8 months ago #236081 by cakeslob
Hey zuo, sorry about that, it looks like I never posted one
I uploaded one just now, with a sample config
github.com/cakeslob/Remora/tree/octopus_...eBin/OCTOPUS_PRO_429

load both those on to the sd card and pop it in, but check out the documents section for all the steps
remora-docs.readthedocs.io/en/latest/firmware/firmware.html

my sample config is kind of bare at the moment, i only set up 3 stepper motors and nothing else. I encourage you to read the config section and learn how to set up the config, but for now just let me know what other things you need in your config file and i can probably whip up a better sample config.




Dear Scott, Re: github
holy shit sorry i hope im not sending you all those pull requests on github when ever i update my fork. github was a lot harder than i thought it would be , im not really sure how to use it very well, you guys make it look easy, i keep fucking up commits and pulls and branches

Please Log in or Create an account to join the conversation.

More
4 years 8 months ago #236082 by Zuo99

new Skr2 with stm32f429vgt works with octopus pro 429 firmware and regular skr2 config , so same old skr2 but with 180mhz
i set up uart pins for octopus to use tft connector same as skr2 for consistency


 
HI,cakeslob Thank you very much for your help, I have tried the relevant content of octopus pro 429 and it works well.

What interests me is that you mentioned the issue of Skr2 with stm32f429vgt, I pre-ordered a Skr2 before, but I received it recently because of the manufacturer's problem, so I also tried it, but there are some problems, after starting a Communication will be disconnected after the meeting, I noticed 180mhz in your description, where should it be changed, I tried to change it in the file below, but it doesn't seem to work
Remora/Firmware/FirmwareSource/Remora-OS5/TARGET_SKRV2/system_clock.c

Do I need to change any other files

Please Log in or Create an account to join the conversation.

More
4 years 8 months ago #236084 by Zuo99
Seems to work with SKR2 429
Here's what I did:

1 Octopus pro 429 firmware in the sd card of SKR2, old skr2 config.txt
2 Replace system_clock.c of skr v2 with system_clock.c of octopus pro 429
3 Delete the content in the old skr2 config.txt except the motor drive part

It seems that the content in config.txt affects the SPI communication

Please Log in or Create an account to join the conversation.

Time to create page: 0.507 seconds
Powered by Kunena Forum