I'll try and write something useful about it this weekend, and I'll push a branch up to BitBucket/GitLab:
https://bitbucket.org/dboddie/inferno-os/branches/ https://gitlab.com/dboddie/inferno-os/-/branches However, it basically boils down to this: * Build Inferno's tc and tl since they are not included in the default build. * Fix the tl mkfile so that it calls the executable tl not 5l. * Write a mkfile with all the rules for 5a, tc and tl, setting the text address to 0x08000000 (flash) and data to 0x20000000 (RAM). * Write a loader file to set up the stack and static base registers, copy data into RAM, and jump into main. I have some functions for setting up clocks, GPIOs and the USART. This is currently in a separate repository for bare metal tests. I'll push that up to GitLab. David On Friday, 28 January 2022 22:46:28 CET Tony Mendoza wrote: > Any interest in sharing those hints for building bare metal STM32F405 > code om plan9? > T > On 1/28/2022 at 3:34 PM, da...@boddie.org.uk wrote:On 2022-01-28 > > 2:55:00, Thaddeus Woskowiak wrote: > > One compiler that we really need is an arm thumb 2 compiler for > > cortex-m/r > > > microcontrollers. Inferno has a very old and very incomplete arm > > thumb 1 > > > compiler, tc. I don't know if it's worth salvaging. > > I am using 5a/tc/tl to build bare metal code for a STM32F405 MCU > thanks > to some hints from Charles Forsyth. > > I'm currently trying to add FP support and learn about compiler > internals. > It also means learning about Thumb-2, which is quite alien for an > old-school > ARM coder. > > David > 9fans / 9fans / see discussions + participants + delivery > options Permalink > ------------------------------------------ > 9fans: 9fans > Permalink: > https://9fans.topicbox.com/groups/9fans/Ta4e584a373b05553-M520003e6d6ac2b54 > e8e509e4 Delivery options: > https://9fans.topicbox.com/groups/9fans/subscription ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Ta4e584a373b05553-Me02d5cb4e136e32f9d0015d0 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription