Skip to content

boards/microduino-corerf: small fixups#12874

Merged
maribu merged 2 commits intoRIOT-OS:masterfrom
benpicco:microduino-corerf_fix
Dec 4, 2019
Merged

boards/microduino-corerf: small fixups#12874
maribu merged 2 commits intoRIOT-OS:masterfrom
benpicco:microduino-corerf_fix

Conversation

@benpicco
Copy link
Contributor

@benpicco benpicco commented Dec 4, 2019

Contribution description

When doing the microduino-corerf port I was somehow beset by the cargo-cultish idea that ATmega couldn't do 115200 baud UART.
This is of course bogus and using half of 115200 for no good reason is just odd.
Now the board uses 115200 baud like everyone else and when attaching a serial terminal one no longer has to wonder what the proper baud rate was.

I also thought that the board was so bare-bones, it had no external oscillator, so I couldn't enable the RTT.
#12852 should also work on boards without oscillator, so I wanted to try that out. It worked, but upon closer inspection I found the oscillator and noticed the RTT was already working on master.

Testing procedure

flash tests/periph_rtt.
You will see that RTT and the UART output at 115200 baud works.

Issues/PRs references

none

The MCU can handle that baud rate just fine.
A standard baud rate is much easier to use than those awkward 57600 baud.
The board *does* have a crystal oscillator connected, so we can
enable RTT.
@benpicco benpicco added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Area: boards Area: Board ports labels Dec 4, 2019
@benpicco benpicco requested a review from maribu December 4, 2019 22:01
@chudov
Copy link
Contributor

chudov commented Dec 4, 2019

#12852 should also work on boards without oscillator, so I wanted to try that out. It worked, but upon closer inspection I found the oscillator and noticed the RTT was already working on master.

Don't think so: #12852 assumes 32.768 kHz oscillator is connected to TOSC1.

@benpicco
Copy link
Contributor Author

benpicco commented Dec 4, 2019

Ah I thought that was only used during Deep Sleep and sourced from the CPU clock in normal operation.

@herjulf
Copy link
Contributor

herjulf commented Dec 4, 2019

Ah I thought that was only used during Deep Sleep and sourced from the CPU clock in normal operation.

My understanding as well... You'll need the 32KHz xtal to source when in set_sleep_mode(SLEEP_MODE_PWR_SAVE) and
16MHz xtal is sleeping/xtimer. What we're working on (RTT) can be very usable candidates for Radio and MCU sleep.

Copy link
Member

@maribu maribu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK. Makes sense code-wise and you provided the test results.

@maribu maribu merged commit 4e55f63 into RIOT-OS:master Dec 4, 2019
@benpicco benpicco deleted the microduino-corerf_fix branch December 4, 2019 23:19
@fjmolinas fjmolinas added this to the Release 2020.01 milestone Dec 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: boards Area: Board ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants