Convert AN12103 from IAR to MCUXpresso IDE

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Convert AN12103 from IAR to MCUXpresso IDE

Jump to solution
3,541 Views
dkh
NXP Employee
NXP Employee

Hello Support,

Can you please convert AN12103 from IAR to MCUXpresso and post solution here:

Regards,

0 Kudos
1 Solution
2,962 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Dennis Hicks,

The guidelines document is now public available at the following link:

Migrating AN12103 to EVKB-MIMXRT1050 with MCUXpresso IDE v10.2.1 and MCUXpresso SDK v2.4.2. 


Hope this will be useful for you.
Best regards!
/Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
8 Replies
2,962 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Dennis,

I have attached the migrated project from AN12103 to MCUXpresso IDE v10.2.1, using MCUXpresso SDK v2.4.2 for EVKB-IMXRT1050 board. It runs from HyperFlash, allocating all the variables on internal RAM, except the camera buffer, which is placed on external RAM due to its size.

A Community document with migrating steps is in progress, and will be available soon on the following link:

https://community.nxp.com/docs/DOC-342085


Hope this will be useful for you.
Best regards!
/Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
2,962 Views
dkh
NXP Employee
NXP Employee

Thanks Carlos. But I am not authorized for this site.

0 Kudos
2,962 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Dennis,

It is in progress, as soon as being ready, it will be public available.


Hope this will be useful for you.
Best regards!
/Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
2,963 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Dennis Hicks,

The guidelines document is now public available at the following link:

Migrating AN12103 to EVKB-MIMXRT1050 with MCUXpresso IDE v10.2.1 and MCUXpresso SDK v2.4.2. 


Hope this will be useful for you.
Best regards!
/Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
2,962 Views
dkh
NXP Employee
NXP Employee

Hello Carlos,

I am attempting to integrate the jpeg compression and sdcard function of AN12110 into this project. But I get these errors

Even though the paths are set. Is there anything in the linker setup that would prevent adding these ?

Regards,

Dennis

Building target: evkbimxrt1050_uvc_demo.axf

Invoking: MCU Linker

arm-none-eabi-gcc -nostdlib -Xlinker -Map="evkbimxrt1050_uvc_demo.map" -Xlinker --gc-sections -Xlinker -print-memory-usage -Xlinker --sort-section=alignment -mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -T "evkbimxrt1050_uvc_demo_Debug.ld" -o "evkbimxrt1050_uvc_demo.axf" ./xip/evkbimxrt1050_flexspi_nor_config.o ./xip/evkbimxrt1050_sdram_ini_dcd.o ./xip/fsl_flexspi_nor_boot.o ./utilities/fsl_assert.o ./utilities/fsl_debug_console.o ./utilities/fsl_io.o ./utilities/fsl_log.o ./utilities/fsl_str.o ./usb/phy/usb_phy.o ./usb/device/source/ehci/usb_device_ehci.o ./usb/device/source/usb_device_ch9.o ./usb/device/source/usb_device_dci.o ./usb/device/class/video/usb_device_video.o ./usb/device/class/usb_device_class.o ./startup/startup_mimxrt1052.o ./sources/main.o ./sources/usb_device_descriptor.o ./source/semihost_hardfault.o ./osa/usb_osa_bm.o ./drivers/fsl_cache.o ./drivers/fsl_clock.o ./drivers/fsl_common.o ./drivers/fsl_csi.o ./drivers/fsl_gpio.o ./drivers/fsl_lpi2c.o ./drivers/fsl_lpuart.o ./drivers/fsl_usdhc.o ./camera/camera_device.o ./camera/fsl_csi_camera_adapter.o ./camera/fsl_mt9m114.o ./camera/video_camera.o ./board/src/board.o ./board/src/clock_config.o ./board/src/pin_mux.o ./board/peripherals.o ./CMSIS/system_MIMXRT1052.o

Memory region Used Size Region Size %age Used

BOARD_FLASH: 58528 B 64 MB 0.09%

SRAM_DTC: 21880 B 128 KB 16.69%

SRAM_ITC: 0 GB 128 KB 0.00%

SRAM_OC: 0 GB 256 KB 0.00%

./sources/main.o: In function `sdcardWaitCardInsert':

C:\google\evkbimxrt1050_uvc_demo\Debug/../sources/main.c:100: undefined reference to `SD_HostInit'

C:\google\evkbimxrt1050_uvc_demo\Debug/../sources/main.c:107: undefined reference to `SD_PowerOffCard'

C:\google\evkbimxrt1050_uvc_demo\Debug/../sources/main.c:109: undefined reference to `SD_WaitCardDetectStatus'

C:\google\evkbimxrt1050_uvc_demo\Debug/../sources/main.c:112: undefined reference to `SD_PowerOnCard'

C:\google\evkbimxrt1050_uvc_demo\Debug/../sources/main.c:121: undefined reference to `g_sd'

./sources/main.o: In function `MountSDCard':

C:\google\evkbimxrt1050_uvc_demo\Debug/../sources/main.c:132: undefined reference to `f_mount'

C:\google\evkbimxrt1050_uvc_demo\Debug/../sources/main.c:139: undefined reference to `f_chdrive'

C:\google\evkbimxrt1050_uvc_demo\Debug/../sources/main.c:146: undefined reference to `f_opendir'

collect2.exe: error: ld returned 1 exit status

BOARD_SDRAM: 2457856 B 32 MB 7.32%

make: *** Error 1

08:52:50 Build Finished (took 7s.111ms)

0 Kudos
2,962 Views
dkh
NXP Employee
NXP Employee

This can be corrected by right clicking on middleware folder and unchecking exclude from build box

0 Kudos
2,962 Views
dkh
NXP Employee
NXP Employee

Can you explain why we must use AMCap ( or other webcam app ) instead of Camera App that comes with windows 10 ?

If you try the camera app included with windows 10 it crashes

0 Kudos
2,962 Views
dkh
NXP Employee
NXP Employee

Thank You

0 Kudos