Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
4 years 8 months ago #234057 by scotta
This is really strange and I can only point to something weird going on with eh Makerbase bootloader. Issues with the Robin and now the Monster8.

The SKR2 code should just work as it's the same chip.

Strange that is reboots when it goes to mount the blockDevice.

Yes, doing the changes you suggested should be about it. Flash with the STLink and fingers crossed.

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

More
4 years 8 months ago #234061 by cakeslob
Ok, I was wondering if there was anything special you were doing that I couldnt see, or experienced it in your travels while working with the robin

Pre bootloader
-Monster8 writes firmware firmware via sd, reads and configs modules but disables the spi after it finishes
-Octopus firmware does nothing, skr2 firmware loads fine via sd

Post bootloader ( as im fairly sure ive written over the bootloader)
-Both Octopus and Monster8 work every other 12v power cycle, and get stuck in a loop when starting up the other 50% of the time

so basically,
cycle 12v power, it works
cycle 12v power, it doesnt work
cycle 12v power it works
I have monster8 hooked up right now, but its the same with octopus
I caught it on a doesnt work cycle, loaded the firmware, hit debug , appears to be stuck at "function spi_master_write," uart is just looping (I dont know how to use debug very well, but this is where it stops when I pause)
Code:
## Entering SETUP state 1. Reading json configuration file Mounting the filesystem... Remora PRU - Programmable Realtime Unit
reboot button does nothing
cycle 12v power, everything works, load the program with debug and it works
cycle 12v power again, doesnt work, same loop

Im uploading firmware via stlink through mbed, and through DFU using usbc and stm32cube programmer, both have the same outcome.
Mostly just a sanity check for if im not doing something obvious, because the fact that it works every other power cycle is confusing me and it feels so close to working...

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

More
4 years 8 months ago #234368 by cakeslob
 Heres what I got today, this is what the monster8 is outputting to my dinky ass logic thing





On good boot, SPI3 for sd card doesnt do anything, except whats in the picture.
On bad boot, it keeps flowing
This is what I get from debug on bad boot.
Code:
0x080067fa in LL_SPI_IsActiveFlag_RXNE ()
Code:
Check if Rx buffer is not empty SR RXNE LL_SPI_IsActiveFlag_RXNE

is what it says about it
Here is what I think I understand
The mosi should be doing nothing be instead its shitting out data, which sets the LL_SPI_IsActiveFlag_RXNE flag active, which causes the sdblockdevice to not initialize... and because its every other power cycle, something is...thats as far as i understand

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

More
4 years 8 months ago #234491 by tuzki
My first step.
IDE gave me a lot of error reportsimage missing /media/kunena/emoticons/silly.png

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

More
4 years 8 months ago #234546 by cakeslob

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

More
4 years 8 months ago #234550 by tuzki
I found that remora provides binaries, and I don't need to compile it

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

Time to create page: 0.617 seconds
Powered by Kunena Forum