User forums > Embedded development
Using CB for ARM development
scarphin:
I can confirm that on win7. It's because a typo in the script 'share\CodeBlocks\templates\wizard\arm\wizard.script' at line 25:
--- Code: ---Wizard.AddCompilerPage(_T(""), _T("armelf*"), false, false);
--- End code ---
It should be:
--- Code: ---Wizard.AddCompilerPage(_T(""), _T("arm*"), false, true);
--- End code ---
to find the compiler and to allow for target options.
oBFusCATed:
scarphin, yes you're correct I'm using this patch:
--- Code: ---diff --git a/src/plugins/scriptedwizard/resources/arm/wizard.script b/src/plugins/scriptedwizard/resources/arm/wizard.script
index 184a544..4f4ec83 100644
--- a/src/plugins/scriptedwizard/resources/arm/wizard.script
+++ b/src/plugins/scriptedwizard/resources/arm/wizard.script
@@ -1,5 +1,5 @@
board <- 1;
-derivative <- 1;
+derivative <- 0;
outputvariant <- 1;
function BeginWizard()
{
@@ -22,7 +22,7 @@ function BeginWizard()
// select project name and path
Wizard.AddProjectPathPage();
// select compiler and configurations
- Wizard.AddCompilerPage(_T(""), _T("armelf*"), false, false);
+ Wizard.AddCompilerPage(_T(""), _T("arm-elf*"), false, false);
// select language
Wizard.AddGenericSingleChoiceListPage(_T("ARMBoards"), _T("Please select your ARM evaluation board."), ARM_boards , board);
--- End code ---
Would this work on windows?
scarphin:
I think it's safer to go with 'arm*' instead of 'arm-elf*' because in '\share\CodeBlocks\templates\wizard\common_functions.script' every arm related compiler is marked with 'arm*'. Although 'arm*' will match with 'arm-elf', I don't think there is any reason to introduce inconsistency between the wizard and the scripts nor rename available arm compilers to 'arm-elf*'. For a matter of fact arm-eabi compilers (i.e. for raspberry pi) can be used with cb too. Using 'arm-elf*' works btw.
Abdalla:
It worked on windows, but I get a message next to the windows clock it says can't find compiler executables. I will check this, meanwhile how to add ARM boards to the IDE ?
scarphin:
--- Quote from: Abdalla on March 14, 2015, 01:29:33 pm ---meanwhile how to add ARM boards to the IDE ?
--- End quote ---
You have to modify the wizard script: 'path_to_cb_installation\share\CodeBlocks\templates\wizard\arm\wizard.script'
Or right click on the 'ARM Project' icon in 'file->new->project' and click 'edit this script' to use a modified version without affecting the original.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version