-
Notifications
You must be signed in to change notification settings - Fork 41
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
Wip #75
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'
…fit in region iram0_0_seg
…d to measure small time increases
There might be problems...
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.
.. and to use the modern event system.
Probably doesn't matter, but just to be safe...
.. because doing so breaks the first make where the SDK is trying to check out submodules. There is a conflict on a git lock file.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added words to measure small time increases and added ICACHE_FLASH_ATTR