Page 2 of 6
Re: W801
Posted: Thu Oct 06, 2022 1:59 pm
by Bakisha
Just4Fun wrote: Tue Oct 04, 2022 5:17 pm
It seems they are making an Arduino core for the W801 available!!!
See
here.
Thank you for that link. I have W806 board that was waiting more than a year in the box
Blinking leds works !
Re: W801
Posted: Thu Oct 06, 2022 10:04 pm
by dannyf
The most impressive thing about the w801 chip is code density. A minimum implementation (gpio, ticks and uart) is 3kb.
A comparable implement on a pic32 is 13kb, and 7kb on a CM3 chip.
The closet I have ever come close to that 3kb figure was on a pic24.
Re: W801
Posted: Mon Oct 10, 2022 11:40 pm
by dannyf
I managed to shrink an empty main() to about <550 bytes compiled -> mostly irq tables, *under the stock sdk*.
so i'm changing my strategy, by re-porting my baremetal implementation to the sdk. so that it can be compiled under the sdk, yet no bloat.
i'm constantly amazed at c-sky's code density.
Re: W801
Posted: Thu Oct 13, 2022 10:24 pm
by dannyf
A quick progress report.
This is a very love it or hate it kind of china. Very bipolar, and extreme and exceptional.
Goods:
1. Specs are through the roof. This should be a 20usd chip.
2. Simplicity: this is a 32bit chip with 8bit chips peripherals. A few registers later you are up and running.
3. Some interesting peripherals - 16bit adc plus pga... Rtc oscillator calibration
4. Code density. A (minimalist) Arduino implementation goes (barely) under 2kb.
Bass
1. Piss poor documentation and conflicting documents and code. How many uarts does the w801 have?
2. Terribly software - written poorly.
3. Bonehead hardware designs: why do you need to pool uart interrupts. Or the timer interrupts?...
Overall I think it is more of a micro processor than a controller.
Still fun chip to play with.
Re: W801
Posted: Thu Oct 13, 2022 10:26 pm
by dannyf
Code is up and running both bare metal and on top of the sdk.
Workflow perfected. Click a button and it will compile and download so the chips.
Re: W801
Posted: Fri Oct 14, 2022 1:10 pm
by dannyf
btw, does anyone know of a good serial monitor that allows user selectble RTS settings? the typical serial monitors seem to reset the chip via rts - which in this case prevents the chip from running.
The only one I have found so far is XCOM but it is in chinese.
Re: W801
Posted: Fri Oct 14, 2022 2:01 pm
by ag123
i've been using putty (in linux)
https://www.putty.org/
but that it doesn't seemed very feature rich (at least in linux)
to toggle DTR/RTS signals, i think those are literally 'usb' signals (i.e. usb cdc acm)
I think
stm32loader does that from within python, using (
pyserial), I think.
i think stm32loader 'ab'uses DTR/RTS signals to toggle reset and boot0, that saves having to toggle it manually.
Re: W801
Posted: Fri Oct 14, 2022 2:52 pm
by dannyf
Most serial comms, including putty, don't allow the user to toggle rts.
XCOM is the only one I found so far. But in Chinese. To be far, I haven't tried extensively either.
Re: W801
Posted: Fri Oct 14, 2022 3:12 pm
by ag123
Re: W801
Posted: Fri Oct 14, 2022 9:15 pm
by dannyf
that requires me to install python on my computer. too lazy for that.
I wrote my w801 journey here, if anyone is interested:
https://dannyelectronics.wordpress.com/ ... mpression/
I got gpio, uart, timer, pwm working. pmu has been a struggle so far. adc/i2c/spi/touch sensing on my to do list.
Some pluses and minuses, as I mentioned earlier. More geared towards the pico crowd.