This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/EK-TM4C123GXL: Hand over a Pointer from an array to a function

Part Number: EK-TM4C123GXL

Tool/software: TI C/C++ Compiler

Hi Community,

I have a Problem Programming the MC.

I modified the example Project project0 to print via UART for debbuging - this works quite fine.

Then I added a function (in a new source file) added it to the makefile and everything needed to do and just let this function print out a sentence over UART - this works as well.

Now comes the interesting part. I initialize an array  (the dots just fill a long sentence):

                              uint8_t message_str[281] = "...."

Then i let a pointer point to the array

                             uint8_t * message = &message_str[0];

I hand over the ponter to my function, but i do not use it!! If i compile and flash my code via makefile I get no error message but if i flash it to the MC (with lm4flash) the MC does literally nothing.

But when i reduce the size of the array for example to 120 (uint8_t message_str[120] = "....") and compile the code and flash it it works!!!!

I am desperate and happy for any help!!

Thanks in Advance!

Nate