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

Wip #75

Merged
merged 60 commits into from
Jul 24, 2021
Merged

Wip #75

merged 60 commits into from
Jul 24, 2021

Conversation

Jos-Ven
Copy link
Contributor

@Jos-Ven Jos-Ven commented May 25, 2021

Added words to measure small time increases and added ICACHE_FLASH_ATTR

lkundrak and others added 30 commits May 30, 2020 06:49
This adds a very basic support for a MCU with STM32-compatible peripherals
and a 32-bit RISC-V core. Loosely based on based on arm-stm32f2013. The
peripheral driver library has a somewhat different interface though.

Tested by blinking a led on a Polos Alef R1 board, though my friends and
family didn't appreciate it nearly as much as I did.
  Linking cforth.elf ...
  arm-none-eabi-ld: tconsoleio.o:src/platform/arm-ariel/consoleio.c:14:
    multiple definition of `dbg_uart_only';
    textend.o:src/platform/arm-ariel/extend.c:7: first defined here
  make: *** [src/platform/arm-ariel/targets.mk:70: cforth.elf] Error 1
  make: Leaving directory '/home/lkundrak/src/cforth/build/arm-ariel'
  arm-none-eabi-ld: tconsoleio.o:src/platform/arm-xo-1.75/consoleio.c:322:
    multiple definition of `ps2_devices';
    textend.o:src/platform/arm-xo-1.75/extend.c:11: first defined here
  arm-none-eabi-ld: tconsoleio.o:src/platform/arm-xo-1.75/consoleio.c:21:
    multiple definition of `dbg_uart_only';
    textend.o:src/platform/arm-xo-1.75/extend.c:18: first defined here
  make: *** [src/platform/arm-xo-1.75/targets.mk:68: cforth.elf] Error 1
  make: Leaving directory '/home/lkundrak/src/cforth/build/arm-xo-1.75'
The SDK functions that I was using to setup the GPIOs were
incomplete, since they do not configure the pinmux.  The fix
was to switch to gpio_config(), which does all the right things.

One symptom was that, if you say "gpio13 gpio-is-output",
subsequent uses of "n gpio13 gpio-pin!" would not necessarily
do anything to the pin, because the pin would still be attached
to a different functional block.
@MitchBradley MitchBradley changed the base branch from WIP to master July 24, 2021 22:02
@MitchBradley MitchBradley changed the base branch from master to WIP July 24, 2021 22:10
@MitchBradley MitchBradley merged commit 2349c9a into MitchBradley:WIP Jul 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants