File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
platforms/nuttx/src/px4/nxp/imxrt/romapi Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -158,11 +158,10 @@ void ROM_API_Init(void)
158158 g_bootloaderTree = ((bootloader_api_entry_t * ) * (uint32_t * )0x0020001cU );
159159#else
160160
161- if ((getreg32 (IMXRT_ANADIG_MISC_MISC_DIFPROG ) & ANADIG_MISC_MISC_DIFPROG_CHIPID (0x10U )) != 0U ) {
162- g_bootloaderTree = ((bootloader_api_entry_t * ) * (uint32_t * )0x0021001cU );
163-
164- } else {
161+ if (getreg32 (IMXRT_ANADIG_MISC_MISC_DIFPROG ) == 0x001170A0U ) {
165162 g_bootloaderTree = ((bootloader_api_entry_t * ) * (uint32_t * )0x0020001cU );
163+ } else {
164+ g_bootloaderTree = ((bootloader_api_entry_t * ) * (uint32_t * )0x0021001cU );
166165 }
167166
168167#endif
@@ -320,11 +319,12 @@ void ROM_FLEXSPI_NorFlash_ClearCache(uint32_t instance)
320319{
321320 uint32_t clearCacheFunctionAddress ;
322321
323- if ((getreg32 (IMXRT_ANADIG_MISC_MISC_DIFPROG ) & ANADIG_MISC_MISC_DIFPROG_CHIPID (0x10U )) != 0U ) {
322+ if (getreg32 (IMXRT_ANADIG_MISC_MISC_DIFPROG ) == 0x001170a0U ) {
323+ clearCacheFunctionAddress = 0x0020426bU ;
324+ } else if (getreg32 (IMXRT_ANADIG_MISC_MISC_DIFPROG ) == 0x001170b0U ) {
324325 clearCacheFunctionAddress = 0x0021a3b7U ;
325-
326326 } else {
327- clearCacheFunctionAddress = 0x0020426bU ;
327+ clearCacheFunctionAddress = 0x0021a3bfU ;
328328 }
329329
330330 clearCacheCommand_t clearCacheCommand ;
You can’t perform that action at this time.
0 commit comments