This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nrf24E1 Keil Compiling

I am having difficulty in compiling code for the Nordic nrf24E1.

Nordic have a number of sample programs of which I am starting with ex1c.c (available from www.nordicsemi.no/.../nRF24E1_EXAMPLES_rev1_2.zip)

I am able to program (using PonyProg V2.06f and a parallel port programmer) the Nordic supplied hex file for example ex1c into my 25LC320 eeprom that the nrf24E1 uses. The program functions correctly.

I am However unable to compile my own working hex file!

The Nordic sample program supplies a uVision Project file, however when I open this file in uVision and attempt to compile the project the hex file that I able to generate does not function.

Comparing my generated hex file (does not work) to the Nordic supplied hex file (works) I see that my hex file has the data section? offest by 07FDH?...(disassembling the hex files provides the same information...)

I get the same result if I create a new project for nrf24E1 and attempt to compile that as well..

I suspect I am simply missing something in the configuration for Keil (startup.A51?, ?)....anyone that has Keil working with the nrf24E1 should I suspect be able to help me!

On the upside I have no dramas writing and programing ASM for the Nordic nrf24E1.... lol

I apologise for my difficulties with this.

William

Parents
  • My problem has been solved,

    As I suspect the error was completely mine! :)

    During my attempts to get it functioning I had in the past used the Nordic program eeprep.exe to add the eeprom header, recently I had gone away from that thinking that the error was somehow the in the organisation of the code (incorrect! The offset has no effect <duh>). Using eeprep.exe again solved my problems (why this didn't work in the frist place is a ?, again without a doubt simply my fault however).

    As Hans-Bernhard Broeker says I think it would help if Keil said that the evaluation version added an offset ***GAP*** to the code (why I am not sure? I was under the understanding it was simply code limited...).

    Thanks again for your help!
    (and apologies again for my lack of brains :) )

    William

Reply
  • My problem has been solved,

    As I suspect the error was completely mine! :)

    During my attempts to get it functioning I had in the past used the Nordic program eeprep.exe to add the eeprom header, recently I had gone away from that thinking that the error was somehow the in the organisation of the code (incorrect! The offset has no effect <duh>). Using eeprep.exe again solved my problems (why this didn't work in the frist place is a ?, again without a doubt simply my fault however).

    As Hans-Bernhard Broeker says I think it would help if Keil said that the evaluation version added an offset ***GAP*** to the code (why I am not sure? I was under the understanding it was simply code limited...).

    Thanks again for your help!
    (and apologies again for my lack of brains :) )

    William

Children