-
Notifications
You must be signed in to change notification settings - Fork 954
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
Experimental branch to add support for GCC and ARMCLANG #750
Experimental branch to add support for GCC and ARMCLANG #750
Conversation
Modify yamls to point to kl27 and microbit v2 board files Change KL27 interface flash size to 128KB and RAM to 32KB Adapt UART driver to LPUART peripheral and add clock drivers Change KL27 device specific header files based on NXP SDK Add HIC and board info to info.py
Removed "reserving for future use" comment on the DAPLINK_HIC_ID_KL27Z definition.
…tches IO_PORT_WRITE_CYCLES of 1 in DAP_config.h
* Allow all support baud rates * Fix RX FIFO overflow issue * Fix mask name for interrupt enable of RX overflow
Awsome! Congratulations :-) Would you guys first merge this into upstream or prefer to get some testing before merge? First impressions:
My environment details below. GCC does work well for building MBED and ZEPHYR firmwares.
|
Thank you for the feedback.
The following part of the error message hint that this might not be the right version of
Once you have the virtualenv installed and activated (this is for the branch that also support CMake, but you can also use
The following command should work without warnings or errors and list the projects (I don't know
I will take the example of
Adding the The error
If
Or try the all-in-one command:
|
Hey @mbrossard :-) Progen
BuildMissing Header
Make
CMake
Testing
|
- Skipping 0255, which was allocated to the initial DAPLink release for micro:bit v2.
Based on your feedback I made a change (in commit c517c31 on my development branch) to switch those shell script to python with You probably want to start with boards that either have a BOOT ROM loader (like LPC11U35) or have SWD headers for both target and probe. |
I was able to test the |
…n/DAPLink into microbit-foundation-microbit_base Fixes ARMmbed#754
…bit_base KL27Z base port merge
674586c
to
04142cc
Compare
I re-ordered the commits to pull forward the changes to existing code first (similar to #701), and then have the additions (CMSIS-RTOS2 and GCC startup for HICs, linker scripts), all of this rebased on latest master. I am interested to know what works and what does not (and if possible why or even better with a patch), including regressions with armcc. |
- Remove superfluous compilation directives - Disable unaligned accesses at the toolchain level for all HICs - Fix for armcc compilation
e79fea7
to
b4d967a
Compare
Hi, |
Please send a pull request to add the progen definition, I can release a new patch. |
@Ashleyvk: I assume you have created a record file based on |
I was able to compile the files for the new HIC stm32f373cc, but once the device is connected after programming the controller, I'm getting the error as USB device not recognized. I'm using STM32CubeProgrammer for programming the controller. Any suggestions on what changes to be made? |
This PR is now merged into @Ashleyvk: you might want to start a draft pull request (based on and to
|
I would like to merge to this experimental branch the work @flit and I have been doing to to add support for Arm GCC (#197) and armclang (#644). It should also address #580 with the switch to RTX5.
By merging into a branch of the main repository we hope to get some feedback, testing (automated and otherwise) and fixes.
This branch requires project-generator/project_generator#474 to compile.
Build instruction (Linux and Mac)
Install dependencies
Build images
You can use the
progen
command-line tool from project-generator or the following wrapper tool:-t <tool>
: choose the toolchain to build. The default ismake_gcc_arm
and the ones I have been testing with aremake_gcc_arm
,make_armcc
,make_armclang
,cmake_gcc_arm
,cmake_armcc
,cmake_armclang
.--clean
: will clear existing compilation products and force recompilation of all files.-v
: will make compilation process more verbose (typically listing all commands with their arguments)--parallel
: enable parallel compilation within a project (projects are compiled sequentially).<project>
: target project to compile (e.g.stm32f103xb_bl
,lpc11u35_if
), if none is specified all (140 to 150) projects will be compiled.Build instructions (Windows)
This branch has received much smaller amount of testing on Windows. As an example, the following instructions build
stm32f103xb_if
: