Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible solution of config safe on W800 #963

Closed
djcfg123 opened this issue Oct 30, 2023 · 7 comments
Closed

Possible solution of config safe on W800 #963

djcfg123 opened this issue Oct 30, 2023 · 7 comments
Labels
bug Something isn't working solved

Comments

@djcfg123
Copy link

djcfg123 commented Oct 30, 2023

I have the same problem as #913 .
I accidentally chose 1.17.1 from the list and saving the configuration, parameters, etc. works on it, on the new ones it doesn’t work, immediately after the firmware the configuration file error and loading default.
I have a suggestion: in the source code of the firmware offset 0x1F0303 is indicated, which is taken from the SDK example, that is, the recording area of ​​the configuration structure "mainConfig_t" which in earlier versions has the size MAGIC_CONFIG_SIZE_V3 2016 and works on the W800, and after adding SSID 2 has the size MAGIC_CONFIG_SIZE_V4 3584 and does not allow you to save the configuration on the W800. However, the user data area is at the starting address 0x8000000 + 1E0000, it might be worth shifting 1F0303 to 1E0000 (or so), unless of course there is a memory layout somewhere else that affects the beginning of the user block (maybe I didn't see this in the code).
Perhaps I would test this theory myself, but I’ve been trying to set up the SDK to compile the firmware for 2 days now and I’m getting build errors like “inttypes.h: No such file or directory”, “sys_rtos.h: No such file or directory” and similar
image

@openshwprojects
Copy link
Owner

Hey, Why not use online builds? I can check this for you

@openshwprojects
Copy link
Owner

#964

@djcfg123
Copy link
Author

Tell me, how can I use the online building? I tried to do this through the W800 SDK according to the guide written in BUILDING.md, but nothing works

@openshwprojects
Copy link
Owner

I have merged that fix... for w800 config, dsoes it work now?

you can fork our repo and it should build on your fork, it will also build if you open a pull request after I approve your pull if you're a new contributor

@djcfg123
Copy link
Author

djcfg123 commented Oct 31, 2023

Yes, its working 😀
I was also able to fork and compile the firmware for w800, and there I shifted the address from 1F0303 to 1E0000 (as in the first message of this issue) and enabled SSID2 support for W800, it works, saves the configuration correctly, but I did not find the code itself which uses the second network if it was not possible to connect to the first.
But is it still possible to enable IR support for the W800?
however, in the new firmware something has changed in rtos and now when you open Webapp after a few moments in the uart log you can see an out of memory error and the device stops responding via http until rebooted, if you don’t go into Webapp then everything works

@openshwprojects
Copy link
Owner

What has changed in RTOS? When? Can you point to specific commit that may break the system? It sounds like an important issue to fix.

@openshwprojects openshwprojects added bug Something isn't working solved labels Oct 31, 2023
@openshwprojects
Copy link
Owner

Ok, no bug reports so far, so I think it can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working solved
Projects
None yet
Development

No branches or pull requests

2 participants