lpcware

"Syntax error" message in compiler

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by JohnR on Mon Aug 05 14:32:40 MST 2013
Hi All,

I am using Red Suite 5 (NXP Edition) in an dual M4/M0 LPC4350 project.

In the following code the array, helvr10_bits, is marked "Syntax error" in the editor when the array is placed in RamAHB32 using the __DATA macro.

The phrase, cr_section_macros.h, is actually surrounded by <> but the editor here seems to remove them and the text inside them?



#include cr_section_macros.h

#include "lpc_types.h"
#include "lpc_helvr10.h"

/* Font character bitmap data. */
//static UNS_16 helvr10_bits [] =
__DATA(RamAHB32) static UNS_16 helvr10_bits[] =
{
......................
};


Similarly, in another file, the same error is marked

//uint32_t result[2][MAX_COUNT];
__DATA(RamAHB32) uint32_t result[2][MAX_COUNT];


The program compiles and runs fine, so I am not sure why the message shows up?

Does anyone know why this is happening?

Thanks in advance,

JohnR

Outcomes