Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
5 years 1 week ago #224123 by scotta
Hi cakeslob, 

The Octopus v1.1 does have the bootloader offset "-DVECT_TAB_OFFSET=0x8000" in the Marlin ini file. These are correct and the starting address as per the Bigtreetech bootloader info summary.

Not sure what's going on with your build environment as selecting the OCTOPUS or SKRV2 target should not be looking inside the SKRV1_4 target directory, this is why the Mbed build system is handy. Are you using Mbed Studio or CLI?

The repo is an image of my build environment (less mbed-os) so strange it's not working....

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

More
5 years 1 week ago - 5 years 1 week ago #224124 by Bari
 
STM32F Discovery dev board uses the same part # STM32F407VGT6 as the SKR V2
Last edit: 5 years 1 week ago by Bari.

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

More
5 years 1 week ago - 5 years 1 week ago #224126 by cakeslob
Im using studio, ive compiled the stm32 repo just fine. I also find it strange, I just download the git, open a workspace in remora os5, and download the libraries within studio, says its 5.15.0. Select target, SKRV2 or OCTOPUS, and build. The file LPC17xx.h is there under targets/nxp/device . Says everything is up to date for mbed studio

Code:
Building project firmware (OCTOPUS, ARMC6) Scan: Remora-OS5 Using ROM region application in this build. Region application: size 0x78000, offset 0x8008000 Compile [ 0.7%]: MODDMA.cpp [Fatal Error] iomacros.h@27,10: 'LPC17xx.h' file not found [ERROR] In file included from .\MODDMA\MODDMA.cpp:22: ./MODDMA/iomacros.h:27:10: fatal error: 'LPC17xx.h' file not found #include "LPC17xx.h" ^~~~~~~~~~~ 1 error generated.

this is the full output, I was just wondering if there was some secret

MODDMA lib
Commit: 97a16bf2ff439853ed01edd65a382207e203c733
Imported from: os.mbed.com/users/AjK/code/MODDMA/

mbed-os 5.15.0
Commit: 64853b354fa188bfe8dbd51e78771213c7ed37f7
Imported from: github.com/ARMmbed/mbed-os/
Code:
Tool Name Version Status ARM Compiler 6.16 up to date Clangd 12.0.2 up to date Example projects 1.10.1 up to date GDB client 6-2017-q2-update up to date Git 2.30.0 up to date Mbed Library Cache 1.10.0 up to date Python tools 0.6.0 up to date Debug Packs 1.1.0 up to date
edit, ok I was doing something with the MODDMA lib that was messing it up
Last edit: 5 years 1 week ago by cakeslob.

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

More
5 years 1 week ago #224174 by scotta
Hi, the MODDMA library is already included in the repo in the correct location within the TARGET_SKRV1_4 directory. No need to import it again, which will put in the root directory and in the compile path.

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

More
5 years 6 days ago #224312 by cakeslob
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.

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

More
5 years 6 days ago #224341 by gtt38
look if ur connected to the right spi port.

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

Time to create page: 0.137 seconds
Powered by Kunena Forum