Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
25 Aug 2021 15:13 #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
25 Aug 2021 21:55 - 25 Aug 2021 23:47 #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:
"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: 25 Aug 2021 23:47 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
25 Aug 2021 23:46 #218744 by mhel
this also doesn't seem to work:
"platform.stdio-baud-rate": 115200
but this does:
"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
27 Aug 2021 22:22 #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.

More
28 Aug 2021 00:19 - 28 Aug 2021 00:23 #218950 by scotta
"Hello world" on the SKR2 is working! Thank you Rommel!!

Just need to figure out why the following is not working so we don't need to define a Serial object in the code and use a plain old printf.
"platform.stdio-baud-rate": 115200,
"target.stdio_uart_tx": "PA_9",
"target.stdio_uart_rx": "PA_10"

I've pushed the working code to the testing repo:

github.com/scottalford75/SKRV2-Mbed-OS5
 
Last edit: 28 Aug 2021 00:23 by scotta.

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

More
28 Aug 2021 00:29 #218951 by mhel
That's great!

I'll try to help when I can, I'm just a hack :)
Mbed is still very foreign to me.

What do you think of oring
USE_PLL_HSE_XTAL | USE_PLL_HSI
?
looking at system_clock.c, it looks like it will fall through and end up using HSI clock ?

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

More
28 Aug 2021 00:31 #218952 by mhel

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.
 

That sucks, I guess it happens.

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

More
28 Aug 2021 00:38 #218953 by scotta
Ok, got the standard printf working.

We now have a working platform to start porting Remora to STM32 with Mbed and the standard SKR bootloader. Rommel, thanks once again!! I've wasted hours but the system_clock.c change was the key.

Repo updated.

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

More
28 Aug 2021 00:40 #218954 by mhel

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

More
28 Aug 2021 00:43 #218955 by scotta

That's great!

I'll try to help when I can, I'm just a hack :)
Mbed is still very foreign to me.

What do you think of oring
USE_PLL_HSE_XTAL | USE_PLL_HSI ?
looking at system_clock.c, it looks like it will fall through and end up using HSI clock ?

I adopted a working target profile. We can remove USE_PLL_HSI and see what happens. The docs say that line should first try to enable the High Speed External crystal before falling back to the Internal crystal.

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

Time to create page: 0.218 seconds
Powered by Kunena Forum