Skip navigation

Hello, recently I have done Periph Blinky e.g. from LPCOpen library on MCUxpresso. I am using LPC1769 chip and I have toggled GPIO pin. In my case I have used buzzer pin i.e. Port 3 & Pin 25. Instead of using Timer delay I created a delay function i.e. void delay_ms(unsigned int ms). Here I am attaching the systick.c file. Hope it helps!!  

Hello everyone, I am working on MCUxpresso and using LPC1769 controller. I am done with Led blinking in MCUxpresso. I have used flash magic to flash the hex file in controller using usb to ttl. But I faced a hex file issue while doing this project. So I thought I should share this with everyone who are facing the same issue. After compiling only .axf was getting created. For creating .hex file ,you need to do following settings:


1)Go to properties---> C/C++ Build --->Settings ---> Build Steps


Now in post build steps :




arm-none-eabi-size "${BuildArtifactFileName}"


# arm-none-eabi-objcopy -v -O binary "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin"


# checksum -p ${TargetChip} -d "${BuildArtifactFileBaseName}.bin




arm-none-eabi-size "${BuildArtifactFileName}"


# arm-none-eabi-objcopy -v -O hex "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.hex"


# checksum -p ${TargetChip} -d "${BuildArtifactFileBaseName}.hex"




2) After  doing step 1, please check if axf is selected in Artifact extension as shown below:





3)For creating hex file go to Debug-->.axf file-->Right Click-->Binary Utilities-->Create hex. Now you are ready to flash! 





Also kindly check this article:MCUXpresso IDE: Creating Binary Files (S-Record, Intel Hex, Binary) 




After doing these settings I got the hex file and finally it worked!!