Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
5 years 2 months ago - 5 years 2 months ago #218643 by scotta
I've created a repo for the STM32 SKRv2 development work.

github.com/scottalford75/SKRV2-Mbed-OS5
 
Last edit: 5 years 2 months ago by scotta.
The following user(s) said Thank You: Bari

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

More
5 years 2 months ago - 5 years 2 months ago #218644 by mhel
Hi Scott,
This might be of interest.
github.com/GadgetAngel/BTT_SKR_13_14_14T...R%20V2.0%20(SKR%202)

I managed to get the bootloader working.
Apparently you also have to change the VECT_TAB_OFFSET.

Code:
#define VECT_TAB_OFFSET  0x8000 /*!< Vector Table base offset field.                                    This value must be a multiple of 0x200. */ Edit this is my linker memory config: /* Specify the memory areas */ MEMORY { FLASH (rx) : ORIGIN = 0x08008000, LENGTH = 1024K-32K RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 192K MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K } It took me a while and a whole lot of ducking (duckduckgo user since 10yrs). The VEC_TAB_OFFSET is what make it worked.
Last edit: 5 years 2 months ago by mhel. Reason: grammar check

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

More
5 years 2 months ago #218712 by tjtr33
Hi, is this project still based on LP17xx or has it moved to the STM32?
I cannot get the SKR or MKS boards
but I can get the SKRv2.

TomP

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

More
5 years 2 months ago - 5 years 2 months ago #218736 by mhel

Hi, is this project still based on LP17xx or has it moved to the STM32?
I cannot get the SKR or MKS boards
but I can get the SKRv2.

TomP
 
STM32 is a work in progress it is still in the blinky stage :-),  but the LPC17xx is fully functional.
If you can wait for it, Scott is working on it.

@Scott
I don't think this works:
Code:
"target.mbed_app_start": "0x08008000"
I managed to get a working mbed setup but I couldn't get a blinky.

So I modified the ORIGIN of flash in STM32F407XG.ld  to 0x08008000
with the matching VECT_TAB_OFFSET 0x8000 on system_clock.c,
and yes! I got a blinky.

EDIT:
BTW my initial bootloader test post before this
was done with the stm32plus lib, and decided to
try mbed again to help a bit.
Last edit: 5 years 2 months ago by mhel. Reason: sounds like I know what I'm doing ;-)
The following user(s) said Thank You: tommylight

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

More
5 years 2 months ago #218744 by mhel
this also doesn't seem to work:
Code:
"platform.stdio-baud-rate": 115200
but this does:
Code:
"platform.default-serial-baud-rate": 115200

I'm just tinkering trying to learn how things are with mbed.

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

More
5 years 2 months ago #218941 by scotta
Hi Rommel, 

Thanks for your efforts. I'll try your changes. I did change the VEC_TAB_OFFSET in another file, but it must be redefined again in system_clock.c. I've read way to much about Mbed and bootloaders trying to get this to work...

Will try this today. Thanks again, and thanks for trying Mbed. Hopefully together we can get the STM32 port moving forward. LPC1768 boards are like Unicorns at the moment. I tried to by another but it had "shipping issues" out of China so they had to refund me. I was half way through doing some Youtube how to videos on Remora and smoked my SKRv1.5 by putting a driver in backwards in a rush. Probably will need to start again with the SKR2 when it's up and running.

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

Time to create page: 0.214 seconds
Powered by Kunena Forum