Build target ‘Target 1’
linking…
.\Project1.sct(1): error: L6229E: Scatter description .\Project1.sct is empty.
.\Project1.sct: Error: L6372E: Image needs at least one load region.
Target not created
The uVision Linker control strings are :-
–cpu Cortex-M4 *.o
–scatter “.\Project1.sct”
and the addresses for R/O Base and R/W Base are 0x2001A000 and 0x2009A000 respectively.
The RLP Demo pages do not complete the instructions for setting these parameters, nor for creating the .bin file, and Keil suggest that these may be incorrect for a Cortex M4 SOC, and the default clock is 12MHz, and not 16Mhz as per the Cerbuino board (is the board over-clocking the processor, or is the 16MHz clock not associated directly with the processor?). Keil also suggest using another board that is much more expensive.
Images from the Keil uVision system can be supplied.
I am not Gus (he’s got more hair) but I will take the liberty and say it would be great if you provided that. In fact as I read the sentence “Keil support in the UK got me out of the problem, and the code now compiles” I immediately thought to myself I hope you are going to share the info with us.
Thanks Gus, I will put up a page when I have finished this project.
Next question, I am missing something here with RLPLite Demo. The example uses
Add the following assemblies/references to your project if they are not already included:
GHIElectronics.OSH.NETMF.Hardware
GHIElectronics.OSH.NETMF.Native
Microsoft.SPOT.Hardware
Microsoft.SPOT.Native
mscorlib
Add the following using statements to your program file:
using System;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using GHIElectronics.OSH.NETMF.Native;
using GHIElectronics.OSH.NETMF.Hardware.LowLevel;
This must have been updated at some stage, but I cannot find a reference to any such changes. Can you point me to them please?
The Way you would get GetBytes to show is when you have a binary resources added to your resources file…
Now in your Solution Explorer Double click on Resources.resx which would open the designer click on Add Resource which will show the Dialog Window find RLPLite file and click Open, if you don’t see your file make sure you change Text File (…) to All Files… now the new file should show in the designer. click it and check the Property Window and make sure its type is set to binary. click save and go back to your code and voila…
Microsoft Visual C# 2010 Express in Microsoft .NET Micro Framework SDK v4.2 Version 4.2.0.0 is giving :-
Error 1 The name ‘Resources’ does not exist in the current context C:\Documents and Settings\Ian\My Documents\Visual Studio 2010\Projects\RLPLiteSpeedTest1\RLPLiteSpeedTest1\Program.cs 20 30 RLPLiteSpeedTest1
when building :-
using System;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using GHI.OSHW.Hardware.LowLevel;
using GHI.OSHW.Native;
namespace RLPLiteTestProgram
{
public class Program
{
public static void Main()
{
const int ARRAYSIZE = 100000;
float TotalTime = 0;
uint TickStart = 0;
uint TickEnd = 0;
int ret = 0;
@ Ian - Did you follow the steps outlined by Jay Jay earlier in this thread? It sounds like you might not have added the resulting bin file as a resource to your C# project.
Could you also paste the code of Resources.Designer.cs?
As your project’s name is different from the namespace in the file shown, the Resource class could be created in a different namespace.
If so, then you could either:
change the default namespace in the project’s properties
add the namespace with using ;
You could also let Visual Studio add the using statement by hovering the mouse over Resources in the code and expand the little something, that will appear unter the class name. Alternatively you can expand that context menu by putting the cursor on Resources in the code and hit SHIFT+ALT+F10.
And just in case: pressing only SHIFT+ALT (without F10)might change the keyboard layout for Visual Studio. If you ever find yourself with a different keyboard layout just hit SHIFT+ALT again. It took me two years to figure out why my keyboard layout constantly switches from german to english and back.
EDIT: And I think the address space for cerb-family starts at 0x2001A000.
0xA0000000 is for the Hydra, I think.
Thanks for the help with this. I tried the approach of getting the Visual Studio to expand the “Resources” in the code, and the picture shows what I got back.
I tried debugging it, and got the results shown - not sure where next?
Good spot on the address being for the FEZ Hydra! Thanks - I missed that one! You can see that I corrected it in the program.
The help that I have received is much appreciated, and a lot more than I have seen from other communities with other problems. Thanks.
Thanks for the reply. Yes, that was the message produced. The solution was to correct the namespace name, as suggested by taylorza and MarkusFriedel (see their posts)>
But thanks for the reply.
Now moving on the Exception error, which is produced by the emulator, and after Deploy, and looking at the other posts showing the same error (lots of them!) I haven’t yet found a solution. Is it a problem in the .NETMF? Or am I talking rubbish? (Please reply politely!).