Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
5 years 6 days ago - 5 years 6 days ago #224420 by gtt38
@scotta : Do you think it is possible to connect until 5 MCU like the rpspi.c driver ? or maybe start with 2, one on the RPI SPI0 and an another on the RPI SPI1
Last edit: 5 years 6 days ago by gtt38.

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

More
5 years 6 days ago #224444 by scotta

Thank you for your help and patience. Yeah studio was saying i should "fix" the mbed-os and moddma lib. That explains why the stm32-repo worked and the main didnt.
How do I go about debugging this octopus? something like FTDI ,stlink or JTAG?? Can we hook these up USB like the official mbed boards and debug within studio? Ill break what ever I have to...
What I do know
I have reset pin on PC_15 in my config
Firmware loads and makes a cur file
Leds look like they are loading firmware and acting proper
12v power
Bad SPI payload = 0
No output on the serial
Memory does not look corrupted and bootload/firmware are on the correct address lines
SKR2 for reference, works on my setup.
Hi, I've fixed the MODDMA issue in the develop branch. There was a MODDMA.lib file in the root directory. This is what was prompting people to download the lib.

So the SKR2 bin works on the Octopus board..? Interesting. The CPU frequency would be slower than possible. But it does help narrow down the problem. The only difference between the two builds is the system_clock.c file in the target directory. And this is really only setting the frequency to 180MHz. 

The only other difference is the serial pins in mbed_app.json and in some of the setting in custom_target.json. You might be onto something. Thanks

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

More
5 years 6 days ago #224445 by scotta

@scotta : Do you think it is possible to connect until 5 MCU like the rpspi.c driver ? or maybe start with 2, one on the RPI SPI0 and an another on the RPI SPI1
Definitely and this is something I had in the back of my mind. We could utilise SPI0 and have multiple Chip Selects.

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

More
5 years 6 days ago - 5 years 6 days ago #224448 by cakeslob
Sorry, I should specify I bit more. The skr2 works with the skr2, it was mostly a sanity check to make sure my cables/gpio/linuxcnc were not the root cause. I havent actually tried with just the skr2 firmware, I didnt really consider it but I will now. 
The only difference I am seeing between the 2 also, is just some pins and the clock. I find no other references that indicate any different compile flags among the other firmware. 
The only thing difference I noticed in klipper, is something with the bootloader and the clockspeed with a 12 Mhz clock reference but Im not sure what its referring to.
github.com/bigtreetech/BIGTREETECH-OCTOP...ter/Firmware/Klipper


I hooked up the octopus to mbed studio with a chinese stlinkv2 and it works and connects, but when trying to debug the program, it makes my computer go completely ape shit triggering mouse events all over the place.

look if ur connected to the right spi port.
they are all the same pretty much , on exp2, i checked a few times just incase
Last edit: 5 years 6 days ago by cakeslob.

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

More
5 years 5 days ago #224467 by scotta
Ok, I should have checked the clock frequency, rather than copying from another Mbed target. I've updated the develop repo with an updated system_clock.c and compiled bin file. Fingers crossed this was the issue.

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

More
5 years 5 days ago #224514 by gtt38
I saw your repo and i m gonna try to create my own target for stm32f411 this weekend

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

Time to create page: 0.102 seconds
Powered by Kunena Forum