I have used the RM48 without FreeRTOS. but I should use the EMIF without 3rd nWE pulse. (refer to Forum)
because the Target board has Nor Flash, SRAM and others control IC.
Now I should use the RM48 with FreeRTOS in next the project. but I am stuck.
I am looking forward to your support.
[ Development Environment ]
HalCogen 04.04 ( New Project : RM48L950ZWT_FREERTOS )
IDE: CCS 6.0 (add Enable support for GCC extensions -gcc)
Debugger : Spectrum Digital XDS560V2 STM Traveler
Compiler : TI v5.1.6
CPU : RM48L952
-
1th experiment
- Create New Project using HalCogen 4.04
- Adjust some option in HalCogen
- Code Generation
- insert below my main function
#include "sys_common.h" #include "FreeRTOS.h" #include "os_task.h" void DummyTask(); void SimpleTask(void *pvParameters); void DummyTask() { if (xTaskCreate(SimpleTask,"SimpleTask", configMINIMAL_STACK_SIZE, NULL, 1, NULL) != pdTRUE) { /* Task could not be created */ while(1); } // xTaskCreate(SimpleTask, "SimpleTask", 1024, NULL, 1, NULL); } void SimpleTask(void *pvParameters) { for(;;) { volatile int dum = 0; dum++; if(dum > 1000) dum = 0; vTaskDelay(100); } }
1th experiment result
--> it work well.
-
2th experiment
- I have modified the EMIF and MPU setting.
void _c_int00(void) { .............. /* USER CODE BEGIN (75) */ _mpuInit_(); _mpuEnable_(); /* USER CODE END */ .......... }
2th experiment result
-->always go to prefetchEntry in sys_intvecs.asm
and I trace my project code. I know that it break out at xPortStarScheduler when run vPortStartFirstTask().