- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I tried to implement the stdio.h library to use the printf function.
The way I have done it, it first seemed to work, but after adding BLE functionallity the printf function doesn't work any more.
I attached the project. Could you please review it?
Thanks and best regards
Philipp
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Philipp,
Firstly, please select "Dual core" option to allocate the BLE stack to both cores to eliminate the building error.
Then you can add "\r\n" in each printf() function, as below:
printf("%d \r\n",i);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Philipp,
Firstly, please select "Dual core" option to allocate the BLE stack to both cores to eliminate the building error.
Then you can add "\r\n" in each printf() function, as below:
printf("%d \r\n",i);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi fwan,
thank you for the fast reply.
It works.
Could you tell me where the failure was?
Was it the missing \r\n or the BLE Stack?
Would be good to know to avoid similar failures.
Best regards
Philipp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Philipp,
Your project is not building because in top design you have selected Single Core (CM4) but you were trying to initialize the BLE controller from CM0+.
In case of 'printf', if you want to output the string then '\n' is needed to output the data.
Thanks,
Ajay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can refer to below link for the clarification of this issue: