rob-ng15 / PAWSv2

MIT License
11 stars 2 forks source link

Working bitstream for v318 #46

Open goran-mahovlic opened 11 months ago

goran-mahovlic commented 11 months ago

Hi @rob-ng15

Radiona has exhibition in few days ans we have already showed Silice once, but I remembered we did not show your PAWS so it is best time to do it :)

I am trying to get provided bitstream on few of the boards, but I have some problems.

On new boards (as pin out is probably bit different) I get SDCARD?

On older boards I get message No Files

I have also noticed that once I load provided x64 bitstream it mostly do not start on first plug in.

I need to plug it few times in out then it starts but if I press reset few times it sometimes (very) soon blocks and does not start without powering off and on again.

Could you provide me some clues to get all of this running in few days, as exhibition is on 14.12.

If not we will move it to next time, but would be perfect timing to get it this time as this time there are less exhibits.

goran-mahovlic commented 11 months ago

There are just few pins changed on new board - I have found two that may be related to this project - wifi_en and wifi_gpio0

I have changed those two in Silice and now new board is "working" as old one giving me "No Files" message

It starts rarely from first, but if I hold RST and plug board in then after 2 sec release RST I got the startup

If I press RST few times it blocks.

So I am wondering maybe there is a way to do some delay on startup - like 1s?

rob-ng15 commented 11 months ago

Hi Goran,

Are you saying to put a delay in before the initialisation of the SDCARD? If so, I am sure that should be possible.

Thanks for thinking of PAWS, it has been a fun project.

Kindest regards,

Rob.

On Tue, 12 Dec 2023 at 02:08, Goran Mahovlic @.***> wrote:

There are just few pins changed on new board - I have found two that may be related to this project - wifi_en and wifi_gpio0

I have changed those two in Silice and now new board is "working" as old one giving me "No Files" message

It starts rarely from first, but if I hold RST and plug board in then after 2 sec release RST I got the startup

If I press RST few times it blocks.

So I am wondering maybe there is a way to do some delay on startup - like 1s?

— Reply to this email directly, view it on GitHub https://github.com/rob-ng15/PAWSv2/issues/46#issuecomment-1851189570, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN4SYT5GXD2ATF6NZ22RZATYI64A3AVCNFSM6AAAAABAQRVLEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJRGE4DSNJXGA . You are receiving this because you were mentioned.Message ID: @.***>

goran-mahovlic commented 11 months ago

Hi Goran, Are you saying to put a delay in before the initialization of the SDCARD? If so, I am sure that should be possible. Thanks for thinking of PAWS, it has been a fun project. Kindest regards, Rob.

I was thinking of just holding RST 1 second or bit more on boot time, before everything starts.

As if I do that manually I get it started with holding reset then powering board then releasing RST. I am talking when PAWSv2 is loaded in flash of ULX3S.

And one more thing, how should SD card folders look like maybe maybe I have files placed wrong. I have tried few options and always getting "No files"

rob-ng15 commented 11 months ago

Hi Gorna,

I am just trying a build with a 1 second delay before starting the SDCARD.

For the SDCARD just copy the folder from "SOFTWARE" to the root of the FAT32 formatted SDCARD, I find 8GB ones work best, so that the folders COMPUTER, DEMO, etc are at the root of the SDCARD.

As long as there are some folders in the root of the SDCARD you should not be getting "No files".

Kindest regards,

Rob.

On Tue, 12 Dec 2023 at 09:20, Goran Mahovlic @.***> wrote:

Hi Goran, Are you saying to put a delay in before the initialization of the SDCARD? If so, I am sure that should be possible. Thanks for thinking of PAWS, it has been a fun project. Kindest regards, Rob.

I was thinking of just holding RST 1 second or bit more on boot time, before everything starts.

As if I do that manually I get it started with holding reset then powering board then releasing RST. I am talking when PAWSv2 is loaded in flash of ULX3S.

And one more thing, how should SD card folders look like maybe maybe I have files placed wrong. I have tried few options and always getting "No files"

— Reply to this email directly, view it on GitHub https://github.com/rob-ng15/PAWSv2/issues/46#issuecomment-1851608745, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN4SYT7RKPDMJJZJ25S6Q53YJAOWVAVCNFSM6AAAAABAQRVLEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJRGYYDQNZUGU . You are receiving this because you were mentioned.Message ID: @.***>

goran-mahovlic commented 11 months ago

Tnx!

I am just trying a build with a 1 second delay before starting the SDCARD.

ok lets try that one, but I think we need startup delay on everything as I do not get anything started if I do not hold reset on start ( no graphics and no leds)

Will check also other cards as I did have folders set as you described.

rob-ng15 commented 11 months ago

Hi Goran,

A 1 second delay before attempting to initialise the SDCARD can be put in by changing lines 141 through to 144 of sdcard_write.si to

while(1) {
  uint26  count = 0;
  // wait 1 sec (power up), @50 MHz
  while (count != 50000000) { count = count + 1; }

Kindest regards,

Rob.

On Tue, 12 Dec 2023 at 09:29, Goran Mahovlic @.***> wrote:

Tnx!

I am just trying a build with a 1 second delay before starting the SDCARD.

ok lets try that one, but I think we need startup delay on everything as I do not get anything started if I do not hold reset on start ( no graphics and no leds)

Will check also other cards as I did have folders set as you described.

— Reply to this email directly, view it on GitHub https://github.com/rob-ng15/PAWSv2/issues/46#issuecomment-1851630228, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN4SYT2CTIXKTJBCD7QOFILYJAPWJAVCNFSM6AAAAABAQRVLEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJRGYZTAMRSHA . You are receiving this because you were mentioned.Message ID: @.***>

goran-mahovlic commented 11 months ago

Tnx!

Tested that one, but did not help. I made more changes in lpf and now I got SD card working.

There are two problems remaining so I will need to check on site if this can go to exhibition this time.

First one is that is is starting only if I hold reset and then plug into USB then releasing RST. Second one is that after few resets it just brakes and it needs to be re powered.

As I know visitors will easily make it non working and then will not be able to understand "powering sequence" :) it will spend most of the time bricked.

In any way at least I can test it :)

rob-ng15 commented 11 months ago

I've never run it directly from flash, I'll have to try that.

Rob.

On Tue, 12 Dec 2023, 20:28 Goran Mahovlic, @.***> wrote:

Tnx!

Tested that one, but did not help. I made more changes in lpf and now I got SD card working.

There are two problems remaining so I will need to check on site if this can go to exhibition this time.

First one is that is is starting only if I hold reset and then plug into USB then releasing RST. Second one is that after few resets it just brakes and it needs to be re powered.

As I know visitors will easily make it non working and then will not be able to understand "powering sequence" :) it will spend most of the time bricked.

In any way at least I can test it :)

— Reply to this email directly, view it on GitHub https://github.com/rob-ng15/PAWSv2/issues/46#issuecomment-1852754775, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN4SYTYFB5BHLVYY6DQ72FDYJC47LAVCNFSM6AAAAABAQRVLEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJSG42TINZXGU . You are receiving this because you were mentioned.Message ID: @.***>

rob-ng15 commented 11 months ago

Hi Goran,

I've posted a new build, for my board, 3.0.8, I don't know what changes will be required. This is updated to latest Silice structures and includes the delayed start-up before initialising the SDCARD.

There are potentially changes that can be made in Silice/frameworks/boards/ulx3s around lines 204 -> 217 and line 223, that could add an extra delay to hold the internal reset line for more than the present 16 cycles. I'll investigate that later. Have you any idea on roughly the number of clock cycles that would be needed?

Hope the event went well.

Kindest regards,

Rob.

On Tue, 12 Dec 2023 at 20:28, Goran Mahovlic @.***> wrote:

Tnx!

Tested that one, but did not help. I made more changes in lpf and now I got SD card working.

There are two problems remaining so I will need to check on site if this can go to exhibition this time.

First one is that is is starting only if I hold reset and then plug into USB then releasing RST. Second one is that after few resets it just brakes and it needs to be re powered.

As I know visitors will easily make it non working and then will not be able to understand "powering sequence" :) it will spend most of the time bricked.

In any way at least I can test it :)

— Reply to this email directly, view it on GitHub https://github.com/rob-ng15/PAWSv2/issues/46#issuecomment-1852754775, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN4SYTYFB5BHLVYY6DQ72FDYJC47LAVCNFSM6AAAAABAQRVLEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJSG42TINZXGU . You are receiving this because you were mentioned.Message ID: @.***>

goran-mahovlic commented 11 months ago

I have checked SD delay and that one did not help.

What could help is like 1 second hold on reset line ( as now when I am holding reset for one sec after power on everything start to work.

Did you try to load paws to flash? And does it boot once you power cycle the board?

Goran

rob-ng15 commented 11 months ago

Hi Goran,

Not yet, I'll see if I can put in a 1 second reset delay in the Silice framework.

Kindest regards,

Rob.

On Tue, 19 Dec 2023, 14:19 Goran Mahovlic, @.***> wrote:

I have checked SD delay and that one did not help.

What could help is like 1 second hold on reset line ( as now when I am holding reset for one sec after power on everything start to work.

Did you try to load paws to flash? And does it boot once you power cycle the board?

Goran

— Reply to this email directly, view it on GitHub https://github.com/rob-ng15/PAWSv2/issues/46#issuecomment-1862847023, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN4SYT2EML744JG3OILOAU3YKGO6JAVCNFSM6AAAAABAQRVLEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRSHA2DOMBSGM . You are receiving this because you were mentioned.Message ID: @.***>

rob-ng15 commented 11 months ago

Hi Gorna,

I've just flashed the build I posted to github (devel) branch to FLASH, and it boots and starts everytime, no need to hold reset. Is it a difference between the 308 and 318 boards?

Kindest regards,

Rob.

On Tue, 19 Dec 2023 at 16:04, Rob Shelton @.***> wrote:

Hi Goran,

Not yet, I'll see if I can put in a 1 second reset delay in the Silice framework.

Kindest regards,

Rob.

On Tue, 19 Dec 2023, 14:19 Goran Mahovlic, @.***> wrote:

I have checked SD delay and that one did not help.

What could help is like 1 second hold on reset line ( as now when I am holding reset for one sec after power on everything start to work.

Did you try to load paws to flash? And does it boot once you power cycle the board?

Goran

— Reply to this email directly, view it on GitHub https://github.com/rob-ng15/PAWSv2/issues/46#issuecomment-1862847023, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN4SYT2EML744JG3OILOAU3YKGO6JAVCNFSM6AAAAABAQRVLEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRSHA2DOMBSGM . You are receiving this because you were mentioned.Message ID: @.***>

goran-mahovlic commented 10 months ago

Hi Rob,

sorry I did not notice this question. Well board changed, but mostly ESP32 pinout.

I will recheck again in some time and let you know if I still have same problem.

G